xiaozhi-client 1.9.1-beta.2 → 1.9.1
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/WebServerStandalone.js +13 -25
- package/dist/WebServerStandalone.js.map +1 -1
- package/dist/cli.js +16 -28
- package/dist/cli.js.map +1 -1
- package/dist/package.json +1 -3
- package/package.json +1 -3
- package/web/dist/assets/index-COfJftUA.css +1 -0
- package/web/dist/assets/index-ukaaLbQN.js +50 -0
- package/web/dist/assets/index-ukaaLbQN.js.map +1 -0
- package/web/dist/assets/{react-vendor-7zIr7ow_.js → react-vendor-B6Uf_8Kw.js} +50 -55
- package/web/dist/assets/react-vendor-B6Uf_8Kw.js.map +1 -0
- package/web/dist/assets/{utils-6NGWbxZh.js → utils-D0kRQKVW.js} +2 -2
- package/web/dist/assets/{utils-6NGWbxZh.js.map → utils-D0kRQKVW.js.map} +1 -1
- package/web/dist/assets/{vendor-CNCXIwRS.js → vendor-DvFnRBMT.js} +2 -2
- package/web/dist/assets/{vendor-CNCXIwRS.js.map → vendor-DvFnRBMT.js.map} +1 -1
- package/web/dist/index.html +5 -5
- package/web/dist/assets/index-Bz_e-i6o.js +0 -52
- package/web/dist/assets/index-Bz_e-i6o.js.map +0 -1
- package/web/dist/assets/index-rGmv8p0x.css +0 -1
- package/web/dist/assets/react-vendor-7zIr7ow_.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as Q,a as zc}from"./radix-ui-BA32w1ww.js";import{s as Gy,_ as Rn,a as zf,g as Qy,b as Xy,h as Bf,c as Zy,o as qy,d as Jy,f as eg,e as tg,i as ng,l as rg,j as Bc,k as og}from"./vendor-
|
|
1
|
+
import{c as Q,a as zc}from"./radix-ui-BA32w1ww.js";import{s as Gy,_ as Rn,a as zf,g as Qy,b as Xy,h as Bf,c as Zy,o as qy,d as Jy,f as eg,e as tg,i as ng,l as rg,j as Bc,k as og}from"./vendor-DvFnRBMT.js";import{p as ig,a as sg,$ as lg}from"./form-utils-wyhL6gg0.js";function ag(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Uf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hf={exports:{}},Is={},Wf={exports:{}},te={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react.production.min.js
|
|
4
4
|
*
|
|
@@ -40,12 +40,12 @@ Error generating stack: `+i.message+`
|
|
|
40
40
|
* @license MIT
|
|
41
41
|
*/var Jd="popstate";function b1(e={}){function t(r,o){let{pathname:i,search:s,hash:l}=r.location;return Za("",{pathname:i,search:s,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:qo(o)}return O1(t,n,null,e)}function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ht(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function M1(){return Math.random().toString(36).substring(2,10)}function ef(e,t){return{usr:e.state,key:e.key,idx:t}}function Za(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?no(t):t,state:n,key:t&&t.key||r||M1()}}function qo({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function no(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function O1(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l="POP",a=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function c(){l="POP";let x=d(),h=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:h})}function v(x,h){l="PUSH";let p=Za(y.location,x,h);u=d()+1;let m=ef(p,u),g=y.createHref(p);try{s.pushState(m,"",g)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;o.location.assign(g)}i&&a&&a({action:l,location:y.location,delta:1})}function w(x,h){l="REPLACE";let p=Za(y.location,x,h);u=d();let m=ef(p,u),g=y.createHref(p);s.replaceState(m,"",g),i&&a&&a({action:l,location:y.location,delta:0})}function S(x){return L1(x)}let y={get action(){return l},get location(){return e(o,s)},listen(x){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Jd,c),a=x,()=>{o.removeEventListener(Jd,c),a=null}},createHref(x){return t(o,x)},createURL:S,encodeLocation(x){let h=S(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:v,replace:w,go(x){return s.go(x)}};return y}function L1(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ee(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:qo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function tm(e,t,n="/"){return F1(e,t,n,!1)}function F1(e,t,n,r){let o=typeof t=="string"?no(t):t,i=mn(o.pathname||"/",n);if(i==null)return null;let s=nm(e);j1(s);let l=null;for(let a=0;l==null&&a<s.length;++a){let u=Q1(i);l=Y1(s[a],u,r)}return l}function nm(e,t=[],n=[],r="",o=!1){let i=(s,l,a=o,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&a)return;Ee(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let c=un([r,d.relativePath]),v=n.concat(d);s.children&&s.children.length>0&&(Ee(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),nm(s.children,t,v,c,a)),!(s.path==null&&!s.index)&&t.push({path:c,score:W1(c,s.index),routesMeta:v})};return e.forEach((s,l)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,l);else for(let u of rm(s.path))i(s,l,!0,u)}),t}function rm(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=rm(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function j1(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:K1(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var $1=/^:[\w-]+$/,V1=3,z1=2,B1=1,U1=10,H1=-2,tf=e=>e==="*";function W1(e,t){let n=e.split("/"),r=n.length;return n.some(tf)&&(r+=H1),t&&(r+=z1),n.filter(o=>!tf(o)).reduce((o,i)=>o+($1.test(i)?V1:i===""?B1:U1),r)}function K1(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Y1(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),v=a.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=ks({path:a.relativePath,caseSensitive:a.caseSensitive,end:!1},d)),!c)return null;Object.assign(o,c.params),s.push({params:o,pathname:un([i,c.pathname]),pathnameBase:J1(un([i,c.pathnameBase])),route:v}),c.pathnameBase!=="/"&&(i=un([i,c.pathnameBase]))}return s}function ks(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=G1(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],s=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:c},v)=>{if(d==="*"){let S=l[v]||"";s=i.slice(0,i.length-S.length).replace(/(.)\/+$/,"$1")}const w=l[v];return c&&!w?u[d]=void 0:u[d]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function G1(e,t=!1,n=!0){Ht(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Q1(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ht(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function mn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function X1(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?no(e):e;return{pathname:n?n.startsWith("/")?n:Z1(n,t):t,search:ew(r),hash:tw(o)}}function Z1(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function $l(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function q1(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function dc(e){let t=q1(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function fc(e,t,n,r=!1){let o;typeof e=="string"?o=no(e):(o={...e},Ee(!o.pathname||!o.pathname.includes("?"),$l("?","pathname","search",o)),Ee(!o.pathname||!o.pathname.includes("#"),$l("#","pathname","hash",o)),Ee(!o.search||!o.search.includes("#"),$l("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let c=t.length-1;if(!r&&s.startsWith("..")){let v=s.split("/");for(;v[0]==="..";)v.shift(),c-=1;o.pathname=v.join("/")}l=c>=0?t[c]:"/"}let a=X1(o,l),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}var un=e=>e.join("/").replace(/\/\/+/g,"/"),J1=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,tw=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function nw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var om=["POST","PUT","PATCH","DELETE"];new Set(om);var rw=["GET",...om];new Set(rw);var ro=f.createContext(null);ro.displayName="DataRouter";var Gs=f.createContext(null);Gs.displayName="DataRouterState";f.createContext(!1);var im=f.createContext({isTransitioning:!1});im.displayName="ViewTransition";var ow=f.createContext(new Map);ow.displayName="Fetchers";var iw=f.createContext(null);iw.displayName="Await";var Wt=f.createContext(null);Wt.displayName="Navigation";var li=f.createContext(null);li.displayName="Location";var tn=f.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName="Route";var pc=f.createContext(null);pc.displayName="RouteError";function sw(e,{relative:t}={}){Ee(oo(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=f.useContext(Wt),{hash:o,pathname:i,search:s}=ai(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:un([n,i])),r.createHref({pathname:l,search:s,hash:o})}function oo(){return f.useContext(li)!=null}function Kn(){return Ee(oo(),"useLocation() may be used only in the context of a <Router> component."),f.useContext(li).location}var sm="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function lm(e){f.useContext(Wt).static||f.useLayoutEffect(e)}function am(){let{isDataRoute:e}=f.useContext(tn);return e?ww():lw()}function lw(){Ee(oo(),"useNavigate() may be used only in the context of a <Router> component.");let e=f.useContext(ro),{basename:t,navigator:n}=f.useContext(Wt),{matches:r}=f.useContext(tn),{pathname:o}=Kn(),i=JSON.stringify(dc(r)),s=f.useRef(!1);return lm(()=>{s.current=!0}),f.useCallback((a,u={})=>{if(Ht(s.current,sm),!s.current)return;if(typeof a=="number"){n.go(a);return}let d=fc(a,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:un([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}f.createContext(null);function ai(e,{relative:t}={}){let{matches:n}=f.useContext(tn),{pathname:r}=Kn(),o=JSON.stringify(dc(n));return f.useMemo(()=>fc(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function aw(e,t){return um(e,t)}function um(e,t,n,r,o){var p;Ee(oo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=f.useContext(Wt),{matches:s}=f.useContext(tn),l=s[s.length-1],a=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",c=l&&l.route;{let m=c&&c.path||"";cm(u,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${m}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
42
42
|
|
|
43
|
-
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let v=Kn(),w;if(t){let m=typeof t=="string"?no(t):t;Ee(d==="/"||((p=m.pathname)==null?void 0:p.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${m.pathname}" was given in the \`location\` prop.`),w=m}else w=v;let S=w.pathname||"/",y=S;if(d!=="/"){let m=d.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=tm(e,{pathname:y});Ht(c||x!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ht(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=pw(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([d,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?d:un([d,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,o);return t&&h?f.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},h):h}function uw(){let e=gw(),t=nw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,s)}var cw=f.createElement(uw,null),dw=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(tn.Provider,{value:this.props.routeContext},f.createElement(pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fw({routeContext:e,match:t,children:n}){let r=f.useContext(ro);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(tn.Provider,{value:e},n)}function pw(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n==null?void 0:n.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);Ee(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:c,errors:v}=n,w=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||w){l=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let v,w=!1,S=null,y=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||cw,l&&(a<0&&c===0?(cm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):a===c&&(w=!0,y=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,c+1)),h=()=>{let p;return v?p=S:w?p=y:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement(fw,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(dw,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:h(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:r}):h()},null)}function hc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hw(e){let t=f.useContext(ro);return Ee(t,hc(e)),t}function mw(e){let t=f.useContext(Gs);return Ee(t,hc(e)),t}function vw(e){let t=f.useContext(tn);return Ee(t,hc(e)),t}function mc(e){let t=vw(e),n=t.matches[t.matches.length-1];return Ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function yw(){return mc("useRouteId")}function gw(){var r;let e=f.useContext(pc),t=mw("useRouteError"),n=mc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ww(){let{router:e}=hw("useNavigate"),t=mc("useNavigate"),n=f.useRef(!1);return lm(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Ht(n.current,sm),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var nf={};function cm(e,t,n){!t&&!nf[e]&&(nf[e]=!0,Ht(!1,n))}f.memo(xw);function xw({routes:e,future:t,state:n,unstable_onError:r}){return um(e,void 0,n,r,t)}function k_({to:e,replace:t,state:n,relative:r}){Ee(oo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Wt);Ht(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(tn),{pathname:s}=Kn(),l=am(),a=fc(e,dc(i),s,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function Sw(e){Ee(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ew({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Ee(!oo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=no(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:v="default"}=n,w=f.useMemo(()=>{let S=mn(a,s);return S==null?null:{location:{pathname:S,search:u,hash:d,state:c,key:v},navigationType:r}},[s,a,u,d,c,v,r]);return Ht(w!=null,`<Router basename="${s}"> is not able to match the URL "${a}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:f.createElement(Wt.Provider,{value:l},f.createElement(li.Provider,{children:t,value:w}))}function __({children:e,location:t}){return aw(qa(e),t)}function qa(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let i=[...t,o];if(r.type===f.Fragment){n.push.apply(n,qa(r.props.children,i));return}Ee(r.type===Sw,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=qa(r.props.children,i)),n.push(s)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Qs(e){return e!=null&&typeof e.tagName=="string"}function Cw(e){return Qs(e)&&e.tagName.toLowerCase()==="button"}function kw(e){return Qs(e)&&e.tagName.toLowerCase()==="form"}function _w(e){return Qs(e)&&e.tagName.toLowerCase()==="input"}function Rw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pw(e,t){return e.button===0&&(!t||t==="_self")&&!Rw(e)}var Di=null;function Tw(){if(Di===null)try{new FormData(document.createElement("form"),0),Di=!1}catch{Di=!0}return Di}var Nw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Nw.has(e)?(Ht(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function Aw(e,t){let n,r,o,i,s;if(kw(e)){let l=e.getAttribute("action");r=l?mn(l,t):null,n=e.getAttribute("method")||Qi,o=Vl(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(Cw(e)||_w(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(r=a?mn(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Qi,o=Vl(e.getAttribute("formenctype"))||Vl(l.getAttribute("enctype"))||Xi,i=new FormData(l,e),!Tw()){let{name:u,type:d,value:c}=e;if(d==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,c)}}else{if(Qs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qi,r=null,o=Xi,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dw(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&mn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Iw(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Mw(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await Iw(i,n);return s.links?s.links():[]}return[]}));return jw(r.flat(1).filter(bw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function rf(e,t,n,r,o,i){let s=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,l=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>s(a,u)||l(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(s(a,u)||l(a,u))return!0;if(a.route.shouldRevalidate){let v=a.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Ow(e,t,{includeHydrateFallback:n}={}){return Lw(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Lw(e){return[...new Set(e)]}function Fw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function jw(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Fw(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function dm(){let e=f.useContext(ro);return vc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $w(){let e=f.useContext(Gs);return vc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yc=f.createContext(void 0);yc.displayName="FrameworkContext";function fm(){let e=f.useContext(yc);return vc(e,"You must render this element inside a <HydratedRouter> element"),e}function Vw(e,t){let n=f.useContext(yc),[r,o]=f.useState(!1),[i,s]=f.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,v=f.useRef(null);f.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=h=>{h.forEach(p=>{s(p.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,v,{}]:[i,v,{onFocus:wo(l,w),onBlur:wo(a,S),onMouseEnter:wo(u,w),onMouseLeave:wo(d,S),onTouchStart:wo(c,w)}]:[!1,v,{}]}function wo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zw({page:e,...t}){let{router:n}=dm(),r=f.useMemo(()=>tm(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(Uw,{page:e,matches:r,...t}):null}function Bw(e){let{manifest:t,routeModules:n}=fm(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return Mw(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function Uw({page:e,matches:t,...n}){let r=Kn(),{manifest:o,routeModules:i}=fm(),{basename:s}=dm(),{loaderData:l,matches:a}=$w(),u=f.useMemo(()=>rf(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>rf(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(h=>{var m;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(g=>g.route.id===h.route.id)&&h.route.id in l&&((m=i[h.route.id])!=null&&m.shouldRevalidate)||p.hasClientLoader?y=!0:S.add(h.route.id))}),S.size===0)return[];let x=Dw(e,s,"data");return y&&S.size>0&&x.searchParams.set("_routes",t.filter(h=>S.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[s,l,r,o,u,t,e,i]),v=f.useMemo(()=>Ow(d,o),[d,o]),w=Bw(d);return f.createElement(f.Fragment,null,c.map(S=>f.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>f.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),w.map(({key:S,link:y})=>f.createElement("link",{key:S,nonce:n.nonce,...y})))}function Hw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pm&&(window.__reactRouterVersion="7.9.5")}catch{}function R_({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=b1({window:n,v5Compat:!0}));let o=r.current,[i,s]=f.useState({action:o.action,location:o.location}),l=f.useCallback(a=>{f.startTransition(()=>s(a))},[s]);return f.useLayoutEffect(()=>o.listen(l),[o,l]),f.createElement(Ew,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mm=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:d,viewTransition:c,...v},w){let{basename:S}=f.useContext(Wt),y=typeof u=="string"&&hm.test(u),x,h=!1;if(typeof u=="string"&&y&&(x=u,pm))try{let j=new URL(window.location.href),F=u.startsWith("//")?new URL(j.protocol+u):new URL(u),W=mn(F.pathname,S);F.origin===j.origin&&W!=null?u=W+F.search+F.hash:h=!0}catch{Ht(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=sw(u,{relative:o}),[m,g,E]=Vw(r,v),_=Gw(u,{replace:s,state:l,target:a,preventScrollReset:d,relative:o,viewTransition:c});function k(j){t&&t(j),j.defaultPrevented||_(j)}let A=f.createElement("a",{...v,...E,href:x||p,onClick:h||i?t:k,ref:Hw(w,g),target:a,"data-discover":!y&&n==="render"?"true":void 0});return m&&!y?f.createElement(f.Fragment,null,A,f.createElement(zw,{page:p})):A});mm.displayName="Link";var Ww=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:l,children:a,...u},d){let c=ai(s,{relative:u.relative}),v=Kn(),w=f.useContext(Gs),{navigator:S,basename:y}=f.useContext(Wt),x=w!=null&&Jw(c)&&l===!0,h=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,p=v.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&y&&(m=mn(m,y)||m);const g=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=p===h||!o&&p.startsWith(h)&&p.charAt(g)==="/",_=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),k={isActive:E,isPending:_,isTransitioning:x},A=E?t:void 0,j;typeof r=="function"?j=r(k):j=[r,E?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(k):i;return f.createElement(mm,{...u,"aria-current":A,className:j,ref:d,style:F,to:s,viewTransition:l},typeof a=="function"?a(k):a)});Ww.displayName="NavLink";var Kw=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Qi,action:l,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...v},w)=>{let S=Zw(),y=qw(l,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&hm.test(l),p=m=>{if(a&&a(m),m.defaultPrevented)return;m.preventDefault();let g=m.nativeEvent.submitter,E=(g==null?void 0:g.getAttribute("formmethod"))||s;S(g||m.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:w,method:x,action:y,onSubmit:r?a:p,...v,"data-discover":!h&&e==="render"?"true":void 0})});Kw.displayName="Form";function Yw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vm(e){let t=f.useContext(ro);return Ee(t,Yw(e)),t}function Gw(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=am(),a=Kn(),u=ai(e,{relative:i});return f.useCallback(d=>{if(Pw(d,t)){d.preventDefault();let c=n!==void 0?n:qo(a)===qo(u);l(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:s})}},[a,l,u,n,r,t,e,o,i,s])}var Qw=0,Xw=()=>`__${String(++Qw)}__`;function Zw(){let{router:e}=vm("useSubmit"),{basename:t}=f.useContext(Wt),n=yw();return f.useCallback(async(r,o={})=>{let{action:i,method:s,encType:l,formData:a,body:u}=Aw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Xw();await e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function qw(e,{relative:t}={}){let{basename:n}=f.useContext(Wt),r=f.useContext(tn);Ee(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ai(e||".",{relative:t})},s=Kn();if(e==null){i.search=s.search;let l=new URLSearchParams(i.search),a=l.getAll("index");if(a.some(d=>d==="")){l.delete("index"),a.filter(c=>c).forEach(c=>l.append("index",c));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:un([n,i.pathname])),qo(i)}function Jw(e,{relative:t}={}){let n=f.useContext(im);Ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vm("useViewTransitionState"),o=ai(e,{relative:t});if(!n.isTransitioning)return!1;let i=mn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ks(o.pathname,s)!=null||ks(o.pathname,i)!=null}var ex=(e,t,n,r,o,i,s,l)=>{let a=document.documentElement,u=["light","dark"];function d(w){(Array.isArray(e)?e:[e]).forEach(S=>{let y=S==="class",x=y&&i?o.map(h=>i[h]||h):o;y?(a.classList.remove(...x),a.classList.add(i&&i[w]?i[w]:w)):a.setAttribute(S,w)}),c(w)}function c(w){l&&u.includes(w)&&(a.style.colorScheme=w)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let w=localStorage.getItem(t)||n,S=s&&w==="system"?v():w;d(S)}catch{}},tx=f.createContext(void 0),nx={setTheme:e=>{},themes:[]},P_=()=>{var e;return(e=f.useContext(tx))!=null?e:nx};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:l,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,l,s,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${ex.toString()})(${d})`}})});function rx(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ox=e=>{switch(e){case"success":return lx;case"info":return ux;case"warning":return ax;case"error":return cx;default:return null}},ix=Array(12).fill(0),sx=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},ix.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),lx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ax=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ux=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{const[e,t]=T.useState(document.hidden);return T.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ja=1;class px{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ja++,s=this.toasts.find(a=>a.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const l=o.then(async u=>{if(s=["resolve",u],T.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(mx(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:v,...S})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,w=typeof d=="object"&&!T.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...w})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>l.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Ja++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const rt=new px,hx=(e,t)=>{const n=(t==null?void 0:t.id)||Ja++;return rt.addToast({title:e,...t,id:n}),n},mx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vx=hx,yx=()=>rt.toasts,gx=()=>rt.getActiveToasts(),T_=Object.assign(vx,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:yx,getToasts:gx});rx("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ii(e){return e.label!==void 0}const wx=3,xx="24px",Sx="16px",of=4e3,Ex=356,Cx=14,kx=45,_x=200;function Xt(...e){return e.filter(Boolean).join(" ")}function Rx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Px=e=>{var t,n,r,o,i,s,l,a,u;const{invert:d,toast:c,unstyled:v,interacting:w,setHeights:S,visibleToasts:y,heights:x,index:h,toasts:p,expanded:m,removeToast:g,defaultRichColors:E,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:j,className:F="",descriptionClassName:W="",duration:B,position:V,gap:G,expandByDefault:J,classNames:L,icons:K,closeButtonAriaLabel:Y="Close toast"}=e,[ae,de]=T.useState(null),[Ae,St]=T.useState(null),[X,se]=T.useState(!1),[le,Re]=T.useState(!1),[U,H]=T.useState(!1),[me,re]=T.useState(!1),[oe,ee]=T.useState(!1),[je,$e]=T.useState(0),[Yt,Gt]=T.useState(0),dt=T.useRef(c.duration||B||of),so=T.useRef(null),Ve=T.useRef(null),C=h===0,P=h+1<=y,N=c.type,O=c.dismissible!==!1,M=c.className||"",I=c.descriptionClassName||"",z=T.useMemo(()=>x.findIndex(Z=>Z.toastId===c.id)||0,[x,c.id]),ue=T.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:_},[c.closeButton,_]),fe=T.useMemo(()=>c.duration||B||of,[c.duration,B]),We=T.useRef(0),At=T.useRef(0),Dt=T.useRef(0),wn=T.useRef(null),[lo,ao]=V.split("-"),di=T.useMemo(()=>x.reduce((Z,Oe,Ke)=>Ke>=z?Z:Z+Oe.height,0),[x,z]),uo=fx(),fl=c.invert||d,vr=N==="loading";At.current=T.useMemo(()=>z*G+di,[z,di]),T.useEffect(()=>{dt.current=fe},[fe]),T.useEffect(()=>{se(!0)},[]),T.useEffect(()=>{const Z=Ve.current;if(Z){const Oe=Z.getBoundingClientRect().height;return Gt(Oe),S(Ke=>[{toastId:c.id,height:Oe,position:c.position},...Ke]),()=>S(Ke=>Ke.filter(ft=>ft.toastId!==c.id))}},[S,c.id]),T.useLayoutEffect(()=>{if(!X)return;const Z=Ve.current,Oe=Z.style.height;Z.style.height="auto";const Ke=Z.getBoundingClientRect().height;Z.style.height=Oe,Gt(Ke),S(ft=>ft.find(ze=>ze.toastId===c.id)?ft.map(ze=>ze.toastId===c.id?{...ze,height:Ke}:ze):[{toastId:c.id,height:Ke,position:c.position},...ft])},[X,c.title,c.description,S,c.id,c.jsx,c.action,c.cancel]);const xn=T.useCallback(()=>{Re(!0),$e(At.current),S(Z=>Z.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{g(c)},_x)},[c,g,S,At]);T.useEffect(()=>{if(c.promise&&N==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return m||w||uo?(()=>{if(Dt.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}Dt.current=new Date().getTime()})():(()=>{dt.current!==1/0&&(We.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),xn()},dt.current))})(),()=>clearTimeout(Z)},[m,w,c,N,uo,xn]),T.useEffect(()=>{c.delete&&(xn(),c.onDismiss==null||c.onDismiss.call(c,c))},[xn,c.delete]);function Ky(){var Z;if(K!=null&&K.loading){var Oe;return T.createElement("div",{className:Xt(L==null?void 0:L.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":N==="loading"},K.loading)}return T.createElement(sx,{className:Xt(L==null?void 0:L.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:N==="loading"})}const Yy=c.icon||(K==null?void 0:K[N])||ox(N);var jc,$c;return T.createElement("li",{tabIndex:0,ref:Ve,className:Xt(F,M,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[N],c==null||(n=c.classNames)==null?void 0:n[N]),"data-sonner-toast":"","data-rich-colors":(jc=c.richColors)!=null?jc:E,"data-styled":!(c.jsx||c.unstyled||v),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":le,"data-visible":P,"data-y-position":lo,"data-x-position":ao,"data-index":h,"data-front":C,"data-swiping":U,"data-dismissible":O,"data-type":N,"data-invert":fl,"data-swipe-out":me,"data-swipe-direction":Ae,"data-expanded":!!(m||J&&X),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${le?je:At.current}px`,"--initial-height":J?"auto":`${Yt}px`,...k,...c.style},onDragEnd:()=>{H(!1),de(null),wn.current=null},onPointerDown:Z=>{Z.button!==2&&(vr||!O||(so.current=new Date,$e(At.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(H(!0),wn.current={x:Z.clientX,y:Z.clientY})))},onPointerUp:()=>{var Z,Oe,Ke;if(me||!O)return;wn.current=null;const ft=Number(((Z=Ve.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fi=Number(((Oe=Ve.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ke=so.current)==null?void 0:Ke.getTime()),Et=ae==="x"?ft:fi,pi=Math.abs(Et)/ze;if(Math.abs(Et)>=kx||pi>.11){$e(At.current),c.onDismiss==null||c.onDismiss.call(c,c),St(ae==="x"?ft>0?"right":"left":fi>0?"down":"up"),xn(),re(!0);return}else{var It,bt;(It=Ve.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(bt=Ve.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}ee(!1),H(!1),de(null)},onPointerMove:Z=>{var Oe,Ke,ft;if(!wn.current||!O||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const ze=Z.clientY-wn.current.y,Et=Z.clientX-wn.current.x;var pi;const It=(pi=e.swipeDirections)!=null?pi:Rx(V);!ae&&(Math.abs(Et)>1||Math.abs(ze)>1)&&de(Math.abs(Et)>Math.abs(ze)?"x":"y");let bt={x:0,y:0};const Vc=Qn=>1/(1.5+Math.abs(Qn)/20);if(ae==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&ze<0||It.includes("bottom")&&ze>0)bt.y=ze;else{const Qn=ze*Vc(ze);bt.y=Math.abs(Qn)<Math.abs(ze)?Qn:ze}}else if(ae==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&Et<0||It.includes("right")&&Et>0)bt.x=Et;else{const Qn=Et*Vc(Et);bt.x=Math.abs(Qn)<Math.abs(Et)?Qn:Et}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&ee(!0),(Ke=Ve.current)==null||Ke.style.setProperty("--swipe-amount-x",`${bt.x}px`),(ft=Ve.current)==null||ft.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},ue&&!c.jsx&&N!=="loading"?T.createElement("button",{"aria-label":Y,"data-disabled":vr,"data-close-button":!0,onClick:vr||!O?()=>{}:()=>{xn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},($c=K==null?void 0:K.close)!=null?$c:dx):null,(N||c.icon||c.promise)&&c.icon!==null&&((K==null?void 0:K[N])!==null||c.icon)?T.createElement("div",{"data-icon":"",className:Xt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ky():null,c.type!=="loading"?Yy:null):null,T.createElement("div",{"data-content":"",className:Xt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Xt(L==null?void 0:L.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?T.createElement("div",{"data-description":"",className:Xt(W,I,L==null?void 0:L.description,c==null||(l=c.classNames)==null?void 0:l.description)},typeof c.description=="function"?c.description():c.description):null),T.isValidElement(c.cancel)?c.cancel:c.cancel&&Ii(c.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:Z=>{Ii(c.cancel)&&O&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),xn())},className:Xt(L==null?void 0:L.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,T.isValidElement(c.action)?c.action:c.action&&Ii(c.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:Z=>{Ii(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&xn())},className:Xt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function sf(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Tx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?Sx:xx;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}const N_=T.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:a,className:u,offset:d,mobileOffset:c,theme:v="light",richColors:w,duration:S,style:y,visibleToasts:x=wx,toastOptions:h,dir:p=sf(),gap:m=Cx,icons:g,containerAriaLabel:E="Notifications"}=t,[_,k]=T.useState([]),A=T.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),j=T.useMemo(()=>Array.from(new Set([i].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,i]),[F,W]=T.useState([]),[B,V]=T.useState(!1),[G,J]=T.useState(!1),[L,K]=T.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=T.useRef(null),ae=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=T.useRef(null),Ae=T.useRef(!1),St=T.useCallback(X=>{k(se=>{var le;return(le=se.find(Re=>Re.id===X.id))!=null&&le.delete||rt.dismiss(X.id),se.filter(({id:Re})=>Re!==X.id)})},[]);return T.useEffect(()=>rt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{k(se=>se.map(le=>le.id===X.id?{...le,delete:!0}:le))});return}setTimeout(()=>{em.flushSync(()=>{k(se=>{const le=se.findIndex(Re=>Re.id===X.id);return le!==-1?[...se.slice(0,le),{...se[le],...X},...se.slice(le+1)]:[X,...se]})})})}),[_]),T.useEffect(()=>{if(v!=="system"){K(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:se})=>{K(se?"dark":"light")})}catch{X.addListener(({matches:le})=>{try{K(le?"dark":"light")}catch(Re){console.error(Re)}})}},[v]),T.useEffect(()=>{_.length<=1&&V(!1)},[_]),T.useEffect(()=>{const X=se=>{var le;if(s.every(H=>se[H]||se.code===H)){var U;V(!0),(U=Y.current)==null||U.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(le=Y.current)!=null&&le.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),T.useEffect(()=>{if(Y.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,Ae.current=!1)}},[Y.current]),T.createElement("section",{ref:n,"aria-label":`${E} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((X,se)=>{var le;const[Re,U]=X.split("-");return A.length?T.createElement("ol",{key:X,dir:p==="auto"?sf():p,tabIndex:-1,ref:Y,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Re,"data-x-position":U,style:{"--front-toast-height":`${((le=F[0])==null?void 0:le.height)||0}px`,"--width":`${Ex}px`,"--gap":`${m}px`,...y,...Tx(d,c)},onBlur:H=>{Ae.current&&!H.currentTarget.contains(H.relatedTarget)&&(Ae.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||Ae.current||(Ae.current=!0,de.current=H.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{G||V(!1)},onDragEnd:()=>V(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},A.filter(H=>!H.position&&se===0||H.position===X).map((H,me)=>{var re,oe;return T.createElement(Px,{key:H.id,icons:g,index:me,toast:H,defaultRichColors:w,duration:(re=h==null?void 0:h.duration)!=null?re:S,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:x,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:a,interacting:G,position:X,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,closeButtonAriaLabel:h==null?void 0:h.closeButtonAriaLabel,removeToast:St,toasts:A.filter(ee=>ee.position==H.position),heights:F.filter(ee=>ee.position==H.position),setHeights:W,expandByDefault:l,gap:m,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),lf=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const v=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,v))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,l);return l},Nx=e=>e?lf(e):lf,Ax=e=>e;function Dx(e,t=Ax){const n=T.useSyncExternalStore(e.subscribe,T.useCallback(()=>t(e.getState()),[e,t]),T.useCallback(()=>t(e.getInitialState()),[e,t]));return T.useDebugValue(n),n}const Ix=e=>{const t=Nx(e),n=r=>Dx(t,r);return Object.assign(n,t),n},A_=e=>Ix,af={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Jo=new Map,bi=e=>{const t=Jo.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},bx=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Jo.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Jo.set(n.name,o),{type:"tracked",store:e,...o}},Mx=(e,t)=>{if(t===void 0)return;const n=Jo.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&Jo.delete(e))},Ox=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
43
|
+
Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let v=Kn(),w;if(t){let m=typeof t=="string"?no(t):t;Ee(d==="/"||((p=m.pathname)==null?void 0:p.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${m.pathname}" was given in the \`location\` prop.`),w=m}else w=v;let S=w.pathname||"/",y=S;if(d!=="/"){let m=d.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(m.length).join("/")}let x=tm(e,{pathname:y});Ht(c||x!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Ht(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=pw(x&&x.map(m=>Object.assign({},m,{params:Object.assign({},a,m.params),pathname:un([d,i.encodeLocation?i.encodeLocation(m.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?d:un([d,i.encodeLocation?i.encodeLocation(m.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),s,n,r,o);return t&&h?f.createElement(li.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},h):h}function uw(){let e=gw(),t=nw(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=f.createElement(f.Fragment,null,f.createElement("p",null,"💿 Hey developer 👋"),f.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",f.createElement("code",{style:i},"ErrorBoundary")," or"," ",f.createElement("code",{style:i},"errorElement")," prop on your route.")),f.createElement(f.Fragment,null,f.createElement("h2",null,"Unexpected Application Error!"),f.createElement("h3",{style:{fontStyle:"italic"}},t),n?f.createElement("pre",{style:o},n):null,s)}var cw=f.createElement(uw,null),dw=class extends f.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?f.createElement(tn.Provider,{value:this.props.routeContext},f.createElement(pc.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function fw({routeContext:e,match:t,children:n}){let r=f.useContext(ro);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),f.createElement(tn.Provider,{value:e},n)}function pw(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=n==null?void 0:n.errors;if(s!=null){let u=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);Ee(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,u+1))}let l=!1,a=-1;if(n)for(let u=0;u<i.length;u++){let d=i[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(a=u),d.route.id){let{loaderData:c,errors:v}=n,w=d.route.loader&&!c.hasOwnProperty(d.route.id)&&(!v||v[d.route.id]===void 0);if(d.route.lazy||w){l=!0,a>=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((u,d,c)=>{let v,w=!1,S=null,y=null;n&&(v=s&&d.route.id?s[d.route.id]:void 0,S=d.route.errorElement||cw,l&&(a<0&&c===0?(cm("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):a===c&&(w=!0,y=d.route.hydrateFallbackElement||null)));let x=t.concat(i.slice(0,c+1)),h=()=>{let p;return v?p=S:w?p=y:d.route.Component?p=f.createElement(d.route.Component,null):d.route.element?p=d.route.element:p=u,f.createElement(fw,{match:d,routeContext:{outlet:u,matches:x,isDataRoute:n!=null},children:p})};return n&&(d.route.ErrorBoundary||d.route.errorElement||c===0)?f.createElement(dw,{location:n.location,revalidation:n.revalidation,component:S,error:v,children:h(),routeContext:{outlet:null,matches:x,isDataRoute:!0},unstable_onError:r}):h()},null)}function hc(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hw(e){let t=f.useContext(ro);return Ee(t,hc(e)),t}function mw(e){let t=f.useContext(Gs);return Ee(t,hc(e)),t}function vw(e){let t=f.useContext(tn);return Ee(t,hc(e)),t}function mc(e){let t=vw(e),n=t.matches[t.matches.length-1];return Ee(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function yw(){return mc("useRouteId")}function gw(){var r;let e=f.useContext(pc),t=mw("useRouteError"),n=mc("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ww(){let{router:e}=hw("useNavigate"),t=mc("useNavigate"),n=f.useRef(!1);return lm(()=>{n.current=!0}),f.useCallback(async(o,i={})=>{Ht(n.current,sm),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var nf={};function cm(e,t,n){!t&&!nf[e]&&(nf[e]=!0,Ht(!1,n))}f.memo(xw);function xw({routes:e,future:t,state:n,unstable_onError:r}){return um(e,void 0,n,r,t)}function C_({to:e,replace:t,state:n,relative:r}){Ee(oo(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=f.useContext(Wt);Ht(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=f.useContext(tn),{pathname:s}=Kn(),l=am(),a=fc(e,dc(i),s,r==="path"),u=JSON.stringify(a);return f.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function Sw(e){Ee(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ew({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){Ee(!oo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=f.useMemo(()=>({basename:s,navigator:o,static:i,future:{}}),[s,o,i]);typeof n=="string"&&(n=no(n));let{pathname:a="/",search:u="",hash:d="",state:c=null,key:v="default"}=n,w=f.useMemo(()=>{let S=mn(a,s);return S==null?null:{location:{pathname:S,search:u,hash:d,state:c,key:v},navigationType:r}},[s,a,u,d,c,v,r]);return Ht(w!=null,`<Router basename="${s}"> is not able to match the URL "${a}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:f.createElement(Wt.Provider,{value:l},f.createElement(li.Provider,{children:t,value:w}))}function k_({children:e,location:t}){return aw(qa(e),t)}function qa(e,t=[]){let n=[];return f.Children.forEach(e,(r,o)=>{if(!f.isValidElement(r))return;let i=[...t,o];if(r.type===f.Fragment){n.push.apply(n,qa(r.props.children,i));return}Ee(r.type===Sw,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ee(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=qa(r.props.children,i)),n.push(s)}),n}var Qi="get",Xi="application/x-www-form-urlencoded";function Qs(e){return e!=null&&typeof e.tagName=="string"}function Cw(e){return Qs(e)&&e.tagName.toLowerCase()==="button"}function kw(e){return Qs(e)&&e.tagName.toLowerCase()==="form"}function _w(e){return Qs(e)&&e.tagName.toLowerCase()==="input"}function Rw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Pw(e,t){return e.button===0&&(!t||t==="_self")&&!Rw(e)}var Di=null;function Tw(){if(Di===null)try{new FormData(document.createElement("form"),0),Di=!1}catch{Di=!0}return Di}var Nw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vl(e){return e!=null&&!Nw.has(e)?(Ht(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xi}"`),null):e}function Aw(e,t){let n,r,o,i,s;if(kw(e)){let l=e.getAttribute("action");r=l?mn(l,t):null,n=e.getAttribute("method")||Qi,o=Vl(e.getAttribute("enctype"))||Xi,i=new FormData(e)}else if(Cw(e)||_w(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||l.getAttribute("action");if(r=a?mn(a,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Qi,o=Vl(e.getAttribute("formenctype"))||Vl(l.getAttribute("enctype"))||Xi,i=new FormData(l,e),!Tw()){let{name:u,type:d,value:c}=e;if(d==="image"){let v=u?`${u}.`:"";i.append(`${v}x`,"0"),i.append(`${v}y`,"0")}else u&&i.append(u,c)}}else{if(Qs(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Qi,r=null,o=Xi,s=e}return i&&o==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dw(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&mn(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function Iw(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bw(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function Mw(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let s=await Iw(i,n);return s.links?s.links():[]}return[]}));return jw(r.flat(1).filter(bw).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function rf(e,t,n,r,o,i){let s=(a,u)=>n[u]?a.route.id!==n[u].route.id:!0,l=(a,u)=>{var d;return n[u].pathname!==a.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==a.params["*"]};return i==="assets"?t.filter((a,u)=>s(a,u)||l(a,u)):i==="data"?t.filter((a,u)=>{var c;let d=r.routes[a.route.id];if(!d||!d.hasLoader)return!1;if(s(a,u)||l(a,u))return!0;if(a.route.shouldRevalidate){let v=a.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:a.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function Ow(e,t,{includeHydrateFallback:n}={}){return Lw(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function Lw(e){return[...new Set(e)]}function Fw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function jw(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(Fw(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function dm(){let e=f.useContext(ro);return vc(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $w(){let e=f.useContext(Gs);return vc(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var yc=f.createContext(void 0);yc.displayName="FrameworkContext";function fm(){let e=f.useContext(yc);return vc(e,"You must render this element inside a <HydratedRouter> element"),e}function Vw(e,t){let n=f.useContext(yc),[r,o]=f.useState(!1),[i,s]=f.useState(!1),{onFocus:l,onBlur:a,onMouseEnter:u,onMouseLeave:d,onTouchStart:c}=t,v=f.useRef(null);f.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=h=>{h.forEach(p=>{s(p.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return v.current&&x.observe(v.current),()=>{x.disconnect()}}},[e]),f.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let w=()=>{o(!0)},S=()=>{o(!1),s(!1)};return n?e!=="intent"?[i,v,{}]:[i,v,{onFocus:wo(l,w),onBlur:wo(a,S),onMouseEnter:wo(u,w),onMouseLeave:wo(d,S),onTouchStart:wo(c,w)}]:[!1,v,{}]}function wo(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function zw({page:e,...t}){let{router:n}=dm(),r=f.useMemo(()=>tm(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?f.createElement(Uw,{page:e,matches:r,...t}):null}function Bw(e){let{manifest:t,routeModules:n}=fm(),[r,o]=f.useState([]);return f.useEffect(()=>{let i=!1;return Mw(e,t,n).then(s=>{i||o(s)}),()=>{i=!0}},[e,t,n]),r}function Uw({page:e,matches:t,...n}){let r=Kn(),{manifest:o,routeModules:i}=fm(),{basename:s}=dm(),{loaderData:l,matches:a}=$w(),u=f.useMemo(()=>rf(e,t,a,o,r,"data"),[e,t,a,o,r]),d=f.useMemo(()=>rf(e,t,a,o,r,"assets"),[e,t,a,o,r]),c=f.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(h=>{var m;let p=o.routes[h.route.id];!p||!p.hasLoader||(!u.some(g=>g.route.id===h.route.id)&&h.route.id in l&&((m=i[h.route.id])!=null&&m.shouldRevalidate)||p.hasClientLoader?y=!0:S.add(h.route.id))}),S.size===0)return[];let x=Dw(e,s,"data");return y&&S.size>0&&x.searchParams.set("_routes",t.filter(h=>S.has(h.route.id)).map(h=>h.route.id).join(",")),[x.pathname+x.search]},[s,l,r,o,u,t,e,i]),v=f.useMemo(()=>Ow(d,o),[d,o]),w=Bw(d);return f.createElement(f.Fragment,null,c.map(S=>f.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),v.map(S=>f.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),w.map(({key:S,link:y})=>f.createElement("link",{key:S,nonce:n.nonce,...y})))}function Hw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var pm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{pm&&(window.__reactRouterVersion="7.9.5")}catch{}function __({basename:e,children:t,window:n}){let r=f.useRef();r.current==null&&(r.current=b1({window:n,v5Compat:!0}));let o=r.current,[i,s]=f.useState({action:o.action,location:o.location}),l=f.useCallback(a=>{f.startTransition(()=>s(a))},[s]);return f.useLayoutEffect(()=>o.listen(l),[o,l]),f.createElement(Ew,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:o})}var hm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,mm=f.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:d,viewTransition:c,...v},w){let{basename:S}=f.useContext(Wt),y=typeof u=="string"&&hm.test(u),x,h=!1;if(typeof u=="string"&&y&&(x=u,pm))try{let j=new URL(window.location.href),F=u.startsWith("//")?new URL(j.protocol+u):new URL(u),W=mn(F.pathname,S);F.origin===j.origin&&W!=null?u=W+F.search+F.hash:h=!0}catch{Ht(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let p=sw(u,{relative:o}),[m,g,E]=Vw(r,v),_=Gw(u,{replace:s,state:l,target:a,preventScrollReset:d,relative:o,viewTransition:c});function k(j){t&&t(j),j.defaultPrevented||_(j)}let A=f.createElement("a",{...v,...E,href:x||p,onClick:h||i?t:k,ref:Hw(w,g),target:a,"data-discover":!y&&n==="render"?"true":void 0});return m&&!y?f.createElement(f.Fragment,null,A,f.createElement(zw,{page:p})):A});mm.displayName="Link";var Ww=f.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:s,viewTransition:l,children:a,...u},d){let c=ai(s,{relative:u.relative}),v=Kn(),w=f.useContext(Gs),{navigator:S,basename:y}=f.useContext(Wt),x=w!=null&&Jw(c)&&l===!0,h=S.encodeLocation?S.encodeLocation(c).pathname:c.pathname,p=v.pathname,m=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(p=p.toLowerCase(),m=m?m.toLowerCase():null,h=h.toLowerCase()),m&&y&&(m=mn(m,y)||m);const g=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let E=p===h||!o&&p.startsWith(h)&&p.charAt(g)==="/",_=m!=null&&(m===h||!o&&m.startsWith(h)&&m.charAt(h.length)==="/"),k={isActive:E,isPending:_,isTransitioning:x},A=E?t:void 0,j;typeof r=="function"?j=r(k):j=[r,E?"active":null,_?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let F=typeof i=="function"?i(k):i;return f.createElement(mm,{...u,"aria-current":A,className:j,ref:d,style:F,to:s,viewTransition:l},typeof a=="function"?a(k):a)});Ww.displayName="NavLink";var Kw=f.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:s=Qi,action:l,onSubmit:a,relative:u,preventScrollReset:d,viewTransition:c,...v},w)=>{let S=Zw(),y=qw(l,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&hm.test(l),p=m=>{if(a&&a(m),m.defaultPrevented)return;m.preventDefault();let g=m.nativeEvent.submitter,E=(g==null?void 0:g.getAttribute("formmethod"))||s;S(g||m.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:c})};return f.createElement("form",{ref:w,method:x,action:y,onSubmit:r?a:p,...v,"data-discover":!h&&e==="render"?"true":void 0})});Kw.displayName="Form";function Yw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vm(e){let t=f.useContext(ro);return Ee(t,Yw(e)),t}function Gw(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:s}={}){let l=am(),a=Kn(),u=ai(e,{relative:i});return f.useCallback(d=>{if(Pw(d,t)){d.preventDefault();let c=n!==void 0?n:qo(a)===qo(u);l(e,{replace:c,state:r,preventScrollReset:o,relative:i,viewTransition:s})}},[a,l,u,n,r,t,e,o,i,s])}var Qw=0,Xw=()=>`__${String(++Qw)}__`;function Zw(){let{router:e}=vm("useSubmit"),{basename:t}=f.useContext(Wt),n=yw();return f.useCallback(async(r,o={})=>{let{action:i,method:s,encType:l,formData:a,body:u}=Aw(r,t);if(o.navigate===!1){let d=o.fetcherKey||Xw();await e.fetch(d,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:a,body:u,formMethod:o.method||s,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function qw(e,{relative:t}={}){let{basename:n}=f.useContext(Wt),r=f.useContext(tn);Ee(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...ai(e||".",{relative:t})},s=Kn();if(e==null){i.search=s.search;let l=new URLSearchParams(i.search),a=l.getAll("index");if(a.some(d=>d==="")){l.delete("index"),a.filter(c=>c).forEach(c=>l.append("index",c));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:un([n,i.pathname])),qo(i)}function Jw(e,{relative:t}={}){let n=f.useContext(im);Ee(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=vm("useViewTransitionState"),o=ai(e,{relative:t});if(!n.isTransitioning)return!1;let i=mn(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=mn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ks(o.pathname,s)!=null||ks(o.pathname,i)!=null}var ex=(e,t,n,r,o,i,s,l)=>{let a=document.documentElement,u=["light","dark"];function d(w){(Array.isArray(e)?e:[e]).forEach(S=>{let y=S==="class",x=y&&i?o.map(h=>i[h]||h):o;y?(a.classList.remove(...x),a.classList.add(i&&i[w]?i[w]:w)):a.setAttribute(S,w)}),c(w)}function c(w){l&&u.includes(w)&&(a.style.colorScheme=w)}function v(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)d(r);else try{let w=localStorage.getItem(t)||n,S=s&&w==="system"?v():w;d(S)}catch{}},tx=f.createContext(void 0),nx={setTheme:e=>{},themes:[]},R_=()=>{var e;return(e=f.useContext(tx))!=null?e:nx};f.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,themes:l,nonce:a,scriptProps:u})=>{let d=JSON.stringify([n,t,i,e,l,s,r,o]).slice(1,-1);return f.createElement("script",{...u,suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(${ex.toString()})(${d})`}})});function rx(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const ox=e=>{switch(e){case"success":return lx;case"info":return ux;case"warning":return ax;case"error":return cx;default:return null}},ix=Array(12).fill(0),sx=({visible:e,className:t})=>T.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},T.createElement("div",{className:"sonner-spinner"},ix.map((n,r)=>T.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),lx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ax=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),ux=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),cx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},T.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),dx=T.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},T.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),T.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),fx=()=>{const[e,t]=T.useState(document.hidden);return T.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let Ja=1;class px{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...o}=t,i=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:Ja++,s=this.toasts.find(a=>a.id===i),l=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),s?this.toasts=this.toasts.map(a=>a.id===i?(this.publish({...a,...t,id:i,title:r}),{...a,...t,id:i,dismissible:l,title:r}):a):this.addToast({title:r,...o,dismissible:l,id:i}),i},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let i=r!==void 0,s;const l=o.then(async u=>{if(s=["resolve",u],T.isValidElement(u))i=!1,this.create({id:r,type:"default",message:u});else if(mx(u)&&!u.ok){i=!1;const c=typeof n.error=="function"?await n.error(`HTTP error! status: ${u.status}`):n.error,v=typeof n.description=="function"?await n.description(`HTTP error! status: ${u.status}`):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(u instanceof Error){i=!1;const c=typeof n.error=="function"?await n.error(u):n.error,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"error",description:v,...S})}else if(n.success!==void 0){i=!1;const c=typeof n.success=="function"?await n.success(u):n.success,v=typeof n.description=="function"?await n.description(u):n.description,S=typeof c=="object"&&!T.isValidElement(c)?c:{message:c};this.create({id:r,type:"success",description:v,...S})}}).catch(async u=>{if(s=["reject",u],n.error!==void 0){i=!1;const d=typeof n.error=="function"?await n.error(u):n.error,c=typeof n.description=="function"?await n.description(u):n.description,w=typeof d=="object"&&!T.isValidElement(d)?d:{message:d};this.create({id:r,type:"error",description:c,...w})}}).finally(()=>{i&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),a=()=>new Promise((u,d)=>l.then(()=>s[0]==="reject"?d(s[1]):u(s[1])).catch(d));return typeof r!="string"&&typeof r!="number"?{unwrap:a}:Object.assign(r,{unwrap:a})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||Ja++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const rt=new px,hx=(e,t)=>{const n=(t==null?void 0:t.id)||Ja++;return rt.addToast({title:e,...t,id:n}),n},mx=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",vx=hx,yx=()=>rt.toasts,gx=()=>rt.getActiveToasts(),P_=Object.assign(vx,{success:rt.success,info:rt.info,warning:rt.warning,error:rt.error,custom:rt.custom,message:rt.message,promise:rt.promise,dismiss:rt.dismiss,loading:rt.loading},{getHistory:yx,getToasts:gx});rx("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Ii(e){return e.label!==void 0}const wx=3,xx="24px",Sx="16px",of=4e3,Ex=356,Cx=14,kx=45,_x=200;function Xt(...e){return e.filter(Boolean).join(" ")}function Rx(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Px=e=>{var t,n,r,o,i,s,l,a,u;const{invert:d,toast:c,unstyled:v,interacting:w,setHeights:S,visibleToasts:y,heights:x,index:h,toasts:p,expanded:m,removeToast:g,defaultRichColors:E,closeButton:_,style:k,cancelButtonStyle:A,actionButtonStyle:j,className:F="",descriptionClassName:W="",duration:B,position:V,gap:G,expandByDefault:J,classNames:L,icons:K,closeButtonAriaLabel:Y="Close toast"}=e,[ae,de]=T.useState(null),[Ae,St]=T.useState(null),[X,se]=T.useState(!1),[le,Re]=T.useState(!1),[U,H]=T.useState(!1),[me,re]=T.useState(!1),[oe,ee]=T.useState(!1),[je,$e]=T.useState(0),[Yt,Gt]=T.useState(0),dt=T.useRef(c.duration||B||of),so=T.useRef(null),Ve=T.useRef(null),C=h===0,P=h+1<=y,N=c.type,O=c.dismissible!==!1,M=c.className||"",I=c.descriptionClassName||"",z=T.useMemo(()=>x.findIndex(Z=>Z.toastId===c.id)||0,[x,c.id]),ue=T.useMemo(()=>{var Z;return(Z=c.closeButton)!=null?Z:_},[c.closeButton,_]),fe=T.useMemo(()=>c.duration||B||of,[c.duration,B]),We=T.useRef(0),At=T.useRef(0),Dt=T.useRef(0),wn=T.useRef(null),[lo,ao]=V.split("-"),di=T.useMemo(()=>x.reduce((Z,Oe,Ke)=>Ke>=z?Z:Z+Oe.height,0),[x,z]),uo=fx(),fl=c.invert||d,vr=N==="loading";At.current=T.useMemo(()=>z*G+di,[z,di]),T.useEffect(()=>{dt.current=fe},[fe]),T.useEffect(()=>{se(!0)},[]),T.useEffect(()=>{const Z=Ve.current;if(Z){const Oe=Z.getBoundingClientRect().height;return Gt(Oe),S(Ke=>[{toastId:c.id,height:Oe,position:c.position},...Ke]),()=>S(Ke=>Ke.filter(ft=>ft.toastId!==c.id))}},[S,c.id]),T.useLayoutEffect(()=>{if(!X)return;const Z=Ve.current,Oe=Z.style.height;Z.style.height="auto";const Ke=Z.getBoundingClientRect().height;Z.style.height=Oe,Gt(Ke),S(ft=>ft.find(ze=>ze.toastId===c.id)?ft.map(ze=>ze.toastId===c.id?{...ze,height:Ke}:ze):[{toastId:c.id,height:Ke,position:c.position},...ft])},[X,c.title,c.description,S,c.id,c.jsx,c.action,c.cancel]);const xn=T.useCallback(()=>{Re(!0),$e(At.current),S(Z=>Z.filter(Oe=>Oe.toastId!==c.id)),setTimeout(()=>{g(c)},_x)},[c,g,S,At]);T.useEffect(()=>{if(c.promise&&N==="loading"||c.duration===1/0||c.type==="loading")return;let Z;return m||w||uo?(()=>{if(Dt.current<We.current){const ft=new Date().getTime()-We.current;dt.current=dt.current-ft}Dt.current=new Date().getTime()})():(()=>{dt.current!==1/0&&(We.current=new Date().getTime(),Z=setTimeout(()=>{c.onAutoClose==null||c.onAutoClose.call(c,c),xn()},dt.current))})(),()=>clearTimeout(Z)},[m,w,c,N,uo,xn]),T.useEffect(()=>{c.delete&&(xn(),c.onDismiss==null||c.onDismiss.call(c,c))},[xn,c.delete]);function Ky(){var Z;if(K!=null&&K.loading){var Oe;return T.createElement("div",{className:Xt(L==null?void 0:L.loader,c==null||(Oe=c.classNames)==null?void 0:Oe.loader,"sonner-loader"),"data-visible":N==="loading"},K.loading)}return T.createElement(sx,{className:Xt(L==null?void 0:L.loader,c==null||(Z=c.classNames)==null?void 0:Z.loader),visible:N==="loading"})}const Yy=c.icon||(K==null?void 0:K[N])||ox(N);var jc,$c;return T.createElement("li",{tabIndex:0,ref:Ve,className:Xt(F,M,L==null?void 0:L.toast,c==null||(t=c.classNames)==null?void 0:t.toast,L==null?void 0:L.default,L==null?void 0:L[N],c==null||(n=c.classNames)==null?void 0:n[N]),"data-sonner-toast":"","data-rich-colors":(jc=c.richColors)!=null?jc:E,"data-styled":!(c.jsx||c.unstyled||v),"data-mounted":X,"data-promise":!!c.promise,"data-swiped":oe,"data-removed":le,"data-visible":P,"data-y-position":lo,"data-x-position":ao,"data-index":h,"data-front":C,"data-swiping":U,"data-dismissible":O,"data-type":N,"data-invert":fl,"data-swipe-out":me,"data-swipe-direction":Ae,"data-expanded":!!(m||J&&X),"data-testid":c.testId,style:{"--index":h,"--toasts-before":h,"--z-index":p.length-h,"--offset":`${le?je:At.current}px`,"--initial-height":J?"auto":`${Yt}px`,...k,...c.style},onDragEnd:()=>{H(!1),de(null),wn.current=null},onPointerDown:Z=>{Z.button!==2&&(vr||!O||(so.current=new Date,$e(At.current),Z.target.setPointerCapture(Z.pointerId),Z.target.tagName!=="BUTTON"&&(H(!0),wn.current={x:Z.clientX,y:Z.clientY})))},onPointerUp:()=>{var Z,Oe,Ke;if(me||!O)return;wn.current=null;const ft=Number(((Z=Ve.current)==null?void 0:Z.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),fi=Number(((Oe=Ve.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ze=new Date().getTime()-((Ke=so.current)==null?void 0:Ke.getTime()),Et=ae==="x"?ft:fi,pi=Math.abs(Et)/ze;if(Math.abs(Et)>=kx||pi>.11){$e(At.current),c.onDismiss==null||c.onDismiss.call(c,c),St(ae==="x"?ft>0?"right":"left":fi>0?"down":"up"),xn(),re(!0);return}else{var It,bt;(It=Ve.current)==null||It.style.setProperty("--swipe-amount-x","0px"),(bt=Ve.current)==null||bt.style.setProperty("--swipe-amount-y","0px")}ee(!1),H(!1),de(null)},onPointerMove:Z=>{var Oe,Ke,ft;if(!wn.current||!O||((Oe=window.getSelection())==null?void 0:Oe.toString().length)>0)return;const ze=Z.clientY-wn.current.y,Et=Z.clientX-wn.current.x;var pi;const It=(pi=e.swipeDirections)!=null?pi:Rx(V);!ae&&(Math.abs(Et)>1||Math.abs(ze)>1)&&de(Math.abs(Et)>Math.abs(ze)?"x":"y");let bt={x:0,y:0};const Vc=Qn=>1/(1.5+Math.abs(Qn)/20);if(ae==="y"){if(It.includes("top")||It.includes("bottom"))if(It.includes("top")&&ze<0||It.includes("bottom")&&ze>0)bt.y=ze;else{const Qn=ze*Vc(ze);bt.y=Math.abs(Qn)<Math.abs(ze)?Qn:ze}}else if(ae==="x"&&(It.includes("left")||It.includes("right")))if(It.includes("left")&&Et<0||It.includes("right")&&Et>0)bt.x=Et;else{const Qn=Et*Vc(Et);bt.x=Math.abs(Qn)<Math.abs(Et)?Qn:Et}(Math.abs(bt.x)>0||Math.abs(bt.y)>0)&&ee(!0),(Ke=Ve.current)==null||Ke.style.setProperty("--swipe-amount-x",`${bt.x}px`),(ft=Ve.current)==null||ft.style.setProperty("--swipe-amount-y",`${bt.y}px`)}},ue&&!c.jsx&&N!=="loading"?T.createElement("button",{"aria-label":Y,"data-disabled":vr,"data-close-button":!0,onClick:vr||!O?()=>{}:()=>{xn(),c.onDismiss==null||c.onDismiss.call(c,c)},className:Xt(L==null?void 0:L.closeButton,c==null||(r=c.classNames)==null?void 0:r.closeButton)},($c=K==null?void 0:K.close)!=null?$c:dx):null,(N||c.icon||c.promise)&&c.icon!==null&&((K==null?void 0:K[N])!==null||c.icon)?T.createElement("div",{"data-icon":"",className:Xt(L==null?void 0:L.icon,c==null||(o=c.classNames)==null?void 0:o.icon)},c.promise||c.type==="loading"&&!c.icon?c.icon||Ky():null,c.type!=="loading"?Yy:null):null,T.createElement("div",{"data-content":"",className:Xt(L==null?void 0:L.content,c==null||(i=c.classNames)==null?void 0:i.content)},T.createElement("div",{"data-title":"",className:Xt(L==null?void 0:L.title,c==null||(s=c.classNames)==null?void 0:s.title)},c.jsx?c.jsx:typeof c.title=="function"?c.title():c.title),c.description?T.createElement("div",{"data-description":"",className:Xt(W,I,L==null?void 0:L.description,c==null||(l=c.classNames)==null?void 0:l.description)},typeof c.description=="function"?c.description():c.description):null),T.isValidElement(c.cancel)?c.cancel:c.cancel&&Ii(c.cancel)?T.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||A,onClick:Z=>{Ii(c.cancel)&&O&&(c.cancel.onClick==null||c.cancel.onClick.call(c.cancel,Z),xn())},className:Xt(L==null?void 0:L.cancelButton,c==null||(a=c.classNames)==null?void 0:a.cancelButton)},c.cancel.label):null,T.isValidElement(c.action)?c.action:c.action&&Ii(c.action)?T.createElement("button",{"data-button":!0,"data-action":!0,style:c.actionButtonStyle||j,onClick:Z=>{Ii(c.action)&&(c.action.onClick==null||c.action.onClick.call(c.action,Z),!Z.defaultPrevented&&xn())},className:Xt(L==null?void 0:L.actionButton,c==null||(u=c.classNames)==null?void 0:u.actionButton)},c.action.label):null)};function sf(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Tx(e,t){const n={};return[e,t].forEach((r,o)=>{const i=o===1,s=i?"--mobile-offset":"--offset",l=i?Sx:xx;function a(u){["top","right","bottom","left"].forEach(d=>{n[`${s}-${d}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}const T_=T.forwardRef(function(t,n){const{id:r,invert:o,position:i="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:a,className:u,offset:d,mobileOffset:c,theme:v="light",richColors:w,duration:S,style:y,visibleToasts:x=wx,toastOptions:h,dir:p=sf(),gap:m=Cx,icons:g,containerAriaLabel:E="Notifications"}=t,[_,k]=T.useState([]),A=T.useMemo(()=>r?_.filter(X=>X.toasterId===r):_.filter(X=>!X.toasterId),[_,r]),j=T.useMemo(()=>Array.from(new Set([i].concat(A.filter(X=>X.position).map(X=>X.position)))),[A,i]),[F,W]=T.useState([]),[B,V]=T.useState(!1),[G,J]=T.useState(!1),[L,K]=T.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=T.useRef(null),ae=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=T.useRef(null),Ae=T.useRef(!1),St=T.useCallback(X=>{k(se=>{var le;return(le=se.find(Re=>Re.id===X.id))!=null&&le.delete||rt.dismiss(X.id),se.filter(({id:Re})=>Re!==X.id)})},[]);return T.useEffect(()=>rt.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{k(se=>se.map(le=>le.id===X.id?{...le,delete:!0}:le))});return}setTimeout(()=>{em.flushSync(()=>{k(se=>{const le=se.findIndex(Re=>Re.id===X.id);return le!==-1?[...se.slice(0,le),{...se[le],...X},...se.slice(le+1)]:[X,...se]})})})}),[_]),T.useEffect(()=>{if(v!=="system"){K(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?K("dark"):K("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:se})=>{K(se?"dark":"light")})}catch{X.addListener(({matches:le})=>{try{K(le?"dark":"light")}catch(Re){console.error(Re)}})}},[v]),T.useEffect(()=>{_.length<=1&&V(!1)},[_]),T.useEffect(()=>{const X=se=>{var le;if(s.every(H=>se[H]||se.code===H)){var U;V(!0),(U=Y.current)==null||U.focus()}se.code==="Escape"&&(document.activeElement===Y.current||(le=Y.current)!=null&&le.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),T.useEffect(()=>{if(Y.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,Ae.current=!1)}},[Y.current]),T.createElement("section",{ref:n,"aria-label":`${E} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((X,se)=>{var le;const[Re,U]=X.split("-");return A.length?T.createElement("ol",{key:X,dir:p==="auto"?sf():p,tabIndex:-1,ref:Y,className:u,"data-sonner-toaster":!0,"data-sonner-theme":L,"data-y-position":Re,"data-x-position":U,style:{"--front-toast-height":`${((le=F[0])==null?void 0:le.height)||0}px`,"--width":`${Ex}px`,"--gap":`${m}px`,...y,...Tx(d,c)},onBlur:H=>{Ae.current&&!H.currentTarget.contains(H.relatedTarget)&&(Ae.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||Ae.current||(Ae.current=!0,de.current=H.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{G||V(!1)},onDragEnd:()=>V(!1),onPointerDown:H=>{H.target instanceof HTMLElement&&H.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},A.filter(H=>!H.position&&se===0||H.position===X).map((H,me)=>{var re,oe;return T.createElement(Px,{key:H.id,icons:g,index:me,toast:H,defaultRichColors:w,duration:(re=h==null?void 0:h.duration)!=null?re:S,className:h==null?void 0:h.className,descriptionClassName:h==null?void 0:h.descriptionClassName,invert:o,visibleToasts:x,closeButton:(oe=h==null?void 0:h.closeButton)!=null?oe:a,interacting:G,position:X,style:h==null?void 0:h.style,unstyled:h==null?void 0:h.unstyled,classNames:h==null?void 0:h.classNames,cancelButtonStyle:h==null?void 0:h.cancelButtonStyle,actionButtonStyle:h==null?void 0:h.actionButtonStyle,closeButtonAriaLabel:h==null?void 0:h.closeButtonAriaLabel,removeToast:St,toasts:A.filter(ee=>ee.position==H.position),heights:F.filter(ee=>ee.position==H.position),setHeights:W,expandByDefault:l,gap:m,expanded:B,swipeDirections:t.swipeDirections})})):null}))}),lf=e=>{let t;const n=new Set,r=(u,d)=>{const c=typeof u=="function"?u(t):u;if(!Object.is(c,t)){const v=t;t=d??(typeof c!="object"||c===null)?c:Object.assign({},t,c),n.forEach(w=>w(t,v))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=t=e(r,o,l);return l},Nx=e=>e?lf(e):lf,Ax=e=>e;function Dx(e,t=Ax){const n=T.useSyncExternalStore(e.subscribe,T.useCallback(()=>t(e.getState()),[e,t]),T.useCallback(()=>t(e.getInitialState()),[e,t]));return T.useDebugValue(n),n}const Ix=e=>{const t=Nx(e),n=r=>Dx(t,r);return Object.assign(n,t),n},N_=e=>Ix,af={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1},Jo=new Map,bi=e=>{const t=Jo.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},bx=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=Jo.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return Jo.set(n.name,o),{type:"tracked",store:e,...o}},Mx=(e,t)=>{if(t===void 0)return;const n=Jo.get(e);n&&(delete n.stores[t],Object.keys(n.stores).length===0&&Jo.delete(e))},Ox=e=>{var t,n;if(!e)return;const r=e.split(`
|
|
44
44
|
`),o=r.findIndex(s=>s.includes("api.setState"));if(o<0)return;const i=((t=r[o+1])==null?void 0:t.trim())||"";return(n=/.+ (.+) .+/.exec(i))==null?void 0:n[1]},Lx=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:l,...a}=t;let u;try{u=(i??(af?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return e(n,r,o);const{connection:d,...c}=bx(l,u,a);let v=!0;o.setState=(y,x,h)=>{const p=n(y,x);if(!v)return p;const m=h===void 0?{type:s||Ox(new Error().stack)||"anonymous"}:typeof h=="string"?{type:h}:h;return l===void 0?(d==null||d.send(m,r()),p):(d==null||d.send({...m,type:`${l}/${m.type}`},{...bi(a.name),[l]:o.getState()}),p)},o.devtools={cleanup:()=>{d&&typeof d.unsubscribe=="function"&&d.unsubscribe(),Mx(a.name,l)}};const w=(...y)=>{const x=v;v=!1,n(...y),v=x},S=e(o.setState,r,o);if(c.type==="untracked"?d==null||d.init(S):(c.stores[c.store]=o,d==null||d.init(Object.fromEntries(Object.entries(c.stores).map(([y,x])=>[y,y===c.store?S:x.getState()])))),o.dispatchFromDevtools&&typeof o.dispatch=="function"){let y=!1;const x=o.dispatch;o.dispatch=(...h)=>{(af?"production":void 0)!=="production"&&h[0].type==="__setState"&&!y&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),y=!0),x(...h)}}return d.subscribe(y=>{var x;switch(y.type){case"ACTION":if(typeof y.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return zl(y.payload,h=>{if(h.type==="__setState"){if(l===void 0){w(h.state);return}Object.keys(h.state).length!==1&&console.error(`
|
|
45
45
|
[zustand devtools middleware] Unsupported __setState action format.
|
|
46
46
|
When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
|
|
47
47
|
and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }
|
|
48
|
-
`);const p=h.state[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&w(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return w(S),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(bi(a.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(bi(a.name));case"ROLLBACK":return zl(y.state,h=>{if(l===void 0){w(h),d==null||d.init(o.getState());return}w(h[l]),d==null||d.init(bi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zl(y.state,h=>{if(l===void 0){w(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&w(h[l])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(x=h.computedStates.slice(-1)[0])==null?void 0:x.state;if(!p)return;w(l===void 0?p:p[l]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return v=!v}return}}),S},
|
|
48
|
+
`);const p=h.state[l];if(p==null)return;JSON.stringify(o.getState())!==JSON.stringify(p)&&w(p);return}o.dispatchFromDevtools&&typeof o.dispatch=="function"&&o.dispatch(h)});case"DISPATCH":switch(y.payload.type){case"RESET":return w(S),l===void 0?d==null?void 0:d.init(o.getState()):d==null?void 0:d.init(bi(a.name));case"COMMIT":if(l===void 0){d==null||d.init(o.getState());return}return d==null?void 0:d.init(bi(a.name));case"ROLLBACK":return zl(y.state,h=>{if(l===void 0){w(h),d==null||d.init(o.getState());return}w(h[l]),d==null||d.init(bi(a.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return zl(y.state,h=>{if(l===void 0){w(h);return}JSON.stringify(o.getState())!==JSON.stringify(h[l])&&w(h[l])});case"IMPORT_STATE":{const{nextLiftedState:h}=y.payload,p=(x=h.computedStates.slice(-1)[0])==null?void 0:x.state;if(!p)return;w(l===void 0?p:p[l]),d==null||d.send(null,h);return}case"PAUSE_RECORDING":return v=!v}return}}),S},A_=Lx,zl=(e,t)=>{let n;try{n=JSON.parse(e)}catch(r){console.error("[zustand devtools middleware] Could not parse the received json",r)}n!==void 0&&t(n)},uf=e=>Symbol.iterator in e,cf=e=>"entries"in e,df=(e,t)=>{const n=e instanceof Map?e:new Map(e.entries()),r=t instanceof Map?t:new Map(t.entries());if(n.size!==r.size)return!1;for(const[o,i]of n)if(!r.has(o)||!Object.is(i,r.get(o)))return!1;return!0},Fx=(e,t)=>{const n=e[Symbol.iterator](),r=t[Symbol.iterator]();let o=n.next(),i=r.next();for(;!o.done&&!i.done;){if(!Object.is(o.value,i.value))return!1;o=n.next(),i=r.next()}return!!o.done&&!!i.done};function jx(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(t)?!1:uf(e)&&uf(t)?cf(e)&&cf(t)?df(e,t):Fx(e,t):df({entries:()=>Object.entries(e)},{entries:()=>Object.entries(t)})}function D_(e){const t=T.useRef(void 0);return n=>{const r=e(n);return jx(t.current,r)?t.current:t.current=r}}/**
|
|
49
49
|
* @license lucide-react v0.523.0 - ISC
|
|
50
50
|
*
|
|
51
51
|
* This source code is licensed under the ISC license.
|
|
@@ -70,208 +70,203 @@ Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the ISC license.
|
|
72
72
|
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/const Hx=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],
|
|
73
|
+
*/const Hx=[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["line",{x1:"12",x2:"12",y1:"16",y2:"12",key:"1y1yb1"}],["line",{x1:"12",x2:"12.01",y1:"8",y2:"8",key:"110wyk"}]],I_=q("badge-info",Hx);/**
|
|
74
74
|
* @license lucide-react v0.523.0 - ISC
|
|
75
75
|
*
|
|
76
76
|
* This source code is licensed under the ISC license.
|
|
77
77
|
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
-
*/const Wx=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 13.99a1 1 0 0 0 1-1V12a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v.99a1 1 0 0 0 1 1",key:"iw8jdu"}],["path",{d:"M5 14h14l1.973 6.767A1 1 0 0 1 20 22H4a1 1 0 0 1-.973-1.233z",key:"1soew8"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],
|
|
78
|
+
*/const Wx=[["path",{d:"m16 22-1-4",key:"1ow2iv"}],["path",{d:"M19 13.99a1 1 0 0 0 1-1V12a2 2 0 0 0-2-2h-3a1 1 0 0 1-1-1V4a2 2 0 0 0-4 0v5a1 1 0 0 1-1 1H6a2 2 0 0 0-2 2v.99a1 1 0 0 0 1 1",key:"iw8jdu"}],["path",{d:"M5 14h14l1.973 6.767A1 1 0 0 1 20 22H4a1 1 0 0 1-.973-1.233z",key:"1soew8"}],["path",{d:"m8 22 1-4",key:"s3unb"}]],b_=q("brush-cleaning",Wx);/**
|
|
79
79
|
* @license lucide-react v0.523.0 - ISC
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the ISC license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/const Kx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],
|
|
83
|
+
*/const Kx=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],M_=q("calendar",Kx);/**
|
|
84
84
|
* @license lucide-react v0.523.0 - ISC
|
|
85
85
|
*
|
|
86
86
|
* This source code is licensed under the ISC license.
|
|
87
87
|
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
-
*/const Yx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],
|
|
88
|
+
*/const Yx=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],O_=q("check",Yx);/**
|
|
89
89
|
* @license lucide-react v0.523.0 - ISC
|
|
90
90
|
*
|
|
91
91
|
* This source code is licensed under the ISC license.
|
|
92
92
|
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
-
*/const Gx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],
|
|
93
|
+
*/const Gx=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],L_=q("chevron-down",Gx);/**
|
|
94
94
|
* @license lucide-react v0.523.0 - ISC
|
|
95
95
|
*
|
|
96
96
|
* This source code is licensed under the ISC license.
|
|
97
97
|
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
-
*/const Qx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],
|
|
98
|
+
*/const Qx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],F_=q("chevron-left",Qx);/**
|
|
99
99
|
* @license lucide-react v0.523.0 - ISC
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the ISC license.
|
|
102
102
|
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
-
*/const Xx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]
|
|
103
|
+
*/const Xx=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],j_=q("chevron-right",Xx);/**
|
|
104
104
|
* @license lucide-react v0.523.0 - ISC
|
|
105
105
|
*
|
|
106
106
|
* This source code is licensed under the ISC license.
|
|
107
107
|
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
-
*/const Zx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]
|
|
108
|
+
*/const Zx=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$_=q("chevron-up",Zx);/**
|
|
109
109
|
* @license lucide-react v0.523.0 - ISC
|
|
110
110
|
*
|
|
111
111
|
* This source code is licensed under the ISC license.
|
|
112
112
|
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
-
*/const qx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],
|
|
113
|
+
*/const qx=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],V_=q("circle-alert",qx);/**
|
|
114
114
|
* @license lucide-react v0.523.0 - ISC
|
|
115
115
|
*
|
|
116
116
|
* This source code is licensed under the ISC license.
|
|
117
117
|
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
-
*/const Jx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],
|
|
118
|
+
*/const Jx=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],z_=q("circle-check-big",Jx);/**
|
|
119
119
|
* @license lucide-react v0.523.0 - ISC
|
|
120
120
|
*
|
|
121
121
|
* This source code is licensed under the ISC license.
|
|
122
122
|
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/const eS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],
|
|
123
|
+
*/const eS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],B_=q("circle-x",eS);/**
|
|
124
124
|
* @license lucide-react v0.523.0 - ISC
|
|
125
125
|
*
|
|
126
126
|
* This source code is licensed under the ISC license.
|
|
127
127
|
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
-
*/const tS=[["
|
|
128
|
+
*/const tS=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],U_=q("code",tS);/**
|
|
129
129
|
* @license lucide-react v0.523.0 - ISC
|
|
130
130
|
*
|
|
131
131
|
* This source code is licensed under the ISC license.
|
|
132
132
|
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
-
*/const nS=[["path",{d:"
|
|
133
|
+
*/const nS=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],H_=q("coffee",nS);/**
|
|
134
134
|
* @license lucide-react v0.523.0 - ISC
|
|
135
135
|
*
|
|
136
136
|
* This source code is licensed under the ISC license.
|
|
137
137
|
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
-
*/const rS=[["
|
|
138
|
+
*/const rS=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],W_=q("copy",rS);/**
|
|
139
139
|
* @license lucide-react v0.523.0 - ISC
|
|
140
140
|
*
|
|
141
141
|
* This source code is licensed under the ISC license.
|
|
142
142
|
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
-
*/const oS=[["
|
|
143
|
+
*/const oS=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],K_=q("download",oS);/**
|
|
144
144
|
* @license lucide-react v0.523.0 - ISC
|
|
145
145
|
*
|
|
146
146
|
* This source code is licensed under the ISC license.
|
|
147
147
|
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
-
*/const iS=[["path",{d:"
|
|
148
|
+
*/const iS=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Y_=q("external-link",iS);/**
|
|
149
149
|
* @license lucide-react v0.523.0 - ISC
|
|
150
150
|
*
|
|
151
151
|
* This source code is licensed under the ISC license.
|
|
152
152
|
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
-
*/const sS=[["path",{d:"M15
|
|
153
|
+
*/const sS=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],G_=q("file-text",sS);/**
|
|
154
154
|
* @license lucide-react v0.523.0 - ISC
|
|
155
155
|
*
|
|
156
156
|
* This source code is licensed under the ISC license.
|
|
157
157
|
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
-
*/const lS=[["
|
|
158
|
+
*/const lS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Q_=q("info",lS);/**
|
|
159
159
|
* @license lucide-react v0.523.0 - ISC
|
|
160
160
|
*
|
|
161
161
|
* This source code is licensed under the ISC license.
|
|
162
162
|
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
-
*/const aS=[["
|
|
163
|
+
*/const aS=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],X_=q("layout-dashboard",aS);/**
|
|
164
164
|
* @license lucide-react v0.523.0 - ISC
|
|
165
165
|
*
|
|
166
166
|
* This source code is licensed under the ISC license.
|
|
167
167
|
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
-
*/const uS=[["
|
|
168
|
+
*/const uS=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Z_=q("loader-circle",uS);/**
|
|
169
169
|
* @license lucide-react v0.523.0 - ISC
|
|
170
170
|
*
|
|
171
171
|
* This source code is licensed under the ISC license.
|
|
172
172
|
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
-
*/const cS=[["path",{d:"
|
|
173
|
+
*/const cS=[["path",{d:"M5 12h14",key:"1ays0h"}]],q_=q("minus",cS);/**
|
|
174
174
|
* @license lucide-react v0.523.0 - ISC
|
|
175
175
|
*
|
|
176
176
|
* This source code is licensed under the ISC license.
|
|
177
177
|
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/const dS=[["path",{d:"
|
|
178
|
+
*/const dS=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],J_=q("package",dS);/**
|
|
179
179
|
* @license lucide-react v0.523.0 - ISC
|
|
180
180
|
*
|
|
181
181
|
* This source code is licensed under the ISC license.
|
|
182
182
|
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
-
*/const fS=[["
|
|
183
|
+
*/const fS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],e2=q("panel-left",fS);/**
|
|
184
184
|
* @license lucide-react v0.523.0 - ISC
|
|
185
185
|
*
|
|
186
186
|
* This source code is licensed under the ISC license.
|
|
187
187
|
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
-
*/const pS=[["
|
|
188
|
+
*/const pS=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],t2=q("play",pS);/**
|
|
189
189
|
* @license lucide-react v0.523.0 - ISC
|
|
190
190
|
*
|
|
191
191
|
* This source code is licensed under the ISC license.
|
|
192
192
|
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
-
*/const hS=[["
|
|
193
|
+
*/const hS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],n2=q("plus",hS);/**
|
|
194
194
|
* @license lucide-react v0.523.0 - ISC
|
|
195
195
|
*
|
|
196
196
|
* This source code is licensed under the ISC license.
|
|
197
197
|
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
-
*/const mS=[["path",{d:"
|
|
198
|
+
*/const mS=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],r2=q("power",mS);/**
|
|
199
199
|
* @license lucide-react v0.523.0 - ISC
|
|
200
200
|
*
|
|
201
201
|
* This source code is licensed under the ISC license.
|
|
202
202
|
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
-
*/const vS=[["path",{d:"
|
|
203
|
+
*/const vS=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],o2=q("refresh-cw",vS);/**
|
|
204
204
|
* @license lucide-react v0.523.0 - ISC
|
|
205
205
|
*
|
|
206
206
|
* This source code is licensed under the ISC license.
|
|
207
207
|
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
-
*/const yS=[["path",{d:"
|
|
208
|
+
*/const yS=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],i2=q("rocket",yS);/**
|
|
209
209
|
* @license lucide-react v0.523.0 - ISC
|
|
210
210
|
*
|
|
211
211
|
* This source code is licensed under the ISC license.
|
|
212
212
|
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
-
*/const gS=[["path",{d:"
|
|
213
|
+
*/const gS=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],s2=q("rotate-cw",gS);/**
|
|
214
214
|
* @license lucide-react v0.523.0 - ISC
|
|
215
215
|
*
|
|
216
216
|
* This source code is licensed under the ISC license.
|
|
217
217
|
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
-
*/const wS=[["path",{d:"
|
|
218
|
+
*/const wS=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],l2=q("settings",wS);/**
|
|
219
219
|
* @license lucide-react v0.523.0 - ISC
|
|
220
220
|
*
|
|
221
221
|
* This source code is licensed under the ISC license.
|
|
222
222
|
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
-
*/const xS=[["path",{d:"
|
|
223
|
+
*/const xS=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],a2=q("shield-alert",xS);/**
|
|
224
224
|
* @license lucide-react v0.523.0 - ISC
|
|
225
225
|
*
|
|
226
226
|
* This source code is licensed under the ISC license.
|
|
227
227
|
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/const SS=[["path",{d:"
|
|
228
|
+
*/const SS=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u2=q("terminal",SS);/**
|
|
229
229
|
* @license lucide-react v0.523.0 - ISC
|
|
230
230
|
*
|
|
231
231
|
* This source code is licensed under the ISC license.
|
|
232
232
|
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
-
*/const ES=[["path",{d:"
|
|
233
|
+
*/const ES=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],c2=q("trash-2",ES);/**
|
|
234
234
|
* @license lucide-react v0.523.0 - ISC
|
|
235
235
|
*
|
|
236
236
|
* This source code is licensed under the ISC license.
|
|
237
237
|
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/const CS=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]
|
|
238
|
+
*/const CS=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],d2=q("trash",CS);/**
|
|
239
239
|
* @license lucide-react v0.523.0 - ISC
|
|
240
240
|
*
|
|
241
241
|
* This source code is licensed under the ISC license.
|
|
242
242
|
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
-
*/const kS=[["path",{d:"
|
|
243
|
+
*/const kS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],f2=q("wifi-off",kS);/**
|
|
244
244
|
* @license lucide-react v0.523.0 - ISC
|
|
245
245
|
*
|
|
246
246
|
* This source code is licensed under the ISC license.
|
|
247
247
|
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
-
*/const _S=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"
|
|
248
|
+
*/const _S=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],p2=q("wifi",_S);/**
|
|
249
249
|
* @license lucide-react v0.523.0 - ISC
|
|
250
250
|
*
|
|
251
251
|
* This source code is licensed under the ISC license.
|
|
252
252
|
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/const RS=[["
|
|
253
|
+
*/const RS=[["rect",{width:"8",height:"8",x:"3",y:"3",rx:"2",key:"by2w9f"}],["path",{d:"M7 11v4a2 2 0 0 0 2 2h4",key:"xkn7yn"}],["rect",{width:"8",height:"8",x:"13",y:"13",rx:"2",key:"1cgmvn"}]],h2=q("workflow",RS);/**
|
|
254
254
|
* @license lucide-react v0.523.0 - ISC
|
|
255
255
|
*
|
|
256
256
|
* This source code is licensed under the ISC license.
|
|
257
257
|
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
-
*/const PS=[["
|
|
258
|
+
*/const PS=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],m2=q("wrench",PS);/**
|
|
259
259
|
* @license lucide-react v0.523.0 - ISC
|
|
260
260
|
*
|
|
261
261
|
* This source code is licensed under the ISC license.
|
|
262
262
|
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/const TS=[["path",{d:"
|
|
263
|
+
*/const TS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],v2=q("x",TS);/**
|
|
264
264
|
* @license lucide-react v0.523.0 - ISC
|
|
265
265
|
*
|
|
266
266
|
* This source code is licensed under the ISC license.
|
|
267
267
|
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
-
*/const NS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],g2=q("x",NS);/**
|
|
269
|
-
|
|
270
|
-
*
|
|
271
|
-
* This source code is licensed under the ISC license.
|
|
272
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
-
*/const AS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],w2=q("zap",AS);function pf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const r=e.map(o=>{const i=pf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():pf(e[o],null)}}}}function he(...e){return f.useCallback(gc(...e),e)}var DS=Symbol.for("react.lazy"),_s=xu[" use ".trim().toString()];function IS(e){return typeof e=="object"&&e!==null&&"then"in e}function gm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===DS&&"_payload"in e&&IS(e._payload)}function wm(e){const t=bS(e),n=f.forwardRef((r,o)=>{let{children:i,...s}=r;gm(i)&&typeof _s=="function"&&(i=_s(i._payload));const l=f.Children.toArray(i),a=l.find(OS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var x2=wm("Slot");function bS(e){const t=f.forwardRef((n,r)=>{let{children:o,...i}=n;if(gm(o)&&typeof _s=="function"&&(o=_s(o._payload)),f.isValidElement(o)){const s=FS(o),l=LS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var MS=Symbol("radix.slottable");function OS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===MS}function LS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function FS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xm=jS.reduce((e,t)=>{const n=wm(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),$S="Separator",hf="horizontal",VS=["horizontal","vertical"],Sm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=hf,...o}=e,i=zS(r)?r:hf,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return R.jsx(xm.div,{"data-orientation":i,...l,...o,ref:t})});Sm.displayName=$S;function zS(e){return VS.includes(e)}var S2=Sm;function BS(e,t){const n=f.createContext(t),r=i=>{const{children:s,...l}=i,a=f.useMemo(()=>l,Object.values(l));return R.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function yn(e,t=[]){let n=[];function r(i,s){const l=f.createContext(s),a=n.length;n=[...n,s];const u=c=>{var h;const{scope:v,children:w,...S}=c,y=((h=v==null?void 0:v[e])==null?void 0:h[a])||l,x=f.useMemo(()=>S,Object.values(S));return R.jsx(y.Provider,{value:x,children:w})};u.displayName=i+"Provider";function d(c,v){var y;const w=((y=v==null?void 0:v[e])==null?void 0:y[a])||l,S=f.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,US(o,...t)]}function US(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...l,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var qe=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},HS=xu[" useId ".trim().toString()]||(()=>{}),WS=0;function cn(e){const[t,n]=f.useState(HS());return qe(()=>{n(r=>r??String(WS++))},[e]),e||(t?`radix-${t}`:"")}var KS=xu[" useInsertionEffect ".trim().toString()]||qe;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=YS({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.current;c!==l&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=f.useCallback(d=>{var c;if(l){const v=GS(d)?d(e):d;v!==e&&((c=s.current)==null||c.call(s,v))}else i(d)},[l,e,i,s]);return[a,u]}function YS({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return KS(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function GS(e){return typeof e=="function"}function ei(e){const t=QS(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,l=f.Children.toArray(i),a=l.find(XS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function QS(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=qS(o),l=ZS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Em=Symbol("radix.slottable");function Cm(e){const t=({children:n})=>R.jsx(R.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Em,t}function XS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Em}function ZS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function qS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var JS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=JS.reduce((e,t)=>{const n=ei(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function eE(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function Bn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function tE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nE="DismissableLayer",eu="dismissableLayer.update",rE="dismissableLayer.pointerDownOutside",oE="dismissableLayer.focusOutside",mf,km=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=f.useContext(km),[d,c]=f.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=f.useState({}),S=he(t,k=>c(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=d?y.indexOf(d):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,g=p>=h,E=lE(k=>{const A=k.target,j=[...u.branches].some(F=>F.contains(A));!g||j||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},v),_=aE(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},v);return tE(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},v),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mf)}},[d,v,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vf())},[d,u]),f.useEffect(()=>{const k=()=>w({});return document.addEventListener(eu,k),()=>document.removeEventListener(eu,k)},[]),R.jsx(ne.div,{...a,ref:S,style:{pointerEvents:m?g?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Xs.displayName=nE;var iE="DismissableLayerBranch",sE=f.forwardRef((e,t)=>{const n=f.useContext(km),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),R.jsx(ne.div,{...e,ref:o})});sE.displayName=iE;function lE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){_m(rE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function aE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&_m(oE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vf(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function _m(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?eE(o,i):o.dispatchEvent(i)}var Bl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",yf={bubbles:!1,cancelable:!0},uE="FocusScope",wc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,a]=f.useState(null),u=Bn(o),d=Bn(i),c=f.useRef(null),v=he(t,y=>a(y)),w=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(m){if(w.paused||!l)return;const g=m.target;l.contains(g)?c.current=g:Cn(c.current,{select:!0})},x=function(m){if(w.paused||!l)return;const g=m.relatedTarget;g!==null&&(l.contains(g)||Cn(c.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&Cn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,l,w.paused]),f.useEffect(()=>{if(l){wf.add(w);const y=document.activeElement;if(!l.contains(y)){const h=new CustomEvent(Bl,yf);l.addEventListener(Bl,u),l.dispatchEvent(h),h.defaultPrevented||(cE(mE(Rm(l)),{select:!0}),document.activeElement===y&&Cn(l))}return()=>{l.removeEventListener(Bl,u),setTimeout(()=>{const h=new CustomEvent(Ul,yf);l.addEventListener(Ul,d),l.dispatchEvent(h),h.defaultPrevented||Cn(y??document.body,{select:!0}),l.removeEventListener(Ul,d),wf.remove(w)},0)}}},[l,u,d,w]);const S=f.useCallback(y=>{if(!n&&!r||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[m,g]=dE(p);m&&g?!y.shiftKey&&h===g?(y.preventDefault(),n&&Cn(m,{select:!0})):y.shiftKey&&h===m&&(y.preventDefault(),n&&Cn(g,{select:!0})):h===p&&y.preventDefault()}},[n,r,w.paused]);return R.jsx(ne.div,{tabIndex:-1,...s,ref:v,onKeyDown:S})});wc.displayName=uE;function cE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function dE(e){const t=Rm(e),n=gf(t,e),r=gf(t.reverse(),e);return[n,r]}function Rm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gf(e,t){for(const n of e)if(!fE(n,{upTo:t}))return n}function fE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function pE(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pE(e)&&t&&e.select()}}var wf=hE();function hE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xf(e,t),e.unshift(t)},remove(t){var n;e=xf(e,t),(n=e[0])==null||n.resume()}}}function xf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function mE(e){return e.filter(t=>t.tagName!=="A")}var vE="Portal",xc=f.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=f.useState(!1);qe(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?em.createPortal(R.jsx(ne.div,{...r,ref:t}),s):null});xc.displayName=vE;function yE(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=gE(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=he(r.ref,wE(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};mr.displayName="Presence";function gE(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[l,a]=yE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Mi(r.current);i.current=l==="mounted"?u:"none"},[l]),qe(()=>{const u=r.current,d=o.current;if(d!==e){const v=i.current,w=Mi(u);e?a("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&v!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),qe(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=w=>{const y=Mi(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=w=>{w.target===t&&(i.current=Mi(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Mi(e){return(e==null?void 0:e.animationName)||"none"}function wE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hl=0;function Pm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sf()),document.body.insertAdjacentElement("beforeend",e[1]??Sf()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hl--}},[])}function Sf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zi="right-scroll-bar-position",qi="width-before-scroll-bar",xE="with-scroll-bars-hidden",SE="--removed-body-scroll-bar-size";function Wl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function EE(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var CE=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ef=new WeakMap;function kE(e,t){var n=EE(null,function(r){return e.forEach(function(o){return Wl(o,r)})});return CE(function(){var r=Ef.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(l){i.has(l)||Wl(l,null)}),i.forEach(function(l){o.has(l)||Wl(l,s)})}Ef.set(n,e)},[e]),n}function _E(e){return e}function RE(e,t){t===void 0&&(t=_E);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var a=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function PE(e){e===void 0&&(e={});var t=RE(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=zf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Rn({},n))};Tm.isSideCarExport=!0;function TE(e,t){return e.useMedium(t),Tm}var Nm=PE(),Kl=function(){},Zs=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,v=e.sideCar,w=e.noRelative,S=e.noIsolation,y=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,m=e.gapMode,g=zf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,_=kE([n,t]),k=Rn(Rn({},g),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:Nm,removeScrollBar:u,shards:c,noRelative:w,noIsolation:S,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:m}),s?f.cloneElement(f.Children.only(l),Rn(Rn({},k),{ref:_})):f.createElement(p,Rn({},k,{className:a,ref:_}),l))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zs.classNames={fullWidth:qi,zeroRight:Zi};function NE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qy();return t&&e.setAttribute("nonce",t),e}function AE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function DE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=NE())&&(AE(t,n),DE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bE=function(){var e=IE();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Am=function(){var e=bE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},ME={left:0,top:0,right:0,gap:0},Yl=function(e){return parseInt(e||"",10)||0},OE=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Yl(n),Yl(r),Yl(o)]},LE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ME;var t=OE(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},FE=Am(),zr="data-scroll-locked",jE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
274
|
-
.`.concat(xE,` {
|
|
268
|
+
*/const NS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],y2=q("zap",NS);function pf(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function gc(...e){return t=>{let n=!1;const r=e.map(o=>{const i=pf(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():pf(e[o],null)}}}}function he(...e){return f.useCallback(gc(...e),e)}var AS=Symbol.for("react.lazy"),_s=xu[" use ".trim().toString()];function DS(e){return typeof e=="object"&&e!==null&&"then"in e}function gm(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===AS&&"_payload"in e&&DS(e._payload)}function wm(e){const t=IS(e),n=f.forwardRef((r,o)=>{let{children:i,...s}=r;gm(i)&&typeof _s=="function"&&(i=_s(i._payload));const l=f.Children.toArray(i),a=l.find(MS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var g2=wm("Slot");function IS(e){const t=f.forwardRef((n,r)=>{let{children:o,...i}=n;if(gm(o)&&typeof _s=="function"&&(o=_s(o._payload)),f.isValidElement(o)){const s=LS(o),l=OS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bS=Symbol("radix.slottable");function MS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bS}function OS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function LS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var FS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xm=FS.reduce((e,t)=>{const n=wm(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),jS="Separator",hf="horizontal",$S=["horizontal","vertical"],Sm=f.forwardRef((e,t)=>{const{decorative:n,orientation:r=hf,...o}=e,i=VS(r)?r:hf,l=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return R.jsx(xm.div,{"data-orientation":i,...l,...o,ref:t})});Sm.displayName=jS;function VS(e){return $S.includes(e)}var w2=Sm;function zS(e,t){const n=f.createContext(t),r=i=>{const{children:s,...l}=i,a=f.useMemo(()=>l,Object.values(l));return R.jsx(n.Provider,{value:a,children:s})};r.displayName=e+"Provider";function o(i){const s=f.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function yn(e,t=[]){let n=[];function r(i,s){const l=f.createContext(s),a=n.length;n=[...n,s];const u=c=>{var h;const{scope:v,children:w,...S}=c,y=((h=v==null?void 0:v[e])==null?void 0:h[a])||l,x=f.useMemo(()=>S,Object.values(S));return R.jsx(y.Provider,{value:x,children:w})};u.displayName=i+"Provider";function d(c,v){var y;const w=((y=v==null?void 0:v[e])==null?void 0:y[a])||l,S=f.useContext(w);if(S)return S;if(s!==void 0)return s;throw new Error(`\`${c}\` must be used within \`${i}\``)}return[u,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return f.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,BS(o,...t)]}function BS(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const c=a(i)[`__scope${u}`];return{...l,...c}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var qe=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},US=xu[" useId ".trim().toString()]||(()=>{}),HS=0;function cn(e){const[t,n]=f.useState(US());return qe(()=>{n(r=>r??String(HS++))},[e]),e||(t?`radix-${t}`:"")}var WS=xu[" useInsertionEffect ".trim().toString()]||qe;function ur({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=KS({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const c=d.current;c!==l&&console.warn(`${r} is changing from ${c?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=l},[l,r])}const u=f.useCallback(d=>{var c;if(l){const v=YS(d)?d(e):d;v!==e&&((c=s.current)==null||c.call(s,v))}else i(d)},[l,e,i,s]);return[a,u]}function KS({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return WS(()=>{i.current=t},[t]),f.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function YS(e){return typeof e=="function"}function ei(e){const t=GS(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,l=f.Children.toArray(i),a=l.find(QS);if(a){const u=a.props.children,d=l.map(c=>c===a?f.Children.count(u)>1?f.Children.only(null):f.isValidElement(u)?u.props.children:null:c);return R.jsx(t,{...s,ref:o,children:f.isValidElement(u)?f.cloneElement(u,void 0,d):null})}return R.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function GS(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=ZS(o),l=XS(i,o.props);return o.type!==f.Fragment&&(l.ref=r?gc(r,s):s),f.cloneElement(o,l)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Em=Symbol("radix.slottable");function Cm(e){const t=({children:n})=>R.jsx(R.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Em,t}function QS(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Em}function XS(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function ZS(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var qS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ne=qS.reduce((e,t)=>{const n=ei(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),R.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function JS(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function Bn(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function eE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var tE="DismissableLayer",eu="dismissableLayer.update",nE="dismissableLayer.pointerDownOutside",rE="dismissableLayer.focusOutside",mf,km=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=f.useContext(km),[d,c]=f.useState(null),v=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=f.useState({}),S=he(t,k=>c(k)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(x),p=d?y.indexOf(d):-1,m=u.layersWithOutsidePointerEventsDisabled.size>0,g=p>=h,E=sE(k=>{const A=k.target,j=[...u.branches].some(F=>F.contains(A));!g||j||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},v),_=lE(k=>{const A=k.target;[...u.branches].some(F=>F.contains(A))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},v);return eE(k=>{p===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},v),f.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(mf=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),vf(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=mf)}},[d,v,n,u]),f.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),vf())},[d,u]),f.useEffect(()=>{const k=()=>w({});return document.addEventListener(eu,k),()=>document.removeEventListener(eu,k)},[]),R.jsx(ne.div,{...a,ref:S,style:{pointerEvents:m?g?"auto":"none":void 0,...e.style},onFocusCapture:Q(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Q(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Q(e.onPointerDownCapture,E.onPointerDownCapture)})});Xs.displayName=tE;var oE="DismissableLayerBranch",iE=f.forwardRef((e,t)=>{const n=f.useContext(km),r=f.useRef(null),o=he(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),R.jsx(ne.div,{...e,ref:o})});iE.displayName=oE;function sE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){_m(nE,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function lE(e,t=globalThis==null?void 0:globalThis.document){const n=Bn(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&_m(rE,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function vf(){const e=new CustomEvent(eu);document.dispatchEvent(e)}function _m(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?JS(o,i):o.dispatchEvent(i)}var Bl="focusScope.autoFocusOnMount",Ul="focusScope.autoFocusOnUnmount",yf={bubbles:!1,cancelable:!0},aE="FocusScope",wc=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[l,a]=f.useState(null),u=Bn(o),d=Bn(i),c=f.useRef(null),v=he(t,y=>a(y)),w=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let y=function(m){if(w.paused||!l)return;const g=m.target;l.contains(g)?c.current=g:Cn(c.current,{select:!0})},x=function(m){if(w.paused||!l)return;const g=m.relatedTarget;g!==null&&(l.contains(g)||Cn(c.current,{select:!0}))},h=function(m){if(document.activeElement===document.body)for(const E of m)E.removedNodes.length>0&&Cn(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const p=new MutationObserver(h);return l&&p.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),p.disconnect()}}},[r,l,w.paused]),f.useEffect(()=>{if(l){wf.add(w);const y=document.activeElement;if(!l.contains(y)){const h=new CustomEvent(Bl,yf);l.addEventListener(Bl,u),l.dispatchEvent(h),h.defaultPrevented||(uE(hE(Rm(l)),{select:!0}),document.activeElement===y&&Cn(l))}return()=>{l.removeEventListener(Bl,u),setTimeout(()=>{const h=new CustomEvent(Ul,yf);l.addEventListener(Ul,d),l.dispatchEvent(h),h.defaultPrevented||Cn(y??document.body,{select:!0}),l.removeEventListener(Ul,d),wf.remove(w)},0)}}},[l,u,d,w]);const S=f.useCallback(y=>{if(!n&&!r||w.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,h=document.activeElement;if(x&&h){const p=y.currentTarget,[m,g]=cE(p);m&&g?!y.shiftKey&&h===g?(y.preventDefault(),n&&Cn(m,{select:!0})):y.shiftKey&&h===m&&(y.preventDefault(),n&&Cn(g,{select:!0})):h===p&&y.preventDefault()}},[n,r,w.paused]);return R.jsx(ne.div,{tabIndex:-1,...s,ref:v,onKeyDown:S})});wc.displayName=aE;function uE(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cn(r,{select:t}),document.activeElement!==n)return}function cE(e){const t=Rm(e),n=gf(t,e),r=gf(t.reverse(),e);return[n,r]}function Rm(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function gf(e,t){for(const n of e)if(!dE(n,{upTo:t}))return n}function dE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function fE(e){return e instanceof HTMLInputElement&&"select"in e}function Cn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&fE(e)&&t&&e.select()}}var wf=pE();function pE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=xf(e,t),e.unshift(t)},remove(t){var n;e=xf(e,t),(n=e[0])==null||n.resume()}}}function xf(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function hE(e){return e.filter(t=>t.tagName!=="A")}var mE="Portal",xc=f.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=f.useState(!1);qe(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?em.createPortal(R.jsx(ne.div,{...r,ref:t}),s):null});xc.displayName=mE;function vE(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var mr=e=>{const{present:t,children:n}=e,r=yE(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=he(r.ref,gE(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};mr.displayName="Presence";function yE(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[l,a]=vE(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const u=Mi(r.current);i.current=l==="mounted"?u:"none"},[l]),qe(()=>{const u=r.current,d=o.current;if(d!==e){const v=i.current,w=Mi(u);e?a("MOUNT"):w==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(d&&v!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),qe(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,c=w=>{const y=Mi(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&y&&(a("ANIMATION_END"),!o.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},v=w=>{w.target===t&&(i.current=Mi(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function Mi(e){return(e==null?void 0:e.animationName)||"none"}function gE(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Hl=0;function Pm(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sf()),document.body.insertAdjacentElement("beforeend",e[1]??Sf()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Hl--}},[])}function Sf(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zi="right-scroll-bar-position",qi="width-before-scroll-bar",wE="with-scroll-bars-hidden",xE="--removed-body-scroll-bar-size";function Wl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function SE(e,t){var n=f.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var EE=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ef=new WeakMap;function CE(e,t){var n=SE(null,function(r){return e.forEach(function(o){return Wl(o,r)})});return EE(function(){var r=Ef.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(l){i.has(l)||Wl(l,null)}),i.forEach(function(l){o.has(l)||Wl(l,s)})}Ef.set(n,e)},[e]),n}function kE(e){return e}function _E(e,t){t===void 0&&(t=kE);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(i),s=n}var a=function(){var d=s;s=[],d.forEach(i)},u=function(){return Promise.resolve().then(a)};u(),n={push:function(d){s.push(d),u()},filter:function(d){return s=s.filter(d),n}}}};return o}function RE(e){e===void 0&&(e={});var t=_E(null);return t.options=Rn({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=zf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Rn({},n))};Tm.isSideCarExport=!0;function PE(e,t){return e.useMedium(t),Tm}var Nm=RE(),Kl=function(){},Zs=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Kl,onWheelCapture:Kl,onTouchMoveCapture:Kl}),o=r[0],i=r[1],s=e.forwardProps,l=e.children,a=e.className,u=e.removeScrollBar,d=e.enabled,c=e.shards,v=e.sideCar,w=e.noRelative,S=e.noIsolation,y=e.inert,x=e.allowPinchZoom,h=e.as,p=h===void 0?"div":h,m=e.gapMode,g=zf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=v,_=CE([n,t]),k=Rn(Rn({},g),o);return f.createElement(f.Fragment,null,d&&f.createElement(E,{sideCar:Nm,removeScrollBar:u,shards:c,noRelative:w,noIsolation:S,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:m}),s?f.cloneElement(f.Children.only(l),Rn(Rn({},k),{ref:_})):f.createElement(p,Rn({},k,{className:a,ref:_}),l))});Zs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Zs.classNames={fullWidth:qi,zeroRight:Zi};function TE(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Qy();return t&&e.setAttribute("nonce",t),e}function NE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function AE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var DE=function(){var e=0,t=null;return{add:function(n){e==0&&(t=TE())&&(NE(t,n),AE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},IE=function(){var e=DE();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Am=function(){var e=IE(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},bE={left:0,top:0,right:0,gap:0},Yl=function(e){return parseInt(e||"",10)||0},ME=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Yl(n),Yl(r),Yl(o)]},OE=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return bE;var t=ME(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},LE=Am(),zr="data-scroll-locked",FE=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),`
|
|
269
|
+
.`.concat(wE,` {
|
|
275
270
|
overflow: hidden `).concat(r,`;
|
|
276
271
|
padding-right: `).concat(l,"px ").concat(r,`;
|
|
277
272
|
}
|
|
@@ -305,20 +300,20 @@ Please change the parent <Route path="${m}"> to <Route path="${m==="/"?"*":`${m}
|
|
|
305
300
|
}
|
|
306
301
|
|
|
307
302
|
body[`).concat(zr,`] {
|
|
308
|
-
`).concat(
|
|
303
|
+
`).concat(xE,": ").concat(l,`px;
|
|
309
304
|
}
|
|
310
|
-
`)},Cf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0}
|
|
305
|
+
`)},Cf=function(){var e=parseInt(document.body.getAttribute(zr)||"0",10);return isFinite(e)?e:0},jE=function(){f.useEffect(function(){return document.body.setAttribute(zr,(Cf()+1).toString()),function(){var e=Cf()-1;e<=0?document.body.removeAttribute(zr):document.body.setAttribute(zr,e.toString())}},[])},$E=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;jE();var i=f.useMemo(function(){return OE(o)},[o]);return f.createElement(LE,{styles:FE(i,!t,o,n?"":"!important")})},tu=!1;if(typeof window<"u")try{var Oi=Object.defineProperty({},"passive",{get:function(){return tu=!0,!0}});window.addEventListener("test",Oi,Oi),window.removeEventListener("test",Oi,Oi)}catch{tu=!1}var gr=tu?{passive:!1}:!1,VE=function(e){return e.tagName==="TEXTAREA"},Dm=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!VE(e)&&n[t]==="visible")},zE=function(e){return Dm(e,"overflowY")},BE=function(e){return Dm(e,"overflowX")},kf=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Im(e,r);if(o){var i=bm(e,r),s=i[1],l=i[2];if(s>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},UE=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},HE=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Im=function(e,t){return e==="v"?zE(t):BE(t)},bm=function(e,t){return e==="v"?UE(t):HE(t)},WE=function(e,t){return e==="h"&&t==="rtl"?-1:1},KE=function(e,t,n,r,o){var i=WE(e,window.getComputedStyle(t).direction),s=i*r,l=n.target,a=t.contains(l),u=!1,d=s>0,c=0,v=0;do{if(!l)break;var w=bm(e,l),S=w[0],y=w[1],x=w[2],h=y-x-i*S;(S||h)&&Im(e,l)&&(c+=h,v+=S);var p=l.parentNode;l=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!a&&l!==document.body||a&&(t.contains(l)||t===l));return(d&&Math.abs(c)<1||!d&&Math.abs(v)<1)&&(u=!0),u},Li=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_f=function(e){return[e.deltaX,e.deltaY]},Rf=function(e){return e&&"current"in e?e.current:e},YE=function(e,t){return e[0]===t[0]&&e[1]===t[1]},GE=function(e){return`
|
|
311
306
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
312
307
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
313
|
-
`)},
|
|
308
|
+
`)},QE=0,wr=[];function XE(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(QE++)[0],i=f.useState(Am)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var y=Xy([e.lockRef.current],(e.shards||[]).map(Rf),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var l=f.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!s.current.allowPinchZoom;var h=Li(y),p=n.current,m="deltaX"in y?y.deltaX:p[0]-h[0],g="deltaY"in y?y.deltaY:p[1]-h[1],E,_=y.target,k=Math.abs(m)>Math.abs(g)?"h":"v";if("touches"in y&&k==="h"&&_.type==="range")return!1;var A=kf(k,_);if(!A)return!0;if(A?E=k:(E=k==="v"?"h":"v",A=kf(k,_)),!A)return!1;if(!r.current&&"changedTouches"in y&&(m||g)&&(r.current=E),!E)return!0;var j=r.current||E;return KE(j,x,y,j==="h"?m:g)},[]),a=f.useCallback(function(y){var x=y;if(!(!wr.length||wr[wr.length-1]!==i)){var h="deltaY"in x?_f(x):Li(x),p=t.current.filter(function(E){return E.name===x.type&&(E.target===x.target||x.target===E.shadowParent)&&YE(E.delta,h)})[0];if(p&&p.should){x.cancelable&&x.preventDefault();return}if(!p){var m=(s.current.shards||[]).map(Rf).filter(Boolean).filter(function(E){return E.contains(x.target)}),g=m.length>0?l(x,m[0]):!s.current.noIsolation;g&&x.cancelable&&x.preventDefault()}}},[]),u=f.useCallback(function(y,x,h,p){var m={name:y,delta:x,target:h,should:p,shadowParent:ZE(h)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(g){return g!==m})},1)},[]),d=f.useCallback(function(y){n.current=Li(y),r.current=void 0},[]),c=f.useCallback(function(y){u(y.type,_f(y),y.target,l(y,e.lockRef.current))},[]),v=f.useCallback(function(y){u(y.type,Li(y),y.target,l(y,e.lockRef.current))},[]);f.useEffect(function(){return wr.push(i),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:v}),document.addEventListener("wheel",a,gr),document.addEventListener("touchmove",a,gr),document.addEventListener("touchstart",d,gr),function(){wr=wr.filter(function(y){return y!==i}),document.removeEventListener("wheel",a,gr),document.removeEventListener("touchmove",a,gr),document.removeEventListener("touchstart",d,gr)}},[]);var w=e.removeScrollBar,S=e.inert;return f.createElement(f.Fragment,null,S?f.createElement(i,{styles:GE(o)}):null,w?f.createElement($E,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function ZE(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const qE=PE(Nm,XE);var Sc=f.forwardRef(function(e,t){return f.createElement(Zs,Rn({},e,{ref:t,sideCar:qE}))});Sc.classNames=Zs.classNames;var qs="Dialog",[Mm,Om]=yn(qs),[JE,Kt]=Mm(qs),Lm=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,l=f.useRef(null),a=f.useRef(null),[u,d]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:qs});return R.jsx(JE,{scope:t,triggerRef:l,contentRef:a,contentId:cn(),titleId:cn(),descriptionId:cn(),open:u,onOpenChange:d,onOpenToggle:f.useCallback(()=>d(c=>!c),[d]),modal:s,children:n})};Lm.displayName=qs;var Fm="DialogTrigger",jm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Fm,n),i=he(t,o.triggerRef);return R.jsx(ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":kc(o.open),...r,ref:i,onClick:Q(e.onClick,o.onOpenToggle)})});jm.displayName=Fm;var Ec="DialogPortal",[eC,$m]=Mm(Ec,{forceMount:void 0}),Vm=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=Kt(Ec,t);return R.jsx(eC,{scope:t,forceMount:n,children:f.Children.map(r,s=>R.jsx(mr,{present:n||i.open,children:R.jsx(xc,{asChild:!0,container:o,children:s})}))})};Vm.displayName=Ec;var Rs="DialogOverlay",zm=f.forwardRef((e,t)=>{const n=$m(Rs,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(Rs,e.__scopeDialog);return i.modal?R.jsx(mr,{present:r||i.open,children:R.jsx(nC,{...o,ref:t})}):null});zm.displayName=Rs;var tC=ei("DialogOverlay.RemoveScroll"),nC=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Rs,n);return R.jsx(Sc,{as:tC,allowPinchZoom:!0,shards:[o.contentRef],children:R.jsx(ne.div,{"data-state":kc(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),cr="DialogContent",Bm=f.forwardRef((e,t)=>{const n=$m(cr,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=Kt(cr,e.__scopeDialog);return R.jsx(mr,{present:r||i.open,children:i.modal?R.jsx(rC,{...o,ref:t}):R.jsx(oC,{...o,ref:t})})});Bm.displayName=cr;var rC=f.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=f.useRef(null),o=he(t,n.contentRef,r);return f.useEffect(()=>{const i=r.current;if(i)return Bf(i)},[]),R.jsx(Um,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Q(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:Q(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,l=s.button===0&&s.ctrlKey===!0;(s.button===2||l)&&i.preventDefault()}),onFocusOutside:Q(e.onFocusOutside,i=>i.preventDefault())})}),oC=f.forwardRef((e,t)=>{const n=Kt(cr,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return R.jsx(Um,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,l;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var a,u;(a=e.onInteractOutside)==null||a.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((u=n.triggerRef.current)==null?void 0:u.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Um=f.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,l=Kt(cr,n),a=f.useRef(null),u=he(t,a);return Pm(),R.jsxs(R.Fragment,{children:[R.jsx(wc,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:R.jsx(Xs,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":kc(l.open),...s,ref:u,onDismiss:()=>l.onOpenChange(!1)})}),R.jsxs(R.Fragment,{children:[R.jsx(sC,{titleId:l.titleId}),R.jsx(aC,{contentRef:a,descriptionId:l.descriptionId})]})]})}),Cc="DialogTitle",Hm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Cc,n);return R.jsx(ne.h2,{id:o.titleId,...r,ref:t})});Hm.displayName=Cc;var Wm="DialogDescription",Km=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Wm,n);return R.jsx(ne.p,{id:o.descriptionId,...r,ref:t})});Km.displayName=Wm;var Ym="DialogClose",Gm=f.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=Kt(Ym,n);return R.jsx(ne.button,{type:"button",...r,ref:t,onClick:Q(e.onClick,()=>o.onOpenChange(!1))})});Gm.displayName=Ym;function kc(e){return e?"open":"closed"}var Qm="DialogTitleWarning",[iC,Xm]=zS(Qm,{contentName:cr,titleName:Cc,docsSlug:"dialog"}),sC=({titleId:e})=>{const t=Xm(Qm),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
314
309
|
|
|
315
310
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
316
311
|
|
|
317
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},aC="DialogDescriptionWarning",uC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xm(aC).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},cC=Lm,dC=jm,fC=Vm,pC=zm,hC=Bm,mC=Hm,vC=Km,Zm=Gm,yC=typeof document<"u",gC=function(){},Ji=yC?f.useLayoutEffect:gC;function Ps(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ps(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pf(e,t){const n=qm(e);return Math.round(t*n)/n}function Gl(e){const t=f.useRef(e);return Ji(()=>{t.current=e}),t}function wC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=f.useState(r);Ps(v,r)||w(r);const[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useCallback(Y=>{Y!==_.current&&(_.current=Y,y(Y))},[]),m=f.useCallback(Y=>{Y!==k.current&&(k.current=Y,h(Y))},[]),g=i||S,E=s||x,_=f.useRef(null),k=f.useRef(null),A=f.useRef(d),j=a!=null,F=Gl(a),W=Gl(o),B=Gl(u),V=f.useCallback(()=>{if(!_.current||!k.current)return;const Y={placement:t,strategy:n,middleware:v};W.current&&(Y.platform=W.current),Zy(_.current,k.current,Y).then(ae=>{const de={...ae,isPositioned:B.current!==!1};G.current&&!Ps(A.current,de)&&(A.current=de,to.flushSync(()=>{c(de)}))})},[v,t,n,W,B]);Ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(Y=>({...Y,isPositioned:!1})))},[u]);const G=f.useRef(!1);Ji(()=>(G.current=!0,()=>{G.current=!1}),[]),Ji(()=>{if(g&&(_.current=g),E&&(k.current=E),g&&E){if(F.current)return F.current(g,E,V);V()}},[g,E,V,F,j]);const J=f.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:m}),[p,m]),L=f.useMemo(()=>({reference:g,floating:E}),[g,E]),K=f.useMemo(()=>{const Y={position:n,left:0,top:0};if(!L.floating)return Y;const ae=Pf(L.floating,d.x),de=Pf(L.floating,d.y);return l?{...Y,transform:"translate("+ae+"px, "+de+"px)",...qm(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:de}},[n,l,L.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:J,elements:L,floatingStyles:K}),[d,V,J,L,K])}const xC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bc({element:r.current,padding:o}).fn(n):{}:r?Bc({element:r,padding:o}).fn(n):{}}}},SC=(e,t)=>({...qy(e),options:[e,t]}),EC=(e,t)=>({...Jy(e),options:[e,t]}),CC=(e,t)=>({...rg(e),options:[e,t]}),kC=(e,t)=>({...eg(e),options:[e,t]}),_C=(e,t)=>({...tg(e),options:[e,t]}),RC=(e,t)=>({...ng(e),options:[e,t]}),PC=(e,t)=>({...xC(e),options:[e,t]});var TC="Arrow",Jm=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return R.jsx(ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jm.displayName=TC;var NC=Jm;function ev(e){const[t,n]=f.useState(void 0);return qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _c="Popper",[tv,Js]=yn(_c),[AC,nv]=tv(_c),rv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return R.jsx(AC,{scope:t,anchor:r,onAnchorChange:o,children:n})};rv.displayName=_c;var ov="PopperAnchor",iv=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nv(ov,n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:R.jsx(ne.div,{...o,ref:l})});iv.displayName=ov;var Rc="PopperContent",[DC,IC]=tv(Rc),sv=f.forwardRef((e,t)=>{var U,H,me,re,oe,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:S,...y}=e,x=nv(Rc,n),[h,p]=f.useState(null),m=he(t,je=>p(je)),[g,E]=f.useState(null),_=ev(g),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,j=r+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],B=W.length>0,V={padding:F,boundary:W.filter(MC),altBoundary:B},{refs:G,floatingStyles:J,placement:L,isPositioned:K,middlewareData:Y}=wC({strategy:"fixed",placement:j,whileElementsMounted:(...je)=>og(...je,{animationFrame:w==="always"}),elements:{reference:x.anchor},middleware:[SC({mainAxis:o+A,alignmentAxis:s}),a&&EC({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?CC():void 0,...V}),a&&kC({...V}),_C({...V,apply:({elements:je,rects:$e,availableWidth:Yt,availableHeight:Gt})=>{const{width:dt,height:so}=$e.reference,Ve=je.floating.style;Ve.setProperty("--radix-popper-available-width",`${Yt}px`),Ve.setProperty("--radix-popper-available-height",`${Gt}px`),Ve.setProperty("--radix-popper-anchor-width",`${dt}px`),Ve.setProperty("--radix-popper-anchor-height",`${so}px`)}}),g&&PC({element:g,padding:l}),OC({arrowWidth:k,arrowHeight:A}),v&&RC({strategy:"referenceHidden",...V})]}),[ae,de]=uv(L),Ae=Bn(S);qe(()=>{K&&(Ae==null||Ae())},[K,Ae]);const St=(U=Y.arrow)==null?void 0:U.x,X=(H=Y.arrow)==null?void 0:H.y,se=((me=Y.arrow)==null?void 0:me.centerOffset)!==0,[le,Re]=f.useState();return qe(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),R.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(re=Y.transformOrigin)==null?void 0:re.x,(oe=Y.transformOrigin)==null?void 0:oe.y].join(" "),...((ee=Y.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(DC,{scope:n,placedSide:ae,onArrowChange:E,arrowX:St,arrowY:X,shouldHideArrow:se,children:R.jsx(ne.div,{"data-side":ae,"data-align":de,...y,ref:m,style:{...y.style,animation:K?void 0:"none"}})})})});sv.displayName=Rc;var lv="PopperArrow",bC={top:"bottom",right:"left",bottom:"top",left:"right"},av=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=IC(lv,r),s=bC[i.placedSide];return R.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:R.jsx(NC,{...o,ref:n,style:{...o.style,display:"block"}})})});av.displayName=lv;function MC(e){return e!==null}var OC=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=uv(n),c={start:"0%",center:"50%",end:"100%"}[d],v=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,w=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=s?c:`${v}px`,y=`${-a}px`):u==="top"?(S=s?c:`${v}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=s?c:`${w}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?c:`${w}px`),{data:{x:S,y}}}});function uv(e){const[t,n="center"]=e.split("-");return[t,n]}var cv=rv,dv=iv,fv=sv,pv=av,hv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),LC="VisuallyHidden",mv=f.forwardRef((e,t)=>R.jsx(ne.span,{...e,ref:t,style:{...hv,...e.style}}));mv.displayName=LC;var FC=mv,[el]=yn("Tooltip",[Js]),tl=Js(),vv="TooltipProvider",jC=700,nu="tooltip.open",[$C,Pc]=el(vv),yv=e=>{const{__scopeTooltip:t,delayDuration:n=jC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),l=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),R.jsx($C,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};yv.displayName=vv;var ti="Tooltip",[VC,nl]=el(ti),gv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Pc(ti,e.__scopeTooltip),u=tl(t),[d,c]=f.useState(null),v=cn(),w=f.useRef(0),S=s??a.disableHoverableContent,y=l??a.delayDuration,x=f.useRef(!1),[h,p]=ur({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(nu))):a.onClose(),i==null||i(k)},caller:ti}),m=f.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),g=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,x.current=!1,p(!0)},[p]),E=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,p(!1)},[p]),_=f.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{x.current=!0,p(!0),w.current=0},y)},[y,p]);return f.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),R.jsx(cv,{...u,children:R.jsx(VC,{scope:t,contentId:v,open:h,stateAttribute:m,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?_():g()},[a.isOpenDelayedRef,_,g]),onTriggerLeave:f.useCallback(()=>{S?E():(window.clearTimeout(w.current),w.current=0)},[E,S]),onOpen:g,onClose:E,disableHoverableContent:S,children:n})})};gv.displayName=ti;var ru="TooltipTrigger",wv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(ru,n),i=Pc(ru,n),s=tl(n),l=f.useRef(null),a=he(t,l,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),R.jsx(dv,{asChild:!0,...s,children:R.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Q(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})})});wv.displayName=ru;var zC="TooltipPortal",[E2,BC]=el(zC,{forceMount:void 0}),Zr="TooltipContent",xv=f.forwardRef((e,t)=>{const n=BC(Zr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nl(Zr,e.__scopeTooltip);return R.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?R.jsx(Sv,{side:o,...i,ref:t}):R.jsx(UC,{side:o,...i,ref:t})})}),UC=f.forwardRef((e,t)=>{const n=nl(Zr,e.__scopeTooltip),r=Pc(Zr,e.__scopeTooltip),o=f.useRef(null),i=he(t,o),[s,l]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,v=f.useCallback(()=>{l(null),c(!1)},[c]),w=f.useCallback((S,y)=>{const x=S.currentTarget,h={x:S.clientX,y:S.clientY},p=GC(h,x.getBoundingClientRect()),m=QC(h,p),g=XC(y.getBoundingClientRect()),E=qC([...m,...g]);l(E),c(!0)},[c]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(a&&d){const S=x=>w(x,d),y=x=>w(x,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,w,v]),f.useEffect(()=>{if(s){const S=y=>{const x=y.target,h={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),m=!ZC(h,s);p?v():m&&(v(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,s,u,v]),R.jsx(Sv,{...e,ref:i})}),[HC,WC]=el(ti,{isInside:!1}),KC=Cm("TooltipContent"),Sv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=nl(Zr,n),u=tl(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(nu,d),()=>document.removeEventListener(nu,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=v=>{const w=v.target;w!=null&&w.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:R.jsxs(fv,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[R.jsx(KC,{children:r}),R.jsx(HC,{scope:n,isInside:!0,children:R.jsx(FC,{id:a.contentId,role:"tooltip",children:o||r})})]})})});xv.displayName=Zr;var Ev="TooltipArrow",YC=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(n);return WC(Ev,n).isInside?null:R.jsx(pv,{...o,...r,ref:t})});YC.displayName=Ev;function GC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function QC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function XC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ZC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,d=l.y,c=a.x,v=a.y;d>r!=v>r&&n<(c-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function qC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),JC(t)}function JC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var C2=yv,k2=gv,_2=wv,R2=xv,Cv="AlertDialog",[ek]=yn(Cv,[Om]),gn=Om(),kv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(cC,{...r,...n,modal:!0})};kv.displayName=Cv;var tk="AlertDialogTrigger",_v=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(dC,{...o,...r,ref:t})});_v.displayName=tk;var nk="AlertDialogPortal",Rv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(fC,{...r,...n})};Rv.displayName=nk;var rk="AlertDialogOverlay",Pv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(pC,{...o,...r,ref:t})});Pv.displayName=rk;var Br="AlertDialogContent",[ok,ik]=ek(Br),sk=Cm("AlertDialogContent"),Tv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=gn(n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return R.jsx(sC,{contentName:Br,titleName:Nv,docsSlug:"alert-dialog",children:R.jsx(ok,{scope:n,cancelRef:a,children:R.jsxs(hC,{role:"alertdialog",...i,...o,ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[R.jsx(sk,{children:r}),R.jsx(ak,{contentRef:s})]})})})});Tv.displayName=Br;var Nv="AlertDialogTitle",Av=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(mC,{...o,...r,ref:t})});Av.displayName=Nv;var Dv="AlertDialogDescription",Iv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(vC,{...o,...r,ref:t})});Iv.displayName=Dv;var lk="AlertDialogAction",bv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(Zm,{...o,...r,ref:t})});bv.displayName=lk;var Mv="AlertDialogCancel",Ov=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ik(Mv,n),i=gn(n),s=he(t,o);return R.jsx(Zm,{...i,...r,ref:s})});Ov.displayName=Mv;var ak=({contentRef:e})=>{const t=`\`${Br}\` requires a description for the component to be accessible for screen reader users.
|
|
312
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return f.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},lC="DialogDescriptionWarning",aC=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xm(lC).contentName}}.`;return f.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},uC=Lm,cC=jm,dC=Vm,fC=zm,pC=Bm,hC=Hm,mC=Km,Zm=Gm,vC=typeof document<"u",yC=function(){},Ji=vC?f.useLayoutEffect:yC;function Ps(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ps(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ps(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function qm(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Pf(e,t){const n=qm(e);return Math.round(t*n)/n}function Gl(e){const t=f.useRef(e);return Ji(()=>{t.current=e}),t}function gC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[d,c]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,w]=f.useState(r);Ps(v,r)||w(r);const[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useCallback(Y=>{Y!==_.current&&(_.current=Y,y(Y))},[]),m=f.useCallback(Y=>{Y!==k.current&&(k.current=Y,h(Y))},[]),g=i||S,E=s||x,_=f.useRef(null),k=f.useRef(null),A=f.useRef(d),j=a!=null,F=Gl(a),W=Gl(o),B=Gl(u),V=f.useCallback(()=>{if(!_.current||!k.current)return;const Y={placement:t,strategy:n,middleware:v};W.current&&(Y.platform=W.current),Zy(_.current,k.current,Y).then(ae=>{const de={...ae,isPositioned:B.current!==!1};G.current&&!Ps(A.current,de)&&(A.current=de,to.flushSync(()=>{c(de)}))})},[v,t,n,W,B]);Ji(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(Y=>({...Y,isPositioned:!1})))},[u]);const G=f.useRef(!1);Ji(()=>(G.current=!0,()=>{G.current=!1}),[]),Ji(()=>{if(g&&(_.current=g),E&&(k.current=E),g&&E){if(F.current)return F.current(g,E,V);V()}},[g,E,V,F,j]);const J=f.useMemo(()=>({reference:_,floating:k,setReference:p,setFloating:m}),[p,m]),L=f.useMemo(()=>({reference:g,floating:E}),[g,E]),K=f.useMemo(()=>{const Y={position:n,left:0,top:0};if(!L.floating)return Y;const ae=Pf(L.floating,d.x),de=Pf(L.floating,d.y);return l?{...Y,transform:"translate("+ae+"px, "+de+"px)",...qm(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ae,top:de}},[n,l,L.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:V,refs:J,elements:L,floatingStyles:K}),[d,V,J,L,K])}const wC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bc({element:r.current,padding:o}).fn(n):{}:r?Bc({element:r,padding:o}).fn(n):{}}}},xC=(e,t)=>({...qy(e),options:[e,t]}),SC=(e,t)=>({...Jy(e),options:[e,t]}),EC=(e,t)=>({...rg(e),options:[e,t]}),CC=(e,t)=>({...eg(e),options:[e,t]}),kC=(e,t)=>({...tg(e),options:[e,t]}),_C=(e,t)=>({...ng(e),options:[e,t]}),RC=(e,t)=>({...wC(e),options:[e,t]});var PC="Arrow",Jm=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return R.jsx(ne.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:R.jsx("polygon",{points:"0,0 30,0 15,10"})})});Jm.displayName=PC;var TC=Jm;function ev(e){const[t,n]=f.useState(void 0);return qe(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var _c="Popper",[tv,Js]=yn(_c),[NC,nv]=tv(_c),rv=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return R.jsx(NC,{scope:t,anchor:r,onAnchorChange:o,children:n})};rv.displayName=_c;var ov="PopperAnchor",iv=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=nv(ov,n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return f.useEffect(()=>{const u=a.current;a.current=(r==null?void 0:r.current)||s.current,u!==a.current&&i.onAnchorChange(a.current)}),r?null:R.jsx(ne.div,{...o,ref:l})});iv.displayName=ov;var Rc="PopperContent",[AC,DC]=tv(Rc),sv=f.forwardRef((e,t)=>{var U,H,me,re,oe,ee;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:c="partial",hideWhenDetached:v=!1,updatePositionStrategy:w="optimized",onPlaced:S,...y}=e,x=nv(Rc,n),[h,p]=f.useState(null),m=he(t,je=>p(je)),[g,E]=f.useState(null),_=ev(g),k=(_==null?void 0:_.width)??0,A=(_==null?void 0:_.height)??0,j=r+(i!=="center"?"-"+i:""),F=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},W=Array.isArray(u)?u:[u],B=W.length>0,V={padding:F,boundary:W.filter(bC),altBoundary:B},{refs:G,floatingStyles:J,placement:L,isPositioned:K,middlewareData:Y}=gC({strategy:"fixed",placement:j,whileElementsMounted:(...je)=>og(...je,{animationFrame:w==="always"}),elements:{reference:x.anchor},middleware:[xC({mainAxis:o+A,alignmentAxis:s}),a&&SC({mainAxis:!0,crossAxis:!1,limiter:c==="partial"?EC():void 0,...V}),a&&CC({...V}),kC({...V,apply:({elements:je,rects:$e,availableWidth:Yt,availableHeight:Gt})=>{const{width:dt,height:so}=$e.reference,Ve=je.floating.style;Ve.setProperty("--radix-popper-available-width",`${Yt}px`),Ve.setProperty("--radix-popper-available-height",`${Gt}px`),Ve.setProperty("--radix-popper-anchor-width",`${dt}px`),Ve.setProperty("--radix-popper-anchor-height",`${so}px`)}}),g&&RC({element:g,padding:l}),MC({arrowWidth:k,arrowHeight:A}),v&&_C({strategy:"referenceHidden",...V})]}),[ae,de]=uv(L),Ae=Bn(S);qe(()=>{K&&(Ae==null||Ae())},[K,Ae]);const St=(U=Y.arrow)==null?void 0:U.x,X=(H=Y.arrow)==null?void 0:H.y,se=((me=Y.arrow)==null?void 0:me.centerOffset)!==0,[le,Re]=f.useState();return qe(()=>{h&&Re(window.getComputedStyle(h).zIndex)},[h]),R.jsx("div",{ref:G.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:K?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[(re=Y.transformOrigin)==null?void 0:re.x,(oe=Y.transformOrigin)==null?void 0:oe.y].join(" "),...((ee=Y.hide)==null?void 0:ee.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:R.jsx(AC,{scope:n,placedSide:ae,onArrowChange:E,arrowX:St,arrowY:X,shouldHideArrow:se,children:R.jsx(ne.div,{"data-side":ae,"data-align":de,...y,ref:m,style:{...y.style,animation:K?void 0:"none"}})})})});sv.displayName=Rc;var lv="PopperArrow",IC={top:"bottom",right:"left",bottom:"top",left:"right"},av=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=DC(lv,r),s=IC[i.placedSide];return R.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:R.jsx(TC,{...o,ref:n,style:{...o.style,display:"block"}})})});av.displayName=lv;function bC(e){return e!==null}var MC=e=>({name:"transformOrigin",options:e,fn(t){var x,h,p;const{placement:n,rects:r,middlewareData:o}=t,s=((x=o.arrow)==null?void 0:x.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,d]=uv(n),c={start:"0%",center:"50%",end:"100%"}[d],v=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,w=(((p=o.arrow)==null?void 0:p.y)??0)+a/2;let S="",y="";return u==="bottom"?(S=s?c:`${v}px`,y=`${-a}px`):u==="top"?(S=s?c:`${v}px`,y=`${r.floating.height+a}px`):u==="right"?(S=`${-a}px`,y=s?c:`${w}px`):u==="left"&&(S=`${r.floating.width+a}px`,y=s?c:`${w}px`),{data:{x:S,y}}}});function uv(e){const[t,n="center"]=e.split("-");return[t,n]}var cv=rv,dv=iv,fv=sv,pv=av,hv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),OC="VisuallyHidden",mv=f.forwardRef((e,t)=>R.jsx(ne.span,{...e,ref:t,style:{...hv,...e.style}}));mv.displayName=OC;var LC=mv,[el]=yn("Tooltip",[Js]),tl=Js(),vv="TooltipProvider",FC=700,nu="tooltip.open",[jC,Pc]=el(vv),yv=e=>{const{__scopeTooltip:t,delayDuration:n=FC,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=f.useRef(!0),l=f.useRef(!1),a=f.useRef(0);return f.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),R.jsx(jC,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:f.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:f.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:f.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};yv.displayName=vv;var ti="Tooltip",[$C,nl]=el(ti),gv=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,a=Pc(ti,e.__scopeTooltip),u=tl(t),[d,c]=f.useState(null),v=cn(),w=f.useRef(0),S=s??a.disableHoverableContent,y=l??a.delayDuration,x=f.useRef(!1),[h,p]=ur({prop:r,defaultProp:o??!1,onChange:k=>{k?(a.onOpen(),document.dispatchEvent(new CustomEvent(nu))):a.onClose(),i==null||i(k)},caller:ti}),m=f.useMemo(()=>h?x.current?"delayed-open":"instant-open":"closed",[h]),g=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,x.current=!1,p(!0)},[p]),E=f.useCallback(()=>{window.clearTimeout(w.current),w.current=0,p(!1)},[p]),_=f.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{x.current=!0,p(!0),w.current=0},y)},[y,p]);return f.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]),R.jsx(cv,{...u,children:R.jsx($C,{scope:t,contentId:v,open:h,stateAttribute:m,trigger:d,onTriggerChange:c,onTriggerEnter:f.useCallback(()=>{a.isOpenDelayedRef.current?_():g()},[a.isOpenDelayedRef,_,g]),onTriggerLeave:f.useCallback(()=>{S?E():(window.clearTimeout(w.current),w.current=0)},[E,S]),onOpen:g,onClose:E,disableHoverableContent:S,children:n})})};gv.displayName=ti;var ru="TooltipTrigger",wv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=nl(ru,n),i=Pc(ru,n),s=tl(n),l=f.useRef(null),a=he(t,l,o.onTriggerChange),u=f.useRef(!1),d=f.useRef(!1),c=f.useCallback(()=>u.current=!1,[]);return f.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),R.jsx(dv,{asChild:!0,...s,children:R.jsx(ne.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:Q(e.onPointerMove,v=>{v.pointerType!=="touch"&&!d.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),d.current=!0)}),onPointerLeave:Q(e.onPointerLeave,()=>{o.onTriggerLeave(),d.current=!1}),onPointerDown:Q(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:Q(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:Q(e.onBlur,o.onClose),onClick:Q(e.onClick,o.onClose)})})});wv.displayName=ru;var VC="TooltipPortal",[x2,zC]=el(VC,{forceMount:void 0}),Zr="TooltipContent",xv=f.forwardRef((e,t)=>{const n=zC(Zr,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=nl(Zr,e.__scopeTooltip);return R.jsx(mr,{present:r||s.open,children:s.disableHoverableContent?R.jsx(Sv,{side:o,...i,ref:t}):R.jsx(BC,{side:o,...i,ref:t})})}),BC=f.forwardRef((e,t)=>{const n=nl(Zr,e.__scopeTooltip),r=Pc(Zr,e.__scopeTooltip),o=f.useRef(null),i=he(t,o),[s,l]=f.useState(null),{trigger:a,onClose:u}=n,d=o.current,{onPointerInTransitChange:c}=r,v=f.useCallback(()=>{l(null),c(!1)},[c]),w=f.useCallback((S,y)=>{const x=S.currentTarget,h={x:S.clientX,y:S.clientY},p=YC(h,x.getBoundingClientRect()),m=GC(h,p),g=QC(y.getBoundingClientRect()),E=ZC([...m,...g]);l(E),c(!0)},[c]);return f.useEffect(()=>()=>v(),[v]),f.useEffect(()=>{if(a&&d){const S=x=>w(x,d),y=x=>w(x,a);return a.addEventListener("pointerleave",S),d.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",S),d.removeEventListener("pointerleave",y)}}},[a,d,w,v]),f.useEffect(()=>{if(s){const S=y=>{const x=y.target,h={x:y.clientX,y:y.clientY},p=(a==null?void 0:a.contains(x))||(d==null?void 0:d.contains(x)),m=!XC(h,s);p?v():m&&(v(),u())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[a,d,s,u,v]),R.jsx(Sv,{...e,ref:i})}),[UC,HC]=el(ti,{isInside:!1}),WC=Cm("TooltipContent"),Sv=f.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=nl(Zr,n),u=tl(n),{onClose:d}=a;return f.useEffect(()=>(document.addEventListener(nu,d),()=>document.removeEventListener(nu,d)),[d]),f.useEffect(()=>{if(a.trigger){const c=v=>{const w=v.target;w!=null&&w.contains(a.trigger)&&d()};return window.addEventListener("scroll",c,{capture:!0}),()=>window.removeEventListener("scroll",c,{capture:!0})}},[a.trigger,d]),R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c=>c.preventDefault(),onDismiss:d,children:R.jsxs(fv,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[R.jsx(WC,{children:r}),R.jsx(UC,{scope:n,isInside:!0,children:R.jsx(LC,{id:a.contentId,role:"tooltip",children:o||r})})]})})});xv.displayName=Zr;var Ev="TooltipArrow",KC=f.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tl(n);return HC(Ev,n).isInside?null:R.jsx(pv,{...o,...r,ref:t})});KC.displayName=Ev;function YC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function GC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function QC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function XC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const l=t[i],a=t[s],u=l.x,d=l.y,c=a.x,v=a.y;d>r!=v>r&&n<(c-u)*(r-d)/(v-d)+u&&(o=!o)}return o}function ZC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),qC(t)}function qC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var S2=yv,E2=gv,C2=wv,k2=xv,Cv="AlertDialog",[JC]=yn(Cv,[Om]),gn=Om(),kv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(uC,{...r,...n,modal:!0})};kv.displayName=Cv;var ek="AlertDialogTrigger",_v=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(cC,{...o,...r,ref:t})});_v.displayName=ek;var tk="AlertDialogPortal",Rv=e=>{const{__scopeAlertDialog:t,...n}=e,r=gn(t);return R.jsx(dC,{...r,...n})};Rv.displayName=tk;var nk="AlertDialogOverlay",Pv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(fC,{...o,...r,ref:t})});Pv.displayName=nk;var Br="AlertDialogContent",[rk,ok]=JC(Br),ik=Cm("AlertDialogContent"),Tv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...o}=e,i=gn(n),s=f.useRef(null),l=he(t,s),a=f.useRef(null);return R.jsx(iC,{contentName:Br,titleName:Nv,docsSlug:"alert-dialog",children:R.jsx(rk,{scope:n,cancelRef:a,children:R.jsxs(pC,{role:"alertdialog",...i,...o,ref:l,onOpenAutoFocus:Q(o.onOpenAutoFocus,u=>{var d;u.preventDefault(),(d=a.current)==null||d.focus({preventScroll:!0})}),onPointerDownOutside:u=>u.preventDefault(),onInteractOutside:u=>u.preventDefault(),children:[R.jsx(ik,{children:r}),R.jsx(lk,{contentRef:s})]})})})});Tv.displayName=Br;var Nv="AlertDialogTitle",Av=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(hC,{...o,...r,ref:t})});Av.displayName=Nv;var Dv="AlertDialogDescription",Iv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(mC,{...o,...r,ref:t})});Iv.displayName=Dv;var sk="AlertDialogAction",bv=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,o=gn(n);return R.jsx(Zm,{...o,...r,ref:t})});bv.displayName=sk;var Mv="AlertDialogCancel",Ov=f.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:o}=ok(Mv,n),i=gn(n),s=he(t,o);return R.jsx(Zm,{...i,...r,ref:s})});Ov.displayName=Mv;var lk=({contentRef:e})=>{const t=`\`${Br}\` requires a description for the component to be accessible for screen reader users.
|
|
318
313
|
|
|
319
314
|
You can add a description to the \`${Br}\` by passing a \`${Dv}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
320
315
|
|
|
321
316
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Br}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
322
317
|
|
|
323
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},P2=kv,T2=_v,N2=Rv,A2=Pv,D2=Tv,I2=bv,b2=Ov,M2=Av,O2=Iv;function Lv(e){const t=e+"CollectionProvider",[n,r]=yn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:x,children:h}=y,p=T.useRef(null),m=T.useRef(new Map).current;return R.jsx(o,{scope:x,itemMap:m,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=ei(l),u=T.forwardRef((y,x)=>{const{scope:h,children:p}=y,m=i(l,h),g=he(x,m.collectionRef);return R.jsx(a,{ref:g,children:p})});u.displayName=l;const d=e+"CollectionItemSlot",c="data-radix-collection-item",v=ei(d),w=T.forwardRef((y,x)=>{const{scope:h,children:p,...m}=y,g=T.useRef(null),E=he(x,g),_=i(d,h);return T.useEffect(()=>(_.itemMap.set(g,{ref:g,...m}),()=>void _.itemMap.delete(g))),R.jsx(v,{[c]:"",ref:E,children:p})});w.displayName=d;function S(y){const x=i(e+"CollectionConsumer",y);return T.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((_,k)=>m.indexOf(_.ref.current)-m.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:w},S,r]}var uk=f.createContext(void 0);function Tc(e){const t=f.useContext(uk);return e||t||"ltr"}var Ql="rovingFocusGroup.onEntryFocus",ck={bubbles:!1,cancelable:!0},ui="RovingFocusGroup",[ou,Fv,dk]=Lv(ui),[fk,jv]=yn(ui,[dk]),[pk,hk]=fk(ui),$v=f.forwardRef((e,t)=>R.jsx(ou.Provider,{scope:e.__scopeRovingFocusGroup,children:R.jsx(ou.Slot,{scope:e.__scopeRovingFocusGroup,children:R.jsx(mk,{...e,ref:t})})}));$v.displayName=ui;var mk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,v=f.useRef(null),w=he(t,v),S=Tc(i),[y,x]=ur({prop:s,defaultProp:l??null,onChange:a,caller:ui}),[h,p]=f.useState(!1),m=Bn(u),g=Fv(n),E=f.useRef(!1),[_,k]=f.useState(0);return f.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(Ql,m),()=>A.removeEventListener(Ql,m)},[m]),R.jsx(pk,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:y,onItemFocus:f.useCallback(A=>x(A),[x]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:f.useCallback(()=>k(A=>A-1),[]),children:R.jsx(ne.div,{tabIndex:h||_===0?-1:0,"data-orientation":r,...c,ref:w,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,A=>{const j=!E.current;if(A.target===A.currentTarget&&j&&!h){const F=new CustomEvent(Ql,ck);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=g().filter(L=>L.focusable),B=W.find(L=>L.active),V=W.find(L=>L.id===y),J=[B,V,...W].filter(Boolean).map(L=>L.ref.current);Bv(J,d)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),Vv="RovingFocusGroupItem",zv=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,a=cn(),u=i||a,d=hk(Vv,n),c=d.currentTabStopId===u,v=Fv(n),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:y}=d;return f.useEffect(()=>{if(r)return w(),()=>S()},[r,w,S]),R.jsx(ou.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:R.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?d.onItemFocus(u):x.preventDefault()}),onFocus:Q(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=gk(x,d.orientation,d.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let m=v().filter(g=>g.focusable).map(g=>g.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const g=m.indexOf(x.currentTarget);m=d.loop?wk(m,g+1):m.slice(g+1)}setTimeout(()=>Bv(m))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:y!=null}):s})})});zv.displayName=Vv;var vk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function gk(e,t,n){const r=yk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return vk[r]}function Bv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function wk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var xk=$v,Sk=zv,rl="Tabs",[Ek]=yn(rl,[jv]),Uv=jv(),[Ck,Nc]=Ek(rl),Hv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:a="automatic",...u}=e,d=Tc(l),[c,v]=ur({prop:r,onChange:o,defaultProp:i??"",caller:rl});return R.jsx(Ck,{scope:n,baseId:cn(),value:c,onValueChange:v,orientation:s,dir:d,activationMode:a,children:R.jsx(ne.div,{dir:d,"data-orientation":s,...u,ref:t})})});Hv.displayName=rl;var Wv="TabsList",Kv=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Nc(Wv,n),s=Uv(n);return R.jsx(xk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:R.jsx(ne.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kv.displayName=Wv;var Yv="TabsTrigger",Gv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Nc(Yv,n),l=Uv(n),a=Zv(s.baseId,r),u=qv(s.baseId,r),d=r===s.value;return R.jsx(Sk,{asChild:!0,...l,focusable:!o,active:d,children:R.jsx(ne.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...i,ref:t,onMouseDown:Q(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Q(e.onFocus,()=>{const c=s.activationMode!=="manual";!d&&!o&&c&&s.onValueChange(r)})})})});Gv.displayName=Yv;var Qv="TabsContent",Xv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=Nc(Qv,n),a=Zv(l.baseId,r),u=qv(l.baseId,r),d=r===l.value,c=f.useRef(d);return f.useEffect(()=>{const v=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(v)},[]),R.jsx(mr,{present:o||d,children:({present:v})=>R.jsx(ne.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!v,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:v&&i})})});Xv.displayName=Qv;function Zv(e,t){return`${e}-trigger-${t}`}function qv(e,t){return`${e}-content-${t}`}var L2=Hv,F2=Kv,j2=Gv,$2=Xv,ci=e=>e.type==="checkbox",tr=e=>e instanceof Date,ot=e=>e==null;const Jv=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&Jv(e)&&!tr(e),ey=e=>Ie(e)&&e.target?ci(e.target)?e.target.checked:e.target.value:e,kk=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ty=(e,t)=>e.has(kk(t)),_k=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Ac=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function we(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ac&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!_k(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=we(e[o]));else return e;return t}var ol=e=>/^\w*$/.test(e),ve=e=>e===void 0,il=e=>Array.isArray(e)?e.filter(Boolean):[],Dc=e=>il(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(ol(t)?[t]:Dc(t)).reduce((o,i)=>ot(o)?o:o[i],e);return ve(r)||r===e?ve(e[t])?n:e[t]:r},ht=e=>typeof e=="boolean",ce=(e,t,n)=>{let r=-1;const o=ol(t)?[t]:Dc(t),i=o.length,s=i-1;for(;++r<i;){const l=o[r];let a=n;if(r!==s){const u=e[l];a=Ie(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=a,e=e[l]}};const Ts={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ic=T.createContext(null);Ic.displayName="HookFormContext";const sl=()=>T.useContext(Ic),V2=e=>{const{children:t,...n}=e;return T.createElement(Ic.Provider,{value:n},t)};var ny=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==_t.all&&(t._proxyFormState[s]=!r||_t.all),n&&(n[s]=!0),e[s]}});return o};const ll=typeof window<"u"?T.useLayoutEffect:T.useEffect;function Rk(e){const t=sl(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,l]=T.useState(n._formState),a=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ll(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&l({...n._formState,...u})}}),[o,r,i]),T.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>ny(s,n,a.current,!1),[s,n])}var mt=e=>typeof e=="string",iu=(e,t,n,r,o)=>mt(e)?(r&&t.watch.add(e),b(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),b(n,i))):(r&&(t.watchAll=!0),n),su=e=>ot(e)||!Jv(e);function $t(e,t,n=new WeakSet){if(su(e)||su(t))return e===t;if(tr(e)&&tr(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(tr(s)&&tr(l)||Ie(s)&&Ie(l)||Array.isArray(s)&&Array.isArray(l)?!$t(s,l,n):s!==l)return!1}}return!0}function Pk(e){const t=sl(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},a=T.useRef(o),u=T.useRef(l),d=T.useRef(void 0),c=T.useRef(n),v=T.useRef(r);u.current=l;const[w,S]=T.useState(()=>{const g=n._getWatch(r,a.current);return u.current?u.current(g):g}),y=T.useCallback(g=>{const E=iu(r,n._names,g||n._formValues,!1,a.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),x=T.useCallback(g=>{if(!i){const E=iu(r,n._names,g||n._formValues,!1,a.current);if(u.current){const _=u.current(E);$t(_,d.current)||(S(_),d.current=_)}else S(E)}},[n._formValues,n._names,i,r]);ll(()=>((c.current!==n||!$t(v.current,r))&&(c.current=n,v.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:g=>{x(g.values)}})),[n,s,r,x]),T.useEffect(()=>n._removeUnmounted());const h=c.current!==n,p=v.current,m=T.useMemo(()=>{if(i)return null;const g=!h&&!$t(p,r);return h||g?y():null},[i,h,r,p,y]);return m!==null?m:w}function Tk(e){const t=sl(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s}=e,l=ty(o._names.array,n),a=T.useMemo(()=>b(o._formValues,n,b(o._defaultValues,n,s)),[o,n,s]),u=Pk({control:o,name:n,defaultValue:a,exact:!0}),d=Rk({control:o,name:n,exact:!0}),c=T.useRef(e),v=T.useRef(void 0),w=T.useRef(o.register(n,{...e.rules,value:u,...ht(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const S=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(d.validatingFields,n)},error:{enumerable:!0,get:()=>b(d.errors,n)}}),[d,n]),y=T.useCallback(m=>w.current.onChange({target:{value:ey(m),name:n},type:Ts.CHANGE}),[n]),x=T.useCallback(()=>w.current.onBlur({target:{value:b(o._formValues,n),name:n},type:Ts.BLUR}),[n,o._formValues]),h=T.useCallback(m=>{const g=b(o._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:E=>m.setCustomValidity(E),reportValidity:()=>m.reportValidity()})},[o._fields,n]),p=T.useMemo(()=>({name:n,value:u,...ht(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:y,onBlur:x,ref:h}),[n,r,d.disabled,y,x,h,u]);return T.useEffect(()=>{const m=o._options.shouldUnregister||i,g=v.current;g&&g!==n&&!l&&o.unregister(g),o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(_,k)=>{const A=b(o._fields,_);A&&A._f&&(A._f.mount=k)};if(E(n,!0),m){const _=we(b(o._options.defaultValues,n,c.current.defaultValue));ce(o._defaultValues,n,_),ve(b(o._formValues,n))&&ce(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?m&&!o._state.action:m)?o.unregister(n):E(n,!1)}},[n,o,l,i]),T.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),T.useMemo(()=>({field:p,formState:d,fieldState:S}),[p,d,S])}const z2=e=>e.render(Tk(e));var bc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},lt=e=>Array.isArray(e)?e:[e],Tf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function ry(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Ie(o)&&i){const s=ry(o,i);Ie(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var Qe=e=>Ie(e)&&!Object.keys(e).length,Mc=e=>e.type==="file",Vt=e=>typeof e=="function",Ns=e=>{if(!Ac)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oy=e=>e.type==="select-multiple",Oc=e=>e.type==="radio",Nk=e=>Oc(e)||ci(e),Xl=e=>Ns(e)&&e.isConnected;function Ak(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ve(e)?r++:e[t[r++]];return e}function Dk(e){for(const t in e)if(e.hasOwnProperty(t)&&!ve(e[t]))return!1;return!0}function Te(e,t){const n=Array.isArray(t)?t:ol(t)?[t]:Dc(t),r=n.length===1?e:Ak(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ie(r)&&Qe(r)||Array.isArray(r)&&Dk(r))&&Te(e,n.slice(0,-1)),e}var Ik=e=>{for(const t in e)if(Vt(e[t]))return!0;return!1};function iy(e){return Array.isArray(e)||Ie(e)&&!Ik(e)}function lu(e,t={}){for(const n in e)iy(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lu(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Sr(e,t,n){n||(n=lu(t));for(const r in e)iy(e[r])?ve(t)||su(n[r])?n[r]=lu(e[r],Array.isArray(e[r])?[]:{}):Sr(e[r],ot(t)?{}:t[r],n[r]):n[r]=!$t(e[r],t[r]);return n}const Nf={value:!1,isValid:!1},Af={value:!0,isValid:!0};var sy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ve(e[0].attributes.value)?ve(e[0].value)||e[0].value===""?Af:{value:e[0].value,isValid:!0}:Af:Nf}return Nf},ly=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ve(e)?e:t?e===""?NaN:e&&+e:n&&mt(e)?new Date(e):r?r(e):e;const Df={isValid:!1,value:null};var ay=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Df):Df;function If(e){const t=e.ref;return Mc(t)?t.files:Oc(t)?ay(e.refs).value:oy(t)?[...t.selectedOptions].map(({value:n})=>n):ci(t)?sy(e.refs).value:ly(ve(t.value)?e.ref.value:t.value,e)}var bk=(e,t,n,r)=>{const o={};for(const i of e){const s=b(t,i);s&&ce(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},As=e=>e instanceof RegExp,xo=e=>ve(e)?e:As(e)?e.source:Ie(e)?As(e.value)?e.value.source:e.value:e,Mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched});const bf="AsyncFunction";var Mk=e=>!!e&&!!e.validate&&!!(Vt(e.validate)&&e.validate.constructor.name===bf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===bf)),Ok=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),au=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ur=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=b(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Ur(l,t))break}else if(Ie(l)&&Ur(l,t))break}}};function Mf(e,t,n){const r=b(e,n);if(r||ol(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=b(t,i),l=b(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:n}}var Lk=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Qe(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||_t.all))},Fk=(e,t,n)=>!e||!t||e===t||lt(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),jk=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,$k=(e,t)=>!il(b(e,t)).length&&Te(e,t),uy=(e,t,n)=>{const r=lt(b(e,n));return ce(r,"root",t[n]),ce(e,n,r),e};function Of(e,t,n="validate"){if(mt(e)||Array.isArray(e)&&e.every(mt)||ht(e)&&!e)return{type:n,message:mt(e)?e:"",ref:t}}var xr=e=>Ie(e)&&!As(e)?e:{value:e,message:""},uu=async(e,t,n,r,o,i)=>{const{ref:s,refs:l,required:a,maxLength:u,minLength:d,min:c,max:v,pattern:w,validate:S,name:y,valueAsNumber:x,mount:h}=e._f,p=b(n,y);if(!h||t.has(y))return{};const m=l?l[0]:s,g=B=>{o&&m.reportValidity&&(m.setCustomValidity(ht(B)?"":B||""),m.reportValidity())},E={},_=Oc(s),k=ci(s),A=_||k,j=(x||Mc(s))&&ve(s.value)&&ve(p)||Ns(s)&&s.value===""||p===""||Array.isArray(p)&&!p.length,F=bc.bind(null,y,r,E),W=(B,V,G,J=nn.maxLength,L=nn.minLength)=>{const K=B?V:G;E[y]={type:B?J:L,message:K,ref:s,...F(B?J:L,K)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&(j||ot(p))||ht(p)&&!p||k&&!sy(l).isValid||_&&!ay(l).isValid)){const{value:B,message:V}=mt(a)?{value:!!a,message:a}:xr(a);if(B&&(E[y]={type:nn.required,message:V,ref:m,...F(nn.required,V)},!r))return g(V),E}if(!j&&(!ot(c)||!ot(v))){let B,V;const G=xr(v),J=xr(c);if(!ot(p)&&!isNaN(p)){const L=s.valueAsNumber||p&&+p;ot(G.value)||(B=L>G.value),ot(J.value)||(V=L<J.value)}else{const L=s.valueAsDate||new Date(p),K=de=>new Date(new Date().toDateString()+" "+de),Y=s.type=="time",ae=s.type=="week";mt(G.value)&&p&&(B=Y?K(p)>K(G.value):ae?p>G.value:L>new Date(G.value)),mt(J.value)&&p&&(V=Y?K(p)<K(J.value):ae?p<J.value:L<new Date(J.value))}if((B||V)&&(W(!!B,G.message,J.message,nn.max,nn.min),!r))return g(E[y].message),E}if((u||d)&&!j&&(mt(p)||i&&Array.isArray(p))){const B=xr(u),V=xr(d),G=!ot(B.value)&&p.length>+B.value,J=!ot(V.value)&&p.length<+V.value;if((G||J)&&(W(G,B.message,V.message),!r))return g(E[y].message),E}if(w&&!j&&mt(p)){const{value:B,message:V}=xr(w);if(As(B)&&!p.match(B)&&(E[y]={type:nn.pattern,message:V,ref:s,...F(nn.pattern,V)},!r))return g(V),E}if(S){if(Vt(S)){const B=await S(p,n),V=Of(B,m);if(V&&(E[y]={...V,...F(nn.validate,V.message)},!r))return g(V.message),E}else if(Ie(S)){let B={};for(const V in S){if(!Qe(B)&&!r)break;const G=Of(await S[V](p,n),m,V);G&&(B={...G,...F(V,G.message)},g(G.message),r&&(E[y]=B))}if(!Qe(B)&&(E[y]={ref:m,...B},!r))return E}}return g(!0),E};const Vk={mode:_t.onSubmit,reValidateMode:_t.onChange,shouldFocusError:!0};function zk(e={}){let t={...Vk,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Vt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ie(t.defaultValues)||Ie(t.values)?we(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:we(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const v={array:Tf(),state:Tf()},w=t.criteriaMode===_t.all,S=C=>P=>{clearTimeout(u),u=setTimeout(C,P)},y=async C=>{if(!t.disabled&&(d.isValid||c.isValid||C)){const P=t.resolver?Qe((await k()).errors):await j(r,!0);P!==n.isValid&&v.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((C||Array.from(l.mount)).forEach(N=>{N&&(P?ce(n.validatingFields,N,P):Te(n.validatingFields,N))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Qe(n.validatingFields)}))},h=(C,P=[],N,O,M=!0,I=!0)=>{if(O&&N&&!t.disabled){if(s.action=!0,I&&Array.isArray(b(r,C))){const z=N(b(r,C),O.argA,O.argB);M&&ce(r,C,z)}if(I&&Array.isArray(b(n.errors,C))){const z=N(b(n.errors,C),O.argA,O.argB);M&&ce(n.errors,C,z),$k(n.errors,C)}if((d.touchedFields||c.touchedFields)&&I&&Array.isArray(b(n.touchedFields,C))){const z=N(b(n.touchedFields,C),O.argA,O.argB);M&&ce(n.touchedFields,C,z)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=Sr(o,i)),v.state.next({name:C,isDirty:W(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(i,C,P)},p=(C,P)=>{ce(n.errors,C,P),v.state.next({errors:n.errors})},m=C=>{n.errors=C,v.state.next({errors:n.errors,isValid:!1})},g=(C,P,N,O)=>{const M=b(r,C);if(M){const I=b(i,C,ve(N)?b(o,C):N);ve(I)||O&&O.defaultChecked||P?ce(i,C,P?I:If(M._f)):G(C,I),s.mount&&y()}},E=(C,P,N,O,M)=>{let I=!1,z=!1;const ue={name:C};if(!t.disabled){if(!N||O){(d.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ue.isDirty=W(),I=z!==ue.isDirty);const fe=$t(b(o,C),P);z=!!b(n.dirtyFields,C),fe?Te(n.dirtyFields,C):ce(n.dirtyFields,C,!0),ue.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||c.dirtyFields)&&z!==!fe}if(N){const fe=b(n.touchedFields,C);fe||(ce(n.touchedFields,C,N),ue.touchedFields=n.touchedFields,I=I||(d.touchedFields||c.touchedFields)&&fe!==N)}I&&M&&v.state.next(ue)}return I?ue:{}},_=(C,P,N,O)=>{const M=b(n.errors,C),I=(d.isValid||c.isValid)&&ht(P)&&n.isValid!==P;if(t.delayError&&N?(a=S(()=>p(C,N)),a(t.delayError)):(clearTimeout(u),a=null,N?ce(n.errors,C,N):Te(n.errors,C)),(N?!$t(M,N):M)||!Qe(O)||I){const z={...O,...I&&ht(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...z},v.state.next(z)}},k=async C=>{x(C,!0);const P=await t.resolver(i,t.context,bk(C||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},A=async C=>{const{errors:P}=await k(C);if(C)for(const N of C){const O=b(P,N);O?ce(n.errors,N,O):Te(n.errors,N)}else n.errors=P;return P},j=async(C,P,N={valid:!0})=>{for(const O in C){const M=C[O];if(M){const{_f:I,...z}=M;if(I){const ue=l.array.has(I.name),fe=M._f&&Mk(M._f);fe&&d.validatingFields&&x([I.name],!0);const We=await uu(M,l.disabled,i,w,t.shouldUseNativeValidation&&!P,ue);if(fe&&d.validatingFields&&x([I.name]),We[I.name]&&(N.valid=!1,P))break;!P&&(b(We,I.name)?ue?uy(n.errors,We,I.name):ce(n.errors,I.name,We[I.name]):Te(n.errors,I.name))}!Qe(z)&&await j(z,P,N)}}return N.valid},F=()=>{for(const C of l.unMount){const P=b(r,C);P&&(P._f.refs?P._f.refs.every(N=>!Xl(N)):!Xl(P._f.ref))&&U(C)}l.unMount=new Set},W=(C,P)=>!t.disabled&&(C&&P&&ce(i,C,P),!$t(de(),o)),B=(C,P,N)=>iu(C,l,{...s.mount?i:ve(P)?o:mt(C)?{[C]:P}:P},N,P),V=C=>il(b(s.mount?i:o,C,t.shouldUnregister?b(o,C,[]):[])),G=(C,P,N={})=>{const O=b(r,C);let M=P;if(O){const I=O._f;I&&(!I.disabled&&ce(i,C,ly(P,I)),M=Ns(I.ref)&&ot(P)?"":P,oy(I.ref)?[...I.ref.options].forEach(z=>z.selected=M.includes(z.value)):I.refs?ci(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(M)?z.checked=!!M.find(ue=>ue===z.value):z.checked=M===z.value||!!M)}):I.refs.forEach(z=>z.checked=z.value===M):Mc(I.ref)?I.ref.value="":(I.ref.value=M,I.ref.type||v.state.next({name:C,values:we(i)})))}(N.shouldDirty||N.shouldTouch)&&E(C,M,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&ae(C)},J=(C,P,N)=>{for(const O in P){if(!P.hasOwnProperty(O))return;const M=P[O],I=C+"."+O,z=b(r,I);(l.array.has(C)||Ie(M)||z&&!z._f)&&!tr(M)?J(I,M,N):G(I,M,N)}},L=(C,P,N={})=>{const O=b(r,C),M=l.array.has(C),I=we(P);ce(i,C,I),M?(v.array.next({name:C,values:we(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&N.shouldDirty&&v.state.next({name:C,dirtyFields:Sr(o,i),isDirty:W(C,I)})):O&&!O._f&&!ot(I)?J(C,I,N):G(C,I,N),au(C,l)&&v.state.next({...n,name:C}),v.state.next({name:s.mount?C:void 0,values:we(i)})},K=async C=>{s.mount=!0;const P=C.target;let N=P.name,O=!0;const M=b(r,N),I=fe=>{O=Number.isNaN(fe)||tr(fe)&&isNaN(fe.getTime())||$t(fe,b(i,N,fe))},z=Mr(t.mode),ue=Mr(t.reValidateMode);if(M){let fe,We;const At=P.type?If(M._f):ey(C),Dt=C.type===Ts.BLUR||C.type===Ts.FOCUS_OUT,wn=!Ok(M._f)&&!t.resolver&&!b(n.errors,N)&&!M._f.deps||jk(Dt,b(n.touchedFields,N),n.isSubmitted,ue,z),lo=au(N,l,Dt);ce(i,N,At),Dt?(!P||!P.readOnly)&&(M._f.onBlur&&M._f.onBlur(C),a&&a(0)):M._f.onChange&&M._f.onChange(C);const ao=E(N,At,Dt),di=!Qe(ao)||lo;if(!Dt&&v.state.next({name:N,type:C.type,values:we(i)}),wn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?Dt&&y():Dt||y()),di&&v.state.next({name:N,...lo?{}:ao});if(!Dt&&lo&&v.state.next({...n}),t.resolver){const{errors:uo}=await k([N]);if(I(At),O){const fl=Mf(n.errors,r,N),vr=Mf(uo,r,fl.name||N);fe=vr.error,N=vr.name,We=Qe(uo)}}else x([N],!0),fe=(await uu(M,l.disabled,i,w,t.shouldUseNativeValidation))[N],x([N]),I(At),O&&(fe?We=!1:(d.isValid||c.isValid)&&(We=await j(r,!0)));O&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&ae(M._f.deps),_(N,We,fe,ao))}},Y=(C,P)=>{if(b(n.errors,P)&&C.focus)return C.focus(),1},ae=async(C,P={})=>{let N,O;const M=lt(C);if(t.resolver){const I=await A(ve(C)?C:M);N=Qe(I),O=C?!M.some(z=>b(I,z)):N}else C?(O=(await Promise.all(M.map(async I=>{const z=b(r,I);return await j(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&y()):O=N=await j(r);return v.state.next({...!mt(C)||(d.isValid||c.isValid)&&N!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:N}:{},errors:n.errors}),P.shouldFocus&&!O&&Ur(r,Y,C?M:l.mount),O},de=(C,P)=>{let N={...s.mount?i:o};return P&&(N=ry(P.dirtyFields?n.dirtyFields:n.touchedFields,N)),ve(C)?N:mt(C)?b(N,C):C.map(O=>b(N,O))},Ae=(C,P)=>({invalid:!!b((P||n).errors,C),isDirty:!!b((P||n).dirtyFields,C),error:b((P||n).errors,C),isValidating:!!b(n.validatingFields,C),isTouched:!!b((P||n).touchedFields,C)}),St=C=>{C&<(C).forEach(P=>Te(n.errors,P)),v.state.next({errors:C?n.errors:{}})},X=(C,P,N)=>{const O=(b(r,C,{_f:{}})._f||{}).ref,M=b(n.errors,C)||{},{ref:I,message:z,type:ue,...fe}=M;ce(n.errors,C,{...fe,...P,ref:O}),v.state.next({name:C,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&O&&O.focus&&O.focus()},se=(C,P)=>Vt(C)?v.state.subscribe({next:N=>"values"in N&&C(B(void 0,P),N)}):B(C,P,!0),le=C=>v.state.subscribe({next:P=>{Fk(C.name,P.name,C.exact)&&Lk(P,C.formState||d,dt,C.reRenderRoot)&&C.callback({values:{...i},...n,...P,defaultValues:o})}}).unsubscribe,Re=C=>(s.mount=!0,c={...c,...C.formState},le({...C,formState:c})),U=(C,P={})=>{for(const N of C?lt(C):l.mount)l.mount.delete(N),l.array.delete(N),P.keepValue||(Te(r,N),Te(i,N)),!P.keepError&&Te(n.errors,N),!P.keepDirty&&Te(n.dirtyFields,N),!P.keepTouched&&Te(n.touchedFields,N),!P.keepIsValidating&&Te(n.validatingFields,N),!t.shouldUnregister&&!P.keepDefaultValue&&Te(o,N);v.state.next({values:we(i)}),v.state.next({...n,...P.keepDirty?{isDirty:W()}:{}}),!P.keepIsValid&&y()},H=({disabled:C,name:P})=>{(ht(C)&&s.mount||C||l.disabled.has(P))&&(C?l.disabled.add(P):l.disabled.delete(P))},me=(C,P={})=>{let N=b(r,C);const O=ht(P.disabled)||ht(t.disabled);return ce(r,C,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:C}},name:C,mount:!0,...P}}),l.mount.add(C),N?H({disabled:ht(P.disabled)?P.disabled:t.disabled,name:C}):g(C,!0,P.value),{...O?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:xo(P.min),max:xo(P.max),minLength:xo(P.minLength),maxLength:xo(P.maxLength),pattern:xo(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:M=>{if(M){me(C,P),N=b(r,C);const I=ve(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,z=Nk(I),ue=N._f.refs||[];if(z?ue.find(fe=>fe===I):I===N._f.ref)return;ce(r,C,{_f:{...N._f,...z?{refs:[...ue.filter(Xl),I,...Array.isArray(b(o,C))?[{}]:[]],ref:{type:I.type,name:C}}:{ref:I}}}),g(C,!1,void 0,I)}else N=b(r,C,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(ty(l.array,C)&&s.action)&&l.unMount.add(C)}}},re=()=>t.shouldFocusError&&Ur(r,Y,l.mount),oe=C=>{ht(C)&&(v.state.next({disabled:C}),Ur(r,(P,N)=>{const O=b(r,N);O&&(P.disabled=O._f.disabled||C,Array.isArray(O._f.refs)&&O._f.refs.forEach(M=>{M.disabled=O._f.disabled||C}))},0,!1))},ee=(C,P)=>async N=>{let O;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let M=we(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,M=we(z)}else await j(r);if(l.disabled.size)for(const I of l.disabled)Te(M,I);if(Te(n.errors,"root"),Qe(n.errors)){v.state.next({errors:{}});try{await C(M,N)}catch(I){O=I}}else P&&await P({...n.errors},N),re(),setTimeout(re);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(n.errors)&&!O,submitCount:n.submitCount+1,errors:n.errors}),O)throw O},je=(C,P={})=>{b(r,C)&&(ve(P.defaultValue)?L(C,we(b(o,C))):(L(C,P.defaultValue),ce(o,C,we(P.defaultValue))),P.keepTouched||Te(n.touchedFields,C),P.keepDirty||(Te(n.dirtyFields,C),n.isDirty=P.defaultValue?W(C,we(b(o,C))):W()),P.keepError||(Te(n.errors,C),d.isValid&&y()),v.state.next({...n}))},$e=(C,P={})=>{const N=C?we(C):o,O=we(N),M=Qe(C),I=M?o:O;if(P.keepDefaultValues||(o=N),!P.keepValues){if(P.keepDirtyValues){const z=new Set([...l.mount,...Object.keys(Sr(o,i))]);for(const ue of Array.from(z))b(n.dirtyFields,ue)?ce(I,ue,b(i,ue)):L(ue,b(I,ue))}else{if(Ac&&ve(C))for(const z of l.mount){const ue=b(r,z);if(ue&&ue._f){const fe=Array.isArray(ue._f.refs)?ue._f.refs[0]:ue._f.ref;if(Ns(fe)){const We=fe.closest("form");if(We){We.reset();break}}}}if(P.keepFieldsRef)for(const z of l.mount)L(z,b(I,z));else r={}}i=t.shouldUnregister?P.keepDefaultValues?we(o):{}:we(I),v.array.next({values:{...I}}),v.state.next({values:{...I}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!P.keepIsValid||!!P.keepDirtyValues||!t.shouldUnregister&&!Qe(I),s.watch=!!t.shouldUnregister,v.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:M?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!$t(C,o)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Sr(o,i):n.dirtyFields:P.keepDefaultValues&&C?Sr(o,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Yt=(C,P)=>$e(Vt(C)?C(i):C,P),Gt=(C,P={})=>{const N=b(r,C),O=N&&N._f;if(O){const M=O.refs?O.refs[0]:O.ref;M.focus&&(M.focus(),P.shouldSelect&&Vt(M.select)&&M.select())}},dt=C=>{n={...n,...C}},Ve={control:{register:me,unregister:U,getFieldState:Ae,handleSubmit:ee,setError:X,_subscribe:le,_runSchema:k,_focusError:re,_getWatch:B,_getDirty:W,_setValid:y,_setFieldArray:h,_setDisabledField:H,_setErrors:m,_getFieldArray:V,_reset:$e,_resetDefaultValues:()=>Vt(t.defaultValues)&&t.defaultValues().then(C=>{Yt(C,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:oe,_subjects:v,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(C){s=C},get _defaultValues(){return o},get _names(){return l},set _names(C){l=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:Re,trigger:ae,register:me,handleSubmit:ee,watch:se,setValue:L,getValues:de,reset:Yt,resetField:je,clearErrors:St,unregister:U,setError:X,setFocus:Gt,getFieldState:Ae};return{...Ve,formControl:Ve}}var En=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Zl=(e,t,n={})=>n.shouldFocus||ve(n.shouldFocus)?n.focusName||`${e}.${ve(n.focusIndex)?t:n.focusIndex}.`:"",ql=(e,t)=>[...e,...lt(t)],Jl=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ea(e,t,n){return[...e.slice(0,t),...lt(n),...e.slice(t)]}var ta=(e,t,n)=>Array.isArray(e)?(ve(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],na=(e,t)=>[...lt(t),...lt(e)];function Bk(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return il(r).length?r:[]}var ra=(e,t)=>ve(t)?[]:Bk(e,lt(t).sort((n,r)=>n-r)),oa=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Lf=(e,t,n)=>(e[t]=n,e);function B2(e){const t=sl(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:s}=e,[l,a]=T.useState(n._getFieldArray(r)),u=T.useRef(n._getFieldArray(r).map(En)),d=T.useRef(!1);n._names.array.add(r),T.useMemo(()=>s&&l.length>=0&&n.register(r,s),[n,r,l.length,s]),ll(()=>n._subjects.array.subscribe({next:({values:g,name:E})=>{if(E===r||!E){const _=b(g,r);Array.isArray(_)&&(a(_),u.current=_.map(En))}}}).unsubscribe,[n,r]);const c=T.useCallback(g=>{d.current=!0,n._setFieldArray(r,g)},[n,r]),v=(g,E)=>{const _=lt(we(g)),k=ql(n._getFieldArray(r),_);n._names.focus=Zl(r,k.length-1,E),u.current=ql(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,ql,{argA:Jl(g)})},w=(g,E)=>{const _=lt(we(g)),k=na(n._getFieldArray(r),_);n._names.focus=Zl(r,0,E),u.current=na(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,na,{argA:Jl(g)})},S=g=>{const E=ra(n._getFieldArray(r),g);u.current=ra(u.current,g),c(E),a(E),!Array.isArray(b(n._fields,r))&&ce(n._fields,r,void 0),n._setFieldArray(r,E,ra,{argA:g})},y=(g,E,_)=>{const k=lt(we(E)),A=ea(n._getFieldArray(r),g,k);n._names.focus=Zl(r,g,_),u.current=ea(u.current,g,k.map(En)),c(A),a(A),n._setFieldArray(r,A,ea,{argA:g,argB:Jl(E)})},x=(g,E)=>{const _=n._getFieldArray(r);oa(_,g,E),oa(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,oa,{argA:g,argB:E},!1)},h=(g,E)=>{const _=n._getFieldArray(r);ta(_,g,E),ta(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,ta,{argA:g,argB:E},!1)},p=(g,E)=>{const _=we(E),k=Lf(n._getFieldArray(r),g,_);u.current=[...k].map((A,j)=>!A||j===g?En():u.current[j]),c(k),a([...k]),n._setFieldArray(r,k,Lf,{argA:g,argB:_},!0,!1)},m=g=>{const E=lt(we(g));u.current=E.map(En),c([...E]),a([...E]),n._setFieldArray(r,[...E],_=>_,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,au(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!Mr(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Mr(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(g=>{const E=b(g.errors,r),_=b(n._formState.errors,r);(_?!E&&_.type||E&&(_.type!==E.type||_.message!==E.message):E&&E.type)&&(E?ce(n._formState.errors,r,E):Te(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const g=b(n._fields,r);g&&g._f&&!(Mr(n._options.reValidateMode).isOnSubmit&&Mr(n._options.mode).isOnSubmit)&&uu(g,n._names.disabled,n._formValues,n._options.criteriaMode===_t.all,n._options.shouldUseNativeValidation,!0).then(E=>!Qe(E)&&n._subjects.state.next({errors:uy(n._formState.errors,E,r)}))}n._subjects.state.next({name:r,values:we(n._formValues)}),n._names.focus&&Ur(n._fields,(g,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&g.focus)return g.focus(),1}),n._names.focus="",n._setValid(),d.current=!1},[l,r,n]),T.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{const g=(E,_)=>{const k=b(n._fields,E);k&&k._f&&(k._f.mount=_)};n._options.shouldUnregister||i?n.unregister(r):g(r,!1)}),[r,n,o,i]),{swap:T.useCallback(x,[c,r,n]),move:T.useCallback(h,[c,r,n]),prepend:T.useCallback(w,[c,r,n]),append:T.useCallback(v,[c,r,n]),remove:T.useCallback(S,[c,r,n]),insert:T.useCallback(y,[c,r,n]),update:T.useCallback(p,[c,r,n]),replace:T.useCallback(m,[c,r,n]),fields:T.useMemo(()=>l.map((g,E)=>({...g,[o]:u.current[E]||En()})),[l,o])}}function U2(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,o]=T.useState({isDirty:!1,isValidating:!1,isLoading:Vt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Vt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Vt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=zk(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,ll(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),T.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),T.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),T.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),T.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),T.useEffect(()=>{e.values&&!$t(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),T.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=ny(r,i),t.current}var Uk="Label",cy=f.forwardRef((e,t)=>R.jsx(xm.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));cy.displayName=Uk;var H2=cy;const Ff=(e,t,n)=>{if(e&&"reportValidity"in e){const r=b(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ff(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Ff(o,n,e))}},jf=(e,t)=>{t.shouldUseNativeValidation&&cu(e,t);const n={};for(const r in e){const o=b(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Hk(t.names||Object.keys(e),r)){const s=Object.assign({},b(n,r));ce(s,"root",i),ce(n,r,s)}else ce(n,r,i)}return n},Hk=(e,t)=>{const n=$f(t);return e.some(r=>$f(r).match(`^${n}\\.\\d+`))};function $f(e){return e.replace(/\]|\[/g,"")}function Vf(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Wk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function Kk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if(r.code==="invalid_union"&&r.errors.length>0){var l=r.errors[0][0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(d){return d.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function W2(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(Vf(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return Array.isArray(l==null?void 0:l.issues)}(s))return{values:{},errors:jf(Wk(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(Vf(function(){return Promise.resolve((n.mode==="sync"?ig:sg)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return l instanceof lg}(s))return{values:{},errors:jf(Kk(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function dy(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var al="Checkbox",[Yk]=yn(al),[Gk,Lc]=Yk(al);function Qk(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:l,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:c}=e,[v,w]=ur({prop:n,defaultProp:o??!1,onChange:a,caller:al}),[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useRef(!1),m=S?!!s||!!S.closest("form"):!0,g={checked:v,disabled:i,setChecked:w,control:S,setControl:y,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:$n(o)?!1:o,isFormControl:m,bubbleInput:x,setBubbleInput:h};return R.jsx(Gk,{scope:t,...g,children:qk(c)?c(g):r})}var fy="CheckboxTrigger",py=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:l,checked:a,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:v,isFormControl:w,bubbleInput:S}=Lc(fy,e),y=he(o,d),x=f.useRef(a);return f.useEffect(()=>{const h=i==null?void 0:i.form;if(h){const p=()=>c(x.current);return h.addEventListener("reset",p),()=>h.removeEventListener("reset",p)}},[i,c]),R.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":$n(a)?"mixed":a,"aria-required":u,"data-state":yy(a),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:y,onKeyDown:Q(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:Q(n,h=>{c(p=>$n(p)?!0:!p),S&&w&&(v.current=h.isPropagationStopped(),v.current||h.stopPropagation())})})});py.displayName=fy;var Xk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:a,onCheckedChange:u,form:d,...c}=e;return R.jsx(Qk,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:v})=>R.jsxs(R.Fragment,{children:[R.jsx(py,{...c,ref:t,__scopeCheckbox:n}),v&&R.jsx(vy,{__scopeCheckbox:n})]})})});Xk.displayName=al;var hy="CheckboxIndicator",Zk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Lc(hy,n);return R.jsx(mr,{present:r||$n(i.checked)||i.checked===!0,children:R.jsx(ne.span,{"data-state":yy(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Zk.displayName=hy;var my="CheckboxBubbleInput",vy=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:l,disabled:a,name:u,value:d,form:c,bubbleInput:v,setBubbleInput:w}=Lc(my,e),S=he(n,w),y=dy(i),x=ev(r);f.useEffect(()=>{const p=v;if(!p)return;const m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set,_=!o.current;if(y!==i&&E){const k=new Event("click",{bubbles:_});p.indeterminate=$n(i),E.call(p,$n(i)?!1:i),p.dispatchEvent(k)}},[v,y,i,o]);const h=f.useRef($n(i)?!1:i);return R.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??h.current,required:l,disabled:a,name:u,value:d,form:c,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vy.displayName=my;function qk(e){return typeof e=="function"}function $n(e){return e==="indeterminate"}function yy(e){return $n(e)?"indeterminate":e?"checked":"unchecked"}var Jk=[" ","Enter","ArrowUp","ArrowDown"],e_=[" ","Enter"],dr="Select",[ul,cl,t_]=Lv(dr),[io]=yn(dr,[t_,Js]),dl=Js(),[n_,Yn]=io(dr),[r_,o_]=io(dr),gy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:d,autoComplete:c,disabled:v,required:w,form:S}=e,y=dl(t),[x,h]=f.useState(null),[p,m]=f.useState(null),[g,E]=f.useState(!1),_=Tc(u),[k,A]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:dr}),[j,F]=ur({prop:s,defaultProp:l,onChange:a,caller:dr}),W=f.useRef(null),B=x?S||!!x.closest("form"):!0,[V,G]=f.useState(new Set),J=Array.from(V).map(L=>L.props.value).join(";");return R.jsx(cv,{...y,children:R.jsxs(n_,{required:w,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:g,onValueNodeHasChildrenChange:E,contentId:cn(),value:j,onValueChange:F,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:W,disabled:v,children:[R.jsx(ul.Provider,{scope:t,children:R.jsx(r_,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(L=>{G(K=>new Set(K).add(L))},[]),onNativeOptionRemove:f.useCallback(L=>{G(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:n})}),B?R.jsxs(By,{"aria-hidden":!0,required:w,tabIndex:-1,name:d,autoComplete:c,value:j,onChange:L=>F(L.target.value),disabled:v,form:S,children:[j===void 0?R.jsx("option",{value:""}):null,Array.from(V)]},J):null]})})};gy.displayName=dr;var wy="SelectTrigger",xy=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dl(n),s=Yn(wy,n),l=s.disabled||r,a=he(t,s.onTriggerChange),u=cl(n),d=f.useRef("touch"),[c,v,w]=Hy(y=>{const x=u().filter(m=>!m.disabled),h=x.find(m=>m.value===s.value),p=Wy(x,y,h);p!==void 0&&s.onValueChange(p.value)}),S=y=>{l||(s.onOpenChange(!0),w()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return R.jsx(dv,{asChild:!0,...i,children:R.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Uy(s.value)?"":void 0,...o,ref:a,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&S(y)}),onPointerDown:Q(o.onPointerDown,y=>{d.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:Q(o.onKeyDown,y=>{const x=c.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&v(y.key),!(x&&y.key===" ")&&Jk.includes(y.key)&&(S(),y.preventDefault())})})})});xy.displayName=wy;var Sy="SelectValue",Ey=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...l}=e,a=Yn(Sy,n),{onValueNodeHasChildrenChange:u}=a,d=i!==void 0,c=he(t,a.onValueNodeChange);return qe(()=>{u(d)},[u,d]),R.jsx(ne.span,{...l,ref:c,style:{pointerEvents:"none"},children:Uy(a.value)?R.jsx(R.Fragment,{children:s}):i})});Ey.displayName=Sy;var i_="SelectIcon",Cy=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return R.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Cy.displayName=i_;var s_="SelectPortal",ky=e=>R.jsx(xc,{asChild:!0,...e});ky.displayName=s_;var fr="SelectContent",_y=f.forwardRef((e,t)=>{const n=Yn(fr,e.__scopeSelect),[r,o]=f.useState();if(qe(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?to.createPortal(R.jsx(Ry,{scope:e.__scopeSelect,children:R.jsx(ul.Slot,{scope:e.__scopeSelect,children:R.jsx("div",{children:e.children})})}),i):null}return R.jsx(Py,{...e,ref:t})});_y.displayName=fr;var Ot=10,[Ry,Gn]=io(fr),l_="SelectContentImpl",a_=ei("SelectContent.RemoveScroll"),Py=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x,...h}=e,p=Yn(fr,n),[m,g]=f.useState(null),[E,_]=f.useState(null),k=he(t,U=>g(U)),[A,j]=f.useState(null),[F,W]=f.useState(null),B=cl(n),[V,G]=f.useState(!1),J=f.useRef(!1);f.useEffect(()=>{if(m)return Bf(m)},[m]),Pm();const L=f.useCallback(U=>{const[H,...me]=B().map(ee=>ee.ref.current),[re]=me.slice(-1),oe=document.activeElement;for(const ee of U)if(ee===oe||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===H&&E&&(E.scrollTop=0),ee===re&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==oe))return},[B,E]),K=f.useCallback(()=>L([A,m]),[L,A,m]);f.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:Y,triggerPointerDownPosRef:ae}=p;f.useEffect(()=>{if(m){let U={x:0,y:0};const H=re=>{var oe,ee;U={x:Math.abs(Math.round(re.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(re.pageY)-(((ee=ae.current)==null?void 0:ee.y)??0))}},me=re=>{U.x<=10&&U.y<=10?re.preventDefault():m.contains(re.target)||Y(!1),document.removeEventListener("pointermove",H),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",me,{capture:!0})}}},[m,Y,ae]),f.useEffect(()=>{const U=()=>Y(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[Y]);const[de,Ae]=Hy(U=>{const H=B().filter(oe=>!oe.disabled),me=H.find(oe=>oe.ref.current===document.activeElement),re=Wy(H,U,me);re&&setTimeout(()=>re.ref.current.focus())}),St=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&(j(U),re&&(J.current=!0))},[p.value]),X=f.useCallback(()=>m==null?void 0:m.focus(),[m]),se=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&W(U)},[p.value]),le=r==="popper"?du:Ty,Re=le===du?{side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x}:{};return R.jsx(Ry,{scope:n,content:m,viewport:E,onViewportChange:_,itemRefCallback:St,selectedItem:A,onItemLeave:X,itemTextRefCallback:se,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:V,searchRef:de,children:R.jsx(Sc,{as:a_,allowPinchZoom:!0,children:R.jsx(wc,{asChild:!0,trapped:p.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Q(o,U=>{var H;(H=p.trigger)==null||H.focus({preventScroll:!0}),U.preventDefault()}),children:R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:R.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:U=>U.preventDefault(),...h,...Re,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:Q(h.onKeyDown,U=>{const H=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!H&&U.key.length===1&&Ae(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let re=B().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(U.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const oe=U.target,ee=re.indexOf(oe);re=re.slice(ee+1)}setTimeout(()=>L(re)),U.preventDefault()}})})})})})})});Py.displayName=l_;var u_="SelectItemAlignedPosition",Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(fr,n),s=Gn(fr,n),[l,a]=f.useState(null),[u,d]=f.useState(null),c=he(t,k=>d(k)),v=cl(n),w=f.useRef(!1),S=f.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=s,m=f.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-A.left,ee=j.left-oe,je=k.left-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.left=dt+"px"}else{const oe=A.right-F.right,ee=window.innerWidth-j.right-oe,je=window.innerWidth-k.right-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.right=dt+"px"}const W=v(),B=window.innerHeight-Ot*2,V=y.scrollHeight,G=window.getComputedStyle(u),J=parseInt(G.borderTopWidth,10),L=parseInt(G.paddingTop,10),K=parseInt(G.borderBottomWidth,10),Y=parseInt(G.paddingBottom,10),ae=J+L+V+Y+K,de=Math.min(x.offsetHeight*5,ae),Ae=window.getComputedStyle(y),St=parseInt(Ae.paddingTop,10),X=parseInt(Ae.paddingBottom,10),se=k.top+k.height/2-Ot,le=B-se,Re=x.offsetHeight/2,U=x.offsetTop+Re,H=J+L+U,me=ae-H;if(H<=se){const oe=W.length>0&&x===W[W.length-1].ref.current;l.style.bottom="0px";const ee=u.clientHeight-y.offsetTop-y.offsetHeight,je=Math.max(le,Re+(oe?X:0)+ee+K),$e=H+je;l.style.height=$e+"px"}else{const oe=W.length>0&&x===W[0].ref.current;l.style.top="0px";const je=Math.max(se,J+y.offsetTop+(oe?St:0)+Re)+me;l.style.height=je+"px",y.scrollTop=H-se+y.offsetTop}l.style.margin=`${Ot}px 0`,l.style.minHeight=de+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[v,i.trigger,i.valueNode,l,u,y,x,h,i.dir,r]);qe(()=>m(),[m]);const[g,E]=f.useState();qe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=f.useCallback(k=>{k&&S.current===!0&&(m(),p==null||p(),S.current=!1)},[m,p]);return R.jsx(d_,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:_,children:R.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:g},children:R.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ty.displayName=u_;var c_="SelectPopperPosition",du=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ot,...i}=e,s=dl(n);return R.jsx(fv,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});du.displayName=c_;var[d_,Fc]=io(fr,{}),fu="SelectViewport",Ny=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Gn(fu,n),s=Fc(fu,n),l=he(t,i.onViewportChange),a=f.useRef(0);return R.jsxs(R.Fragment,{children:[R.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),R.jsx(ul.Slot,{scope:n,children:R.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&c){const w=Math.abs(a.current-d.scrollTop);if(w>0){const S=window.innerHeight-Ot*2,y=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(y,x);if(h<S){const p=h+w,m=Math.min(S,p),g=p-m;c.style.height=m+"px",c.style.bottom==="0px"&&(d.scrollTop=g>0?g:0,c.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});Ny.displayName=fu;var Ay="SelectGroup",[f_,p_]=io(Ay),h_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn();return R.jsx(f_,{scope:n,id:o,children:R.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});h_.displayName=Ay;var Dy="SelectLabel",Iy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=p_(Dy,n);return R.jsx(ne.div,{id:o.id,...r,ref:t})});Iy.displayName=Dy;var Ds="SelectItem",[m_,by]=io(Ds),My=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Yn(Ds,n),a=Gn(Ds,n),u=l.value===r,[d,c]=f.useState(i??""),[v,w]=f.useState(!1),S=he(t,p=>{var m;return(m=a.itemRefCallback)==null?void 0:m.call(a,p,r,o)}),y=cn(),x=f.useRef("touch"),h=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return R.jsx(m_,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:f.useCallback(p=>{c(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:R.jsx(ul.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:R.jsx(ne.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:Q(s.onFocus,()=>w(!0)),onBlur:Q(s.onBlur,()=>w(!1)),onClick:Q(s.onClick,()=>{x.current!=="mouse"&&h()}),onPointerUp:Q(s.onPointerUp,()=>{x.current==="mouse"&&h()}),onPointerDown:Q(s.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:Q(s.onPointerMove,p=>{var m;x.current=p.pointerType,o?(m=a.onItemLeave)==null||m.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=a.onItemLeave)==null||m.call(a))}),onKeyDown:Q(s.onKeyDown,p=>{var g;((g=a.searchRef)==null?void 0:g.current)!==""&&p.key===" "||(e_.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});My.displayName=Ds;var _o="SelectItemText",Oy=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn(_o,n),l=Gn(_o,n),a=by(_o,n),u=o_(_o,n),[d,c]=f.useState(null),v=he(t,h=>c(h),a.onItemTextChange,h=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,h,a.value,a.disabled)}),w=d==null?void 0:d.textContent,S=f.useMemo(()=>R.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return qe(()=>(y(S),()=>x(S)),[y,x,S]),R.jsxs(R.Fragment,{children:[R.jsx(ne.span,{id:a.textId,...i,ref:v}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?to.createPortal(i.children,s.valueNode):null]})});Oy.displayName=_o;var Ly="SelectItemIndicator",Fy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return by(Ly,n).isSelected?R.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});Fy.displayName=Ly;var pu="SelectScrollUpButton",jy=f.forwardRef((e,t)=>{const n=Gn(pu,e.__scopeSelect),r=Fc(pu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});jy.displayName=pu;var hu="SelectScrollDownButton",$y=f.forwardRef((e,t)=>{const n=Gn(hu,e.__scopeSelect),r=Fc(hu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<u;i(d)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});$y.displayName=hu;var Vy=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Gn("SelectScrollButton",n),s=f.useRef(null),l=cl(n),a=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>a(),[a]),qe(()=>{var d;const u=l().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),R.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Q(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{a()})})}),v_="SelectSeparator",zy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return R.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});zy.displayName=v_;var mu="SelectArrow",y_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dl(n),i=Yn(mu,n),s=Gn(mu,n);return i.open&&s.position==="popper"?R.jsx(pv,{...o,...r,ref:t}):null});y_.displayName=mu;var g_="SelectBubbleInput",By=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),i=he(r,o),s=dy(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&d){const c=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(c)}},[s,t]),R.jsx(ne.select,{...n,style:{...hv,...n.style},ref:i,defaultValue:t})});By.displayName=g_;function Uy(e){return e===""||e===void 0}function Hy(e){const t=Bn(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wy(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=w_(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function w_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var K2=gy,Y2=xy,G2=Ey,Q2=Cy,X2=ky,Z2=_y,q2=Ny,J2=Iy,eR=My,tR=Oy,nR=Fy,rR=jy,oR=$y,iR=zy;export{H_ as $,I2 as A,T2 as B,hC as C,vC as D,dC as E,J_ as F,h2 as G,Y_ as H,p2 as I,b_ as J,o2 as K,mm as L,F2 as M,j2 as N,pC as O,fC as P,$2 as Q,S2 as R,x2 as S,N_ as T,L2 as U,X_ as V,m2 as W,g2 as X,a2 as Y,U_ as Z,s2 as _,Zm as a,W_ as a0,B_ as a1,L_ as a2,H2 as a3,sl as a4,V2 as a5,z2 as a6,U2 as a7,W2 as a8,Xk as a9,M_ as aA,r2 as aB,K_ as aC,y2 as aD,e2 as aE,d2 as aF,G_ as aG,c2 as aH,l2 as aI,t2 as aJ,O_ as aK,Q_ as aL,__ as aM,Sw as aN,k_ as aO,Kc as aP,T as aQ,R_ as aR,Zk as aa,Y2 as ab,Q2 as ac,F_ as ad,rR as ae,V_ as af,oR as ag,X2 as ah,Z2 as ai,q2 as aj,J2 as ak,eR as al,nR as am,tR as an,iR as ao,K2 as ap,G2 as aq,B2 as ar,f2 as as,v2 as at,j_ as au,$_ as av,z_ as aw,i2 as ax,Z_ as ay,w2 as az,mC as b,A_ as c,D_ as d,cC as e,R2 as f,Uf as g,C2 as h,k2 as i,R as j,_2 as k,n2 as l,Kn as m,q_ as n,u2 as o,A2 as p,N2 as q,f as r,D2 as s,T_ as t,I_ as u,M2 as v,O2 as w,b2 as x,P2 as y,P_ as z};
|
|
324
|
-
//# sourceMappingURL=react-vendor-
|
|
318
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return f.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_2=kv,R2=_v,P2=Rv,T2=Pv,N2=Tv,A2=bv,D2=Ov,I2=Av,b2=Iv;function Lv(e){const t=e+"CollectionProvider",[n,r]=yn(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:x,children:h}=y,p=T.useRef(null),m=T.useRef(new Map).current;return R.jsx(o,{scope:x,itemMap:m,collectionRef:p,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=ei(l),u=T.forwardRef((y,x)=>{const{scope:h,children:p}=y,m=i(l,h),g=he(x,m.collectionRef);return R.jsx(a,{ref:g,children:p})});u.displayName=l;const d=e+"CollectionItemSlot",c="data-radix-collection-item",v=ei(d),w=T.forwardRef((y,x)=>{const{scope:h,children:p,...m}=y,g=T.useRef(null),E=he(x,g),_=i(d,h);return T.useEffect(()=>(_.itemMap.set(g,{ref:g,...m}),()=>void _.itemMap.delete(g))),R.jsx(v,{[c]:"",ref:E,children:p})});w.displayName=d;function S(y){const x=i(e+"CollectionConsumer",y);return T.useCallback(()=>{const p=x.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${c}]`));return Array.from(x.itemMap.values()).sort((_,k)=>m.indexOf(_.ref.current)-m.indexOf(k.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:s,Slot:u,ItemSlot:w},S,r]}var ak=f.createContext(void 0);function Tc(e){const t=f.useContext(ak);return e||t||"ltr"}var Ql="rovingFocusGroup.onEntryFocus",uk={bubbles:!1,cancelable:!0},ui="RovingFocusGroup",[ou,Fv,ck]=Lv(ui),[dk,jv]=yn(ui,[ck]),[fk,pk]=dk(ui),$v=f.forwardRef((e,t)=>R.jsx(ou.Provider,{scope:e.__scopeRovingFocusGroup,children:R.jsx(ou.Slot,{scope:e.__scopeRovingFocusGroup,children:R.jsx(hk,{...e,ref:t})})}));$v.displayName=ui;var hk=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:a,onEntryFocus:u,preventScrollOnEntryFocus:d=!1,...c}=e,v=f.useRef(null),w=he(t,v),S=Tc(i),[y,x]=ur({prop:s,defaultProp:l??null,onChange:a,caller:ui}),[h,p]=f.useState(!1),m=Bn(u),g=Fv(n),E=f.useRef(!1),[_,k]=f.useState(0);return f.useEffect(()=>{const A=v.current;if(A)return A.addEventListener(Ql,m),()=>A.removeEventListener(Ql,m)},[m]),R.jsx(fk,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:y,onItemFocus:f.useCallback(A=>x(A),[x]),onItemShiftTab:f.useCallback(()=>p(!0),[]),onFocusableItemAdd:f.useCallback(()=>k(A=>A+1),[]),onFocusableItemRemove:f.useCallback(()=>k(A=>A-1),[]),children:R.jsx(ne.div,{tabIndex:h||_===0?-1:0,"data-orientation":r,...c,ref:w,style:{outline:"none",...e.style},onMouseDown:Q(e.onMouseDown,()=>{E.current=!0}),onFocus:Q(e.onFocus,A=>{const j=!E.current;if(A.target===A.currentTarget&&j&&!h){const F=new CustomEvent(Ql,uk);if(A.currentTarget.dispatchEvent(F),!F.defaultPrevented){const W=g().filter(L=>L.focusable),B=W.find(L=>L.active),V=W.find(L=>L.id===y),J=[B,V,...W].filter(Boolean).map(L=>L.ref.current);Bv(J,d)}}E.current=!1}),onBlur:Q(e.onBlur,()=>p(!1))})})}),Vv="RovingFocusGroupItem",zv=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...l}=e,a=cn(),u=i||a,d=pk(Vv,n),c=d.currentTabStopId===u,v=Fv(n),{onFocusableItemAdd:w,onFocusableItemRemove:S,currentTabStopId:y}=d;return f.useEffect(()=>{if(r)return w(),()=>S()},[r,w,S]),R.jsx(ou.ItemSlot,{scope:n,id:u,focusable:r,active:o,children:R.jsx(ne.span,{tabIndex:c?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:Q(e.onMouseDown,x=>{r?d.onItemFocus(u):x.preventDefault()}),onFocus:Q(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:Q(e.onKeyDown,x=>{if(x.key==="Tab"&&x.shiftKey){d.onItemShiftTab();return}if(x.target!==x.currentTarget)return;const h=yk(x,d.orientation,d.dir);if(h!==void 0){if(x.metaKey||x.ctrlKey||x.altKey||x.shiftKey)return;x.preventDefault();let m=v().filter(g=>g.focusable).map(g=>g.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const g=m.indexOf(x.currentTarget);m=d.loop?gk(m,g+1):m.slice(g+1)}setTimeout(()=>Bv(m))}}),children:typeof s=="function"?s({isCurrentTabStop:c,hasTabStop:y!=null}):s})})});zv.displayName=Vv;var mk={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vk(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function yk(e,t,n){const r=vk(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return mk[r]}function Bv(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function gk(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wk=$v,xk=zv,rl="Tabs",[Sk]=yn(rl,[jv]),Uv=jv(),[Ek,Nc]=Sk(rl),Hv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:s="horizontal",dir:l,activationMode:a="automatic",...u}=e,d=Tc(l),[c,v]=ur({prop:r,onChange:o,defaultProp:i??"",caller:rl});return R.jsx(Ek,{scope:n,baseId:cn(),value:c,onValueChange:v,orientation:s,dir:d,activationMode:a,children:R.jsx(ne.div,{dir:d,"data-orientation":s,...u,ref:t})})});Hv.displayName=rl;var Wv="TabsList",Kv=f.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=Nc(Wv,n),s=Uv(n);return R.jsx(wk,{asChild:!0,...s,orientation:i.orientation,dir:i.dir,loop:r,children:R.jsx(ne.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});Kv.displayName=Wv;var Yv="TabsTrigger",Gv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,s=Nc(Yv,n),l=Uv(n),a=Zv(s.baseId,r),u=qv(s.baseId,r),d=r===s.value;return R.jsx(xk,{asChild:!0,...l,focusable:!o,active:d,children:R.jsx(ne.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":u,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:a,...i,ref:t,onMouseDown:Q(e.onMouseDown,c=>{!o&&c.button===0&&c.ctrlKey===!1?s.onValueChange(r):c.preventDefault()}),onKeyDown:Q(e.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&s.onValueChange(r)}),onFocus:Q(e.onFocus,()=>{const c=s.activationMode!=="manual";!d&&!o&&c&&s.onValueChange(r)})})})});Gv.displayName=Yv;var Qv="TabsContent",Xv=f.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...s}=e,l=Nc(Qv,n),a=Zv(l.baseId,r),u=qv(l.baseId,r),d=r===l.value,c=f.useRef(d);return f.useEffect(()=>{const v=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(v)},[]),R.jsx(mr,{present:o||d,children:({present:v})=>R.jsx(ne.div,{"data-state":d?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":a,hidden:!v,id:u,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:c.current?"0s":void 0},children:v&&i})})});Xv.displayName=Qv;function Zv(e,t){return`${e}-trigger-${t}`}function qv(e,t){return`${e}-content-${t}`}var M2=Hv,O2=Kv,L2=Gv,F2=Xv,ci=e=>e.type==="checkbox",tr=e=>e instanceof Date,ot=e=>e==null;const Jv=e=>typeof e=="object";var Ie=e=>!ot(e)&&!Array.isArray(e)&&Jv(e)&&!tr(e),ey=e=>Ie(e)&&e.target?ci(e.target)?e.target.checked:e.target.value:e,Ck=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,ty=(e,t)=>e.has(Ck(t)),kk=e=>{const t=e.constructor&&e.constructor.prototype;return Ie(t)&&t.hasOwnProperty("isPrototypeOf")},Ac=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function we(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ac&&(e instanceof Blob||r))&&(n||Ie(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!kk(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=we(e[o]));else return e;return t}var ol=e=>/^\w*$/.test(e),ve=e=>e===void 0,il=e=>Array.isArray(e)?e.filter(Boolean):[],Dc=e=>il(e.replace(/["|']|\]/g,"").split(/\.|\[/)),b=(e,t,n)=>{if(!t||!Ie(e))return n;const r=(ol(t)?[t]:Dc(t)).reduce((o,i)=>ot(o)?o:o[i],e);return ve(r)||r===e?ve(e[t])?n:e[t]:r},ht=e=>typeof e=="boolean",ce=(e,t,n)=>{let r=-1;const o=ol(t)?[t]:Dc(t),i=o.length,s=i-1;for(;++r<i;){const l=o[r];let a=n;if(r!==s){const u=e[l];a=Ie(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=a,e=e[l]}};const Ts={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_t={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},nn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ic=T.createContext(null);Ic.displayName="HookFormContext";const sl=()=>T.useContext(Ic),j2=e=>{const{children:t,...n}=e;return T.createElement(Ic.Provider,{value:n},t)};var ny=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const s=i;return t._proxyFormState[s]!==_t.all&&(t._proxyFormState[s]=!r||_t.all),n&&(n[s]=!0),e[s]}});return o};const ll=typeof window<"u"?T.useLayoutEffect:T.useEffect;function _k(e){const t=sl(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[s,l]=T.useState(n._formState),a=T.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ll(()=>n._subscribe({name:o,formState:a.current,exact:i,callback:u=>{!r&&l({...n._formState,...u})}}),[o,r,i]),T.useEffect(()=>{a.current.isValid&&n._setValid(!0)},[n]),T.useMemo(()=>ny(s,n,a.current,!1),[s,n])}var mt=e=>typeof e=="string",iu=(e,t,n,r,o)=>mt(e)?(r&&t.watch.add(e),b(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),b(n,i))):(r&&(t.watchAll=!0),n),su=e=>ot(e)||!Jv(e);function $t(e,t,n=new WeakSet){if(su(e)||su(t))return e===t;if(tr(e)&&tr(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const s=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const l=t[i];if(tr(s)&&tr(l)||Ie(s)&&Ie(l)||Array.isArray(s)&&Array.isArray(l)?!$t(s,l,n):s!==l)return!1}}return!0}function Rk(e){const t=sl(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:s,compute:l}=e||{},a=T.useRef(o),u=T.useRef(l),d=T.useRef(void 0),c=T.useRef(n),v=T.useRef(r);u.current=l;const[w,S]=T.useState(()=>{const g=n._getWatch(r,a.current);return u.current?u.current(g):g}),y=T.useCallback(g=>{const E=iu(r,n._names,g||n._formValues,!1,a.current);return u.current?u.current(E):E},[n._formValues,n._names,r]),x=T.useCallback(g=>{if(!i){const E=iu(r,n._names,g||n._formValues,!1,a.current);if(u.current){const _=u.current(E);$t(_,d.current)||(S(_),d.current=_)}else S(E)}},[n._formValues,n._names,i,r]);ll(()=>((c.current!==n||!$t(v.current,r))&&(c.current=n,v.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:s,callback:g=>{x(g.values)}})),[n,s,r,x]),T.useEffect(()=>n._removeUnmounted());const h=c.current!==n,p=v.current,m=T.useMemo(()=>{if(i)return null;const g=!h&&!$t(p,r);return h||g?y():null},[i,h,r,p,y]);return m!==null?m:w}function Pk(e){const t=sl(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:s}=e,l=ty(o._names.array,n),a=T.useMemo(()=>b(o._formValues,n,b(o._defaultValues,n,s)),[o,n,s]),u=Rk({control:o,name:n,defaultValue:a,exact:!0}),d=_k({control:o,name:n,exact:!0}),c=T.useRef(e),v=T.useRef(void 0),w=T.useRef(o.register(n,{...e.rules,value:u,...ht(e.disabled)?{disabled:e.disabled}:{}}));c.current=e;const S=T.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!b(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!b(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!b(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!b(d.validatingFields,n)},error:{enumerable:!0,get:()=>b(d.errors,n)}}),[d,n]),y=T.useCallback(m=>w.current.onChange({target:{value:ey(m),name:n},type:Ts.CHANGE}),[n]),x=T.useCallback(()=>w.current.onBlur({target:{value:b(o._formValues,n),name:n},type:Ts.BLUR}),[n,o._formValues]),h=T.useCallback(m=>{const g=b(o._fields,n);g&&m&&(g._f.ref={focus:()=>m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:E=>m.setCustomValidity(E),reportValidity:()=>m.reportValidity()})},[o._fields,n]),p=T.useMemo(()=>({name:n,value:u,...ht(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:y,onBlur:x,ref:h}),[n,r,d.disabled,y,x,h,u]);return T.useEffect(()=>{const m=o._options.shouldUnregister||i,g=v.current;g&&g!==n&&!l&&o.unregister(g),o.register(n,{...c.current.rules,...ht(c.current.disabled)?{disabled:c.current.disabled}:{}});const E=(_,k)=>{const A=b(o._fields,_);A&&A._f&&(A._f.mount=k)};if(E(n,!0),m){const _=we(b(o._options.defaultValues,n,c.current.defaultValue));ce(o._defaultValues,n,_),ve(b(o._formValues,n))&&ce(o._formValues,n,_)}return!l&&o.register(n),v.current=n,()=>{(l?m&&!o._state.action:m)?o.unregister(n):E(n,!1)}},[n,o,l,i]),T.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),T.useMemo(()=>({field:p,formState:d,fieldState:S}),[p,d,S])}const $2=e=>e.render(Pk(e));var bc=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},lt=e=>Array.isArray(e)?e:[e],Tf=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function ry(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&Ie(o)&&i){const s=ry(o,i);Ie(s)&&(n[r]=s)}else e[r]&&(n[r]=i)}return n}var Qe=e=>Ie(e)&&!Object.keys(e).length,Mc=e=>e.type==="file",Vt=e=>typeof e=="function",Ns=e=>{if(!Ac)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},oy=e=>e.type==="select-multiple",Oc=e=>e.type==="radio",Tk=e=>Oc(e)||ci(e),Xl=e=>Ns(e)&&e.isConnected;function Nk(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ve(e)?r++:e[t[r++]];return e}function Ak(e){for(const t in e)if(e.hasOwnProperty(t)&&!ve(e[t]))return!1;return!0}function Te(e,t){const n=Array.isArray(t)?t:ol(t)?[t]:Dc(t),r=n.length===1?e:Nk(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(Ie(r)&&Qe(r)||Array.isArray(r)&&Ak(r))&&Te(e,n.slice(0,-1)),e}var Dk=e=>{for(const t in e)if(Vt(e[t]))return!0;return!1};function iy(e){return Array.isArray(e)||Ie(e)&&!Dk(e)}function lu(e,t={}){for(const n in e)iy(e[n])?(t[n]=Array.isArray(e[n])?[]:{},lu(e[n],t[n])):ve(e[n])||(t[n]=!0);return t}function Sr(e,t,n){n||(n=lu(t));for(const r in e)iy(e[r])?ve(t)||su(n[r])?n[r]=lu(e[r],Array.isArray(e[r])?[]:{}):Sr(e[r],ot(t)?{}:t[r],n[r]):n[r]=!$t(e[r],t[r]);return n}const Nf={value:!1,isValid:!1},Af={value:!0,isValid:!0};var sy=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ve(e[0].attributes.value)?ve(e[0].value)||e[0].value===""?Af:{value:e[0].value,isValid:!0}:Af:Nf}return Nf},ly=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ve(e)?e:t?e===""?NaN:e&&+e:n&&mt(e)?new Date(e):r?r(e):e;const Df={isValid:!1,value:null};var ay=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Df):Df;function If(e){const t=e.ref;return Mc(t)?t.files:Oc(t)?ay(e.refs).value:oy(t)?[...t.selectedOptions].map(({value:n})=>n):ci(t)?sy(e.refs).value:ly(ve(t.value)?e.ref.value:t.value,e)}var Ik=(e,t,n,r)=>{const o={};for(const i of e){const s=b(t,i);s&&ce(o,i,s._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},As=e=>e instanceof RegExp,xo=e=>ve(e)?e:As(e)?e.source:Ie(e)?As(e.value)?e.value.source:e.value:e,Mr=e=>({isOnSubmit:!e||e===_t.onSubmit,isOnBlur:e===_t.onBlur,isOnChange:e===_t.onChange,isOnAll:e===_t.all,isOnTouch:e===_t.onTouched});const bf="AsyncFunction";var bk=e=>!!e&&!!e.validate&&!!(Vt(e.validate)&&e.validate.constructor.name===bf||Ie(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===bf)),Mk=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),au=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Ur=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=b(e,o);if(i){const{_f:s,...l}=i;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],o)&&!r)return!0;if(s.ref&&t(s.ref,s.name)&&!r)return!0;if(Ur(l,t))break}else if(Ie(l)&&Ur(l,t))break}}};function Mf(e,t,n){const r=b(e,n);if(r||ol(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),s=b(t,i),l=b(e,i);if(s&&!Array.isArray(s)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};o.pop()}return{name:n}}var Ok=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return Qe(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(s=>t[s]===(!r||_t.all))},Lk=(e,t,n)=>!e||!t||e===t||lt(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Fk=(e,t,n,r,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:(n?r.isOnChange:o.isOnChange)?e:!0,jk=(e,t)=>!il(b(e,t)).length&&Te(e,t),uy=(e,t,n)=>{const r=lt(b(e,n));return ce(r,"root",t[n]),ce(e,n,r),e};function Of(e,t,n="validate"){if(mt(e)||Array.isArray(e)&&e.every(mt)||ht(e)&&!e)return{type:n,message:mt(e)?e:"",ref:t}}var xr=e=>Ie(e)&&!As(e)?e:{value:e,message:""},uu=async(e,t,n,r,o,i)=>{const{ref:s,refs:l,required:a,maxLength:u,minLength:d,min:c,max:v,pattern:w,validate:S,name:y,valueAsNumber:x,mount:h}=e._f,p=b(n,y);if(!h||t.has(y))return{};const m=l?l[0]:s,g=B=>{o&&m.reportValidity&&(m.setCustomValidity(ht(B)?"":B||""),m.reportValidity())},E={},_=Oc(s),k=ci(s),A=_||k,j=(x||Mc(s))&&ve(s.value)&&ve(p)||Ns(s)&&s.value===""||p===""||Array.isArray(p)&&!p.length,F=bc.bind(null,y,r,E),W=(B,V,G,J=nn.maxLength,L=nn.minLength)=>{const K=B?V:G;E[y]={type:B?J:L,message:K,ref:s,...F(B?J:L,K)}};if(i?!Array.isArray(p)||!p.length:a&&(!A&&(j||ot(p))||ht(p)&&!p||k&&!sy(l).isValid||_&&!ay(l).isValid)){const{value:B,message:V}=mt(a)?{value:!!a,message:a}:xr(a);if(B&&(E[y]={type:nn.required,message:V,ref:m,...F(nn.required,V)},!r))return g(V),E}if(!j&&(!ot(c)||!ot(v))){let B,V;const G=xr(v),J=xr(c);if(!ot(p)&&!isNaN(p)){const L=s.valueAsNumber||p&&+p;ot(G.value)||(B=L>G.value),ot(J.value)||(V=L<J.value)}else{const L=s.valueAsDate||new Date(p),K=de=>new Date(new Date().toDateString()+" "+de),Y=s.type=="time",ae=s.type=="week";mt(G.value)&&p&&(B=Y?K(p)>K(G.value):ae?p>G.value:L>new Date(G.value)),mt(J.value)&&p&&(V=Y?K(p)<K(J.value):ae?p<J.value:L<new Date(J.value))}if((B||V)&&(W(!!B,G.message,J.message,nn.max,nn.min),!r))return g(E[y].message),E}if((u||d)&&!j&&(mt(p)||i&&Array.isArray(p))){const B=xr(u),V=xr(d),G=!ot(B.value)&&p.length>+B.value,J=!ot(V.value)&&p.length<+V.value;if((G||J)&&(W(G,B.message,V.message),!r))return g(E[y].message),E}if(w&&!j&&mt(p)){const{value:B,message:V}=xr(w);if(As(B)&&!p.match(B)&&(E[y]={type:nn.pattern,message:V,ref:s,...F(nn.pattern,V)},!r))return g(V),E}if(S){if(Vt(S)){const B=await S(p,n),V=Of(B,m);if(V&&(E[y]={...V,...F(nn.validate,V.message)},!r))return g(V.message),E}else if(Ie(S)){let B={};for(const V in S){if(!Qe(B)&&!r)break;const G=Of(await S[V](p,n),m,V);G&&(B={...G,...F(V,G.message)},g(G.message),r&&(E[y]=B))}if(!Qe(B)&&(E[y]={ref:m,...B},!r))return E}}return g(!0),E};const $k={mode:_t.onSubmit,reValidateMode:_t.onChange,shouldFocusError:!0};function Vk(e={}){let t={...$k,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Vt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=Ie(t.defaultValues)||Ie(t.values)?we(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:we(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},a,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let c={...d};const v={array:Tf(),state:Tf()},w=t.criteriaMode===_t.all,S=C=>P=>{clearTimeout(u),u=setTimeout(C,P)},y=async C=>{if(!t.disabled&&(d.isValid||c.isValid||C)){const P=t.resolver?Qe((await k()).errors):await j(r,!0);P!==n.isValid&&v.state.next({isValid:P})}},x=(C,P)=>{!t.disabled&&(d.isValidating||d.validatingFields||c.isValidating||c.validatingFields)&&((C||Array.from(l.mount)).forEach(N=>{N&&(P?ce(n.validatingFields,N,P):Te(n.validatingFields,N))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Qe(n.validatingFields)}))},h=(C,P=[],N,O,M=!0,I=!0)=>{if(O&&N&&!t.disabled){if(s.action=!0,I&&Array.isArray(b(r,C))){const z=N(b(r,C),O.argA,O.argB);M&&ce(r,C,z)}if(I&&Array.isArray(b(n.errors,C))){const z=N(b(n.errors,C),O.argA,O.argB);M&&ce(n.errors,C,z),jk(n.errors,C)}if((d.touchedFields||c.touchedFields)&&I&&Array.isArray(b(n.touchedFields,C))){const z=N(b(n.touchedFields,C),O.argA,O.argB);M&&ce(n.touchedFields,C,z)}(d.dirtyFields||c.dirtyFields)&&(n.dirtyFields=Sr(o,i)),v.state.next({name:C,isDirty:W(C,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ce(i,C,P)},p=(C,P)=>{ce(n.errors,C,P),v.state.next({errors:n.errors})},m=C=>{n.errors=C,v.state.next({errors:n.errors,isValid:!1})},g=(C,P,N,O)=>{const M=b(r,C);if(M){const I=b(i,C,ve(N)?b(o,C):N);ve(I)||O&&O.defaultChecked||P?ce(i,C,P?I:If(M._f)):G(C,I),s.mount&&y()}},E=(C,P,N,O,M)=>{let I=!1,z=!1;const ue={name:C};if(!t.disabled){if(!N||O){(d.isDirty||c.isDirty)&&(z=n.isDirty,n.isDirty=ue.isDirty=W(),I=z!==ue.isDirty);const fe=$t(b(o,C),P);z=!!b(n.dirtyFields,C),fe?Te(n.dirtyFields,C):ce(n.dirtyFields,C,!0),ue.dirtyFields=n.dirtyFields,I=I||(d.dirtyFields||c.dirtyFields)&&z!==!fe}if(N){const fe=b(n.touchedFields,C);fe||(ce(n.touchedFields,C,N),ue.touchedFields=n.touchedFields,I=I||(d.touchedFields||c.touchedFields)&&fe!==N)}I&&M&&v.state.next(ue)}return I?ue:{}},_=(C,P,N,O)=>{const M=b(n.errors,C),I=(d.isValid||c.isValid)&&ht(P)&&n.isValid!==P;if(t.delayError&&N?(a=S(()=>p(C,N)),a(t.delayError)):(clearTimeout(u),a=null,N?ce(n.errors,C,N):Te(n.errors,C)),(N?!$t(M,N):M)||!Qe(O)||I){const z={...O,...I&&ht(P)?{isValid:P}:{},errors:n.errors,name:C};n={...n,...z},v.state.next(z)}},k=async C=>{x(C,!0);const P=await t.resolver(i,t.context,Ik(C||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(C),P},A=async C=>{const{errors:P}=await k(C);if(C)for(const N of C){const O=b(P,N);O?ce(n.errors,N,O):Te(n.errors,N)}else n.errors=P;return P},j=async(C,P,N={valid:!0})=>{for(const O in C){const M=C[O];if(M){const{_f:I,...z}=M;if(I){const ue=l.array.has(I.name),fe=M._f&&bk(M._f);fe&&d.validatingFields&&x([I.name],!0);const We=await uu(M,l.disabled,i,w,t.shouldUseNativeValidation&&!P,ue);if(fe&&d.validatingFields&&x([I.name]),We[I.name]&&(N.valid=!1,P))break;!P&&(b(We,I.name)?ue?uy(n.errors,We,I.name):ce(n.errors,I.name,We[I.name]):Te(n.errors,I.name))}!Qe(z)&&await j(z,P,N)}}return N.valid},F=()=>{for(const C of l.unMount){const P=b(r,C);P&&(P._f.refs?P._f.refs.every(N=>!Xl(N)):!Xl(P._f.ref))&&U(C)}l.unMount=new Set},W=(C,P)=>!t.disabled&&(C&&P&&ce(i,C,P),!$t(de(),o)),B=(C,P,N)=>iu(C,l,{...s.mount?i:ve(P)?o:mt(C)?{[C]:P}:P},N,P),V=C=>il(b(s.mount?i:o,C,t.shouldUnregister?b(o,C,[]):[])),G=(C,P,N={})=>{const O=b(r,C);let M=P;if(O){const I=O._f;I&&(!I.disabled&&ce(i,C,ly(P,I)),M=Ns(I.ref)&&ot(P)?"":P,oy(I.ref)?[...I.ref.options].forEach(z=>z.selected=M.includes(z.value)):I.refs?ci(I.ref)?I.refs.forEach(z=>{(!z.defaultChecked||!z.disabled)&&(Array.isArray(M)?z.checked=!!M.find(ue=>ue===z.value):z.checked=M===z.value||!!M)}):I.refs.forEach(z=>z.checked=z.value===M):Mc(I.ref)?I.ref.value="":(I.ref.value=M,I.ref.type||v.state.next({name:C,values:we(i)})))}(N.shouldDirty||N.shouldTouch)&&E(C,M,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&ae(C)},J=(C,P,N)=>{for(const O in P){if(!P.hasOwnProperty(O))return;const M=P[O],I=C+"."+O,z=b(r,I);(l.array.has(C)||Ie(M)||z&&!z._f)&&!tr(M)?J(I,M,N):G(I,M,N)}},L=(C,P,N={})=>{const O=b(r,C),M=l.array.has(C),I=we(P);ce(i,C,I),M?(v.array.next({name:C,values:we(i)}),(d.isDirty||d.dirtyFields||c.isDirty||c.dirtyFields)&&N.shouldDirty&&v.state.next({name:C,dirtyFields:Sr(o,i),isDirty:W(C,I)})):O&&!O._f&&!ot(I)?J(C,I,N):G(C,I,N),au(C,l)&&v.state.next({...n,name:C}),v.state.next({name:s.mount?C:void 0,values:we(i)})},K=async C=>{s.mount=!0;const P=C.target;let N=P.name,O=!0;const M=b(r,N),I=fe=>{O=Number.isNaN(fe)||tr(fe)&&isNaN(fe.getTime())||$t(fe,b(i,N,fe))},z=Mr(t.mode),ue=Mr(t.reValidateMode);if(M){let fe,We;const At=P.type?If(M._f):ey(C),Dt=C.type===Ts.BLUR||C.type===Ts.FOCUS_OUT,wn=!Mk(M._f)&&!t.resolver&&!b(n.errors,N)&&!M._f.deps||Fk(Dt,b(n.touchedFields,N),n.isSubmitted,ue,z),lo=au(N,l,Dt);ce(i,N,At),Dt?(!P||!P.readOnly)&&(M._f.onBlur&&M._f.onBlur(C),a&&a(0)):M._f.onChange&&M._f.onChange(C);const ao=E(N,At,Dt),di=!Qe(ao)||lo;if(!Dt&&v.state.next({name:N,type:C.type,values:we(i)}),wn)return(d.isValid||c.isValid)&&(t.mode==="onBlur"?Dt&&y():Dt||y()),di&&v.state.next({name:N,...lo?{}:ao});if(!Dt&&lo&&v.state.next({...n}),t.resolver){const{errors:uo}=await k([N]);if(I(At),O){const fl=Mf(n.errors,r,N),vr=Mf(uo,r,fl.name||N);fe=vr.error,N=vr.name,We=Qe(uo)}}else x([N],!0),fe=(await uu(M,l.disabled,i,w,t.shouldUseNativeValidation))[N],x([N]),I(At),O&&(fe?We=!1:(d.isValid||c.isValid)&&(We=await j(r,!0)));O&&(M._f.deps&&(!Array.isArray(M._f.deps)||M._f.deps.length>0)&&ae(M._f.deps),_(N,We,fe,ao))}},Y=(C,P)=>{if(b(n.errors,P)&&C.focus)return C.focus(),1},ae=async(C,P={})=>{let N,O;const M=lt(C);if(t.resolver){const I=await A(ve(C)?C:M);N=Qe(I),O=C?!M.some(z=>b(I,z)):N}else C?(O=(await Promise.all(M.map(async I=>{const z=b(r,I);return await j(z&&z._f?{[I]:z}:z)}))).every(Boolean),!(!O&&!n.isValid)&&y()):O=N=await j(r);return v.state.next({...!mt(C)||(d.isValid||c.isValid)&&N!==n.isValid?{}:{name:C},...t.resolver||!C?{isValid:N}:{},errors:n.errors}),P.shouldFocus&&!O&&Ur(r,Y,C?M:l.mount),O},de=(C,P)=>{let N={...s.mount?i:o};return P&&(N=ry(P.dirtyFields?n.dirtyFields:n.touchedFields,N)),ve(C)?N:mt(C)?b(N,C):C.map(O=>b(N,O))},Ae=(C,P)=>({invalid:!!b((P||n).errors,C),isDirty:!!b((P||n).dirtyFields,C),error:b((P||n).errors,C),isValidating:!!b(n.validatingFields,C),isTouched:!!b((P||n).touchedFields,C)}),St=C=>{C&<(C).forEach(P=>Te(n.errors,P)),v.state.next({errors:C?n.errors:{}})},X=(C,P,N)=>{const O=(b(r,C,{_f:{}})._f||{}).ref,M=b(n.errors,C)||{},{ref:I,message:z,type:ue,...fe}=M;ce(n.errors,C,{...fe,...P,ref:O}),v.state.next({name:C,errors:n.errors,isValid:!1}),N&&N.shouldFocus&&O&&O.focus&&O.focus()},se=(C,P)=>Vt(C)?v.state.subscribe({next:N=>"values"in N&&C(B(void 0,P),N)}):B(C,P,!0),le=C=>v.state.subscribe({next:P=>{Lk(C.name,P.name,C.exact)&&Ok(P,C.formState||d,dt,C.reRenderRoot)&&C.callback({values:{...i},...n,...P,defaultValues:o})}}).unsubscribe,Re=C=>(s.mount=!0,c={...c,...C.formState},le({...C,formState:c})),U=(C,P={})=>{for(const N of C?lt(C):l.mount)l.mount.delete(N),l.array.delete(N),P.keepValue||(Te(r,N),Te(i,N)),!P.keepError&&Te(n.errors,N),!P.keepDirty&&Te(n.dirtyFields,N),!P.keepTouched&&Te(n.touchedFields,N),!P.keepIsValidating&&Te(n.validatingFields,N),!t.shouldUnregister&&!P.keepDefaultValue&&Te(o,N);v.state.next({values:we(i)}),v.state.next({...n,...P.keepDirty?{isDirty:W()}:{}}),!P.keepIsValid&&y()},H=({disabled:C,name:P})=>{(ht(C)&&s.mount||C||l.disabled.has(P))&&(C?l.disabled.add(P):l.disabled.delete(P))},me=(C,P={})=>{let N=b(r,C);const O=ht(P.disabled)||ht(t.disabled);return ce(r,C,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:C}},name:C,mount:!0,...P}}),l.mount.add(C),N?H({disabled:ht(P.disabled)?P.disabled:t.disabled,name:C}):g(C,!0,P.value),{...O?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:xo(P.min),max:xo(P.max),minLength:xo(P.minLength),maxLength:xo(P.maxLength),pattern:xo(P.pattern)}:{},name:C,onChange:K,onBlur:K,ref:M=>{if(M){me(C,P),N=b(r,C);const I=ve(M.value)&&M.querySelectorAll&&M.querySelectorAll("input,select,textarea")[0]||M,z=Tk(I),ue=N._f.refs||[];if(z?ue.find(fe=>fe===I):I===N._f.ref)return;ce(r,C,{_f:{...N._f,...z?{refs:[...ue.filter(Xl),I,...Array.isArray(b(o,C))?[{}]:[]],ref:{type:I.type,name:C}}:{ref:I}}}),g(C,!1,void 0,I)}else N=b(r,C,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(ty(l.array,C)&&s.action)&&l.unMount.add(C)}}},re=()=>t.shouldFocusError&&Ur(r,Y,l.mount),oe=C=>{ht(C)&&(v.state.next({disabled:C}),Ur(r,(P,N)=>{const O=b(r,N);O&&(P.disabled=O._f.disabled||C,Array.isArray(O._f.refs)&&O._f.refs.forEach(M=>{M.disabled=O._f.disabled||C}))},0,!1))},ee=(C,P)=>async N=>{let O;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let M=we(i);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:I,values:z}=await k();n.errors=I,M=we(z)}else await j(r);if(l.disabled.size)for(const I of l.disabled)Te(M,I);if(Te(n.errors,"root"),Qe(n.errors)){v.state.next({errors:{}});try{await C(M,N)}catch(I){O=I}}else P&&await P({...n.errors},N),re(),setTimeout(re);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Qe(n.errors)&&!O,submitCount:n.submitCount+1,errors:n.errors}),O)throw O},je=(C,P={})=>{b(r,C)&&(ve(P.defaultValue)?L(C,we(b(o,C))):(L(C,P.defaultValue),ce(o,C,we(P.defaultValue))),P.keepTouched||Te(n.touchedFields,C),P.keepDirty||(Te(n.dirtyFields,C),n.isDirty=P.defaultValue?W(C,we(b(o,C))):W()),P.keepError||(Te(n.errors,C),d.isValid&&y()),v.state.next({...n}))},$e=(C,P={})=>{const N=C?we(C):o,O=we(N),M=Qe(C),I=M?o:O;if(P.keepDefaultValues||(o=N),!P.keepValues){if(P.keepDirtyValues){const z=new Set([...l.mount,...Object.keys(Sr(o,i))]);for(const ue of Array.from(z))b(n.dirtyFields,ue)?ce(I,ue,b(i,ue)):L(ue,b(I,ue))}else{if(Ac&&ve(C))for(const z of l.mount){const ue=b(r,z);if(ue&&ue._f){const fe=Array.isArray(ue._f.refs)?ue._f.refs[0]:ue._f.ref;if(Ns(fe)){const We=fe.closest("form");if(We){We.reset();break}}}}if(P.keepFieldsRef)for(const z of l.mount)L(z,b(I,z));else r={}}i=t.shouldUnregister?P.keepDefaultValues?we(o):{}:we(I),v.array.next({values:{...I}}),v.state.next({values:{...I}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!P.keepIsValid||!!P.keepDirtyValues||!t.shouldUnregister&&!Qe(I),s.watch=!!t.shouldUnregister,v.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:M?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!$t(C,o)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:M?{}:P.keepDirtyValues?P.keepDefaultValues&&i?Sr(o,i):n.dirtyFields:P.keepDefaultValues&&C?Sr(o,C):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Yt=(C,P)=>$e(Vt(C)?C(i):C,P),Gt=(C,P={})=>{const N=b(r,C),O=N&&N._f;if(O){const M=O.refs?O.refs[0]:O.ref;M.focus&&(M.focus(),P.shouldSelect&&Vt(M.select)&&M.select())}},dt=C=>{n={...n,...C}},Ve={control:{register:me,unregister:U,getFieldState:Ae,handleSubmit:ee,setError:X,_subscribe:le,_runSchema:k,_focusError:re,_getWatch:B,_getDirty:W,_setValid:y,_setFieldArray:h,_setDisabledField:H,_setErrors:m,_getFieldArray:V,_reset:$e,_resetDefaultValues:()=>Vt(t.defaultValues)&&t.defaultValues().then(C=>{Yt(C,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:oe,_subjects:v,_proxyFormState:d,get _fields(){return r},get _formValues(){return i},get _state(){return s},set _state(C){s=C},get _defaultValues(){return o},get _names(){return l},set _names(C){l=C},get _formState(){return n},get _options(){return t},set _options(C){t={...t,...C}}},subscribe:Re,trigger:ae,register:me,handleSubmit:ee,watch:se,setValue:L,getValues:de,reset:Yt,resetField:je,clearErrors:St,unregister:U,setError:X,setFocus:Gt,getFieldState:Ae};return{...Ve,formControl:Ve}}var En=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},Zl=(e,t,n={})=>n.shouldFocus||ve(n.shouldFocus)?n.focusName||`${e}.${ve(n.focusIndex)?t:n.focusIndex}.`:"",ql=(e,t)=>[...e,...lt(t)],Jl=e=>Array.isArray(e)?e.map(()=>{}):void 0;function ea(e,t,n){return[...e.slice(0,t),...lt(n),...e.slice(t)]}var ta=(e,t,n)=>Array.isArray(e)?(ve(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],na=(e,t)=>[...lt(t),...lt(e)];function zk(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return il(r).length?r:[]}var ra=(e,t)=>ve(t)?[]:zk(e,lt(t).sort((n,r)=>n-r)),oa=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},Lf=(e,t,n)=>(e[t]=n,e);function V2(e){const t=sl(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:s}=e,[l,a]=T.useState(n._getFieldArray(r)),u=T.useRef(n._getFieldArray(r).map(En)),d=T.useRef(!1);n._names.array.add(r),T.useMemo(()=>s&&l.length>=0&&n.register(r,s),[n,r,l.length,s]),ll(()=>n._subjects.array.subscribe({next:({values:g,name:E})=>{if(E===r||!E){const _=b(g,r);Array.isArray(_)&&(a(_),u.current=_.map(En))}}}).unsubscribe,[n,r]);const c=T.useCallback(g=>{d.current=!0,n._setFieldArray(r,g)},[n,r]),v=(g,E)=>{const _=lt(we(g)),k=ql(n._getFieldArray(r),_);n._names.focus=Zl(r,k.length-1,E),u.current=ql(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,ql,{argA:Jl(g)})},w=(g,E)=>{const _=lt(we(g)),k=na(n._getFieldArray(r),_);n._names.focus=Zl(r,0,E),u.current=na(u.current,_.map(En)),c(k),a(k),n._setFieldArray(r,k,na,{argA:Jl(g)})},S=g=>{const E=ra(n._getFieldArray(r),g);u.current=ra(u.current,g),c(E),a(E),!Array.isArray(b(n._fields,r))&&ce(n._fields,r,void 0),n._setFieldArray(r,E,ra,{argA:g})},y=(g,E,_)=>{const k=lt(we(E)),A=ea(n._getFieldArray(r),g,k);n._names.focus=Zl(r,g,_),u.current=ea(u.current,g,k.map(En)),c(A),a(A),n._setFieldArray(r,A,ea,{argA:g,argB:Jl(E)})},x=(g,E)=>{const _=n._getFieldArray(r);oa(_,g,E),oa(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,oa,{argA:g,argB:E},!1)},h=(g,E)=>{const _=n._getFieldArray(r);ta(_,g,E),ta(u.current,g,E),c(_),a(_),n._setFieldArray(r,_,ta,{argA:g,argB:E},!1)},p=(g,E)=>{const _=we(E),k=Lf(n._getFieldArray(r),g,_);u.current=[...k].map((A,j)=>!A||j===g?En():u.current[j]),c(k),a([...k]),n._setFieldArray(r,k,Lf,{argA:g,argB:_},!0,!1)},m=g=>{const E=lt(we(g));u.current=E.map(En),c([...E]),a([...E]),n._setFieldArray(r,[...E],_=>_,{},!0,!1)};return T.useEffect(()=>{if(n._state.action=!1,au(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!Mr(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Mr(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(g=>{const E=b(g.errors,r),_=b(n._formState.errors,r);(_?!E&&_.type||E&&(_.type!==E.type||_.message!==E.message):E&&E.type)&&(E?ce(n._formState.errors,r,E):Te(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const g=b(n._fields,r);g&&g._f&&!(Mr(n._options.reValidateMode).isOnSubmit&&Mr(n._options.mode).isOnSubmit)&&uu(g,n._names.disabled,n._formValues,n._options.criteriaMode===_t.all,n._options.shouldUseNativeValidation,!0).then(E=>!Qe(E)&&n._subjects.state.next({errors:uy(n._formState.errors,E,r)}))}n._subjects.state.next({name:r,values:we(n._formValues)}),n._names.focus&&Ur(n._fields,(g,E)=>{if(n._names.focus&&E.startsWith(n._names.focus)&&g.focus)return g.focus(),1}),n._names.focus="",n._setValid(),d.current=!1},[l,r,n]),T.useEffect(()=>(!b(n._formValues,r)&&n._setFieldArray(r),()=>{const g=(E,_)=>{const k=b(n._fields,E);k&&k._f&&(k._f.mount=_)};n._options.shouldUnregister||i?n.unregister(r):g(r,!1)}),[r,n,o,i]),{swap:T.useCallback(x,[c,r,n]),move:T.useCallback(h,[c,r,n]),prepend:T.useCallback(w,[c,r,n]),append:T.useCallback(v,[c,r,n]),remove:T.useCallback(S,[c,r,n]),insert:T.useCallback(y,[c,r,n]),update:T.useCallback(p,[c,r,n]),replace:T.useCallback(m,[c,r,n]),fields:T.useMemo(()=>l.map((g,E)=>({...g,[o]:u.current[E]||En()})),[l,o])}}function z2(e={}){const t=T.useRef(void 0),n=T.useRef(void 0),[r,o]=T.useState({isDirty:!1,isValidating:!1,isLoading:Vt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Vt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Vt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:s,...l}=Vk(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,ll(()=>{const s=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(l=>({...l,isReady:!0})),i._formState.isReady=!0,s},[i]),T.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),T.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),T.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),T.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),T.useEffect(()=>{if(i._proxyFormState.isDirty){const s=i._getDirty();s!==r.isDirty&&i._subjects.state.next({isDirty:s})}},[i,r.isDirty]),T.useEffect(()=>{e.values&&!$t(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),T.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=ny(r,i),t.current}var Bk="Label",cy=f.forwardRef((e,t)=>R.jsx(xm.label,{...e,ref:t,onMouseDown:n=>{var o;n.target.closest("button, input, select, textarea")||((o=e.onMouseDown)==null||o.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));cy.displayName=Bk;var B2=cy;const Ff=(e,t,n)=>{if(e&&"reportValidity"in e){const r=b(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cu=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Ff(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>Ff(o,n,e))}},jf=(e,t)=>{t.shouldUseNativeValidation&&cu(e,t);const n={};for(const r in e){const o=b(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Uk(t.names||Object.keys(e),r)){const s=Object.assign({},b(n,r));ce(s,"root",i),ce(n,r,s)}else ce(n,r,i)}return n},Uk=(e,t)=>{const n=$f(t);return e.some(r=>$f(r).match(`^${n}\\.\\d+`))};function $f(e){return e.replace(/\]|\[/g,"")}function Vf(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function Hk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function Wk(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,s=r.path.join(".");if(!n[s])if(r.code==="invalid_union"&&r.errors.length>0){var l=r.errors[0][0];n[s]={message:l.message,type:l.code}}else n[s]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(d){return d.forEach(function(c){return e.push(c)})}),t){var a=n[s].types,u=a&&a[r.code];n[s]=bc(s,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function U2(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(Vf(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return Array.isArray(l==null?void 0:l.issues)}(s))return{values:{},errors:jf(Hk(s.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(Vf(function(){return Promise.resolve((n.mode==="sync"?ig:sg)(e,r,t)).then(function(s){return i.shouldUseNativeValidation&&cu({},i),{errors:{},values:n.raw?Object.assign({},r):s}})},function(s){if(function(l){return l instanceof lg}(s))return{values:{},errors:jf(Wk(s.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw s}))}catch(s){return Promise.reject(s)}};throw new Error("Invalid input: not a Zod schema")}function dy(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var al="Checkbox",[Kk]=yn(al),[Yk,Lc]=Kk(al);function Gk(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:s,name:l,onCheckedChange:a,required:u,value:d="on",internal_do_not_use_render:c}=e,[v,w]=ur({prop:n,defaultProp:o??!1,onChange:a,caller:al}),[S,y]=f.useState(null),[x,h]=f.useState(null),p=f.useRef(!1),m=S?!!s||!!S.closest("form"):!0,g={checked:v,disabled:i,setChecked:w,control:S,setControl:y,name:l,form:s,value:d,hasConsumerStoppedPropagationRef:p,required:u,defaultChecked:$n(o)?!1:o,isFormControl:m,bubbleInput:x,setBubbleInput:h};return R.jsx(Yk,{scope:t,...g,children:Zk(c)?c(g):r})}var fy="CheckboxTrigger",py=f.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:s,disabled:l,checked:a,required:u,setControl:d,setChecked:c,hasConsumerStoppedPropagationRef:v,isFormControl:w,bubbleInput:S}=Lc(fy,e),y=he(o,d),x=f.useRef(a);return f.useEffect(()=>{const h=i==null?void 0:i.form;if(h){const p=()=>c(x.current);return h.addEventListener("reset",p),()=>h.removeEventListener("reset",p)}},[i,c]),R.jsx(ne.button,{type:"button",role:"checkbox","aria-checked":$n(a)?"mixed":a,"aria-required":u,"data-state":yy(a),"data-disabled":l?"":void 0,disabled:l,value:s,...r,ref:y,onKeyDown:Q(t,h=>{h.key==="Enter"&&h.preventDefault()}),onClick:Q(n,h=>{c(p=>$n(p)?!0:!p),S&&w&&(v.current=h.isPropagationStopped(),v.current||h.stopPropagation())})})});py.displayName=fy;var Qk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:s,disabled:l,value:a,onCheckedChange:u,form:d,...c}=e;return R.jsx(Gk,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:l,required:s,onCheckedChange:u,name:r,form:d,value:a,internal_do_not_use_render:({isFormControl:v})=>R.jsxs(R.Fragment,{children:[R.jsx(py,{...c,ref:t,__scopeCheckbox:n}),v&&R.jsx(vy,{__scopeCheckbox:n})]})})});Qk.displayName=al;var hy="CheckboxIndicator",Xk=f.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Lc(hy,n);return R.jsx(mr,{present:r||$n(i.checked)||i.checked===!0,children:R.jsx(ne.span,{"data-state":yy(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});Xk.displayName=hy;var my="CheckboxBubbleInput",vy=f.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:s,required:l,disabled:a,name:u,value:d,form:c,bubbleInput:v,setBubbleInput:w}=Lc(my,e),S=he(n,w),y=dy(i),x=ev(r);f.useEffect(()=>{const p=v;if(!p)return;const m=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(m,"checked").set,_=!o.current;if(y!==i&&E){const k=new Event("click",{bubbles:_});p.indeterminate=$n(i),E.call(p,$n(i)?!1:i),p.dispatchEvent(k)}},[v,y,i,o]);const h=f.useRef($n(i)?!1:i);return R.jsx(ne.input,{type:"checkbox","aria-hidden":!0,defaultChecked:s??h.current,required:l,disabled:a,name:u,value:d,form:c,...t,tabIndex:-1,ref:S,style:{...t.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vy.displayName=my;function Zk(e){return typeof e=="function"}function $n(e){return e==="indeterminate"}function yy(e){return $n(e)?"indeterminate":e?"checked":"unchecked"}var qk=[" ","Enter","ArrowUp","ArrowDown"],Jk=[" ","Enter"],dr="Select",[ul,cl,e_]=Lv(dr),[io]=yn(dr,[e_,Js]),dl=Js(),[t_,Yn]=io(dr),[n_,r_]=io(dr),gy=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:i,value:s,defaultValue:l,onValueChange:a,dir:u,name:d,autoComplete:c,disabled:v,required:w,form:S}=e,y=dl(t),[x,h]=f.useState(null),[p,m]=f.useState(null),[g,E]=f.useState(!1),_=Tc(u),[k,A]=ur({prop:r,defaultProp:o??!1,onChange:i,caller:dr}),[j,F]=ur({prop:s,defaultProp:l,onChange:a,caller:dr}),W=f.useRef(null),B=x?S||!!x.closest("form"):!0,[V,G]=f.useState(new Set),J=Array.from(V).map(L=>L.props.value).join(";");return R.jsx(cv,{...y,children:R.jsxs(t_,{required:w,scope:t,trigger:x,onTriggerChange:h,valueNode:p,onValueNodeChange:m,valueNodeHasChildren:g,onValueNodeHasChildrenChange:E,contentId:cn(),value:j,onValueChange:F,open:k,onOpenChange:A,dir:_,triggerPointerDownPosRef:W,disabled:v,children:[R.jsx(ul.Provider,{scope:t,children:R.jsx(n_,{scope:e.__scopeSelect,onNativeOptionAdd:f.useCallback(L=>{G(K=>new Set(K).add(L))},[]),onNativeOptionRemove:f.useCallback(L=>{G(K=>{const Y=new Set(K);return Y.delete(L),Y})},[]),children:n})}),B?R.jsxs(By,{"aria-hidden":!0,required:w,tabIndex:-1,name:d,autoComplete:c,value:j,onChange:L=>F(L.target.value),disabled:v,form:S,children:[j===void 0?R.jsx("option",{value:""}):null,Array.from(V)]},J):null]})})};gy.displayName=dr;var wy="SelectTrigger",xy=f.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=dl(n),s=Yn(wy,n),l=s.disabled||r,a=he(t,s.onTriggerChange),u=cl(n),d=f.useRef("touch"),[c,v,w]=Hy(y=>{const x=u().filter(m=>!m.disabled),h=x.find(m=>m.value===s.value),p=Wy(x,y,h);p!==void 0&&s.onValueChange(p.value)}),S=y=>{l||(s.onOpenChange(!0),w()),y&&(s.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return R.jsx(dv,{asChild:!0,...i,children:R.jsx(ne.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Uy(s.value)?"":void 0,...o,ref:a,onClick:Q(o.onClick,y=>{y.currentTarget.focus(),d.current!=="mouse"&&S(y)}),onPointerDown:Q(o.onPointerDown,y=>{d.current=y.pointerType;const x=y.target;x.hasPointerCapture(y.pointerId)&&x.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:Q(o.onKeyDown,y=>{const x=c.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&v(y.key),!(x&&y.key===" ")&&qk.includes(y.key)&&(S(),y.preventDefault())})})})});xy.displayName=wy;var Sy="SelectValue",Ey=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:s="",...l}=e,a=Yn(Sy,n),{onValueNodeHasChildrenChange:u}=a,d=i!==void 0,c=he(t,a.onValueNodeChange);return qe(()=>{u(d)},[u,d]),R.jsx(ne.span,{...l,ref:c,style:{pointerEvents:"none"},children:Uy(a.value)?R.jsx(R.Fragment,{children:s}):i})});Ey.displayName=Sy;var o_="SelectIcon",Cy=f.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return R.jsx(ne.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});Cy.displayName=o_;var i_="SelectPortal",ky=e=>R.jsx(xc,{asChild:!0,...e});ky.displayName=i_;var fr="SelectContent",_y=f.forwardRef((e,t)=>{const n=Yn(fr,e.__scopeSelect),[r,o]=f.useState();if(qe(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?to.createPortal(R.jsx(Ry,{scope:e.__scopeSelect,children:R.jsx(ul.Slot,{scope:e.__scopeSelect,children:R.jsx("div",{children:e.children})})}),i):null}return R.jsx(Py,{...e,ref:t})});_y.displayName=fr;var Ot=10,[Ry,Gn]=io(fr),s_="SelectContentImpl",l_=ei("SelectContent.RemoveScroll"),Py=f.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x,...h}=e,p=Yn(fr,n),[m,g]=f.useState(null),[E,_]=f.useState(null),k=he(t,U=>g(U)),[A,j]=f.useState(null),[F,W]=f.useState(null),B=cl(n),[V,G]=f.useState(!1),J=f.useRef(!1);f.useEffect(()=>{if(m)return Bf(m)},[m]),Pm();const L=f.useCallback(U=>{const[H,...me]=B().map(ee=>ee.ref.current),[re]=me.slice(-1),oe=document.activeElement;for(const ee of U)if(ee===oe||(ee==null||ee.scrollIntoView({block:"nearest"}),ee===H&&E&&(E.scrollTop=0),ee===re&&E&&(E.scrollTop=E.scrollHeight),ee==null||ee.focus(),document.activeElement!==oe))return},[B,E]),K=f.useCallback(()=>L([A,m]),[L,A,m]);f.useEffect(()=>{V&&K()},[V,K]);const{onOpenChange:Y,triggerPointerDownPosRef:ae}=p;f.useEffect(()=>{if(m){let U={x:0,y:0};const H=re=>{var oe,ee;U={x:Math.abs(Math.round(re.pageX)-(((oe=ae.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(re.pageY)-(((ee=ae.current)==null?void 0:ee.y)??0))}},me=re=>{U.x<=10&&U.y<=10?re.preventDefault():m.contains(re.target)||Y(!1),document.removeEventListener("pointermove",H),ae.current=null};return ae.current!==null&&(document.addEventListener("pointermove",H),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",H),document.removeEventListener("pointerup",me,{capture:!0})}}},[m,Y,ae]),f.useEffect(()=>{const U=()=>Y(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[Y]);const[de,Ae]=Hy(U=>{const H=B().filter(oe=>!oe.disabled),me=H.find(oe=>oe.ref.current===document.activeElement),re=Wy(H,U,me);re&&setTimeout(()=>re.ref.current.focus())}),St=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&(j(U),re&&(J.current=!0))},[p.value]),X=f.useCallback(()=>m==null?void 0:m.focus(),[m]),se=f.useCallback((U,H,me)=>{const re=!J.current&&!me;(p.value!==void 0&&p.value===H||re)&&W(U)},[p.value]),le=r==="popper"?du:Ty,Re=le===du?{side:l,sideOffset:a,align:u,alignOffset:d,arrowPadding:c,collisionBoundary:v,collisionPadding:w,sticky:S,hideWhenDetached:y,avoidCollisions:x}:{};return R.jsx(Ry,{scope:n,content:m,viewport:E,onViewportChange:_,itemRefCallback:St,selectedItem:A,onItemLeave:X,itemTextRefCallback:se,focusSelectedItem:K,selectedItemText:F,position:r,isPositioned:V,searchRef:de,children:R.jsx(Sc,{as:l_,allowPinchZoom:!0,children:R.jsx(wc,{asChild:!0,trapped:p.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Q(o,U=>{var H;(H=p.trigger)==null||H.focus({preventScroll:!0}),U.preventDefault()}),children:R.jsx(Xs,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:R.jsx(le,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:U=>U.preventDefault(),...h,...Re,onPlaced:()=>G(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...h.style},onKeyDown:Q(h.onKeyDown,U=>{const H=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!H&&U.key.length===1&&Ae(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let re=B().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes(U.key)&&(re=re.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const oe=U.target,ee=re.indexOf(oe);re=re.slice(ee+1)}setTimeout(()=>L(re)),U.preventDefault()}})})})})})})});Py.displayName=s_;var a_="SelectItemAlignedPosition",Ty=f.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=Yn(fr,n),s=Gn(fr,n),[l,a]=f.useState(null),[u,d]=f.useState(null),c=he(t,k=>d(k)),v=cl(n),w=f.useRef(!1),S=f.useRef(!0),{viewport:y,selectedItem:x,selectedItemText:h,focusSelectedItem:p}=s,m=f.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&u&&y&&x&&h){const k=i.trigger.getBoundingClientRect(),A=u.getBoundingClientRect(),j=i.valueNode.getBoundingClientRect(),F=h.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-A.left,ee=j.left-oe,je=k.left-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.left=dt+"px"}else{const oe=A.right-F.right,ee=window.innerWidth-j.right-oe,je=window.innerWidth-k.right-ee,$e=k.width+je,Yt=Math.max($e,A.width),Gt=window.innerWidth-Ot,dt=zc(ee,[Ot,Math.max(Ot,Gt-Yt)]);l.style.minWidth=$e+"px",l.style.right=dt+"px"}const W=v(),B=window.innerHeight-Ot*2,V=y.scrollHeight,G=window.getComputedStyle(u),J=parseInt(G.borderTopWidth,10),L=parseInt(G.paddingTop,10),K=parseInt(G.borderBottomWidth,10),Y=parseInt(G.paddingBottom,10),ae=J+L+V+Y+K,de=Math.min(x.offsetHeight*5,ae),Ae=window.getComputedStyle(y),St=parseInt(Ae.paddingTop,10),X=parseInt(Ae.paddingBottom,10),se=k.top+k.height/2-Ot,le=B-se,Re=x.offsetHeight/2,U=x.offsetTop+Re,H=J+L+U,me=ae-H;if(H<=se){const oe=W.length>0&&x===W[W.length-1].ref.current;l.style.bottom="0px";const ee=u.clientHeight-y.offsetTop-y.offsetHeight,je=Math.max(le,Re+(oe?X:0)+ee+K),$e=H+je;l.style.height=$e+"px"}else{const oe=W.length>0&&x===W[0].ref.current;l.style.top="0px";const je=Math.max(se,J+y.offsetTop+(oe?St:0)+Re)+me;l.style.height=je+"px",y.scrollTop=H-se+y.offsetTop}l.style.margin=`${Ot}px 0`,l.style.minHeight=de+"px",l.style.maxHeight=B+"px",r==null||r(),requestAnimationFrame(()=>w.current=!0)}},[v,i.trigger,i.valueNode,l,u,y,x,h,i.dir,r]);qe(()=>m(),[m]);const[g,E]=f.useState();qe(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const _=f.useCallback(k=>{k&&S.current===!0&&(m(),p==null||p(),S.current=!1)},[m,p]);return R.jsx(c_,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:w,onScrollButtonChange:_,children:R.jsx("div",{ref:a,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:g},children:R.jsx(ne.div,{...o,ref:c,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ty.displayName=a_;var u_="SelectPopperPosition",du=f.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ot,...i}=e,s=dl(n);return R.jsx(fv,{...s,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});du.displayName=u_;var[c_,Fc]=io(fr,{}),fu="SelectViewport",Ny=f.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=Gn(fu,n),s=Fc(fu,n),l=he(t,i.onViewportChange),a=f.useRef(0);return R.jsxs(R.Fragment,{children:[R.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),R.jsx(ul.Slot,{scope:n,children:R.jsx(ne.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Q(o.onScroll,u=>{const d=u.currentTarget,{contentWrapper:c,shouldExpandOnScrollRef:v}=s;if(v!=null&&v.current&&c){const w=Math.abs(a.current-d.scrollTop);if(w>0){const S=window.innerHeight-Ot*2,y=parseFloat(c.style.minHeight),x=parseFloat(c.style.height),h=Math.max(y,x);if(h<S){const p=h+w,m=Math.min(S,p),g=p-m;c.style.height=m+"px",c.style.bottom==="0px"&&(d.scrollTop=g>0?g:0,c.style.justifyContent="flex-end")}}}a.current=d.scrollTop})})})]})});Ny.displayName=fu;var Ay="SelectGroup",[d_,f_]=io(Ay),p_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cn();return R.jsx(d_,{scope:n,id:o,children:R.jsx(ne.div,{role:"group","aria-labelledby":o,...r,ref:t})})});p_.displayName=Ay;var Dy="SelectLabel",Iy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=f_(Dy,n);return R.jsx(ne.div,{id:o.id,...r,ref:t})});Iy.displayName=Dy;var Ds="SelectItem",[h_,by]=io(Ds),My=f.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...s}=e,l=Yn(Ds,n),a=Gn(Ds,n),u=l.value===r,[d,c]=f.useState(i??""),[v,w]=f.useState(!1),S=he(t,p=>{var m;return(m=a.itemRefCallback)==null?void 0:m.call(a,p,r,o)}),y=cn(),x=f.useRef("touch"),h=()=>{o||(l.onValueChange(r),l.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return R.jsx(h_,{scope:n,value:r,disabled:o,textId:y,isSelected:u,onItemTextChange:f.useCallback(p=>{c(m=>m||((p==null?void 0:p.textContent)??"").trim())},[]),children:R.jsx(ul.ItemSlot,{scope:n,value:r,disabled:o,textValue:d,children:R.jsx(ne.div,{role:"option","aria-labelledby":y,"data-highlighted":v?"":void 0,"aria-selected":u&&v,"data-state":u?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...s,ref:S,onFocus:Q(s.onFocus,()=>w(!0)),onBlur:Q(s.onBlur,()=>w(!1)),onClick:Q(s.onClick,()=>{x.current!=="mouse"&&h()}),onPointerUp:Q(s.onPointerUp,()=>{x.current==="mouse"&&h()}),onPointerDown:Q(s.onPointerDown,p=>{x.current=p.pointerType}),onPointerMove:Q(s.onPointerMove,p=>{var m;x.current=p.pointerType,o?(m=a.onItemLeave)==null||m.call(a):x.current==="mouse"&&p.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Q(s.onPointerLeave,p=>{var m;p.currentTarget===document.activeElement&&((m=a.onItemLeave)==null||m.call(a))}),onKeyDown:Q(s.onKeyDown,p=>{var g;((g=a.searchRef)==null?void 0:g.current)!==""&&p.key===" "||(Jk.includes(p.key)&&h(),p.key===" "&&p.preventDefault())})})})})});My.displayName=Ds;var _o="SelectItemText",Oy=f.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,s=Yn(_o,n),l=Gn(_o,n),a=by(_o,n),u=r_(_o,n),[d,c]=f.useState(null),v=he(t,h=>c(h),a.onItemTextChange,h=>{var p;return(p=l.itemTextRefCallback)==null?void 0:p.call(l,h,a.value,a.disabled)}),w=d==null?void 0:d.textContent,S=f.useMemo(()=>R.jsx("option",{value:a.value,disabled:a.disabled,children:w},a.value),[a.disabled,a.value,w]),{onNativeOptionAdd:y,onNativeOptionRemove:x}=u;return qe(()=>(y(S),()=>x(S)),[y,x,S]),R.jsxs(R.Fragment,{children:[R.jsx(ne.span,{id:a.textId,...i,ref:v}),a.isSelected&&s.valueNode&&!s.valueNodeHasChildren?to.createPortal(i.children,s.valueNode):null]})});Oy.displayName=_o;var Ly="SelectItemIndicator",Fy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return by(Ly,n).isSelected?R.jsx(ne.span,{"aria-hidden":!0,...r,ref:t}):null});Fy.displayName=Ly;var pu="SelectScrollUpButton",jy=f.forwardRef((e,t)=>{const n=Gn(pu,e.__scopeSelect),r=Fc(pu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollTop>0;i(u)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop-a.offsetHeight)}}):null});jy.displayName=pu;var hu="SelectScrollDownButton",$y=f.forwardRef((e,t)=>{const n=Gn(hu,e.__scopeSelect),r=Fc(hu,e.__scopeSelect),[o,i]=f.useState(!1),s=he(t,r.onScrollButtonChange);return qe(()=>{if(n.viewport&&n.isPositioned){let l=function(){const u=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<u;i(d)};const a=n.viewport;return l(),a.addEventListener("scroll",l),()=>a.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?R.jsx(Vy,{...e,ref:s,onAutoScroll:()=>{const{viewport:l,selectedItem:a}=n;l&&a&&(l.scrollTop=l.scrollTop+a.offsetHeight)}}):null});$y.displayName=hu;var Vy=f.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=Gn("SelectScrollButton",n),s=f.useRef(null),l=cl(n),a=f.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return f.useEffect(()=>()=>a(),[a]),qe(()=>{var d;const u=l().find(c=>c.ref.current===document.activeElement);(d=u==null?void 0:u.ref.current)==null||d.scrollIntoView({block:"nearest"})},[l]),R.jsx(ne.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Q(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Q(o.onPointerMove,()=>{var u;(u=i.onItemLeave)==null||u.call(i),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Q(o.onPointerLeave,()=>{a()})})}),m_="SelectSeparator",zy=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return R.jsx(ne.div,{"aria-hidden":!0,...r,ref:t})});zy.displayName=m_;var mu="SelectArrow",v_=f.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dl(n),i=Yn(mu,n),s=Gn(mu,n);return i.open&&s.position==="popper"?R.jsx(pv,{...o,...r,ref:t}):null});v_.displayName=mu;var y_="SelectBubbleInput",By=f.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=f.useRef(null),i=he(r,o),s=dy(t);return f.useEffect(()=>{const l=o.current;if(!l)return;const a=window.HTMLSelectElement.prototype,d=Object.getOwnPropertyDescriptor(a,"value").set;if(s!==t&&d){const c=new Event("change",{bubbles:!0});d.call(l,t),l.dispatchEvent(c)}},[s,t]),R.jsx(ne.select,{...n,style:{...hv,...n.style},ref:i,defaultValue:t})});By.displayName=y_;function Uy(e){return e===""||e===void 0}function Hy(e){const t=Bn(e),n=f.useRef(""),r=f.useRef(0),o=f.useCallback(s=>{const l=n.current+s;t(l),function a(u){n.current=u,window.clearTimeout(r.current),u!==""&&(r.current=window.setTimeout(()=>a(""),1e3))}(l)},[t]),i=f.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function Wy(e,t,n){const o=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=g_(e,Math.max(i,0));o.length===1&&(s=s.filter(u=>u!==n));const a=s.find(u=>u.textValue.toLowerCase().startsWith(o.toLowerCase()));return a!==n?a:void 0}function g_(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var H2=gy,W2=xy,K2=Ey,Y2=Cy,G2=ky,Q2=_y,X2=Ny,Z2=Iy,q2=My,J2=Oy,eR=Fy,tR=jy,nR=$y,rR=zy;export{U_ as $,A2 as A,R2 as B,pC as C,mC as D,cC as E,Z_ as F,f2 as G,W_ as H,d2 as I,I_ as J,n2 as K,mm as L,O2 as M,L2 as N,fC as O,dC as P,F2 as Q,w2 as R,g2 as S,T_ as T,M2 as U,G_ as V,p2 as W,v2 as X,s2 as Y,B_ as Z,o2 as _,Zm as a,z_ as a0,O_ as a1,B2 as a2,sl as a3,j2 as a4,$2 as a5,z2 as a6,U2 as a7,Qk as a8,Xk as a9,t2 as aA,H_ as aB,m2 as aC,q_ as aD,u2 as aE,K_ as aF,a2 as aG,i2 as aH,J_ as aI,M_ as aJ,Y_ as aK,k_ as aL,Sw as aM,C_ as aN,Kc as aO,T as aP,__ as aQ,W2 as aa,Y2 as ab,L_ as ac,tR as ad,$_ as ae,nR as af,G2 as ag,Q2 as ah,X2 as ai,Z2 as aj,q2 as ak,eR as al,J2 as am,rR as an,H2 as ao,K2 as ap,V2 as aq,c2 as ar,h2 as as,F_ as at,j_ as au,V_ as av,r2 as aw,Q_ as ax,y2 as ay,b_ as az,hC as b,N_ as c,A_ as d,uC as e,k2 as f,Uf as g,S2 as h,E2 as i,R as j,C2 as k,e2 as l,Kn as m,X_ as n,l2 as o,T2 as p,P2 as q,f as r,N2 as s,P_ as t,D_ as u,I2 as v,b2 as w,D2 as x,_2 as y,R_ as z};
|
|
319
|
+
//# sourceMappingURL=react-vendor-B6Uf_8Kw.js.map
|