"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[689],{43964:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(50959);/**
 * @license lucide-react v0.418.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),a=(...e)=>e.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ");/**
 * @license lucide-react v0.418.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.418.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let o=(0,n.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:l,iconNode:u,...c},d)=>(0,n.createElement)("svg",{ref:d,...s,width:t,height:t,stroke:e,strokeWidth:i?24*Number(r)/Number(t):r,className:a("lucide",o),...c},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])),l=(e,t)=>{let r=(0,n.forwardRef)(({className:r,...s},l)=>(0,n.createElement)(o,{ref:l,iconNode:t,className:a(`lucide-${i(e)}`,r),...s}));return r.displayName=`${e}`,r}},59023:function(e,t,r){r.d(t,{Z:function(){return n}});/**
 * @license lucide-react v0.418.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let n=(0,r(43964).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},45487:function(e,t,r){r.d(t,{Z:function(){return n}});/**
 * @license lucide-react v0.418.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */let n=(0,r(43964).Z)("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},12415:function(e,t,r){/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(50959),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,l=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,c=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&c({inst:i})},[e,r,t]),s(function(){return u(i)&&c({inst:i}),e(function(){u(i)&&c({inst:i})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:c},2179:function(e,t,r){/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=r(50959),i=r(4322),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=i.useSyncExternalStore,o=n.useRef,l=n.useEffect,u=n.useMemo,c=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=s(e,(d=u(function(){function e(e){if(!l){if(l=!0,s=e,e=n(e),void 0!==i&&f.hasValue){var t=f.value;if(i(t,e))return o=t}return o=e}if(t=o,a(s,e))return t;var r=n(e);return void 0!==i&&i(t,r)?t:(s=e,o=r)}var s,o,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,n,i]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},4322:function(e,t,r){e.exports=r(12415)},7231:function(e,t,r){e.exports=r(2179)},27595:function(e,t,r){r.d(t,{OK:function(){return eS},v0:function(){return eP},td:function(){return ek},x4:function(){return eT},nP:function(){return eE}});var n,i,a,s,o,l,u,c,d,f,p,h,m=r(71450),g=r(88776),v=r(13173),y=r(50959);function b(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=(0,y.useRef)({isFocused:!1,isFocusVisible:t||(0,m.E)()}),[a,s]=(0,y.useState)(!1),[o,l]=(0,y.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),u=(0,y.useCallback)(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=(0,y.useCallback)(e=>{i.current.isFocused=e,s(e),u()},[u]);(0,m.mG)(e=>{i.current.isFocusVisible=e,u()},[],{isTextInput:r});let{focusProps:d}=(0,g.K)({isDisabled:n,onFocusChange:c}),{focusWithinProps:f}=(0,v.L)({isDisabled:!n,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:o,focusProps:n?f:d}}let w=!1,x=0;function P(){w=!0,setTimeout(()=>{w=!1},50)}function k(e){"touch"===e.pointerType&&P()}function E(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",k):document.addEventListener("touchend",P),x++,()=>{--x>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",k):document.removeEventListener("touchend",P))}}var T=Object.defineProperty,S=(e,t,r)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t,r)=>(S(e,"symbol"!=typeof t?t+"":t,r),r);class M{constructor(){C(this,"current",this.detect()),C(this,"handoffState","pending"),C(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let _=new M;function A(e){return _.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function I(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}let L=(e,t)=>{_.isServer?(0,y.useEffect)(e,t):(0,y.useLayoutEffect)(e,t)};function D(e){let t=(0,y.useRef)(e);return L(()=>{t.current=e},[e]),t}let N=function(e){let t=D(e);return y.useCallback((...e)=>t.current(...e),[t])},O=Symbol();function R(...e){let t=(0,y.useRef)(e);(0,y.useEffect)(()=>{t.current=e},[e]);let r=N(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[O]))?void 0:r}function F(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function j(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,j),n}var K=((n=K||{})[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n),V=((i=V||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function B(){let e,t;let r=(e=(0,y.useRef)([]),t=(0,y.useCallback)(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]),(...r)=>{if(!r.every(e=>null==e))return e.current=r,t});return(0,y.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:a=!0,name:s,mergeRefs:o}){o=null!=o?o:z;let l=W(t,e);if(a)return $(l,r,n,s,o);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return $(t,r,n,s,o)}if(1&u){let{unmount:e=!0,...t}=l;return j(e?0:1,{0:()=>null,1:()=>$({...t,hidden:!0,style:{display:"none"}},r,n,s,o)})}return $(l,r,n,s,o)})({mergeRefs:r,...e}),[r])}function $(e,t={},r,n,i){let{as:a=r,children:s,refName:o="ref",...l}=H(e,["unmount","static"]),u=void 0!==e.ref?{[o]:e.ref}:{},c="function"==typeof s?s(t):s;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=r.join(" "),r))d[`data-${e}`]=""}if(a===y.Fragment&&(Object.keys(Z(l)).length>0||Object.keys(Z(d)).length>0)){if(!(0,y.isValidElement)(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Z(l)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Z(l)).concat(Object.keys(Z(d))).map(e=>`  - ${e}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
`)].join(`
`))}else{let e=c.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>F(t(...e),l.className):F(t,l.className),n=W(c.props,Z(H(l,["ref"])));for(let e in d)e in n&&delete d[e];return(0,y.cloneElement)(c,Object.assign({},n,d,u,{ref:i(c.ref,u.ref)},r?{className:r}:{}))}}return(0,y.createElement)(a,Object.assign({},H(l,["ref"]),a!==y.Fragment&&u,a!==y.Fragment&&d),c)}function z(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function W(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let e in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(r[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in r)Object.assign(t,{[e](t,...n){for(let i of r[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...n)}}});return t}function U(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let e in r)Object.assign(t,{[e](...t){for(let n of r[e])null==n||n(...t)}});return t}function G(e){var t;return Object.assign((0,y.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Z(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function H(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}var q=((a=q||{})[a.None=1]="None",a[a.Focusable=2]="Focusable",a[a.Hidden=4]="Hidden",a);let X=G(function(e,t){var r;let{features:n=1,...i}=e,a={ref:t,"aria-hidden":(2&n)==2||(null!=(r=i["aria-hidden"])?r:void 0),hidden:(4&n)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&n)==4&&(2&n)!=2&&{display:"none"}}};return B()({ourProps:a,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})});function Y({onFocus:e}){let t;let[r,n]=(0,y.useState)(!0),i=(t=(0,y.useRef)(!1),L(()=>(t.current=!0,()=>{t.current=!1}),[]),t);return r?y.createElement(X,{as:"button",type:"button",features:q.Focusable,onFocus:t=>{t.preventDefault();let r,a=50;r=requestAnimationFrame(function t(){if(a--<=0){r&&cancelAnimationFrame(r);return}if(e()){if(cancelAnimationFrame(r),!i.current)return;n(!1);return}r=requestAnimationFrame(t)})}}):null}let J=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Q=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ee=((s=ee||{})[s.First=1]="First",s[s.Previous=2]="Previous",s[s.Next=4]="Next",s[s.Last=8]="Last",s[s.WrapAround=16]="WrapAround",s[s.NoScroll=32]="NoScroll",s[s.AutoFocus=64]="AutoFocus",s),et=((o=et||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),er=((l=er||{})[l.Previous=-1]="Previous",l[l.Next=1]="Next",l),en=((u=en||{})[u.Strict=0]="Strict",u[u.Loose=1]="Loose",u),ei=((c=ei||{})[c.Keyboard=0]="Keyboard",c[c.Mouse=1]="Mouse",c);function ea(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let a=n.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function es(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){var a,s,o;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?r?ea(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Q)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(J)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);i.length>0&&u.length>1&&(u=u.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),n=null!=n?n:l.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(n))-1;if(4&t)return Math.max(0,u.indexOf(n))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,h=u.length,m;do{if(p>=h||p+h<=0)return 0;let e=d+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=u[e])||m.focus(f),p+=c}while(m!==l.activeElement);return 6&t&&null!=(o=null==(s=null==(a=m)?void 0:a.matches)?void 0:s.call(a,"textarea,input"))&&o&&m.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let eo=y.createContext(null);function el({children:e}){let t=y.useRef({groups:new Map,get(e,t){var r;let n=this.groups.get(e);n||(n=new Map,this.groups.set(e,n));let i=null!=(r=n.get(t))?r:0;return n.set(t,i+1),[Array.from(n.keys()).indexOf(t),function(){let e=n.get(t);e>1?n.set(t,e-1):n.delete(t)}]}});return y.createElement(eo.Provider,{value:t},e)}function eu(e){let t=y.useContext(eo);if(!t)throw Error("You must wrap your component in a <StableCollection>");let r=y.useId(),[n,i]=t.current.get(e,r);return y.useEffect(()=>i,[]),n}var ec=((d=ec||{}).Space=" ",d.Enter="Enter",d.Escape="Escape",d.Backspace="Backspace",d.Delete="Delete",d.ArrowLeft="ArrowLeft",d.ArrowUp="ArrowUp",d.ArrowRight="ArrowRight",d.ArrowDown="ArrowDown",d.Home="Home",d.End="End",d.PageUp="PageUp",d.PageDown="PageDown",d.Tab="Tab",d),ed=((f=ed||{})[f.Forwards=0]="Forwards",f[f.Backwards=1]="Backwards",f),ef=((p=ef||{})[p.Less=-1]="Less",p[p.Equal=0]="Equal",p[p.Greater=1]="Greater",p),ep=((h=ep||{})[h.SetSelectedIndex=0]="SetSelectedIndex",h[h.RegisterTab=1]="RegisterTab",h[h.UnregisterTab=2]="UnregisterTab",h[h.RegisterPanel=3]="RegisterPanel",h[h.UnregisterPanel=4]="UnregisterPanel",h);let eh={0(e,t){var r;let n=ea(e.tabs,e=>e.current),i=ea(e.panels,e=>e.current),a=n.filter(e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))}),s={...e,tabs:n,panels:i};if(t.index<0||t.index>n.length-1){let r=j(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>j(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===a.length)return s;let i=j(r,{0:()=>n.indexOf(a[0]),1:()=>n.indexOf(a[a.length-1])});return{...s,selectedIndex:-1===i?e.selectedIndex:i}}let o=n.slice(0,t.index),l=[...n.slice(t.index),...o].find(e=>a.includes(e));if(!l)return s;let u=null!=(r=n.indexOf(l))?r:e.selectedIndex;return -1===u&&(u=e.selectedIndex),{...s,selectedIndex:u}},1(e,t){if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],n=ea([...e.tabs,t.tab],e=>e.current),i=e.selectedIndex;return e.info.current.isControlled||-1===(i=n.indexOf(r))&&(i=e.selectedIndex),{...e,tabs:n,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter(e=>e!==t.tab)}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:ea([...e.panels,t.panel],e=>e.current)},4:(e,t)=>({...e,panels:e.panels.filter(e=>e!==t.panel)})},em=(0,y.createContext)(null);function eg(e){let t=(0,y.useContext)(em);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eg),t}return t}em.displayName="TabsDataContext";let ev=(0,y.createContext)(null);function ey(e){let t=(0,y.useContext)(ev);if(null===t){let t=Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ey),t}return t}function eb(e,t){return j(t.type,eh,e,t)}ev.displayName="TabsActionsContext";let ew=K.RenderStrategy|K.Static,ex=G(function(e,t){var r,n;let i=(0,y.useId)(),{id:a=`headlessui-tabs-tab-${i}`,disabled:s=!1,autoFocus:o=!1,...l}=e,{orientation:u,activation:c,selectedIndex:d,tabs:f,panels:p}=eg("Tab"),h=ey("Tab"),m=eg("Tab"),[g,v]=(0,y.useState)(null),x=(0,y.useRef)(null),P=R(x,t,v);L(()=>h.registerTab(x),[h,x]);let k=eu("tabs"),T=f.indexOf(x);-1===T&&(T=k);let S=T===d,C=N(e=>{var t;let r=e();if(r===et.Success&&"auto"===c){let e=null==(t=A(x))?void 0:t.activeElement,r=m.tabs.findIndex(t=>t.current===e);-1!==r&&h.change(r)}return r}),M=N(e=>{let t=f.map(e=>e.current).filter(Boolean);if(e.key===ec.Space||e.key===ec.Enter){e.preventDefault(),e.stopPropagation(),h.change(T);return}switch(e.key){case ec.Home:case ec.PageUp:return e.preventDefault(),e.stopPropagation(),C(()=>es(t,ee.First));case ec.End:case ec.PageDown:return e.preventDefault(),e.stopPropagation(),C(()=>es(t,ee.Last))}if(C(()=>j(u,{vertical:()=>e.key===ec.ArrowUp?es(t,ee.Previous|ee.WrapAround):e.key===ec.ArrowDown?es(t,ee.Next|ee.WrapAround):et.Error,horizontal:()=>e.key===ec.ArrowLeft?es(t,ee.Previous|ee.WrapAround):e.key===ec.ArrowRight?es(t,ee.Next|ee.WrapAround):et.Error}))===et.Success)return e.preventDefault()}),_=(0,y.useRef)(!1),D=N(()=>{var e;_.current||(_.current=!0,null==(e=x.current)||e.focus({preventScroll:!0}),h.change(T),I(()=>{_.current=!1}))}),O=N(e=>{e.preventDefault()}),{isFocusVisible:F,focusProps:K}=b({autoFocus:o}),{isHovered:V,hoverProps:$}=function(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,s]=(0,y.useState)(!1),o=(0,y.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,y.useEffect)(E,[]);let{hoverProps:l,triggerHoverEnd:u}=(0,y.useMemo)(()=>{let e=(e,n)=>{if(o.pointerType=n,i||"touch"===n||o.isHovered||!e.currentTarget.contains(e.target))return;o.isHovered=!0;let a=e.currentTarget;o.target=a,t&&t({type:"hoverstart",target:a,pointerType:n}),r&&r(!0),s(!0)},a=(e,t)=>{if(o.pointerType="",o.target=null,"touch"===t||!o.isHovered)return;o.isHovered=!1;let i=e.currentTarget;n&&n({type:"hoverend",target:i,pointerType:t}),r&&r(!1),s(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{w&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,e.pointerType)}):(l.onTouchStart=()=>{o.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{o.ignoreEmulatedMouseEvents||w||e(t,"mouse"),o.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&a(e,"mouse")}),{hoverProps:l,triggerHoverEnd:a}},[t,r,n,i,o]);return(0,y.useEffect)(()=>{i&&u({currentTarget:o.target},o.pointerType)},[i]),{hoverProps:l,isHovered:a}}({isDisabled:s}),{pressed:z,pressProps:W}=function({disabled:e=!1}={}){let t=(0,y.useRef)(null),[r,n]=(0,y.useState)(!1),i=function(){let[e]=(0,y.useState)(function e(){let t=[],r={addEventListener:(e,t,n,i)=>(e.addEventListener(t,n,i),r.add(()=>e.removeEventListener(t,n,i))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>r.requestAnimationFrame(()=>r.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return r.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return I(()=>{t.current&&e[0]()}),r.add(()=>{t.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(t){let r=e();return t(r),this.add(()=>r.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let r=t.indexOf(e);if(r>=0)for(let e of t.splice(r,1))e()}),dispose(){for(let e of t.splice(0))e()}};return r});return(0,y.useEffect)(()=>()=>e.dispose(),[e]),e}(),a=N(()=>{t.current=null,n(!1),i.dispose()}),s=N(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=A(e.currentTarget);i.addEventListener(r,"pointerup",a,!1),i.addEventListener(r,"pointermove",e=>{if(t.current){var r,i;let a,s;n((a=e.width/2,s=e.height/2,r={top:e.clientY-s,right:e.clientX+a,bottom:e.clientY+s,left:e.clientX-a},i=t.current.getBoundingClientRect(),!(!r||!i||r.right<i.left||r.left>i.right||r.bottom<i.top||r.top>i.bottom)))}},!1),i.addEventListener(r,"pointercancel",a,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:s,onPointerUp:a,onClick:a}}}({disabled:s}),G=(0,y.useMemo)(()=>({selected:S,hover:V,active:z,focus:F,autofocus:o,disabled:s}),[S,V,F,z,o,s]),Z=U({ref:P,onKeyDown:M,onMouseDown:O,onClick:D,id:a,role:"tab",type:(0,y.useMemo)(()=>{var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==g?void 0:g.tagName)==="BUTTON"&&!g.hasAttribute("type"))return"button"},[e.type,e.as,g]),"aria-controls":null==(n=null==(r=p[T])?void 0:r.current)?void 0:n.id,"aria-selected":S,tabIndex:S?0:-1,disabled:s||void 0,autoFocus:o},K,$,W);return B()({ourProps:Z,theirProps:l,slot:G,defaultTag:"button",name:"Tabs.Tab"})}),eP=G(function(e,t){let{defaultIndex:r=0,vertical:n=!1,manual:i=!1,onChange:a,selectedIndex:s=null,...o}=e,l=n?"vertical":"horizontal",u=i?"manual":"auto",c=null!==s,d=D({isControlled:c}),f=R(t),[p,h]=(0,y.useReducer)(eb,{info:d,selectedIndex:null!=s?s:r,tabs:[],panels:[]}),m=(0,y.useMemo)(()=>({selectedIndex:p.selectedIndex}),[p.selectedIndex]),g=D(a||(()=>{})),v=D(p.tabs),b=(0,y.useMemo)(()=>({orientation:l,activation:u,...p}),[l,u,p]),w=N(e=>(h({type:1,tab:e}),()=>h({type:2,tab:e}))),x=N(e=>(h({type:3,panel:e}),()=>h({type:4,panel:e}))),P=N(e=>{k.current!==e&&g.current(e),c||h({type:0,index:e})}),k=D(c?e.selectedIndex:p.selectedIndex),E=(0,y.useMemo)(()=>({registerTab:w,registerPanel:x,change:P}),[]);L(()=>{h({type:0,index:null!=s?s:r})},[s]),L(()=>{if(void 0===k.current||p.tabs.length<=0)return;let e=ea(p.tabs,e=>e.current);e.some((e,t)=>p.tabs[t]!==e)&&P(e.indexOf(p.tabs[k.current]))});let T=B();return y.createElement(el,null,y.createElement(ev.Provider,{value:E},y.createElement(em.Provider,{value:b},b.tabs.length<=0&&y.createElement(Y,{onFocus:()=>{var e,t;for(let r of v.current)if((null==(e=r.current)?void 0:e.tabIndex)===0)return null==(t=r.current)||t.focus(),!0;return!1}}),T({ourProps:{ref:f},theirProps:o,slot:m,defaultTag:"div",name:"Tabs"}))))}),ek=G(function(e,t){let{orientation:r,selectedIndex:n}=eg("Tab.List"),i=R(t),a=(0,y.useMemo)(()=>({selectedIndex:n}),[n]);return B()({ourProps:{ref:i,role:"tablist","aria-orientation":r},theirProps:e,slot:a,defaultTag:"div",name:"Tabs.List"})}),eE=G(function(e,t){let{selectedIndex:r}=eg("Tab.Panels"),n=R(t),i=(0,y.useMemo)(()=>({selectedIndex:r}),[r]);return B()({ourProps:{ref:n},theirProps:e,slot:i,defaultTag:"div",name:"Tabs.Panels"})}),eT=G(function(e,t){var r,n,i,a;let s=(0,y.useId)(),{id:o=`headlessui-tabs-panel-${s}`,tabIndex:l=0,...u}=e,{selectedIndex:c,tabs:d,panels:f}=eg("Tab.Panel"),p=ey("Tab.Panel"),h=(0,y.useRef)(null),m=R(h,t);L(()=>p.registerPanel(h),[p,h]);let g=eu("panels"),v=f.indexOf(h);-1===v&&(v=g);let w=v===c,{isFocusVisible:x,focusProps:P}=b(),k=(0,y.useMemo)(()=>({selected:w,focus:x}),[w,x]),E=U({ref:m,id:o,role:"tabpanel","aria-labelledby":null==(n=null==(r=d[v])?void 0:r.current)?void 0:n.id,tabIndex:w?l:-1},P),T=B();return w||null!=(i=u.unmount)&&!i||null!=(a=u.static)&&a?T({ourProps:E,theirProps:u,slot:k,defaultTag:"div",features:ew,visible:w,name:"Tabs.Panel"}):y.createElement(X,{"aria-hidden":"true",...E})}),eS=Object.assign(ex,{Group:eP,List:ek,Panels:eE,Panel:eT})},64701:function(e,t,r){r.d(t,{F:function(){return u}});var n=r(95977);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,n.U2)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},a=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n.refs&&n.refs.forEach(t=>i(t,r,e))}},s=(e,t)=>{t.shouldUseNativeValidation&&a(e,t);let r={};for(let i in e){let a=(0,n.U2)(t.fields,i),s=Object.assign(e[i]||{},{ref:a&&a.ref});if(o(t.names||Object.keys(e),i)){let e=Object.assign({},(0,n.U2)(r,i));(0,n.t8)(e,"root",s),(0,n.t8)(r,i,e)}else(0,n.t8)(r,i,s)}return r},o=(e,t)=>e.some(e=>e.startsWith(t+"."));var l=function(e,t){for(var r={};e.length;){var i=e[0],a=i.code,s=i.message,o=i.path.join(".");if(!r[o]){if("unionErrors"in i){var l=i.unionErrors[0].errors[0];r[o]={message:l.message,type:l.code}}else r[o]={message:s,type:a}}if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[o].types,c=u&&u[i.code];r[o]=(0,n.KN)(o,t,r,a,c?[].concat(c,i.message):i.message)}e.shift()}return r},u=function(e,t,r){return void 0===r&&(r={}),function(n,i,o){try{return Promise.resolve(function(i,s){try{var l=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](n,t)).then(function(e){return o.shouldUseNativeValidation&&a({},o),{errors:{},values:r.raw?n:e}})}catch(e){return s(e)}return l&&l.then?l.then(void 0,s):l}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:s(l(e.errors,!o.shouldUseNativeValidation&&"all"===o.criteriaMode),o)};throw e}))}catch(e){return Promise.reject(e)}}}},34733:function(e,t,r){r.d(t,{A:function(){return I}});var[n,i]=(0,r(67740).k)({name:"ButtonGroupContext",strict:!1}),a=r(46100),s=r(49975),o=r(50959),l=r(90074),u=r(72196),c=r(93738),d=r(21832),f=r(49488),p=r(84563),h=r(78210),m=r(91988),g=(0,h.tv)({base:["z-0","group","relative","inline-flex","items-center","justify-center","box-border","appearance-none","outline-none","select-none","whitespace-nowrap","min-w-max","font-normal","subpixel-antialiased","overflow-hidden","tap-highlight-transparent","data-[pressed=true]:scale-[0.97]",...m.Dh],variants:{variant:{solid:"",bordered:"border-medium bg-transparent",light:"bg-transparent",flat:"",faded:"border-medium",shadow:"",ghost:"border-medium bg-transparent"},size:{sm:"px-3 min-w-16 h-8 text-tiny gap-2 rounded-small",md:"px-4 min-w-20 h-10 text-small gap-2 rounded-medium",lg:"px-6 min-w-24 h-12 text-medium gap-3 rounded-large"},color:{default:"",primary:"",secondary:"",success:"",warning:"",danger:""},radius:{none:"rounded-none",sm:"rounded-small",md:"rounded-medium",lg:"rounded-large",full:"rounded-full"},fullWidth:{true:"w-full"},isDisabled:{true:"opacity-disabled pointer-events-none"},isInGroup:{true:"[&:not(:first-child):not(:last-child)]:rounded-none"},isIconOnly:{true:"px-0 !gap-0",false:"[&>svg]:max-w-[theme(spacing.8)]"},disableAnimation:{true:"!transition-none data-[pressed=true]:scale-100",false:"transition-transform-colors-opacity motion-reduce:transition-none"}},defaultVariants:{size:"md",variant:"solid",color:"default",fullWidth:!1,isDisabled:!1,isInGroup:!1},compoundVariants:[{variant:"solid",color:"default",class:p.J.solid.default},{variant:"solid",color:"primary",class:p.J.solid.primary},{variant:"solid",color:"secondary",class:p.J.solid.secondary},{variant:"solid",color:"success",class:p.J.solid.success},{variant:"solid",color:"warning",class:p.J.solid.warning},{variant:"solid",color:"danger",class:p.J.solid.danger},{variant:"shadow",color:"default",class:p.J.shadow.default},{variant:"shadow",color:"primary",class:p.J.shadow.primary},{variant:"shadow",color:"secondary",class:p.J.shadow.secondary},{variant:"shadow",color:"success",class:p.J.shadow.success},{variant:"shadow",color:"warning",class:p.J.shadow.warning},{variant:"shadow",color:"danger",class:p.J.shadow.danger},{variant:"bordered",color:"default",class:p.J.bordered.default},{variant:"bordered",color:"primary",class:p.J.bordered.primary},{variant:"bordered",color:"secondary",class:p.J.bordered.secondary},{variant:"bordered",color:"success",class:p.J.bordered.success},{variant:"bordered",color:"warning",class:p.J.bordered.warning},{variant:"bordered",color:"danger",class:p.J.bordered.danger},{variant:"flat",color:"default",class:p.J.flat.default},{variant:"flat",color:"primary",class:p.J.flat.primary},{variant:"flat",color:"secondary",class:p.J.flat.secondary},{variant:"flat",color:"success",class:p.J.flat.success},{variant:"flat",color:"warning",class:p.J.flat.warning},{variant:"flat",color:"danger",class:p.J.flat.danger},{variant:"faded",color:"default",class:p.J.faded.default},{variant:"faded",color:"primary",class:p.J.faded.primary},{variant:"faded",color:"secondary",class:p.J.faded.secondary},{variant:"faded",color:"success",class:p.J.faded.success},{variant:"faded",color:"warning",class:p.J.faded.warning},{variant:"faded",color:"danger",class:p.J.faded.danger},{variant:"light",color:"default",class:[p.J.light.default,"data-[hover=true]:bg-default/40"]},{variant:"light",color:"primary",class:[p.J.light.primary,"data-[hover=true]:bg-primary/20"]},{variant:"light",color:"secondary",class:[p.J.light.secondary,"data-[hover=true]:bg-secondary/20"]},{variant:"light",color:"success",class:[p.J.light.success,"data-[hover=true]:bg-success/20"]},{variant:"light",color:"warning",class:[p.J.light.warning,"data-[hover=true]:bg-warning/20"]},{variant:"light",color:"danger",class:[p.J.light.danger,"data-[hover=true]:bg-danger/20"]},{variant:"ghost",color:"default",class:[p.J.ghost.default,"data-[hover=true]:!bg-default"]},{variant:"ghost",color:"primary",class:[p.J.ghost.primary,"data-[hover=true]:!bg-primary data-[hover=true]:!text-primary-foreground"]},{variant:"ghost",color:"secondary",class:[p.J.ghost.secondary,"data-[hover=true]:!bg-secondary data-[hover=true]:!text-secondary-foreground"]},{variant:"ghost",color:"success",class:[p.J.ghost.success,"data-[hover=true]:!bg-success data-[hover=true]:!text-success-foreground"]},{variant:"ghost",color:"warning",class:[p.J.ghost.warning,"data-[hover=true]:!bg-warning data-[hover=true]:!text-warning-foreground"]},{variant:"ghost",color:"danger",class:[p.J.ghost.danger,"data-[hover=true]:!bg-danger !text-danger-foreground"]},{isInGroup:!0,class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,size:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,size:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,isRounded:!0,class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,radius:"none",class:"rounded-none first:rounded-s-none last:rounded-e-none"},{isInGroup:!0,radius:"sm",class:"rounded-none first:rounded-s-small last:rounded-e-small"},{isInGroup:!0,radius:"md",class:"rounded-none first:rounded-s-medium last:rounded-e-medium"},{isInGroup:!0,radius:"lg",class:"rounded-none first:rounded-s-large last:rounded-e-large"},{isInGroup:!0,radius:"full",class:"rounded-none first:rounded-s-full last:rounded-e-full"},{isInGroup:!0,variant:["ghost","bordered"],color:"default",className:m.Zs.default},{isInGroup:!0,variant:["ghost","bordered"],color:"primary",className:m.Zs.primary},{isInGroup:!0,variant:["ghost","bordered"],color:"secondary",className:m.Zs.secondary},{isInGroup:!0,variant:["ghost","bordered"],color:"success",className:m.Zs.success},{isInGroup:!0,variant:["ghost","bordered"],color:"warning",className:m.Zs.warning},{isInGroup:!0,variant:["ghost","bordered"],color:"danger",className:m.Zs.danger},{isIconOnly:!0,size:"sm",class:"min-w-8 w-8 h-8"},{isIconOnly:!0,size:"md",class:"min-w-10 w-10 h-10"},{isIconOnly:!0,size:"lg",class:"min-w-12 w-12 h-12"},{variant:["solid","faded","flat","bordered","shadow"],class:"data-[hover=true]:opacity-hover"}]});(0,h.tv)({base:"inline-flex items-center justify-center h-auto",variants:{fullWidth:{true:"w-full"}},defaultVariants:{fullWidth:!1}});var v=r(59757),y=r(53783),b=r(65052),w=r(20321),x=(0,h.tv)({slots:{base:"relative inline-flex flex-col gap-2 items-center justify-center",wrapper:"relative flex",circle1:["absolute","w-full","h-full","rounded-full","animate-spinner-ease-spin","border-2","border-solid","border-t-transparent","border-l-transparent","border-r-transparent"],circle2:["absolute","w-full","h-full","rounded-full","opacity-75","animate-spinner-linear-spin","border-2","border-dotted","border-t-transparent","border-l-transparent","border-r-transparent"],label:"text-foreground dark:text-foreground-dark font-regular"},variants:{size:{sm:{wrapper:"w-5 h-5",circle1:"border-2",circle2:"border-2",label:"text-small"},md:{wrapper:"w-8 h-8",circle1:"border-3",circle2:"border-3",label:"text-medium"},lg:{wrapper:"w-10 h-10",circle1:"border-3",circle2:"border-3",label:"text-large"}},color:{current:{circle1:"border-b-current",circle2:"border-b-current"},white:{circle1:"border-b-white",circle2:"border-b-white"},default:{circle1:"border-b-default",circle2:"border-b-default"},primary:{circle1:"border-b-primary",circle2:"border-b-primary"},secondary:{circle1:"border-b-secondary",circle2:"border-b-secondary"},success:{circle1:"border-b-success",circle2:"border-b-success"},warning:{circle1:"border-b-warning",circle2:"border-b-warning"},danger:{circle1:"border-b-danger",circle2:"border-b-danger"}},labelColor:{foreground:{label:"text-foreground"},primary:{label:"text-primary"},secondary:{label:"text-secondary"},success:{label:"text-success"},warning:{label:"text-warning"},danger:{label:"text-danger"}}},defaultVariants:{size:"md",color:"primary",labelColor:"foreground"}}),P=r(85151),k=r(11527),E=(0,w.Gp)((e,t)=>{let{slots:r,classNames:n,label:i,getSpinnerProps:a}=function(e){let[t,r]=(0,w.oe)(e,x.variantKeys),{children:n,className:i,classNames:a,label:s,...l}=t,u=(0,o.useMemo)(()=>x({...r}),[(0,b.Xx)(r)]),c=(0,P.W)(null==a?void 0:a.base,i),d=s||n,f=(0,o.useMemo)(()=>d&&"string"==typeof d?d:l["aria-label"]?"":"Loading",[n,d,l["aria-label"]]),p=(0,o.useCallback)(()=>({"aria-label":f,className:u.base({class:c}),...l}),[f,u,c,l]);return{label:d,slots:u,classNames:a,getSpinnerProps:p}}({...e});return(0,k.jsxs)("div",{ref:t,...a(),children:[(0,k.jsxs)("div",{className:r.wrapper({class:null==n?void 0:n.wrapper}),children:[(0,k.jsx)("i",{className:r.circle1({class:null==n?void 0:n.circle1})}),(0,k.jsx)("i",{className:r.circle2({class:null==n?void 0:n.circle2})})]}),i&&(0,k.jsx)("span",{className:r.label({class:null==n?void 0:n.label}),children:i})]})});E.displayName="NextUI.Spinner";var T=r(66469),S=r(63039),C=r(49621),M=r(12565),_=e=>{let{ripples:t=[],motionProps:r,color:n="currentColor",style:i,onClear:a}=e;return(0,k.jsx)(k.Fragment,{children:t.map(e=>{let t=Math.min(Math.max(.01*e.size,.2),e.size>100?.75:.5);return(0,k.jsx)(T.X,{features:S.H,children:(0,k.jsx)(C.M,{mode:"popLayout",children:(0,k.jsx)(M.m.span,{animate:{transform:"scale(2)",opacity:0},className:"nextui-ripple",exit:{opacity:0},initial:{transform:"scale(0)",opacity:.35},style:{position:"absolute",backgroundColor:n,borderRadius:"100%",transformOrigin:"center",pointerEvents:"none",overflow:"hidden",inset:0,zIndex:0,top:e.y,left:e.x,width:`${e.size}px`,height:`${e.size}px`,...i},transition:{duration:t},onAnimationComplete:()=>{a(e.key)},...r})})},e.key)})})};_.displayName="NextUI.Ripple";var A=(0,w.Gp)((e,t)=>{let{Component:r,domRef:n,children:p,styles:h,spinnerSize:m,spinner:w=(0,k.jsx)(E,{color:"current",size:m}),spinnerPlacement:x,startContent:P,endContent:T,isLoading:S,disableRipple:C,getButtonProps:M,getRippleProps:A,isIconOnly:I}=function(e){var t,r,n,p,h,m,w,x,P;let k=i(),E=(0,a.w)(),T=!!k,{ref:S,as:C,children:M,startContent:_,endContent:A,autoFocus:I,className:L,spinner:D,isLoading:N=!1,disableRipple:O=!1,fullWidth:R=null!=(t=null==k?void 0:k.fullWidth)&&t,radius:F=null==k?void 0:k.radius,size:j=null!=(r=null==k?void 0:k.size)?r:"md",color:K=null!=(n=null==k?void 0:k.color)?n:"default",variant:V=null!=(p=null==k?void 0:k.variant)?p:"solid",disableAnimation:B=null!=(m=null!=(h=null==k?void 0:k.disableAnimation)?h:null==E?void 0:E.disableAnimation)&&m,isDisabled:$=null!=(w=null==k?void 0:k.isDisabled)&&w,isIconOnly:z=null!=(x=null==k?void 0:k.isIconOnly)&&x,spinnerPlacement:W="start",onPress:U,onClick:G,...Z}=e,H=C||"button",q="string"==typeof H,X=(0,d.gy)(S),Y=null!=(P=O||(null==E?void 0:E.disableRipple))?P:B,{isFocusVisible:J,isFocused:Q,focusProps:ee}=(0,l.F)({autoFocus:I}),et=$||N,er=(0,o.useMemo)(()=>g({size:j,color:K,variant:V,radius:F,fullWidth:R,isDisabled:et,isInGroup:T,disableAnimation:B,isIconOnly:z,className:L}),[j,K,V,F,R,et,T,z,B,L]),{onClick:en,onClear:ei,ripples:ea}=function(e={}){let[t,r]=(0,o.useState)([]);return{ripples:t,onClick:(0,o.useCallback)(e=>{let t=e.currentTarget,n=Math.max(t.clientWidth,t.clientHeight),i=t.getBoundingClientRect();r(t=>[...t,{key:(0,b.QI)(t.length.toString()),size:n,x:e.clientX-i.left-n/2,y:e.clientY-i.top-n/2}])},[]),onClear:(0,o.useCallback)(e=>{r(t=>t.filter(t=>t.key!==e))},[]),...e}}(),es=(0,o.useCallback)(e=>{Y||et||B||!X.current||en(e)},[Y,et,B,X,en]),{buttonProps:eo,isPressed:el}=(0,v.j)({elementType:C,isDisabled:et,onPress:U,onClick:(0,u.t)(G,es),...Z},X),{isHovered:eu,hoverProps:ec}=(0,y.X)({isDisabled:et}),ed=(0,o.useCallback)((e={})=>({"data-disabled":(0,s.PB)(et),"data-focus":(0,s.PB)(Q),"data-pressed":(0,s.PB)(el),"data-focus-visible":(0,s.PB)(J),"data-hover":(0,s.PB)(eu),"data-loading":(0,s.PB)(N),...(0,c.d)(eo,ee,ec,(0,f.z)(Z,{enabled:q}),(0,f.z)(e))}),[N,et,Q,el,q,J,eu,eo,ee,ec,Z]),ef=e=>(0,o.isValidElement)(e)?(0,o.cloneElement)(e,{"aria-hidden":!0,focusable:!1,tabIndex:-1}):null,ep=ef(_);return{Component:H,children:M,domRef:X,spinner:D,styles:er,startContent:ep,endContent:ef(A),isLoading:N,spinnerPlacement:W,spinnerSize:(0,o.useMemo)(()=>({sm:"sm",md:"sm",lg:"md"})[j],[j]),disableRipple:Y,getButtonProps:ed,getRippleProps:(0,o.useCallback)(()=>({ripples:ea,onClear:ei}),[ea,ei]),isIconOnly:z}}({...e,ref:t});return(0,k.jsxs)(r,{ref:n,className:h,...M(),children:[P,S&&"start"===x&&w,S&&I?null:p,S&&"end"===x&&w,T,!C&&(0,k.jsx)(_,{...A()})]})});A.displayName="NextUI.Button";var I=A},46881:function(e,t,r){r.d(t,{Lj:function(){return n},y7:function(){return i}});var n={ease:[.36,.66,.4,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1],spring:[.155,1.105,.295,1.12],springOut:[.57,-.15,.62,.07],softSpring:[.16,1.11,.3,1.02]};n.easeOut,n.easeIn;var i={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.2}},exit:{transform:"scale(0.85)",opacity:0,transition:{type:"easeOut",duration:.15}}},scaleSpringOpacity:{initial:{opacity:0,transform:"scale(0.8)"},enter:{opacity:1,transform:"scale(1)",transition:{type:"spring",bounce:0,duration:.3}},exit:{opacity:0,transform:"scale(0.96)",transition:{type:"easeOut",bounce:0,duration:.15}}},scale:{enter:{scale:1},exit:{scale:.95}},scaleFadeIn:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.25,ease:n.easeIn}},exit:{transform:"scale(0.95)",opacity:0,transition:{duration:.2,ease:n.easeOut}}},scaleInOut:{enter:{transform:"scale(1)",opacity:1,transition:{duration:.4,ease:n.ease}},exit:{transform:"scale(1.03)",opacity:0,transition:{duration:.3,ease:n.ease}}},fade:{enter:{opacity:1,transition:{duration:.4,ease:n.ease}},exit:{opacity:0,transition:{duration:.3,ease:n.ease}}},collapse:{enter:{opacity:1,height:"auto",transition:{height:{type:"spring",bounce:0,duration:.3},opacity:{easings:"ease",duration:.4}}},exit:{opacity:0,height:0,transition:{easings:"ease",duration:.3}}}}},80071:function(e,t,r){r.d(t,{J:function(){return h}});var n=r(50959),i=r(46100),a=r(20321),s=(0,r(78210).tv)({slots:{wrapper:"relative shadow-black/5",zoomedWrapper:"relative overflow-hidden rounded-inherit",img:"relative z-10 opacity-0 shadow-black/5 data-[loaded=true]:opacity-100",blurredImg:["absolute","z-0","inset-0","w-full","h-full","object-cover","filter","blur-lg","scale-105","saturate-150","opacity-30","translate-y-1"]},variants:{radius:{none:{},sm:{},md:{},lg:{},full:{}},shadow:{none:{wrapper:"shadow-none",img:"shadow-none"},sm:{wrapper:"shadow-small",img:"shadow-small"},md:{wrapper:"shadow-medium",img:"shadow-medium"},lg:{wrapper:"shadow-large",img:"shadow-large"}},isZoomed:{true:{img:["object-cover","transform","hover:scale-125"]}},showSkeleton:{true:{wrapper:["group","relative","overflow-hidden","bg-content3 dark:bg-content2"],img:"opacity-0"}},disableAnimation:{true:{img:"transition-none"},false:{img:"transition-transform-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{radius:"lg",shadow:"none",isZoomed:!1,isBlurred:!1,showSkeleton:!1},compoundVariants:[{showSkeleton:!0,disableAnimation:!1,class:{wrapper:["before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2"]}}],compoundSlots:[{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"none",class:"rounded-none"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"full",class:"rounded-full"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"sm",class:"rounded-small"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"md",class:"rounded-md"},{slots:["wrapper","img","blurredImg","zoomedWrapper"],radius:"lg",class:"rounded-large"}]}),o=r(21832),l=r(65052),u=r(85151),c=r(49975),d=r(84194),f=r(11527),p=(0,a.Gp)((e,t)=>{let{Component:r,domRef:p,slots:h,classNames:m,isBlurred:g,isZoomed:v,fallbackSrc:y,removeWrapper:b,disableSkeleton:w,getImgProps:x,getWrapperProps:P,getBlurredImgProps:k}=function(e){var t,r;let f=(0,i.w)(),[p,h]=(0,a.oe)(e,s.variantKeys),{ref:m,as:g,src:v,className:y,classNames:b,loading:w,isBlurred:x,fallbackSrc:P,isLoading:k,disableSkeleton:E=!!P,removeWrapper:T=!1,onError:S,onLoad:C,srcSet:M,sizes:_,crossOrigin:A,...I}=p,L=function(e={}){let{loading:t,src:r,srcSet:i,onLoad:a,onError:s,crossOrigin:o,sizes:l,ignoreFallback:u}=e,[c,f]=(0,n.useState)("pending");(0,n.useEffect)(()=>{f(r?"loading":"pending")},[r]);let p=(0,n.useRef)(),h=(0,n.useCallback)(()=>{if(!r)return;m();let e=new Image;e.src=r,o&&(e.crossOrigin=o),i&&(e.srcset=i),l&&(e.sizes=l),t&&(e.loading=t),e.onload=e=>{m(),f("loaded"),null==a||a(e)},e.onerror=e=>{m(),f("failed"),null==s||s(e)},p.current=e},[r,o,i,l,a,s,t]),m=()=>{p.current&&(p.current.onload=null,p.current.onerror=null,p.current=null)};return(0,d.G)(()=>{if(!u)return"loading"===c&&h(),()=>{m()}},[c,h,u]),u?"loaded":c}({src:v,loading:w,onError:S,onLoad:C,ignoreFallback:!1,srcSet:M,sizes:_,crossOrigin:A}),D=null!=(r=null!=(t=e.disableAnimation)?t:null==f?void 0:f.disableAnimation)&&r,N="loaded"===L&&!k,O="loading"===L||k,R=e.isZoomed,F=(0,o.gy)(m),{w:j,h:K}=(0,n.useMemo)(()=>({w:p.width?"number"==typeof p.width?`${p.width}px`:p.width:"fit-content",h:p.height?"number"==typeof p.height?`${p.height}px`:p.height:"auto"}),[null==p?void 0:p.width,null==p?void 0:p.height]),V=(!v||!N)&&!!P,B=O&&!E,$=(0,n.useMemo)(()=>s({...h,disableAnimation:D,showSkeleton:B}),[(0,l.Xx)(h),D,B]),z=(0,u.W)(y,null==b?void 0:b.img),W=(0,n.useCallback)(()=>{let e=V?{backgroundImage:`url(${P})`}:{};return{className:$.wrapper({class:null==b?void 0:b.wrapper}),style:{...e,maxWidth:j}}},[$,V,P,null==b?void 0:b.wrapper]),U=(0,n.useCallback)(()=>({src:v,"aria-hidden":(0,c.PB)(!0),className:$.blurredImg({class:null==b?void 0:b.blurredImg})}),[$,v,null==b?void 0:b.blurredImg]);return{Component:g||"img",domRef:F,slots:$,classNames:b,isBlurred:x,disableSkeleton:E,fallbackSrc:P,removeWrapper:T,isZoomed:R,isLoading:O,getImgProps:(e={})=>{let t=(0,u.W)(z,null==e?void 0:e.className);return{src:v,ref:F,"data-loaded":(0,c.PB)(N),className:$.img({class:t}),loading:w,srcSet:M,sizes:_,crossOrigin:A,...I,style:{...(null==I?void 0:I.height)&&{height:K},...e.style,...I.style}}},getWrapperProps:W,getBlurredImgProps:U}}({...e,ref:t}),E=(0,f.jsx)(r,{ref:p,...x()});if(b)return E;let T=(0,f.jsx)("div",{className:h.zoomedWrapper({class:null==m?void 0:m.zoomedWrapper}),children:E});return g?(0,f.jsxs)("div",{...P(),children:[v?T:E,(0,n.cloneElement)(E,k())]}):v||!w||y?(0,f.jsxs)("div",{...P(),children:[" ",v?T:E]}):E});p.displayName="NextUI.Image";var h=p},66101:function(e,t,r){r.d(t,{Y:function(){return U}});var n=r(46100),i=r(20321),a=r(84194),s=r(90074),o=r(78210),l=r(91988),u=(0,o.tv)({slots:{base:"group flex flex-col data-[hidden=true]:hidden",label:["absolute","z-10","pointer-events-none","origin-top-left","rtl:origin-top-right","subpixel-antialiased","block","text-small","text-foreground-500"],mainWrapper:"h-full",inputWrapper:"relative w-full inline-flex tap-highlight-transparent flex-row items-center shadow-sm px-3 gap-3",innerWrapper:"inline-flex w-full items-center h-full box-border",input:["w-full font-normal bg-transparent !outline-none placeholder:text-foreground-500 focus-visible:outline-none","data-[has-start-content=true]:ps-1.5","data-[has-end-content=true]:pe-1.5","file:cursor-pointer file:bg-transparent file:border-0","autofill:bg-transparent bg-clip-text"],clearButton:["p-2","-m-2","z-10","hidden","absolute","end-3","start-auto","appearance-none","outline-none","select-none","opacity-0","hover:!opacity-100","cursor-pointer","active:!opacity-70","rounded-full",...l.Dh],helperWrapper:"hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",description:"text-tiny text-foreground-400",errorMessage:"text-tiny text-danger"},variants:{variant:{flat:{inputWrapper:["bg-default-100","data-[hover=true]:bg-default-200","group-data-[focus=true]:bg-default-100"]},faded:{inputWrapper:["bg-default-100","border-medium","border-default-200","data-[hover=true]:border-default-400"],value:"group-data-[has-value=true]:text-default-foreground"},bordered:{inputWrapper:["border-medium","border-default-200","data-[hover=true]:border-default-400","group-data-[focus=true]:border-default-foreground"]},underlined:{inputWrapper:["!px-1","!pb-0","!gap-0","relative","box-border","border-b-medium","shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","border-default-200","!rounded-none","hover:border-default-300","after:content-['']","after:w-0","after:origin-center","after:bg-default-foreground","after:absolute","after:left-1/2","after:-translate-x-1/2","after:-bottom-[2px]","after:h-[2px]","group-data-[focus=true]:after:w-full"],innerWrapper:"pb-1",label:"group-data-[filled-within=true]:text-foreground"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{label:"text-tiny",inputWrapper:"h-8 min-h-8 px-2 rounded-small",input:"text-small",clearButton:"text-medium"},md:{inputWrapper:"h-10 min-h-10 rounded-medium",input:"text-small",clearButton:"text-large"},lg:{inputWrapper:"h-12 min-h-12 rounded-large",input:"text-medium",clearButton:"text-large"}},radius:{none:{inputWrapper:"rounded-none"},sm:{inputWrapper:"rounded-small"},md:{inputWrapper:"rounded-medium"},lg:{inputWrapper:"rounded-large"},full:{inputWrapper:"rounded-full"}},labelPlacement:{outside:{mainWrapper:"flex flex-col"},"outside-left":{base:"flex-row items-center flex-nowrap data-[has-helper=true]:items-start",inputWrapper:"flex-1",mainWrapper:"flex flex-col",label:"relative text-foreground pe-2 ps-2 pointer-events-auto"},inside:{label:"text-tiny cursor-text",inputWrapper:"flex-col items-start justify-center gap-0",innerWrapper:"group-data-[has-label=true]:items-end"}},fullWidth:{true:{base:"w-full"}},isClearable:{true:{input:"peer pr-6 rtl:pr-0 rtl:pl-6",clearButton:"peer-data-[filled=true]:opacity-70 peer-data-[filled=true]:block"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none",inputWrapper:"pointer-events-none",label:"pointer-events-none"}},isInvalid:{true:{label:"!text-danger",input:"!placeholder:text-danger !text-danger"}},isRequired:{true:{label:"after:content-['*'] after:text-danger after:ml-0.5 rtl:after:ml-[unset] rtl:after:mr-0.5"}},isMultiline:{true:{label:"relative",inputWrapper:"!h-auto",innerWrapper:"items-start group-data-[has-label=true]:items-start",input:"resize-none data-[hide-scroll=true]:scrollbar-hide"}},disableAnimation:{true:{input:"transition-none",inputWrapper:"transition-none",label:"transition-none"},false:{inputWrapper:"transition-background motion-reduce:transition-none !duration-150",label:["will-change-auto","!duration-200","!ease-out","motion-reduce:transition-none","transition-[transform,color,left,opacity]"],clearButton:["transition-opacity","motion-reduce:transition-none"]}}},defaultVariants:{variant:"flat",color:"default",size:"md",fullWidth:!0,labelPlacement:"inside",isDisabled:!1,isMultiline:!1},compoundVariants:[{variant:"flat",color:"default",class:{input:"group-data-[has-value=true]:text-default-foreground"}},{variant:"flat",color:"primary",class:{inputWrapper:["bg-primary-50","data-[hover=true]:bg-primary-100","text-primary","group-data-[focus=true]:bg-primary-50","placeholder:text-primary"],input:"placeholder:text-primary",label:"text-primary"}},{variant:"flat",color:"secondary",class:{inputWrapper:["bg-secondary-50","text-secondary","data-[hover=true]:bg-secondary-100","group-data-[focus=true]:bg-secondary-50","placeholder:text-secondary"],input:"placeholder:text-secondary",label:"text-secondary"}},{variant:"flat",color:"success",class:{inputWrapper:["bg-success-50","text-success-600","dark:text-success","placeholder:text-success-600","dark:placeholder:text-success","data-[hover=true]:bg-success-100","group-data-[focus=true]:bg-success-50"],input:"placeholder:text-success-600 dark:placeholder:text-success",label:"text-success-600 dark:text-success"}},{variant:"flat",color:"warning",class:{inputWrapper:["bg-warning-50","text-warning-600","dark:text-warning","placeholder:text-warning-600","dark:placeholder:text-warning","data-[hover=true]:bg-warning-100","group-data-[focus=true]:bg-warning-50"],input:"placeholder:text-warning-600 dark:placeholder:text-warning",label:"text-warning-600 dark:text-warning"}},{variant:"flat",color:"danger",class:{inputWrapper:["bg-danger-50","text-danger","dark:text-danger-500","placeholder:text-danger","dark:placeholder:text-danger-500","data-[hover=true]:bg-danger-100","group-data-[focus=true]:bg-danger-50"],input:"placeholder:text-danger dark:placeholder:text-danger-500",label:"text-danger dark:text-danger-500"}},{variant:"faded",color:"primary",class:{label:"text-primary",inputWrapper:"data-[hover=true]:border-primary focus-within:border-primary"}},{variant:"faded",color:"secondary",class:{label:"text-secondary",inputWrapper:"data-[hover=true]:border-secondary focus-within:border-secondary"}},{variant:"faded",color:"success",class:{label:"text-success",inputWrapper:"data-[hover=true]:border-success focus-within:border-success"}},{variant:"faded",color:"warning",class:{label:"text-warning",inputWrapper:"data-[hover=true]:border-warning focus-within:border-warning"}},{variant:"faded",color:"danger",class:{label:"text-danger",inputWrapper:"data-[hover=true]:border-danger focus-within:border-danger"}},{variant:"underlined",color:"default",class:{input:"group-data-[has-value=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{inputWrapper:"after:bg-primary",label:"text-primary"}},{variant:"underlined",color:"secondary",class:{inputWrapper:"after:bg-secondary",label:"text-secondary"}},{variant:"underlined",color:"success",class:{inputWrapper:"after:bg-success",label:"text-success"}},{variant:"underlined",color:"warning",class:{inputWrapper:"after:bg-warning",label:"text-warning"}},{variant:"underlined",color:"danger",class:{inputWrapper:"after:bg-danger",label:"text-danger"}},{variant:"bordered",color:"primary",class:{inputWrapper:"group-data-[focus=true]:border-primary",label:"text-primary"}},{variant:"bordered",color:"secondary",class:{inputWrapper:"group-data-[focus=true]:border-secondary",label:"text-secondary"}},{variant:"bordered",color:"success",class:{inputWrapper:"group-data-[focus=true]:border-success",label:"text-success"}},{variant:"bordered",color:"warning",class:{inputWrapper:"group-data-[focus=true]:border-warning",label:"text-warning"}},{variant:"bordered",color:"danger",class:{inputWrapper:"group-data-[focus=true]:border-danger",label:"text-danger"}},{labelPlacement:"inside",color:"default",class:{label:"group-data-[filled-within=true]:text-default-600"}},{labelPlacement:"outside",color:"default",class:{label:"group-data-[filled-within=true]:text-foreground"}},{radius:"full",size:["sm"],class:{inputWrapper:"px-3"}},{radius:"full",size:"md",class:{inputWrapper:"px-4"}},{radius:"full",size:"lg",class:{inputWrapper:"px-5"}},{disableAnimation:!1,variant:["faded","bordered"],class:{inputWrapper:"transition-colors motion-reduce:transition-none"}},{disableAnimation:!1,variant:"underlined",class:{inputWrapper:"after:transition-width motion-reduce:after:transition-none"}},{variant:["flat","faded"],class:{inputWrapper:[...l.ID]}},{isInvalid:!0,variant:"flat",class:{inputWrapper:["!bg-danger-50","data-[hover=true]:!bg-danger-100","group-data-[focus=true]:!bg-danger-50"]}},{isInvalid:!0,variant:"bordered",class:{inputWrapper:"!border-danger group-data-[focus=true]:!border-danger"}},{isInvalid:!0,variant:"underlined",class:{inputWrapper:"after:!bg-danger"}},{labelPlacement:"inside",size:"sm",class:{inputWrapper:"h-12 py-1.5 px-3"}},{labelPlacement:"inside",size:"md",class:{inputWrapper:"h-14 py-2"}},{labelPlacement:"inside",size:"lg",class:{label:"text-small",inputWrapper:"h-16 py-2.5 gap-0"}},{labelPlacement:"inside",size:"sm",variant:["bordered","faded"],class:{inputWrapper:"py-1"}},{labelPlacement:["inside","outside"],class:{label:["group-data-[filled-within=true]:pointer-events-auto"]}},{labelPlacement:"outside",isMultiline:!1,class:{base:"relative justify-end",label:["pb-0","z-20","top-1/2","-translate-y-1/2","group-data-[filled-within=true]:start-0"]}},{labelPlacement:["inside"],class:{label:["group-data-[filled-within=true]:scale-85"]}},{labelPlacement:["inside"],variant:"flat",class:{innerWrapper:"pb-0.5"}},{variant:"underlined",size:"sm",class:{innerWrapper:"pb-1"}},{variant:"underlined",size:["md","lg"],class:{innerWrapper:"pb-1.5"}},{labelPlacement:"inside",size:["sm","md"],class:{label:"text-small"}},{labelPlacement:"inside",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px)]"]}},{labelPlacement:"inside",isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px)]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_6px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:["faded","bordered"],isMultiline:!1,size:"lg",class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_8px_-_theme(borderWidth.medium))]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"sm",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.tiny)/2_-_5px)]"]}},{labelPlacement:"inside",variant:"underlined",isMultiline:!1,size:"md",class:{label:["group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_3.5px)]"]}},{labelPlacement:"inside",variant:"underlined",size:"lg",isMultiline:!1,class:{label:["text-medium","group-data-[filled-within=true]:-translate-y-[calc(50%_+_theme(fontSize.small)/2_-_4px)]"]}},{labelPlacement:"outside",size:"sm",isMultiline:!1,class:{label:["start-2","text-tiny","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.tiny)/2_+_16px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_8px)]"}},{labelPlacement:"outside",size:"md",isMultiline:!1,class:{label:["start-3","end-auto","text-small","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_20px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_10px)]"}},{labelPlacement:"outside",size:"lg",isMultiline:!1,class:{label:["start-3","end-auto","text-medium","group-data-[filled-within=true]:-translate-y-[calc(100%_+_theme(fontSize.small)/2_+_24px)]"],base:"data-[has-label=true]:mt-[calc(theme(fontSize.small)_+_12px)]"}},{labelPlacement:"outside-left",size:"sm",class:{label:"group-data-[has-helper=true]:pt-2"}},{labelPlacement:"outside-left",size:"md",class:{label:"group-data-[has-helper=true]:pt-3"}},{labelPlacement:"outside-left",size:"lg",class:{label:"group-data-[has-helper=true]:pt-4"}},{labelPlacement:["outside","outside-left"],isMultiline:!0,class:{inputWrapper:"py-2"}},{labelPlacement:"outside",isMultiline:!0,class:{label:"pb-1.5"}},{labelPlacement:"inside",isMultiline:!0,class:{label:"pb-0.5",input:"pt-0"}},{isMultiline:!0,disableAnimation:!1,class:{input:"transition-height !duration-100 motion-reduce:transition-none"}},{labelPlacement:["inside","outside"],class:{label:["pe-2","max-w-full","text-ellipsis","overflow-hidden"]}},{isMultiline:!0,radius:"full",class:{inputWrapper:"data-[has-multiple-rows=true]:rounded-large"}}]}),c=r(21832),d=r(49488),f=r(53783),p=r(32510),h=r(59449),m=r(49975),g=r(85151),v=(...e)=>{let t=" ";for(let r of e)if("string"==typeof r&&r.length>0){t=r;break}return t},y=r(69581),b=r(65052),w=r(50959);function x(e,t,r){let[n,i]=(0,w.useState)(e||t),a=(0,w.useRef)(void 0!==e),s=void 0!==e;(0,w.useEffect)(()=>{let e=a.current;e!==s&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),a.current=s},[s]);let o=s?e:n,l=(0,w.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(o,e)&&r(e,...t),s||(o=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((r,...i)=>{let a=e(s?o:r,...i);return(n(a,...t),s)?r:a})):(s||i(e),n(e,...t))},[s,o,r]);return[o,l]}var P=r(93738),k=r(72196),E=r(27602),T=r(93136),S=r(99479),C=r(5759),M=r(5733),_=r(19349),A=r(54980),I=r(71450),L=r(13006),D=r(90300);let N={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},O={...N,customError:!0,valid:!1},R={isInvalid:!1,validationDetails:N,validationErrors:[]},F=(0,w.createContext)({}),j="__formValidationState"+Date.now();function K(e){return e?Array.isArray(e)?e:[e]:[]}function V(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:O}:null}function B(e,t){return e===t||e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,r)=>e===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([e,r])=>t.validationDetails[e]===r)}var $=r(11527),z=e=>(0,$.jsx)("svg",{"aria-hidden":"true",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,$.jsx)("path",{d:"M12 2a10 10 0 1010 10A10.016 10.016 0 0012 2zm3.36 12.3a.754.754 0 010 1.06.748.748 0 01-1.06 0l-2.3-2.3-2.3 2.3a.748.748 0 01-1.06 0 .754.754 0 010-1.06l2.3-2.3-2.3-2.3A.75.75 0 019.7 8.64l2.3 2.3 2.3-2.3a.75.75 0 011.06 1.06l-2.3 2.3z",fill:"currentColor"})}),W=(0,i.Gp)((e,t)=>{let{Component:r,label:o,description:l,isClearable:N,startContent:W,endContent:U,labelPlacement:G,hasHelper:Z,isOutsideLeft:H,shouldLabelBeOutside:q,errorMessage:X,isInvalid:Y,getBaseProps:J,getLabelProps:Q,getInputProps:ee,getInnerWrapperProps:et,getInputWrapperProps:er,getMainWrapperProps:en,getHelperWrapperProps:ei,getDescriptionProps:ea,getErrorMessageProps:es,getClearButtonProps:eo}=function(e){var t,r,o,l;let N=(0,n.w)(),[$,z]=(0,i.oe)(e,u.variantKeys),{ref:W,as:U,type:G,label:Z,baseRef:H,wrapperRef:q,description:X,className:Y,classNames:J,autoFocus:Q,startContent:ee,endContent:et,onClear:er,onChange:en,validationState:ei,validationBehavior:ea=null!=(t=null==N?void 0:N.validationBehavior)?t:"aria",innerWrapperRef:es,onValueChange:eo=()=>{},...el}=$,eu=(0,w.useCallback)(e=>{eo(null!=e?e:"")},[eo]),[ec,ed]=(0,w.useState)(!1),ef=null!=(o=null!=(r=e.disableAnimation)?r:null==N?void 0:N.disableAnimation)&&o,ep=(0,c.gy)(W),eh=(0,c.gy)(H),em=(0,c.gy)(q),eg=(0,c.gy)(es),[ev,ey]=x($.value,null!=(l=$.defaultValue)?l:"",eu),eb=["date","time","month","week","range"].includes(G),ew=!(0,m.xb)(ev)||eb,ex=ew||ec,eP="hidden"===G,ek=e.isMultiline,eE="file"===G,eT=(0,g.W)(null==J?void 0:J.base,Y,ew?"is-filled":""),eS=(0,w.useCallback)(()=>{var e;ey(""),null==er||er(),null==(e=ep.current)||e.focus()},[ey,er]);(0,a.G)(()=>{ep.current&&ey(ep.current.value)},[ep.current]);let{labelProps:eC,inputProps:eM,isInvalid:e_,validationErrors:eA,validationDetails:eI,descriptionProps:eL,errorMessageProps:eD}=function(e,t){let r,n,{inputElementType:i="input",isDisabled:a=!1,isRequired:s=!1,isReadOnly:o=!1,type:l="text",validationBehavior:u="aria"}=e,[c,d]=x(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=(0,A.k)(e,t),p=function(e){if(e[j]){let{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}=e[j];return{realtimeValidation:t,displayValidation:r,updateValidation:n,resetValidation:i,commitValidation:a}}return function(e){let{isInvalid:t,validationState:r,name:n,value:i,builtinValidation:a,validate:s,validationBehavior:o="aria"}=e;r&&(t||(t="invalid"===r));let l=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:O}:null,u=(0,w.useMemo)(()=>V(function(e,t){if("function"==typeof e){let r=e(t);if(r&&"boolean"!=typeof r)return K(r)}return[]}(s,i)),[s,i]);(null==a?void 0:a.validationDetails.valid)&&(a=null);let c=(0,w.useContext)(F),d=(0,w.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>K(c[e])):K(c[n]):[],[c,n]),[f,p]=(0,w.useState)(c),[h,m]=(0,w.useState)(!1);c!==f&&(p(c),m(!1));let g=(0,w.useMemo)(()=>V(h?[]:d),[h,d]),v=(0,w.useRef)(R),[y,b]=(0,w.useState)(R),x=(0,w.useRef)(R),[P,k]=(0,w.useState)(!1);return(0,w.useEffect)(()=>{if(!P)return;k(!1);let e=u||a||v.current;B(e,x.current)||(x.current=e,b(e))}),{realtimeValidation:l||g||u||a||R,displayValidation:"native"===o?l||g||y:l||g||u||a||y,updateValidation(e){"aria"!==o||B(y,e)?v.current=e:b(e)},resetValidation(){B(R,x.current)||(x.current=R,b(R)),"native"===o&&k(!1),m(!0)},commitValidation(){"native"===o&&k(!0),m(!0)}}}(e)}({...e,value:c}),{isInvalid:h,validationErrors:m,validationDetails:g}=p.displayValidation,{labelProps:v,fieldProps:y,descriptionProps:b,errorMessageProps:k}=function(e){let{description:t,errorMessage:r,isInvalid:n,validationState:i}=e,{labelProps:a,fieldProps:s}=(0,C.N)(e),o=(0,M.mp)([!!t,!!r,n,i]),l=(0,M.mp)([!!t,!!r,n,i]);return{labelProps:a,fieldProps:s=(0,_.d)(s,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:o},errorMessageProps:{id:l}}}({...e,isInvalid:h,errorMessage:e.errorMessage||m}),N=(0,E.z)(e,{labelable:!0}),$={type:l,pattern:e.pattern};return r=(0,w.useRef)(c),n=(0,T.i)(()=>{d&&d(r.current)}),(0,w.useEffect)(()=>{var e;let r=null==t?void 0:null===(e=t.current)||void 0===e?void 0:e.form;return null==r||r.addEventListener("reset",n),()=>{null==r||r.removeEventListener("reset",n)}},[t,n]),!function(e,t,r){let{validationBehavior:n,focus:i}=e;(0,L.b)(()=>{if("native"===n&&(null==r?void 0:r.current)){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";r.current.setCustomValidity(i),r.current.hasAttribute("title")||(r.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=r.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let a=(0,D.i)(()=>{t.resetValidation()}),s=(0,D.i)(e=>{var n,a;t.displayValidation.isInvalid||t.commitValidation();let s=null==r?void 0:null===(n=r.current)||void 0===n?void 0:n.form;!e.defaultPrevented&&r&&s&&function(e){for(let t=0;t<e.elements.length;t++){let r=e.elements[t];if(!r.validity.valid)return r}return null}(s)===r.current&&(i?i():null===(a=r.current)||void 0===a||a.focus(),(0,I._w)("keyboard")),e.preventDefault()}),o=(0,D.i)(()=>{t.commitValidation()});(0,w.useEffect)(()=>{let e=null==r?void 0:r.current;if(!e)return;let t=e.form;return e.addEventListener("invalid",s),e.addEventListener("change",o),null==t||t.addEventListener("reset",a),()=>{e.removeEventListener("invalid",s),e.removeEventListener("change",o),null==t||t.removeEventListener("reset",a)}},[r,s,o,a,n])}(e,p,t),(0,w.useEffect)(()=>{if(t.current instanceof(0,S.k)(t.current).HTMLTextAreaElement){let e=t.current;Object.defineProperty(e,"defaultValue",{get:()=>e.value,set:()=>{},configurable:!0})}},[t]),{labelProps:v,inputProps:(0,P.d)(N,"input"===i&&$,{disabled:a,readOnly:o,required:s&&"native"===u,"aria-required":s&&"aria"===u||void 0,"aria-invalid":h||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:e=>d(e.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...y}),descriptionProps:b,errorMessageProps:k,isInvalid:h,validationErrors:m,validationDetails:g}}({...e,validationBehavior:ea,autoCapitalize:e.autoCapitalize,value:ev,"aria-label":v(e["aria-label"],e.label,e.placeholder),inputElementType:ek?"textarea":"input",onChange:ey},ep);eE&&(delete eM.value,delete eM.onChange);let{isFocusVisible:eN,isFocused:eO,focusProps:eR}=(0,s.F)({autoFocus:Q,isTextInput:!0}),{isHovered:eF,hoverProps:ej}=(0,f.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{isHovered:eK,hoverProps:eV}=(0,f.X)({isDisabled:!!(null==e?void 0:e.isDisabled)}),{focusProps:eB,isFocusVisible:e$}=(0,s.F)(),{focusWithinProps:ez}=(0,p.L)({onFocusWithinChange:ed}),{pressProps:eW}=(0,h.r)({isDisabled:!!(null==e?void 0:e.isDisabled)||!!(null==e?void 0:e.isReadOnly),onPress:eS}),eU="invalid"===ei||e.isInvalid||e_,eG=(0,w.useMemo)(()=>{var t;if(eE){if(!e.labelPlacement)return"outside";if("inside"===e.labelPlacement)return(0,y.Z)("Input with file type doesn't support inside label. Converting to outside ..."),"outside"}return e.labelPlacement&&"inside"!==e.labelPlacement||Z?null!=(t=e.labelPlacement)?t:"inside":"outside"},[e.labelPlacement,Z]),eZ="function"==typeof $.errorMessage?$.errorMessage({isInvalid:eU,validationErrors:eA,validationDetails:eI}):$.errorMessage||(null==eA?void 0:eA.join(" ")),eH=!!er||e.isClearable,eq=!!Z||!!X||!!eZ,eX=!!$.placeholder,eY=!!Z,eJ=!!X||!!eZ,eQ="outside"===eG||"outside-left"===eG,e0="inside"===eG,e1=!!ep.current&&(!ep.current.value||""===ep.current.value||!ev||""===ev)&&eX,e2="outside-left"===eG,e5=!!ee,e3=!!eQ&&("outside-left"===eG||eX||"outside"===eG&&e5),e9="outside"===eG&&!eX&&!e5,e6=(0,w.useMemo)(()=>u({...z,isInvalid:eU,labelPlacement:eG,isClearable:eH,disableAnimation:ef}),[(0,b.Xx)(z),eU,eG,eH,e5,ef]),e4=(0,w.useCallback)((t={})=>({ref:eh,className:e6.base({class:eT}),"data-slot":"base","data-filled":(0,m.PB)(ew||eX||e5||e1||eE),"data-filled-within":(0,m.PB)(ex||eX||e5||e1||eE),"data-focus-within":(0,m.PB)(ec),"data-focus-visible":(0,m.PB)(eN),"data-readonly":(0,m.PB)(e.isReadOnly),"data-focus":(0,m.PB)(eO),"data-hover":(0,m.PB)(eF||eK),"data-required":(0,m.PB)(e.isRequired),"data-invalid":(0,m.PB)(eU),"data-disabled":(0,m.PB)(e.isDisabled),"data-has-elements":(0,m.PB)(eq),"data-has-helper":(0,m.PB)(eJ),"data-has-label":(0,m.PB)(eY),"data-has-value":(0,m.PB)(!e1),"data-hidden":(0,m.PB)(eP),...ez,...t}),[e6,eT,ew,eO,eF,eK,eU,eJ,eY,eq,e1,e5,ec,eN,ex,eX,ez,eP,e.isReadOnly,e.isRequired,e.isDisabled]),e8=(0,w.useCallback)((e={})=>({"data-slot":"label",className:e6.label({class:null==J?void 0:J.label}),...(0,P.d)(eC,eV,e)}),[e6,eK,eC,null==J?void 0:J.label]),e7=(0,w.useCallback)((t={})=>({ref:ep,"data-slot":"input","data-filled":(0,m.PB)(ew),"data-filled-within":(0,m.PB)(ex),"data-has-start-content":(0,m.PB)(e5),"data-has-end-content":(0,m.PB)(!!et),className:e6.input({class:(0,g.W)(null==J?void 0:J.input,ew?"is-filled":"")}),...(0,P.d)(eR,eM,(0,d.z)(el,{enabled:!0,labelable:!0,omitEventNames:new Set(Object.keys(eM))}),t),"aria-readonly":(0,m.PB)(e.isReadOnly),onChange:(0,k.t)(eM.onChange,en)}),[e6,ev,eR,eM,el,ew,ex,e5,et,null==J?void 0:J.input,e.isReadOnly,e.isRequired,en]),te=(0,w.useCallback)((e={})=>({ref:em,"data-slot":"input-wrapper","data-hover":(0,m.PB)(eF||eK),"data-focus-visible":(0,m.PB)(eN),"data-focus":(0,m.PB)(eO),className:e6.inputWrapper({class:(0,g.W)(null==J?void 0:J.inputWrapper,ew?"is-filled":"")}),...(0,P.d)(e,ej),onClick:e=>{ep.current&&e.currentTarget===e.target&&ep.current.focus()},style:{cursor:"text",...e.style}}),[e6,eF,eK,eN,eO,ev,null==J?void 0:J.inputWrapper]),tt=(0,w.useCallback)((e={})=>({...e,ref:eg,"data-slot":"inner-wrapper",onClick:e=>{ep.current&&e.currentTarget===e.target&&ep.current.focus()},className:e6.innerWrapper({class:(0,g.W)(null==J?void 0:J.innerWrapper,null==e?void 0:e.className)})}),[e6,null==J?void 0:J.innerWrapper]),tr=(0,w.useCallback)((e={})=>({...e,"data-slot":"main-wrapper",className:e6.mainWrapper({class:(0,g.W)(null==J?void 0:J.mainWrapper,null==e?void 0:e.className)})}),[e6,null==J?void 0:J.mainWrapper]),tn=(0,w.useCallback)((e={})=>({...e,"data-slot":"helper-wrapper",className:e6.helperWrapper({class:(0,g.W)(null==J?void 0:J.helperWrapper,null==e?void 0:e.className)})}),[e6,null==J?void 0:J.helperWrapper]),ti=(0,w.useCallback)((e={})=>({...e,...eL,"data-slot":"description",className:e6.description({class:(0,g.W)(null==J?void 0:J.description,null==e?void 0:e.className)})}),[e6,null==J?void 0:J.description]),ta=(0,w.useCallback)((e={})=>({...e,...eD,"data-slot":"error-message",className:e6.errorMessage({class:(0,g.W)(null==J?void 0:J.errorMessage,null==e?void 0:e.className)})}),[e6,eD,null==J?void 0:J.errorMessage]),ts=(0,w.useCallback)((e={})=>({...e,role:"button",tabIndex:0,"aria-label":"clear input","data-slot":"clear-button","data-focus-visible":(0,m.PB)(e$),className:e6.clearButton({class:(0,g.W)(null==J?void 0:J.clearButton,null==e?void 0:e.className)}),...(0,P.d)(eW,eB)}),[e6,e$,eW,eB,null==J?void 0:J.clearButton]);return{Component:U||"div",classNames:J,domRef:ep,label:Z,description:X,startContent:ee,endContent:et,labelPlacement:eG,isClearable:eH,hasHelper:eJ,hasStartContent:e5,isLabelOutside:e3,isOutsideLeft:e2,isLabelOutsideAsPlaceholder:e9,shouldLabelBeOutside:eQ,shouldLabelBeInside:e0,hasPlaceholder:eX,isInvalid:eU,errorMessage:eZ,getBaseProps:e4,getLabelProps:e8,getInputProps:e7,getMainWrapperProps:tr,getInputWrapperProps:te,getInnerWrapperProps:tt,getHelperWrapperProps:tn,getDescriptionProps:ti,getErrorMessageProps:ta,getClearButtonProps:ts}}({...e,ref:t}),el=o?(0,$.jsx)("label",{...Q(),children:o}):null,eu=(0,w.useMemo)(()=>N?(0,$.jsx)("span",{...eo(),children:U||(0,$.jsx)(z,{})}):U,[N,eo]),ec=(0,w.useMemo)(()=>Z?(0,$.jsx)("div",{...ei(),children:Y&&X?(0,$.jsx)("div",{...es(),children:X}):l?(0,$.jsx)("div",{...ea(),children:l}):null}):null,[Z,Y,X,l,ei,es,ea]),ed=(0,w.useMemo)(()=>(0,$.jsxs)("div",{...et(),children:[W,(0,$.jsx)("input",{...ee()}),eu]}),[W,eu,ee,et]),ef=(0,w.useMemo)(()=>q?(0,$.jsxs)("div",{...en(),children:[(0,$.jsxs)("div",{...er(),children:[H?null:el,ed]}),ec]}):(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)("div",{...er(),children:[el,ed]}),ec]}),[G,ec,q,el,ed,X,l,en,er,es,ea]);return(0,$.jsxs)(r,{...J(),children:[H?el:null,ef]})});W.displayName="NextUI.Input";var U=W},7439:function(e,t,r){r.d(t,{O:function(){return x}});var n=r(78210),i=r(91988),a=(0,n.tv)({base:["relative inline-flex items-center outline-none tap-highlight-transparent",...i.Dh],variants:{size:{sm:"text-small",md:"text-medium",lg:"text-large"},color:{foreground:"text-foreground",primary:"text-primary",secondary:"text-secondary",success:"text-success",warning:"text-warning",danger:"text-danger"},underline:{none:"no-underline",hover:"hover:underline",always:"underline",active:"active:underline",focus:"focus:underline"},isBlock:{true:["px-2","py-1","hover:after:opacity-100","after:content-['']","after:inset-0","after:opacity-0","after:w-full","after:h-full","after:rounded-xl","after:transition-background","after:absolute"],false:"hover:opacity-80 active:opacity-disabled transition-opacity"},isDisabled:{true:"opacity-disabled cursor-default pointer-events-none"},disableAnimation:{true:"after:transition-none transition-none"}},compoundVariants:[{isBlock:!0,color:"foreground",class:"hover:after:bg-foreground/10"},{isBlock:!0,color:"primary",class:"hover:after:bg-primary/20"},{isBlock:!0,color:"secondary",class:"hover:after:bg-secondary/20"},{isBlock:!0,color:"success",class:"hover:after:bg-success/20"},{isBlock:!0,color:"warning",class:"hover:after:bg-warning/20"},{isBlock:!0,color:"danger",class:"hover:after:bg-danger/20"},{underline:["hover","always","active","focus"],class:"underline-offset-4"}],defaultVariants:{color:"primary",size:"md",isBlock:!1,underline:"none",isDisabled:!1}}),s=r(27602),o=r(93738),l=r(90913),u=r(54980),c=r(59449),d=r(46100),f=r(20321),p=r(21832),h=r(90074),m=r(65052),g=r(49975),v=r(50959),y=r(11527),b=e=>(0,y.jsxs)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",viewBox:"0 0 24 24",width:"1em",...e,children:[(0,y.jsx)("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),(0,y.jsx)("path",{d:"M15 3h6v6"}),(0,y.jsx)("path",{d:"M10 14L21 3"})]}),w=(0,f.Gp)((e,t)=>{let{Component:r,children:n,showAnchorIcon:i,anchorIcon:w=(0,y.jsx)(b,{className:"flex mx-1 text-current self-center"}),getLinkProps:x}=function(e){var t,r,n,i;let y=(0,d.w)(),[b,w]=(0,f.oe)(e,a.variantKeys),{ref:x,as:P,children:k,anchorIcon:E,isExternal:T=!1,showAnchorIcon:S=!1,autoFocus:C=!1,className:M,onPress:_,onPressStart:A,onPressEnd:I,onClick:L,...D}=b,N=(0,p.gy)(x),O=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==y?void 0:y.disableAnimation)&&r,{linkProps:R}=function(e,t){let{elementType:r="a",onPress:n,onPressStart:i,onPressEnd:a,onClick:d,isDisabled:f,...p}=e,h={};"a"!==r&&(h={role:"link",tabIndex:f?void 0:0});let{focusableProps:m}=(0,u.k)(e,t),{pressProps:g,isPressed:v}=(0,c.r)({onPress:n,onPressStart:i,onPressEnd:a,isDisabled:f,ref:t}),y=(0,s.z)(p,{labelable:!0,isLink:"a"===r}),b=(0,o.d)(m,g),w=(0,l.tv)(),x=(0,l.eY)(e);return{isPressed:v,linkProps:(0,o.d)(y,x,{...b,...h,"aria-disabled":f||void 0,"aria-current":e["aria-current"],onClick:t=>{var r;null==(r=g.onClick)||r.call(g,t),d&&d(t),!w.isNative&&t.currentTarget instanceof HTMLAnchorElement&&t.currentTarget.href&&!t.isDefaultPrevented()&&(0,l.b0)(t.currentTarget,t)&&e.href&&(t.preventDefault(),w.open(t.currentTarget,t,e.href,e.routerOptions))}})}}({...D,onPress:_,onPressStart:A,onPressEnd:I,onClick:L,isDisabled:e.isDisabled,elementType:`${P}`},N),{isFocused:F,isFocusVisible:j,focusProps:K}=(0,h.F)({autoFocus:C});T&&(D.rel=null!=(n=D.rel)?n:"noopener noreferrer",D.target=null!=(i=D.target)?i:"_blank");let V=(0,v.useMemo)(()=>a({...w,disableAnimation:O,className:M}),[(0,m.Xx)(w),O,M]);return{Component:P||"a",children:k,anchorIcon:E,showAnchorIcon:S,getLinkProps:(0,v.useCallback)(()=>({ref:N,className:V,"data-focus":(0,g.PB)(F),"data-disabled":(0,g.PB)(e.isDisabled),"data-focus-visible":(0,g.PB)(j),...(0,o.d)(K,R,D)}),[V,F,j,K,R,D])}}({ref:t,...e});return(0,y.jsx)(r,{...x(),children:(0,y.jsxs)(y.Fragment,{children:[n,i&&w]})})});w.displayName="NextUI.Link";var x=w},86849:function(e,t,r){r.d(t,{X:function(){return ee}});var n=r(11527);function i(e){let{isSelected:t,disableAnimation:r,...i}=e;return(0,n.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...i,children:(0,n.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:r?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var a=r(50959),s=r(78210),o=r(91988),l=(0,s.tv)({slots:{base:"w-full relative flex flex-col gap-1 p-1",list:"w-full flex flex-col gap-0.5 outline-none",emptyContent:["h-10","px-2","py-1.5","w-full","h-full","text-foreground-400","text-start"]}}),u=(0,s.tv)({slots:{base:["flex","group","gap-2","items-center","justify-between","relative","px-2","py-1.5","w-full","h-full","box-border","rounded-small","subpixel-antialiased","outline-none","cursor-pointer","tap-highlight-transparent",...o.Dh,"data-[focus-visible=true]:dark:ring-offset-background-content1"],wrapper:"w-full flex flex-col items-start justify-center",title:"flex-1 text-small font-normal",description:["w-full","text-tiny","text-foreground-500","group-hover:text-current"],selectedIcon:["text-inherit","w-3","h-3","flex-shrink-0"],shortcut:["px-1","py-0.5","rounded","font-sans","text-foreground-500","text-tiny","border-small","border-default-300","group-hover:border-current"]},variants:{variant:{solid:{base:""},bordered:{base:"border-medium border-transparent bg-transparent"},light:{base:"bg-transparent"},faded:{base:["border-small border-transparent hover:border-default data-[hover=true]:bg-default-100","data-[selectable=true]:focus:border-default data-[selectable=true]:focus:bg-default-100"]},flat:{base:""},shadow:{base:"data-[hover=true]:shadow-lg"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},showDivider:{true:{base:["mb-1.5","after:content-['']","after:absolute","after:-bottom-1","after:left-0","after:right-0","after:h-divider","after:bg-divider"]},false:{}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{},false:{base:"data-[hover=true]:transition-colors"}}},defaultVariants:{variant:"solid",color:"default",showDivider:!1},compoundVariants:[{variant:"solid",color:"default",class:{base:["data-[hover=true]:bg-default","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"solid",color:"primary",class:{base:["data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"solid",color:"secondary",class:{base:["data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"solid",color:"success",class:{base:["data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"solid",color:"warning",class:{base:["data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"solid",color:"danger",class:{base:["data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"shadow",color:"default",class:{base:["data-[hover=true]:shadow-default/50 data-[hover=true]:bg-default data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:shadow-default/50 data-[selectable=true]:focus:bg-default data-[selectable=true]:focus:text-default-foreground"]}},{variant:"shadow",color:"primary",class:{base:["data-[hover=true]:shadow-primary/30 data-[hover=true]:bg-primary data-[hover=true]:text-primary-foreground","data-[selectable=true]:focus:shadow-primary/30 data-[selectable=true]:focus:bg-primary data-[selectable=true]:focus:text-primary-foreground"]}},{variant:"shadow",color:"secondary",class:{base:["data-[hover=true]:shadow-secondary/30 data-[hover=true]:bg-secondary data-[hover=true]:text-secondary-foreground","data-[selectable=true]:focus:shadow-secondary/30 data-[selectable=true]:focus:bg-secondary data-[selectable=true]:focus:text-secondary-foreground"]}},{variant:"shadow",color:"success",class:{base:["data-[hover=true]:shadow-success/30 data-[hover=true]:bg-success data-[hover=true]:text-success-foreground","data-[selectable=true]:focus:shadow-success/30 data-[selectable=true]:focus:bg-success data-[selectable=true]:focus:text-success-foreground"]}},{variant:"shadow",color:"warning",class:{base:["data-[hover=true]:shadow-warning/30 data-[hover=true]:bg-warning data-[hover=true]:text-warning-foreground","data-[selectable=true]:focus:shadow-warning/30 data-[selectable=true]:focus:bg-warning data-[selectable=true]:focus:text-warning-foreground"]}},{variant:"shadow",color:"danger",class:{base:["data-[hover=true]:shadow-danger/30 data-[hover=true]:bg-danger data-[hover=true]:text-danger-foreground","data-[selectable=true]:focus:shadow-danger/30 data-[selectable=true]:focus:bg-danger data-[selectable=true]:focus:text-danger-foreground"]}},{variant:"bordered",color:"default",class:{base:["data-[hover=true]:border-default","data-[selectable=true]:focus:border-default"]}},{variant:"bordered",color:"primary",class:{base:["data-[hover=true]:border-primary data-[hover=true]:text-primary","data-[selectable=true]:focus:border-primary data-[selectable=true]:focus:text-primary"]}},{variant:"bordered",color:"secondary",class:{base:["data-[hover=true]:border-secondary data-[hover=true]:text-secondary","data-[selectable=true]:focus:border-secondary data-[selectable=true]:focus:text-secondary"]}},{variant:"bordered",color:"success",class:{base:["data-[hover=true]:border-success data-[hover=true]:text-success","data-[selectable=true]:focus:border-success data-[selectable=true]:focus:text-success"]}},{variant:"bordered",color:"warning",class:{base:["data-[hover=true]:border-warning data-[hover=true]:text-warning","data-[selectable=true]:focus:border-warning data-[selectable=true]:focus:text-warning"]}},{variant:"bordered",color:"danger",class:{base:["data-[hover=true]:border-danger data-[hover=true]:text-danger","data-[selectable=true]:focus:border-danger data-[selectable=true]:focus:text-danger"]}},{variant:"flat",color:"default",class:{base:["data-[hover=true]:bg-default/40","data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:bg-default/40","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"flat",color:"primary",class:{base:["data-[hover=true]:bg-primary/20 data-[hover=true]:text-primary","data-[selectable=true]:focus:bg-primary/20 data-[selectable=true]:focus:text-primary"]}},{variant:"flat",color:"secondary",class:{base:["data-[hover=true]:bg-secondary/20 data-[hover=true]:text-secondary","data-[selectable=true]:focus:bg-secondary/20 data-[selectable=true]:focus:text-secondary"]}},{variant:"flat",color:"success",class:{base:["data-[hover=true]:bg-success/20 data-[hover=true]:text-success","data-[selectable=true]:focus:bg-success/20 data-[selectable=true]:focus:text-success"]}},{variant:"flat",color:"warning",class:{base:["data-[hover=true]:bg-warning/20 data-[hover=true]:text-warning","data-[selectable=true]:focus:bg-warning/20 data-[selectable=true]:focus:text-warning"]}},{variant:"flat",color:"danger",class:{base:["data-[hover=true]:bg-danger/20 data-[hover=true]:text-danger","data-[selectable=true]:focus:bg-danger/20 data-[selectable=true]:focus:text-danger"]}},{variant:"faded",color:"default",class:{base:["data-[hover=true]:text-default-foreground","data-[selectable=true]:focus:text-default-foreground"]}},{variant:"faded",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"faded",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"faded",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"faded",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"faded",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}},{variant:"light",color:"default",class:{base:["data-[hover=true]:text-default-500","data-[selectable=true]:focus:text-default-500"]}},{variant:"light",color:"primary",class:{base:["data-[hover=true]:text-primary","data-[selectable=true]:focus:text-primary"]}},{variant:"light",color:"secondary",class:{base:["data-[hover=true]:text-secondary","data-[selectable=true]:focus:text-secondary"]}},{variant:"light",color:"success",class:{base:["data-[hover=true]:text-success","data-[selectable=true]:focus:text-success"]}},{variant:"light",color:"warning",class:{base:["data-[hover=true]:text-warning","data-[selectable=true]:focus:text-warning"]}},{variant:"light",color:"danger",class:{base:["data-[hover=true]:text-danger","data-[selectable=true]:focus:text-danger"]}}]}),c=(0,s.tv)({slots:{base:"relative mb-2",heading:"pl-1 text-tiny text-foreground-500",group:"data-[has-title=true]:pt-1",divider:"mt-2"}}),d=r(46100),f=r(20321),p=r(90074),h=r(49488),m=r(65052),g=r(85151),v=r(49975);let y=new WeakMap;var b=r(91796),w=r(78230),x=r(72196),P=r(27602),k=r(90913),E=r(93738),T=r(50567);let S=new WeakMap;var C=r(53783),M=r(660),_=r(85228),A=r(59449);let I={prefix:String(Math.round(1e10*Math.random())),current:0},L=(a.createContext(I),a.createContext(!1));function D(){return!1}function N(){return!0}function O(e){return()=>{}}"undefined"!=typeof window&&window.document&&window.document.createElement,new WeakMap,a.useId;var R=(0,f.Gp)((e,t)=>{let{Component:r,rendered:s,description:o,isSelectable:l,isSelected:c,isDisabled:I,selectedIcon:R,startContent:F,endContent:j,hideSelectedIcon:K,disableAnimation:V,getItemProps:B,getLabelProps:$,getWrapperProps:z,getDescriptionProps:W,getSelectedIconProps:U}=function(e){var t,r;let n=(0,d.w)(),[i,s]=(0,f.oe)(e,u.variantKeys),{as:o,item:l,state:c,description:I,startContent:R,endContent:F,isVirtualized:j,selectedIcon:K,className:V,classNames:B,autoFocus:$,onPress:z,onClick:W,shouldHighlightOnFocus:U,hideSelectedIcon:G=!1,isReadOnly:Z=!1,...H}=i,q=null!=(r=null!=(t=e.disableAnimation)?t:null==n?void 0:n.disableAnimation)&&r,X=(0,a.useRef)(null),Y=o||(e.href?"a":"li"),J="string"==typeof Y,{rendered:Q,key:ee}=l,et=c.disabledKeys.has(ee)||e.isDisabled,er="none"!==c.selectionManager.selectionMode,en=!("function"==typeof a.useSyncExternalStore?a.useSyncExternalStore(O,D,N):(0,a.useContext)(L))&&"undefined"!=typeof window&&window.screen.width<=700,{pressProps:ei,isPressed:ea}=(0,A.r)({ref:X,isDisabled:et,onPress:z}),{isHovered:es,hoverProps:eo}=(0,C.X)({isDisabled:et}),{isFocusVisible:el,focusProps:eu}=(0,p.F)({autoFocus:$}),{isFocused:ec,isSelected:ed,optionProps:ef,labelProps:ep,descriptionProps:eh}=function(e,t,r){var n,i,a,s,o,l,u,c;let{key:d}=e,f=y.get(t),p=null!==(a=e.isDisabled)&&void 0!==a?a:t.selectionManager.isDisabled(d),h=null!==(s=e.isSelected)&&void 0!==s?s:t.selectionManager.isSelected(d),m=null!==(o=e.shouldSelectOnPressUp)&&void 0!==o?o:null==f?void 0:f.shouldSelectOnPressUp,g=null!==(l=e.shouldFocusOnHover)&&void 0!==l?l:null==f?void 0:f.shouldFocusOnHover,v=null!==(u=e.shouldUseVirtualFocus)&&void 0!==u?u:null==f?void 0:f.shouldUseVirtualFocus,A=null!==(c=e.isVirtualized)&&void 0!==c?c:null==f?void 0:f.isVirtualized,I=(0,b.mp)(),L=(0,b.mp)(),D={role:"option","aria-disabled":p||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?h:void 0};(0,w.V5)()&&(0,w.Pf)()||(D["aria-label"]=e["aria-label"],D["aria-labelledby"]=I,D["aria-describedby"]=L);let N=t.collection.getItem(d);if(A){let e=Number(null==N?void 0:N.index);D["aria-posinset"]=Number.isNaN(e)?void 0:e+1,D["aria-setsize"]=function(e){let t=S.get(e);if(null!=t)return t;t=0;let r=n=>{for(let i of n)"section"===i.type?r((0,T._P)(i,e)):t++};return r(e),S.set(e,t),t}(t.collection)}let O=(null==f?void 0:f.onAction)?()=>{var e;return null==f?void 0:null===(e=f.onAction)||void 0===e?void 0:e.call(f,d)}:void 0,{itemProps:R,isPressed:F,isFocused:j,hasAction:K,allowsSelection:V}=(0,_.C)({selectionManager:t.selectionManager,key:d,ref:r,shouldSelectOnPressUp:m,allowsDifferentPressOrigin:m&&g,isVirtualized:A,shouldUseVirtualFocus:v,isDisabled:p,onAction:O||(null==N?void 0:null===(n=N.props)||void 0===n?void 0:n.onAction)?(0,x.t)(null==N?void 0:null===(i=N.props)||void 0===i?void 0:i.onAction,O):void 0,linkBehavior:null==f?void 0:f.linkBehavior}),{hoverProps:B}=(0,C.X)({isDisabled:p||!g,onHoverStart(){(0,M.E)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(d))}}),$=(0,P.z)(null==N?void 0:N.props);delete $.id;let z=(0,k.eY)(null==N?void 0:N.props);return{optionProps:{...D,...(0,E.d)($,R,B,z),id:function(e,t){let r=y.get(e);if(!r)throw Error("Unknown list");return`${r.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,d)},labelProps:{id:I},descriptionProps:{id:L},isFocused:j,isFocusVisible:j&&(0,M.E)(),isSelected:h,isDisabled:p,isPressed:F,allowsSelection:V,hasAction:K}}({key:ee,isDisabled:et,"aria-label":i["aria-label"],isVirtualized:j},c,X),em=ef,eg=(0,a.useMemo)(()=>u({...s,isDisabled:et,disableAnimation:q}),[(0,m.Xx)(s),et,q]),ev=(0,g.W)(null==B?void 0:B.base,V);Z&&(em=(0,m.Os)(em));let ey=U&&ec||(en?es||ea:es||ec&&!el),eb=(0,a.useCallback)((e={})=>({"aria-hidden":(0,v.PB)(!0),"data-disabled":(0,v.PB)(et),className:eg.selectedIcon({class:null==B?void 0:B.selectedIcon}),...e}),[et,eg,B]);return{Component:Y,domRef:X,slots:eg,classNames:B,isSelectable:er,isSelected:ed,isDisabled:et,rendered:Q,description:I,startContent:R,endContent:F,selectedIcon:K,hideSelectedIcon:G,disableAnimation:q,getItemProps:(e={})=>({ref:X,...(0,E.d)({onClick:W},em,Z?{}:(0,E.d)(eu,ei),eo,(0,h.z)(H,{enabled:J}),e),"data-selectable":(0,v.PB)(er),"data-focus":(0,v.PB)(ec),"data-hover":(0,v.PB)(ey),"data-disabled":(0,v.PB)(et),"data-selected":(0,v.PB)(ed),"data-pressed":(0,v.PB)(ea),"data-focus-visible":(0,v.PB)(el),className:eg.base({class:(0,g.W)(ev,e.className)})}),getLabelProps:(e={})=>({...(0,E.d)(ep,e),"data-label":(0,v.PB)(!0),className:eg.title({class:null==B?void 0:B.title})}),getWrapperProps:(e={})=>({...(0,E.d)(e),className:eg.wrapper({class:null==B?void 0:B.wrapper})}),getDescriptionProps:(e={})=>({...(0,E.d)(eh,e),className:eg.description({class:null==B?void 0:B.description})}),getSelectedIconProps:eb}}(e),G=(0,a.useMemo)(()=>{let e=(0,n.jsx)(i,{disableAnimation:V,isSelected:c});return"function"==typeof R?R({icon:e,isSelected:c,isDisabled:I}):R||e},[R,c,I,V]);return(0,n.jsxs)(r,{...B(),children:[F,o?(0,n.jsxs)("div",{...z(),children:[(0,n.jsx)("span",{...$(),children:s}),(0,n.jsx)("span",{...W(),children:o})]}):(0,n.jsx)("span",{...$(),children:s}),l&&!K&&(0,n.jsx)("span",{...U(),children:G}),j]})});R.displayName="NextUI.ListboxItem";var F=(0,s.tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),j=(0,f.Gp)((e,t)=>{let{Component:r,getDividerProps:i}=function(e){var t;let r,n;let{as:i,className:s,orientation:o,...l}=e,u=i||"hr";"hr"===u&&"vertical"===o&&(u="div");let{separatorProps:c}=(t={elementType:"string"==typeof u?u:"hr",orientation:o},n=(0,h.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(r="vertical"),"hr"!==t.elementType)?{separatorProps:{...n,role:"separator","aria-orientation":r}}:{separatorProps:n}),d=(0,a.useMemo)(()=>F({orientation:o,className:s}),[o,s]);return{Component:u,getDividerProps:(0,a.useCallback)((e={})=>({className:d,role:"separator","data-orientation":o,...c,...l,...e}),[d,o,c,l])}}({...e});return(0,n.jsx)(r,{ref:t,...i()})});j.displayName="NextUI.Divider";var K=(0,f.Gp)(({item:e,state:t,as:r,variant:i,color:s,disableAnimation:o,className:l,classNames:u,hideSelectedIcon:d,showDivider:f=!1,dividerProps:p={},itemClasses:h,title:m,...v},y)=>{let w=(0,a.useMemo)(()=>c(),[]),x=(0,g.W)(null==u?void 0:u.base,l),P=(0,g.W)(null==u?void 0:u.divider,null==p?void 0:p.className),{itemProps:k,headingProps:T,groupProps:S}=function(e){let{heading:t,"aria-label":r}=e,n=(0,b.Me)();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,n.jsxs)(r||"li",{"data-slot":"base",...(0,E.d)(k,v),className:w.base({class:x}),children:[e.rendered&&(0,n.jsx)("span",{...T,className:w.heading({class:null==u?void 0:u.heading}),"data-slot":"heading",children:e.rendered}),(0,n.jsxs)("ul",{...S,className:w.group({class:null==u?void 0:u.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:r,props:a}=e,l=(0,n.jsx)(R,{classNames:h,color:s,disableAnimation:o,hideSelectedIcon:d,item:e,state:t,variant:i,...a},r);return e.wrapper&&(l=e.wrapper(l)),l}),f&&(0,n.jsx)(j,{as:"li",className:w.divider({class:P}),...p})]})]},e.key)});K.displayName="NextUI.ListboxSection";var V=r(32510),B=r(5759),$=r(39536);class z{getItemRect(e){let t=this.ref.current,r=null!=e?t.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null;if(!r)return null;let n=t.getBoundingClientRect(),i=r.getBoundingClientRect();return{x:i.left-n.left+t.scrollLeft,y:i.top-n.top+t.scrollTop,width:i.width,height:i.height}}getContentSize(){let e=this.ref.current;return{width:e.scrollWidth,height:e.scrollHeight}}getVisibleRect(){let e=this.ref.current;return{x:e.scrollLeft,y:e.scrollTop,width:e.offsetWidth,height:e.offsetHeight}}constructor(e){this.ref=e}}var W=r(53919);class U{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){for(;null!=e;){let r=this.collection.getItem(e);if((null==r?void 0:r.type)==="item"&&!this.isDisabled(r))return e;e=t(e)}return null}getNextKey(e){return e=this.collection.getKeyAfter(e),this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){return e=this.collection.getKeyBefore(e),this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}findKey(e,t,r){let n=this.layoutDelegate.getItemRect(e);if(!n)return null;let i=n;do e=t(e),n=this.layoutDelegate.getItemRect(e);while(n&&r(i,n));return e}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e))):"grid"===this.layout?"vertical"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn):"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(!(0,W.a)(t))return this.getFirstKey();if("horizontal"===this.orientation){let t=Math.max(0,r.x+r.width-this.layoutDelegate.getVisibleRect().width);for(;r&&r.x>t;)r=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.max(0,r.y+r.height-this.layoutDelegate.getVisibleRect().height);for(;r&&r.y>t;)r=null==(e=this.getKeyAbove(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.layoutDelegate.getItemRect(e);if(!r)return null;if(!(0,W.a)(t))return this.getLastKey();if("horizontal"===this.orientation){let t=Math.min(this.layoutDelegate.getContentSize().width,r.y-r.width+this.layoutDelegate.getVisibleRect().width);for(;r&&r.x<t;)r=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}else{let t=Math.min(this.layoutDelegate.getContentSize().height,r.y-r.height+this.layoutDelegate.getVisibleRect().height);for(;r&&r.y<t;)r=null==(e=this.getKeyBelow(e))?null:this.layoutDelegate.getItemRect(e)}return null!=e?e:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let r=this.collection,n=t||this.getFirstKey();for(;null!=n;){let t=r.getItem(n),i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return n;n=this.getNextKey(n)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new z(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new z(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}var G=r(18660);let Z=new Map;class H{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){let t=this.keyMap.get(e);return t?t.prevKey:null}getKeyAfter(e){let t=this.keyMap.get(e);return t?t.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){return this.keyMap.get(e)}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){let t;this.keyMap=new Map,this.iterable=e;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let n=0;for(let[e,r]of this.keyMap)t?(t.nextKey=e,r.prevKey=t.key):(this.firstKey=e,r.prevKey=void 0),"item"===r.type&&(r.index=n++),(t=r).nextKey=void 0;this.lastKey=null==t?void 0:t.key}}var q=r(54335),X=r(63594),Y=r(54214),J=r(21832);function Q(e,t){let{Component:r,state:i,color:s,variant:o,itemClasses:u,getBaseProps:c,topContent:f,bottomContent:p,hideEmptyContent:m,hideSelectedIcon:v,shouldHighlightOnFocus:w,disableAnimation:x,getEmptyContentProps:k,getListProps:T}=function(e){var t;let r=(0,d.w)(),{ref:n,as:i,state:s,variant:o,color:u,onAction:c,children:f,onSelectionChange:p,disableAnimation:m=null!=(t=null==r?void 0:r.disableAnimation)&&t,itemClasses:v,className:w,topContent:x,bottomContent:k,emptyContent:T="No items.",hideSelectedIcon:S=!1,hideEmptyContent:C=!1,shouldHighlightOnFocus:M=!1,classNames:_,...A}=e,I=i||"ul",L="string"==typeof I,D=(0,J.gy)(n),N=function(e){let{filter:t}=e,r=(0,q.q)(e),n=(0,a.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=(0,a.useCallback)(e=>new H(t?t(e):e),[t]),s=(0,a.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=(0,Y.K)(e,i,s),l=(0,a.useMemo)(()=>new X.Z(o,r),[o,r]),u=(0,a.useRef)(null);return(0,a.useEffect)(()=>{if(null!=r.focusedKey&&!o.getItem(r.focusedKey)){let e;let t=u.current.getItem(r.focusedKey),n=[...u.current.getKeys()].map(e=>{let t=u.current.getItem(e);return"item"===t.type?t:null}).filter(e=>null!==e),i=[...o.getKeys()].map(e=>{let t=o.getItem(e);return"item"===t.type?t:null}).filter(e=>null!==e),a=n.length-i.length,s=Math.min(a>1?Math.max(t.index-a+1,0):t.index,i.length-1);for(;s>=0;){if(!l.isDisabled(i[s].key)){e=i[s];break}s<i.length-1?s++:(s>t.index&&(s=t.index),s--)}r.setFocusedKey(e?e.key:null)}u.current=o},[o,l,r,r.focusedKey]),{collection:o,disabledKeys:n,selectionManager:l}}({...e,children:f,onSelectionChange:p}),O=s||N,{listBoxProps:R}=function(e,t,r){let n=(0,P.z)(e,{labelable:!0}),i=e.selectionBehavior||"toggle",s=e.linkBehavior||("replace"===i?"action":"override");"toggle"===i&&"action"===s&&(s="override");let{listProps:o}=function(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:i,keyboardDelegate:s,layoutDelegate:o}=e,l=function(e){let{locale:t}=(0,G.j)(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]<t[0]?-1:1).join():"");if(Z.has(r))return Z.get(r);let n=new Intl.Collator(t,e);return Z.set(r,n),n}({usage:"search",sensitivity:"base"}),u=t.disabledBehavior,c=(0,a.useMemo)(()=>s||new U({collection:r,disabledKeys:n,disabledBehavior:u,ref:i,collator:l,layoutDelegate:o}),[s,o,r,n,i,l,u]),{collectionProps:d}=(0,$.g)({...e,ref:i,selectionManager:t,keyboardDelegate:c});return{listProps:d}}({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:s}),{focusWithinProps:l}=(0,V.L)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),u=(0,b.Me)(e.id);y.set(t,{id:u,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:s});let{labelProps:c,fieldProps:d}=(0,B.N)({...e,id:u,labelElementType:"span"});return{labelProps:c,listBoxProps:(0,E.d)(n,l,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,E.d)(d,o)})}}({...e,onAction:c},O,D),F=(0,a.useMemo)(()=>l({className:w}),[w]),j=(0,g.W)(null==_?void 0:_.base,w);return{Component:I,state:O,variant:o,color:u,slots:F,classNames:_,topContent:x,bottomContent:k,emptyContent:T,hideEmptyContent:C,shouldHighlightOnFocus:M,hideSelectedIcon:S,disableAnimation:m,className:w,itemClasses:v,getBaseProps:(e={})=>({ref:D,"data-slot":"base",className:F.base({class:j}),...(0,h.z)(A,{enabled:L}),...e}),getListProps:(e={})=>({"data-slot":"list",className:F.list({class:null==_?void 0:_.list}),...R,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:T,className:F.emptyContent({class:null==_?void 0:_.emptyContent}),...e})}}({...e,ref:t}),S=(0,n.jsxs)(r,{...T(),children:[!i.collection.size&&!m&&(0,n.jsx)("li",{children:(0,n.jsx)("div",{...k()})}),[...i.collection].map(e=>{var t;let r={color:s,item:e,state:i,variant:o,disableAnimation:x,hideSelectedIcon:v,...e.props};if("section"===e.type)return(0,n.jsx)(K,{...r,itemClasses:u},e.key);let a=(0,n.jsx)(R,{...r,classNames:(0,E.d)(u,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:w},e.key);return e.wrapper&&(a=e.wrapper(a)),a})]});return(0,n.jsxs)("div",{...c(),children:[f,S,p]})}Q.displayName="NextUI.Listbox";var ee=(0,f.Gp)(Q)},41009:function(e,t,r){r.d(t,{R:function(){return n}});var n=r(80923).c},22607:function(e,t,r){r.d(t,{D:function(){return n},v:function(){return i}});var[n,i]=(0,r(67740).k)({name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Modal />`"})},45747:function(e,t,r){let n;r.d(t,{A:function(){return K}});var i=r(46881),a={enter:{scale:"var(--scale-enter)",y:"var(--slide-enter)",opacity:1,transition:{scale:{duration:.4,ease:i.Lj.ease},opacity:{duration:.4,ease:i.Lj.ease},y:{type:"spring",bounce:0,duration:.6}}},exit:{scale:"var(--scale-exit)",y:"var(--slide-exit)",opacity:0,transition:{duration:.3,ease:i.Lj.ease}}},s=r(22607),o=r(50959),l=r(20321),u={};u={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};var c=r(62682),d=r(18660);let f=Symbol.for("react-aria.i18n.locale"),p=Symbol.for("react-aria.i18n.strings");class h{getStringForLocale(e,t){let r=this.getStringsForLocale(t)[e];if(!r)throw Error(`Could not find intl message ${e} in ${t} locale`);return r}getStringsForLocale(e){let t=this.strings[e];return t||(t=function(e,t,r="en-US"){if(t[e])return t[e];let n=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[n])return t[n];for(let e in t)if(e.startsWith(n+"-"))return t[e];return t[r]}(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(e){if("undefined"==typeof window)return null;let t=window[f];if(void 0===n){let e=window[p];if(!e)return null;for(let r in n={},e)n[r]=new h({[t]:e[r]},t)}let r=null==n?void 0:n[e];if(!r)throw Error(`Strings for package "${e}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(e,t="en-US"){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}}let m=new Map,g=new Map;class v{format(e,t){let r=this.strings.getStringForLocale(e,this.locale);return"function"==typeof r?r(t,this):r}plural(e,t,r="cardinal"){let n=t["="+e];if(n)return"function"==typeof n?n():n;let i=this.locale+":"+r,a=m.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:r}),m.set(i,a)),"function"==typeof(n=t[a.select(e)]||t.other)?n():n}number(e){let t=g.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),g.set(this.locale,t)),t.format(e)}select(e,t){let r=e[t]||e.other;return"function"==typeof r?r():r}constructor(e,t){this.locale=e,this.strings=t}}let y=new WeakMap;var b=r(19349),w=r(13173);let x={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function P(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...a}=e,{visuallyHiddenProps:s}=function(e={}){let{style:t,isFocusable:r}=e,[n,i]=(0,o.useState)(!1),{focusWithinProps:a}=(0,w.L)({isDisabled:!r,onFocusWithinChange:e=>i(e)}),s=(0,o.useMemo)(()=>n?t:t?{...x,...t}:x,[n]);return{visuallyHiddenProps:{...a,style:s}}}(e);return o.createElement(r,(0,b.d)(a,s),t)}function k(e){var t;let{onDismiss:r,...n}=e,i=function(e,t){let r,{locale:n}=(0,d.j)(),i=t&&h.getGlobalDictionaryForPackage(t)||((r=y.get(e))||(r=new h(e),y.set(e,r)),r);return(0,o.useMemo)(()=>new v(n,i),[n,i])}((t=u)&&t.__esModule?t.default:t,"@react-aria/overlays"),a=(0,c.b)(n,i.format("dismiss"));return o.createElement(P,null,o.createElement("button",{...a,tabIndex:-1,onClick:()=>{r&&r()},style:{width:1,height:1}}))}var E=r(11527),T=e=>{let{isSelected:t,isIndeterminate:r,disableAnimation:n,...i}=e;return(0,E.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24",width:"1em",...i,children:(0,E.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})},S=r(66469),C=r(63039),M=r(12565),_=r(91796),A=r(27602),I=r(41554),L=r(24412),D=r(16309);let N="undefined"!=typeof document&&window.visualViewport;function O(){return{width:N&&(null==N?void 0:N.width)||window.innerWidth,height:N&&(null==N?void 0:N.height)||window.innerHeight}}var R=r(93738),F=r(72196),j=(0,l.Gp)((e,t)=>{let{as:r,children:n,role:l="dialog",...u}=e,{Component:c,domRef:d,slots:f,classNames:p,motionProps:h,backdrop:m,closeButton:g,hideCloseButton:v,disableAnimation:y,getDialogProps:b,getBackdropProps:w,getCloseButtonProps:x,onClose:P}=(0,s.v)(),j=function(){let e=(0,D.Av)(),[t,r]=(0,o.useState)(()=>e?{width:0,height:0}:O());return(0,o.useEffect)(()=>{let e=()=>{r(e=>{let t=O();return t.width===e.width&&t.height===e.height?e:t})};return N?N.addEventListener("resize",e):window.addEventListener("resize",e),()=>{N?N.removeEventListener("resize",e):window.removeEventListener("resize",e)}},[]),t}(),{dialogProps:K}=function(e,t){let{role:r="dialog"}=e,n=(0,_.mp)();n=e["aria-label"]?void 0:n;let i=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{if(t.current&&!t.current.contains(document.activeElement)){(0,I.e)(t.current);let e=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),(0,I.e)(t.current)),i.current=!1)},500);return()=>{clearTimeout(e)}}},[t]),(0,L.Bq)(),{dialogProps:{...(0,A.z)(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:e=>{i.current&&e.stopPropagation()}},titleProps:{id:n}}}({role:l},d),V=(0,o.isValidElement)(g)?(0,o.cloneElement)(g,x()):(0,E.jsx)("button",{...x(),children:(0,E.jsx)(T,{})}),B=(0,o.useCallback)(e=>{"Tab"===e.key&&e.nativeEvent.isComposing&&(e.stopPropagation(),e.preventDefault())},[]),$=b((0,R.d)(K,u)),z=(0,E.jsxs)(r||c||"div",{...$,onKeyDown:(0,F.t)($.onKeyDown,B),children:[(0,E.jsx)(k,{onDismiss:P}),!v&&V,"function"==typeof n?n(P):n,(0,E.jsx)(k,{onDismiss:P})]}),W=(0,o.useMemo)(()=>"transparent"===m?null:y?(0,E.jsx)("div",{...w()}):(0,E.jsx)(S.X,{features:C.H,children:(0,E.jsx)(M.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:i.y7.fade,...w()})}),[m,y,w]),U={"--visual-viewport-height":j.height+"px"},G=y?(0,E.jsx)("div",{className:f.wrapper({class:null==p?void 0:p.wrapper}),"data-slot":"wrapper",style:U,children:z}):(0,E.jsx)(S.X,{features:C.H,children:(0,E.jsx)(M.m.div,{animate:"enter",className:f.wrapper({class:null==p?void 0:p.wrapper}),"data-slot":"wrapper",exit:"exit",initial:"exit",variants:a,...h,style:U,children:z})});return(0,E.jsxs)("div",{tabIndex:-1,children:[W,G]})});j.displayName="NextUI.ModalContent";var K=j},81329:function(e,t,r){let n;r.d(t,{R:function(){return j}});var i=r(37371),a=r(22903),s=r(78230),o=r(72196);function l(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}function u(e,t){let r=e;for(l(r,t)&&(r=r.parentElement);r&&!l(r,t);)r=r.parentElement;return r||document.scrollingElement||document.documentElement}let c="undefined"!=typeof document&&window.visualViewport,d=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),f=0;function p(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function h(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function m(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=u(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let r=t.getBoundingClientRect().top,n=e.getBoundingClientRect().top;n>r+e.clientHeight&&(t.scrollTop+=n-r)}e=t.parentElement}}function g(e){return e instanceof HTMLInputElement&&!d.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var v=r(24412);let y=new WeakMap,b=[];var w=r(93738),x=r(50959),P=r(78210),k=r(91988),E=(0,P.tv)({slots:{wrapper:["flex","w-screen","h-[100dvh]","fixed","inset-0","z-50","overflow-x-auto","justify-center","h-[--visual-viewport-height]"],base:["flex","flex-col","relative","bg-white","z-50","w-full","box-border","bg-content1","outline-none","mx-1","my-1","sm:mx-6","sm:my-16"],backdrop:"z-50",header:"flex py-4 px-6 flex-initial text-large font-semibold",body:"flex flex-1 flex-col gap-3 px-6 py-2",footer:"flex flex-row gap-2 px-6 py-4 justify-end",closeButton:["absolute","appearance-none","outline-none","select-none","top-1","right-1","rtl:left-1","rtl:right-[unset]","p-2","text-foreground-500","rounded-full","hover:bg-default-100","active:bg-default-200","tap-highlight-transparent",...k.Dh]},variants:{size:{xs:{base:"max-w-xs"},sm:{base:"max-w-sm"},md:{base:"max-w-md"},lg:{base:"max-w-lg"},xl:{base:"max-w-xl"},"2xl":{base:"max-w-2xl"},"3xl":{base:"max-w-3xl"},"4xl":{base:"max-w-4xl"},"5xl":{base:"max-w-5xl"},full:{base:"my-0 mx-0 sm:mx-0 sm:my-0 max-w-full h-[100dvh] min-h-[100dvh] !rounded-none"}},radius:{none:{base:"rounded-none"},sm:{base:"rounded-small"},md:{base:"rounded-medium"},lg:{base:"rounded-large"}},placement:{auto:{wrapper:"items-end sm:items-center"},center:{wrapper:"items-center sm:items-center"},top:{wrapper:"items-start sm:items-start"},"top-center":{wrapper:"items-start sm:items-center"},bottom:{wrapper:"items-end sm:items-end"},"bottom-center":{wrapper:"items-end sm:items-center"}},shadow:{sm:{base:"shadow-small"},md:{base:"shadow-medium"},lg:{base:"shadow-large"}},backdrop:{transparent:{backdrop:"hidden"},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-md backdrop-saturate-150 bg-overlay/30"}},scrollBehavior:{normal:{base:"overflow-y-hidden"},inside:{base:"max-h-[calc(100%_-_8rem)]",body:"overflow-y-auto"},outside:{wrapper:"items-start sm:items-start overflow-y-auto",base:"my-16"}},disableAnimation:{false:{wrapper:["[--scale-enter:100%]","[--scale-exit:100%]","[--slide-enter:0px]","[--slide-exit:80px]","sm:[--scale-enter:100%]","sm:[--scale-exit:103%]","sm:[--slide-enter:0px]","sm:[--slide-exit:0px]"]}}},defaultVariants:{size:"md",radius:"lg",shadow:"sm",placement:"auto",backdrop:"opaque",scrollBehavior:"normal"},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"w-screen h-screen fixed inset-0"}}]}),T=r(46100),S=r(20321),C=r(59757),M=r(90074),_=r(85151),A=r(65052),I=r(49975),L=r(21832),D=r(36914),N=r(22607),O=r(49621),R=r(11527),F=(0,S.Gp)((e,t)=>{let{children:r,...l}=e,d=function(e){var t,r,l;let d=(0,T.w)(),[P,k]=(0,S.oe)(e,E.variantKeys),{ref:N,as:O,className:R,classNames:F,isOpen:j,defaultOpen:K,onOpenChange:V,motionProps:B,closeButton:$,isDismissable:z=!0,hideCloseButton:W=!1,shouldBlockScroll:U=!0,portalContainer:G,isKeyboardDismissDisabled:Z=!1,onClose:H,...q}=P,X=(0,L.gy)(N),Y=(0,x.useRef)(null),[J,Q]=(0,x.useState)(!1),[ee,et]=(0,x.useState)(!1),er=null!=(r=null!=(t=e.disableAnimation)?t:null==d?void 0:d.disableAnimation)&&r,en=(0,x.useId)(),ei=(0,x.useId)(),ea=(0,x.useId)(),es=function(e){let[t,r]=(0,D.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),n=(0,x.useCallback)(()=>{r(!0)},[r]),i=(0,x.useCallback)(()=>{r(!1)},[r]),a=(0,x.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:i,toggle:a}}({isOpen:j,defaultOpen:K,onOpenChange:e=>{null==V||V(e),e||null==H||H()}}),{modalProps:eo,underlayProps:el}=function(e={shouldBlockScroll:!0},t,r){let{overlayProps:l,underlayProps:d}=(0,i.I)({...e,isOpen:t.isOpen,onClose:t.close},r);return!function(e={}){let{isDisabled:t}=e;(0,a.b)(()=>{if(!t){let e,t,r,i,a;return 1==++f&&(n=(0,s.gn)()?(r=null,i=()=>{if(r)return;let e=window.pageXOffset,t=window.pageYOffset;r=(0,o.t)(h(window,"scroll",()=>{window.scrollTo(0,0)}),p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"),p(document.body,"marginTop",`-${t}px`),()=>{window.scrollTo(e,t)}),window.scrollTo(0,0)},a=(0,o.t)(h(document,"touchstart",r=>{((e=u(r.target,!0))!==document.documentElement||e!==document.body)&&e instanceof HTMLElement&&"auto"===window.getComputedStyle(e).overscrollBehavior&&(t=p(e,"overscrollBehavior","contain"))},{passive:!1,capture:!0}),h(document,"touchmove",t=>{if(!e||e===document.documentElement||e===document.body){t.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&t.preventDefault()},{passive:!1,capture:!0}),h(document,"touchend",e=>{let r=e.target;g(r)&&r!==document.activeElement&&(e.preventDefault(),i(),r.style.transform="translateY(-2000px)",r.focus(),requestAnimationFrame(()=>{r.style.transform=""})),t&&t()},{passive:!1,capture:!0}),h(document,"focus",e=>{let t=e.target;g(t)&&(i(),t.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{t.style.transform="",c&&(c.height<window.innerHeight?requestAnimationFrame(()=>{m(t)}):c.addEventListener("resize",()=>m(t),{once:!0}))}))},!0)),()=>{null==t||t(),null==r||r(),a()}):(0,o.t)(p(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),p(document.documentElement,"overflow","hidden"))),()=>{0==--f&&n()}}},[t])}({isDisabled:!t.isOpen||!e.shouldBlockScroll}),(0,v.Bq)(),(0,x.useEffect)(()=>{if(t.isOpen&&r.current)return function(e,t=document.body){let r=new Set(e),n=new Set,i=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(t);let t=e=>{if(r.has(e)||n.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of r)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),s=t(e);if(s===NodeFilter.FILTER_ACCEPT&&a(e),s!==NodeFilter.FILTER_REJECT){let e=i.nextNode();for(;null!=e;)a(e),e=i.nextNode()}},a=e=>{var t;let r=null!==(t=y.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==r)&&(0===r&&e.setAttribute("aria-hidden","true"),n.add(e),y.set(e,r+1))};b.length&&b[b.length-1].disconnect(),i(t);let s=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...r,...n].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(r.delete(e),n.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?r.add(e):e instanceof Element&&i(e)}});s.observe(t,{childList:!0,subtree:!0});let o={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return b.push(o),()=>{for(let e of(s.disconnect(),n)){let t=y.get(e);1===t?(e.removeAttribute("aria-hidden"),y.delete(e)):y.set(e,t-1)}o===b[b.length-1]?(b.pop(),b.length&&b[b.length-1].observe()):b.splice(b.indexOf(o),1)}}([r.current])},[t.isOpen,r]),{modalProps:(0,w.d)(l),underlayProps:d}}({isDismissable:z,shouldBlockScroll:U,isKeyboardDismissDisabled:Z},es,X),{buttonProps:eu}=(0,C.j)({onPress:es.close},Y),{isFocusVisible:ec,focusProps:ed}=(0,M.F)(),ef=(0,_.W)(null==F?void 0:F.base,R),ep=(0,x.useMemo)(()=>E({...k,disableAnimation:er}),[(0,A.Xx)(k),er]),eh=(0,x.useCallback)((e={})=>({className:ep.backdrop({class:null==F?void 0:F.backdrop}),onClick:()=>es.close(),...el,...e}),[ep,F,el]);return{Component:O||"section",slots:ep,domRef:X,headerId:ei,bodyId:ea,motionProps:B,classNames:F,isDismissable:z,closeButton:$,hideCloseButton:W,portalContainer:G,shouldBlockScroll:U,backdrop:null!=(l=e.backdrop)?l:"opaque",isOpen:es.isOpen,onClose:es.close,disableAnimation:er,setBodyMounted:et,setHeaderMounted:Q,getDialogProps:(e={},t=null)=>({ref:function(...e){return 1===e.length?e[0]:t=>{for(let r of e)"function"==typeof r?r(t):null!=r&&(r.current=t)}}(t,X),...(0,w.d)(eo,q,e),className:ep.base({class:(0,_.W)(ef,e.className)}),id:en,"data-open":(0,I.PB)(es.isOpen),"data-dismissable":(0,I.PB)(z),"aria-modal":(0,I.PB)(!0),"aria-labelledby":J?ei:void 0,"aria-describedby":ee?ea:void 0}),getBackdropProps:eh,getCloseButtonProps:()=>({role:"button",tabIndex:0,"aria-label":"Close","data-focus-visible":(0,I.PB)(ec),className:ep.closeButton({class:null==F?void 0:F.closeButton}),...(0,w.d)(eu,ed)})}}({...l,ref:t}),P=(0,R.jsx)(v.aV,{portalContainer:d.portalContainer,children:r});return(0,R.jsx)(N.D,{value:d,children:d.disableAnimation&&d.isOpen?P:(0,R.jsx)(O.M,{children:d.isOpen?P:null})})});F.displayName="NextUI.Modal";var j=F},49488:function(e,t,r){r.d(t,{z:function(){return l}});var n=new Set(["id","type","style","title","role","tabIndex","htmlFor","width","height","abbr","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","async","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","challenge","charset","checked","cite","class","className","cols","colSpan","command","content","contentEditable","contextMenu","controls","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","dropzone","encType","enterKeyHint","for","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","hidden","high","href","hrefLang","httpEquiv","icon","inputMode","isMap","itemId","itemProp","itemRef","itemScope","itemType","kind","label","lang","list","loop","manifest","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","open","optimum","pattern","ping","placeholder","poster","preload","radioGroup","referrerPolicy","readOnly","rel","required","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","slot","sortable","span","spellCheck","src","srcDoc","srcSet","start","step","target","translate","typeMustMatch","useMap","value","wmode","wrap"]),i=new Set(["onCopy","onCut","onPaste","onLoad","onError","onWheel","onScroll","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerEnter","onPointerLeave","onPointerUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd"]),a=/^(data-.*)$/,s=/^(aria-.*)$/,o=/^(on[A-Z].*)$/;function l(e,t={}){let{labelable:r=!0,enabled:l=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!l)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&o.test(t)||o.test(t)&&!i.has(t)||f&&a.test(t)||p&&o.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&s.test(t)||(null==u?void 0:u.has(t))||a.test(t))||o.test(t))&&(h[t]=e[t]);return h}},21832:function(e,t,r){r.d(t,{fg:function(){return i},gy:function(){return a}});var n=r(50959);function i(e){return{UNSAFE_getDOMNode:()=>e.current}}function a(e){let t=(0,n.useRef)(null);return(0,n.useImperativeHandle)(e,()=>t.current),t}"undefined"!=typeof window&&window.document&&window.document.createElement},85151:function(e,t,r){r.d(t,{W:function(){return n}});function n(...e){for(var t,r,i=0,a="";i<e.length;)(t=e[i++])&&(r=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r)}return i}(t))&&(a&&(a+=" "),a+=r);return a}},49975:function(e,t,r){function n(e){return Array.isArray(e)}function i(e){let t=typeof e;return null!=e&&("object"===t||"function"===t)&&!n(e)}function a(e){return n(e)?n(e)&&0===e.length:i(e)?i(e)&&0===Object.keys(e).length:null==e||""===e}function s(e){return"function"==typeof e}r.d(t,{PB:function(){return o},mf:function(){return s},xb:function(){return a}});var o=e=>e?"true":void 0},69581:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(89429),i={};function a(e,t,...r){var s;let o=t?` [${t}]`:" ",l=`[Next UI]${o}: ${e}`;if("undefined"!=typeof console&&!i[l]&&(i[l]=!0,(null==(s=null==n?void 0:n.env)?void 0:s.NODE_ENV)!=="production"))return console.warn(l,r)}},65052:function(e,t,r){function n(e){return`${e}-${Math.floor(1e6*Math.random())}`}function i(e){for(let t in e)t.startsWith("on")&&delete e[t];return e}function a(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}r.d(t,{Os:function(){return i},QI:function(){return n},Xx:function(){return a}})},29153:function(e,t,r){r.d(t,{X:function(){return f}});var n=r(20321),i=(0,r(78210).tv)({slots:{base:["group","relative","overflow-hidden","bg-content3 dark:bg-content2","pointer-events-none","before:opacity-100","before:absolute","before:inset-0","before:-translate-x-full","before:animate-[shimmer_2s_infinite]","before:border-t","before:border-content4/30","before:bg-gradient-to-r","before:from-transparent","before:via-content4","dark:before:via-default-700/10","before:to-transparent","after:opacity-100","after:absolute","after:inset-0","after:-z-10","after:bg-content3","dark:after:bg-content2","data-[loaded=true]:pointer-events-auto","data-[loaded=true]:overflow-visible","data-[loaded=true]:!bg-transparent","data-[loaded=true]:before:opacity-0 data-[loaded=true]:before:-z-10 data-[loaded=true]:before:animate-none","data-[loaded=true]:after:opacity-0"],content:["opacity-0","group-data-[loaded=true]:opacity-100"]},variants:{disableAnimation:{true:{base:"before:animate-none before:transition-none after:transition-none",content:"transition-none"},false:{base:"transition-background !duration-300",content:"transition-opacity motion-reduce:transition-none !duration-300"}}},defaultVariants:{}}),a=r(65052),s=r(85151),o=r(49975),l=r(50959),u=r(46100),c=r(11527),d=(0,n.Gp)((e,t)=>{let{Component:r,children:d,getSkeletonProps:f,getContentProps:p}=function(e){var t,r;let c=(0,u.w)(),[d,f]=(0,n.oe)(e,i.variantKeys),{as:p,children:h,isLoaded:m=!1,className:g,classNames:v,...y}=d,b=null!=(r=null!=(t=e.disableAnimation)?t:null==c?void 0:c.disableAnimation)&&r,w=(0,l.useMemo)(()=>i({...f,disableAnimation:b}),[(0,a.Xx)(f),b,h]),x=(0,s.W)(null==v?void 0:v.base,g);return{Component:p||"div",children:h,slots:w,classNames:v,getSkeletonProps:(e={})=>({"data-loaded":(0,o.PB)(m),className:w.base({class:(0,s.W)(x,null==e?void 0:e.className)}),...y}),getContentProps:(e={})=>({className:w.content({class:(0,s.W)(null==v?void 0:v.content,null==e?void 0:e.className)})})}}({...e});return(0,c.jsx)(r,{ref:t,...f(),children:(0,c.jsx)("div",{...p(),children:d})})});d.displayName="NextUI.Skeleton";var f=d},20321:function(e,t,r){r.d(t,{Gp:function(){return i},oe:function(){return a}});var n=r(50959);function i(e){return(0,n.forwardRef)(e)}var a=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((t,r)=>r in e?{...t,[r]:e[r]}:t,{});return r?[Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>({...t,[r]:e[r]}),{}),n]:[e,n]}},96474:function(e,t,r){r.d(t,{n:function(){return rt}});var n=r(20321),i=r(21832),a=r(85151),s=r(93738);let o=new WeakMap;function l(e,t,r){"string"==typeof t&&(t=t.replace(/\s+/g,""));let n=o.get(e);return`${n}-${r}-${t}`}var u=r(62682),c=r(5592),d=r(50959),f=r(22903),p=r(90074),h=r(11527),m=(0,n.Gp)((e,t)=>{var r,n;let{as:o,tabKey:m,destroyInactiveTabPanel:g,state:v,className:y,slots:b,classNames:w,...x}=e,P=(0,i.gy)(t),{tabPanelProps:k}=function(e,t,r){var n;let i=!function(e,t){let r=null==t?void 0:t.isDisabled,[n,i]=(0,d.useState)(!1);return(0,f.b)(()=>{if((null==e?void 0:e.current)&&!r){let t=()=>{e.current&&i(!!(0,c.QL)(e.current,{tabbable:!0}).nextNode())};t();let r=new MutationObserver(t);return r.observe(e.current,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["tabIndex","disabled"]}),()=>{r.disconnect()}}}),!r&&n}(r)?0:void 0,a=l(t,null!==(n=e.id)&&void 0!==n?n:null==t?void 0:t.selectedKey,"tabpanel"),o=(0,u.b)({...e,id:a,"aria-labelledby":l(t,null==t?void 0:t.selectedKey,"tab")});return{tabPanelProps:(0,s.d)(o,{tabIndex:i,role:"tabpanel","aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]})}}({...e,id:String(m)},v,P),{focusProps:E,isFocused:T,isFocusVisible:S}=(0,p.F)(),C=v.selectedItem,M=v.collection.getItem(m).props.children,_=(0,a.W)(null==w?void 0:w.panel,y,null==(r=null==C?void 0:C.props)?void 0:r.className),A=m===(null==C?void 0:C.key);return M&&(A||!g)?(0,h.jsx)(o||"div",{ref:P,"data-focus":T,"data-focus-visible":S,"data-inert":A?void 0:"true",inert:A?void 0:"true",...A&&(0,s.d)(k,E,x),className:null==(n=b.panel)?void 0:n.call(b,{class:_}),"data-slot":"panel",children:M}):null});m.displayName="NextUI.TabPanel";var g=r(49488),v=r(49975),y=r(72196);let b=e=>"object"==typeof e&&null!=e&&1===e.nodeType,w=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,x=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r=getComputedStyle(e,null);return w(r.overflowY,t)||w(r.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},P=(e,t,r,n,i,a,s,o)=>a<e&&s>t||a>e&&s<t?0:a<=e&&o<=r||s>=t&&o>=r?a-e-n:s>t&&o<r||a<e&&o>r?s-t+i:0,k=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},E=(e,t)=>{var r,n,i,a;if("undefined"==typeof document)return[];let{scrollMode:s,block:o,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!b(e))throw TypeError("Invalid target");let f=document.scrollingElement||document.documentElement,p=[],h=e;for(;b(h)&&d(h);){if((h=k(h))===f){p.push(h);break}null!=h&&h===document.body&&x(h)&&!x(document.documentElement)||null!=h&&x(h,c)&&p.push(h)}let m=null!=(n=null==(r=window.visualViewport)?void 0:r.width)?n:innerWidth,g=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:v,scrollY:y}=window,{height:w,width:E,top:T,right:S,bottom:C,left:M}=e.getBoundingClientRect(),{top:_,right:A,bottom:I,left:L}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),D="start"===o||"nearest"===o?T-_:"end"===o?C+I:T+w/2-_+I,N="center"===l?M+E/2-L+A:"end"===l?S+A:M-L,O=[];for(let e=0;e<p.length;e++){let t=p[e],{height:r,width:n,top:i,right:a,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===s&&T>=0&&M>=0&&C<=g&&S<=m&&T>=i&&C<=u&&M>=c&&S<=a)break;let d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),b=parseInt(d.borderTopWidth,10),x=parseInt(d.borderRightWidth,10),k=parseInt(d.borderBottomWidth,10),_=0,A=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-x:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-b-k:0,R="offsetWidth"in t?0===t.offsetWidth?0:n/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(f===t)_="start"===o?D:"end"===o?D-g:"nearest"===o?P(y,y+g,g,b,k,y+D,y+D+w,w):D-g/2,A="start"===l?N:"center"===l?N-m/2:"end"===l?N-m:P(v,v+m,m,h,x,v+N,v+N+E,E),_=Math.max(0,_+y),A=Math.max(0,A+v);else{_="start"===o?D-i-b:"end"===o?D-u+k+L:"nearest"===o?P(i,u,r,b,k+L,D,D+w,w):D-(i+r/2)+L/2,A="start"===l?N-c-h:"center"===l?N-(c+n/2)+I/2:"end"===l?N-a+x+I:P(c,a,n,h,x+I,N,N+E,E);let{scrollLeft:e,scrollTop:s}=t;_=0===F?0:Math.max(0,Math.min(s+_/F,t.scrollHeight-r/F+L)),A=0===R?0:Math.max(0,Math.min(e+A/R,t.scrollWidth-n/R+I)),D+=s-_,N+=e-A}O.push({el:t,top:_,left:A})}return O},T=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};var S=r(27602),C=r(90913),M=r(85228),_=r(53783),A=r(66469),I=r(28202),L=r(25417),D=r(32980),N=r(18354),O=r(62660),R=r(23842),F=r(35748);let j=(e,t)=>Math.abs(e-t);var K=r(46663),V=r(73943);class B{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=W(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(e=r.offset,t={x:0,y:0},Math.sqrt(j(e.x,t.x)**2+j(e.y,t.y)**2)>=3);if(!n&&!i)return;let{point:a}=r,{timestamp:s}=V.frameData;this.history.push({...a,timestamp:s});let{onStart:o,onMove:l}=this.handlers;n||(o&&o(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=$(t,this.transformPagePoint),V.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=W("pointercancel"===e.type?this.lastMoveEventInfo:$(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,a),n&&n(e,a)},!(0,K.D)(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;let a=$((0,N.Q)(e),this.transformPagePoint),{point:s}=a,{timestamp:o}=V.frameData;this.history=[{...s,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,W(a,this.history)),this.removeListeners=(0,F.z)((0,R.a)(this.contextWindow,"pointermove",this.handlePointerMove),(0,R.a)(this.contextWindow,"pointerup",this.handlePointerUp),(0,R.a)(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,V.Pn)(this.updatePoint)}}function $(e,t){return t?{point:t(e.point)}:e}function z(e,t){return{x:e.x-t.x,y:e.y-t.y}}function W({point:e},t){return{point:e,delta:z(e,U(t)),offset:z(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,i=U(e);for(;r>=0&&(n=e[r],!(i.timestamp-n.timestamp>(0,O.w)(.1)));)r--;if(!n)return{x:0,y:0};let a=(0,O.X)(i.timestamp-n.timestamp);if(0===a)return{x:0,y:0};let s={x:(i.x-n.x)/a,y:(i.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function U(e){return e[e.length-1]}var G=r(16861),Z=r(26185),H=r(27783),q=r(90388);function X(e){return e.max-e.min}function Y(e,t,r,n=.5){e.origin=n,e.originPoint=(0,q.t)(t.min,t.max,e.origin),e.scale=X(r)/X(t),e.translate=(0,q.t)(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function J(e,t,r,n){Y(e.x,t.x,r.x,n?n.originX:void 0),Y(e.y,t.y,r.y,n?n.originY:void 0)}function Q(e,t,r){e.min=r.min+t.min,e.max=e.min+X(t)}function ee(e,t,r){e.min=t.min-r.min,e.max=e.min+X(t)}function et(e,t,r){ee(e.x,t.x,r.x),ee(e.y,t.y,r.y)}var er=r(21442);function en(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function ei(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function ea(e,t,r){return{min:es(e,t),max:es(e,r)}}function es(e,t){return"number"==typeof e?e:e[t]||0}var eo=r(34283);function el(e){return[e("x"),e("y")]}var eu=r(67625),ec=r(16416),ed=r(53412),ef=r(3471),ep=r(42474);let eh=({current:e})=>e?e.ownerDocument.defaultView:null;var em=r(70486);let eg=new WeakMap;class ev{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,eo.dO)(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new B(e,{onSessionStart:e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor((0,N.Q)(e,"page").point)},onStart:(e,t)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=(0,G.fJ)(r),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),el(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ef.aQ.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[e];if(n){let e=X(n);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&V.Wi.postRender(()=>i(e,t)),(0,em.K)(this.visualElement,"transform");let{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:a}=this.getProps();if(!r&&!this.openGlobalLock)return;let{offset:s}=t;if(n&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),a&&a(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>el(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:eh(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=t;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&V.Wi.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:n}=this.getProps();if(!r||!ey(e,n,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(a=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?(0,q.t)(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?(0,q.t)(r,e,n.max):Math.min(e,r)),e}(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&(0,Z.I)(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=function(e,{top:t,left:r,bottom:n,right:i}){return{x:en(e.x,r,i),y:en(e.y,t,n)}}(n.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ea(e,"left","right"),y:ea(e,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&el(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!(0,Z.I)(t))return!1;let n=t.current;(0,D.k)(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let a=(0,eu.z)(n,i.root,this.visualElement.getTransformPagePoint()),s={x:ei((e=i.layout.layoutBox).x,a.x),y:ei(e.y,a.y)};if(r){let e=r((0,ec.z2)(s));this.hasMutatedConstraints=!!e,e&&(s=(0,ec.i8)(e))}return s}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),o=this.constraints||{};return Promise.all(el(s=>{if(!ey(s,t,this.currentDirection))return;let l=o&&o[s]||{};a&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return(0,em.K)(this.visualElement,e),r.start((0,ep.v)(e,r,0,t,this.visualElement,!1))}stopAnimation(){el(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){el(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){el(t=>{let{drag:r}=this.getProps();if(!ey(t,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(t);if(n&&n.layout){let{min:r,max:a}=n.layout.layoutBox[t];i.set(e[t]-(0,q.t)(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!(0,Z.I)(t)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};el(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();n[e]=function(e,t){let r=.5,n=X(e),i=X(t);return i>n?r=(0,H.Y)(t.min,t.max-n,e.min):n>i&&(r=(0,H.Y)(e.min,e.max-i,t.min)),(0,er.u)(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),el(t=>{if(!ey(t,e,null))return;let r=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];r.set((0,q.t)(i,a,n[t]))})}addListeners(){if(!this.visualElement.current)return;eg.set(this.visualElement,this);let e=this.visualElement.current,t=(0,R.a)(e,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),r=()=>{let{dragConstraints:e}=this.getProps();(0,Z.I)(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),V.Wi.read(r);let a=(0,ed.E)(window,"resize",()=>this.scalePositionWithinConstraints()),s=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(el(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:a=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function ey(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class eb extends I.L{constructor(e){super(e),this.removeGroupControls=L.Z,this.removeListeners=L.Z,this.controls=new ev(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||L.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let ew=e=>(t,r)=>{e&&V.Wi.postRender(()=>e(t,r))};class ex extends I.L{constructor(){super(...arguments),this.removePointerDownListener=L.Z}onPointerDown(e){this.session=new B(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eh(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:ew(e),onStart:ew(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&V.Wi.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=(0,R.a)(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var eP=r(80436),ek=r(82004),eE=r(95962);let eT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function eS(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let eC={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ef.px.test(e))return e;e=parseFloat(e)}let r=eS(e,t.target.x),n=eS(e,t.target.y);return`${r}% ${n}%`}};var eM=r(47587),e_=r(38266),eA=r(56201);class eI extends d.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=e;(0,e_.B)(eD),i&&(t.group&&t.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),eT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:n,isPresent:i}=this.props,a=r.projection;return a&&(a.isPresent=i,n||e.layoutDependency!==t||void 0===t?a.willUpdate():this.safeToRemove(),e.isPresent===i||(i?a.promote():a.relegate()||V.Wi.postRender(()=>{let e=a.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),eA.g.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function eL(e){let[t,r]=function(){let e=(0,d.useContext)(eP.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,i=(0,d.useId)();(0,d.useEffect)(()=>n(i),[]);let a=(0,d.useCallback)(()=>r&&r(i),[i,r]);return!t&&r?[!1,a]:[!0]}(),n=(0,d.useContext)(ek.p);return(0,h.jsx)(eI,{...e,layoutGroup:n,switchLayoutGroup:(0,d.useContext)(eE.g),isPresent:t,safeToRemove:r})}let eD={borderRadius:{...eC,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eC,borderTopRightRadius:eC,borderBottomLeftRadius:eC,borderBottomRightRadius:eC,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let n=eM.P.parse(e);if(n.length>5)return e;let i=eM.P.createTransformer(e),a="number"!=typeof n[0]?1:0,s=r.x.scale*t.x,o=r.y.scale*t.y;n[0+a]/=s,n[1+a]/=o;let l=(0,q.t)(s,o,.5);return"number"==typeof n[2+a]&&(n[2+a]/=l),"number"==typeof n[3+a]&&(n[3+a]/=l),i(n)}}};var eN=r(90007),eO=r(44317);let eR=["TopLeft","TopRight","BottomLeft","BottomRight"],eF=eR.length,ej=e=>"string"==typeof e?parseFloat(e):e,eK=e=>"number"==typeof e||ef.px.test(e);function eV(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let eB=ez(0,.5,eO.Bn),e$=ez(.5,.95,L.Z);function ez(e,t,r){return n=>n<e?0:n>t?1:r((0,H.Y)(e,t,n))}function eW(e,t){e.min=t.min,e.max=t.max}function eU(e,t){eW(e.x,t.x),eW(e.y,t.y)}function eG(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eZ=r(43882);function eH(e,t,r,n,i){return e-=t,e=(0,eZ.q2)(e,1/r,n),void 0!==i&&(e=(0,eZ.q2)(e,1/i,n)),e}function eq(e,t,[r,n,i],a,s){!function(e,t=0,r=1,n=.5,i,a=e,s=e){if(ef.aQ.test(t)&&(t=parseFloat(t),t=(0,q.t)(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let o=(0,q.t)(a.min,a.max,n);e===a&&(o-=t),e.min=eH(e.min,t,r,o,i),e.max=eH(e.max,t,r,o,i)}(e,t[r],t[n],t[i],t.scale,a,s)}let eX=["x","scaleX","originX"],eY=["y","scaleY","originY"];function eJ(e,t,r,n){eq(e.x,t,eX,r?r.x:void 0,n?n.x:void 0),eq(e.y,t,eY,r?r.y:void 0,n?n.y:void 0)}var eQ=r(46778);function e0(e){return 0===e.translate&&1===e.scale}function e1(e){return e0(e.x)&&e0(e.y)}function e2(e,t){return e.min===t.min&&e.max===t.max}function e5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function e3(e,t){return e5(e.x,t.x)&&e5(e.y,t.y)}function e9(e){return X(e.x)/X(e.y)}function e6(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var e4=r(69902);class e8{constructor(){this.members=[]}add(e){(0,e4.y4)(this.members,e),e.scheduleRender()}remove(e){if((0,e4.cl)(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}var e7=r(77666);let te=(e,t)=>e.depth-t.depth;class tt{constructor(){this.children=[],this.isDirty=!1}add(e){(0,e4.y4)(this.children,e),this.isDirty=!0}remove(e){(0,e4.cl)(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(te),this.isDirty=!1,this.children.forEach(e)}}var tr=r(7072),tn=r(88955),ti=r(57615),ta=r(20591),ts=r(50315);let to={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},tl="undefined"!=typeof window&&void 0!==window.MotionDebug,tu=["","X","Y","Z"],tc={visibility:"hidden"},td=0;function tf(e,t,r,n){let{latestValues:i}=t;i[e]&&(r[e]=i[e],t.setStaticValue(e,0),n&&(n[e]=0))}function tp({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(e={},r=null==t?void 0:t()){this.id=td++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,tl&&(to.totalNodes=to.resolvedTargetDeltas=to.recalculatedProjection=0),this.nodes.forEach(tg),this.nodes.forEach(tk),this.nodes.forEach(tE),this.nodes.forEach(tv),tl&&window.MotionDebug.record(to)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new tt)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eN.L),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:n,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),e){let r;let n=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=tn.X.now(),n=({timestamp:i})=>{let a=i-r;a>=t&&((0,V.Pn)(n),e(a-t))};return V.Wi.read(n,!0),()=>(0,V.Pn)(n)}(n,250),eT.hasAnimatedSinceResize&&(eT.hasAnimatedSinceResize=!1,this.nodes.forEach(tP))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&a&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||a.getDefaultTransition()||tA,{onLayoutAnimationStart:s,onLayoutAnimationComplete:o}=a.getProps(),l=!this.targetLayout||!e3(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...(0,eQ.e)(i,"layout"),onPlay:s,onComplete:o};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||tP(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,V.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(tT),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let n=(0,ts.s)(r);if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V.Wi,!(e||r))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(tb);return}this.isUpdating||this.nodes.forEach(tw),this.isUpdating=!1,this.nodes.forEach(tx),this.nodes.forEach(th),this.nodes.forEach(tm),this.clearAllSnapshots();let e=tn.X.now();V.frameData.delta=(0,er.u)(0,1e3/60,e-V.frameData.timestamp),V.frameData.timestamp=e,V.frameData.isProcessing=!0,V.yL.update.process(V.frameData),V.yL.preRender.process(V.frameData),V.yL.render.process(V.frameData),V.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,eA.g.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ty),this.sharedNodes.forEach(tS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=(0,eo.dO)(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!e1(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,a=n!==this.prevTransformTemplateValue;e&&(t||(0,e7.ud)(this.latestValues)||a)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),tD((t=n).x),tD(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return(0,eo.dO)();let r=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(tO))){let{scroll:e}=this.root;e&&((0,eZ.am)(r.x,e.offset.x),(0,eZ.am)(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=(0,eo.dO)();if(eU(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let n=this.path[t],{scroll:i,options:a}=n;n!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&eU(r,e),(0,eZ.am)(r.x,i.offset.x),(0,eZ.am)(r.y,i.offset.y))}return r}applyTransform(e,t=!1){let r=(0,eo.dO)();eU(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(0,eZ.D2)(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),(0,e7.ud)(n.latestValues)&&(0,eZ.D2)(r,n.latestValues)}return(0,e7.ud)(this.latestValues)&&(0,eZ.D2)(r,this.latestValues),r}removeTransform(e){let t=(0,eo.dO)();eU(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!(0,e7.ud)(r.latestValues))continue;(0,e7.Lj)(r.latestValues)&&r.updateSnapshot();let n=(0,eo.dO)();eU(n,r.measurePageBox()),eJ(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return(0,e7.ud)(this.latestValues)&&eJ(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==V.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,n,i;let a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==a;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=V.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,eo.dO)(),this.relativeTargetOrigin=(0,eo.dO)(),et(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),eU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=(0,eo.dO)(),this.targetWithTransforms=(0,eo.dO)()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,Q(r.x,n.x,i.x),Q(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):eU(this.target,this.layout.layoutBox),(0,eZ.o2)(this.target,this.targetDelta)):eU(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=(0,eo.dO)(),this.relativeTargetOrigin=(0,eo.dO)(),et(this.relativeTargetOrigin,this.target,e.target),eU(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}tl&&to.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||(0,e7.Lj)(this.parent.latestValues)||(0,e7.D_)(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===V.frameData.timestamp&&(n=!1),n)return;let{layout:i,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||a))return;eU(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,o=this.treeScale.y;(0,eZ.YY)(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=(0,eo.dO)());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(eG(this.prevProjectionDelta.x,this.projectionDelta.x),eG(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),J(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===o&&e6(this.projectionDelta.x,this.prevProjectionDelta.x)&&e6(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),tl&&to.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=(0,eo.wc)(),this.projectionDelta=(0,eo.wc)(),this.projectionDeltaWithTransform=(0,eo.wc)()}setAnimationOrigin(e,t=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},a={...this.latestValues},s=(0,eo.wc)();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=(0,eo.dO)(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(t_));this.animationProgress=0,this.mixTargetDelta=t=>{let n=t/1e3;if(tC(s.x,e.x,n),tC(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,f,p,h;et(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,tM(p.x,h.x,o.x,n),tM(p.y,h.y,o.y,n),r&&(u=this.relativeTarget,f=r,e2(u.x,f.x)&&e2(u.y,f.y))&&(this.isProjectionDirty=!1),r||(r=(0,eo.dO)()),eU(r,this.relativeTarget)}l&&(this.animationValues=a,function(e,t,r,n,i,a){i?(e.opacity=(0,q.t)(0,void 0!==r.opacity?r.opacity:1,eB(n)),e.opacityExit=(0,q.t)(void 0!==t.opacity?t.opacity:1,0,e$(n))):a&&(e.opacity=(0,q.t)(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<eF;i++){let a=`border${eR[i]}Radius`,s=eV(t,a),o=eV(r,a);(void 0!==s||void 0!==o)&&(s||(s=0),o||(o=0),0===s||0===o||eK(s)===eK(o)?(e[a]=Math.max((0,q.t)(ej(s),ej(o),n),0),(ef.aQ.test(o)||ef.aQ.test(s))&&(e[a]+="%")):e[a]=o)}(t.rotate||r.rotate)&&(e.rotate=(0,q.t)(t.rotate||0,r.rotate||0,n))}(a,i,this.latestValues,n,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,V.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.Wi.update(()=>{eT.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let n=(0,ta.i)(e)?e:(0,ti.BX)(e);return n.start((0,ep.v)("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:n,latestValues:i}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&tN(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||(0,eo.dO)();let t=X(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let n=X(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}eU(t,r),(0,eZ.D2)(t,i),J(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new e8),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let n={};r.z&&tf("z",e,n,this.animationValues);for(let t=0;t<tu.length;t++)tf(`rotate${tu[t]}`,e,n,this.animationValues),tf(`skew${tu[t]}`,e,n,this.animationValues);for(let t in e.render(),n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return tc;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=(0,tr.b)(null==e?void 0:e.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=(0,tr.b)(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!(0,e7.ud)(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}let s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="",i=e.x.translate/t.x,a=e.y.translate/t.y,s=(null==r?void 0:r.z)||0;if((i||a||s)&&(n=`translate3d(${i}px, ${a}px, ${s}px) `),(1!==t.x||1!==t.y)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:s,skewY:o}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),i&&(n+=`rotateX(${i}deg) `),a&&(n+=`rotateY(${a}deg) `),s&&(n+=`skewX(${s}deg) `),o&&(n+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(n+=`scale(${o}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:o,y:l}=this.projectionDelta;for(let e in n.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,a.animationValues?n.opacity=a===this?null!==(r=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,e_.P){if(void 0===s[e])continue;let{correct:t,applyTo:r}=e_.P[e],i="none"===n.transform?s[e]:t(s[e],a);if(r){let e=r.length;for(let t=0;t<e;t++)n[r[t]]=i}else n[e]=i}return this.options.layoutId&&(n.pointerEvents=a===this?(0,tr.b)(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(tb),this.root.sharedNodes.clear()}}}function th(e){e.updateLayout()}function tm(e){var t;let r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:i}=e.options,a=r.source!==e.layout.source;"size"===i?el(e=>{let n=a?r.measuredBox[e]:r.layoutBox[e],i=X(n);n.min=t[e].min,n.max=n.min+i}):tN(i,r.layoutBox,t)&&el(n=>{let i=a?r.measuredBox[n]:r.layoutBox[n],s=X(t[n]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+s)});let s=(0,eo.wc)();J(s,t,r.layoutBox);let o=(0,eo.wc)();a?J(o,e.applyTransform(n,!0),r.measuredBox):J(o,t,r.layoutBox);let l=!e1(s),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:a}=n;if(i&&a){let s=(0,eo.dO)();et(s,r.layoutBox,i.layoutBox);let o=(0,eo.dO)();et(o,t,a.layoutBox),e3(s,o)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=s,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:o,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tg(e){tl&&to.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tv(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ty(e){e.clearSnapshot()}function tb(e){e.clearMeasurements()}function tw(e){e.isLayoutDirty=!1}function tx(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function tP(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function tk(e){e.resolveTargetDelta()}function tE(e){e.calcProjection()}function tT(e){e.resetSkewAndRotation()}function tS(e){e.removeLeadSnapshot()}function tC(e,t,r){e.translate=(0,q.t)(t.translate,0,r),e.scale=(0,q.t)(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function tM(e,t,r,n){e.min=(0,q.t)(t.min,r.min,n),e.max=(0,q.t)(t.max,r.max,n)}function t_(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let tA={duration:.45,ease:[.4,0,.1,1]},tI=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),tL=tI("applewebkit/")&&!tI("chrome/")?Math.round:L.Z;function tD(e){e.min=tL(e.min),e.max=tL(e.max)}function tN(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(e9(t)-e9(r)))}function tO(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}let tR=tp({attachResizeListener:(e,t)=>(0,ed.E)(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),tF={current:void 0},tj=tp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!tF.current){let e=new tR({});e.mount(window),e.setOptions({layoutScroll:!0}),tF.current=e}return tF.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),tK={...r(63039).H,pan:{Feature:ex},drag:{Feature:eb,ProjectionNode:tj,MeasureLayout:eL},layout:{ProjectionNode:tj,MeasureLayout:eL}};var tV=r(12565),tB=(0,n.Gp)((e,t)=>{var r;let{className:n,as:o,item:u,state:c,classNames:f,isDisabled:m,listRef:b,slots:w,motionProps:x,disableAnimation:P,disableCursorAnimation:k,shouldSelectOnPressUp:I,onClick:L,...D}=e,{key:N}=u,O=(0,i.gy)(t),R=o||(e.href?"a":"button"),{tabProps:F,isSelected:j,isDisabled:K,isPressed:V}=function(e,t,r){let{key:n,isDisabled:i,shouldSelectOnPressUp:a}=e,{selectionManager:o,selectedKey:u}=t,c=n===u,d=i||t.isDisabled||t.selectionManager.isDisabled(n),{itemProps:f,isPressed:p}=(0,M.C)({selectionManager:o,key:n,ref:r,isDisabled:d,shouldSelectOnPressUp:a,linkBehavior:"selection"}),h=l(t,n,"tab"),m=l(t,n,"tabpanel"),{tabIndex:g}=f,v=t.collection.getItem(n),y=(0,S.z)(null==v?void 0:v.props,{labelable:!0});delete y.id;let b=(0,C.eY)(null==v?void 0:v.props);return{tabProps:(0,s.d)(y,b,f,{id:h,"aria-selected":c,"aria-disabled":d||void 0,"aria-controls":c?m:void 0,tabIndex:d?void 0:g,role:"tab"}),isSelected:c,isDisabled:d,isPressed:p}}({key:N,isDisabled:m,shouldSelectOnPressUp:I},c,O);null==e.children&&delete F["aria-controls"];let B=m||K,{focusProps:$,isFocused:z,isFocusVisible:W}=(0,p.F)(),{hoverProps:U,isHovered:G}=(0,_.X)({isDisabled:B}),Z=(0,a.W)(null==f?void 0:f.tab,n),[,H]=function(e={}){let{rerender:t=!1,delay:r=0}=e,n=(0,d.useRef)(!1),[i,a]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{n.current=!0;let e=null;return t&&(r>0?e=setTimeout(()=>{a(!0)},r):a(!0)),()=>{n.current=!1,t&&a(!1),e&&clearTimeout(e)}},[t]),[(0,d.useCallback)(()=>n.current,[]),i]}({rerender:!0});return(0,h.jsxs)(R,{ref:O,"data-disabled":(0,v.PB)(K),"data-focus":(0,v.PB)(z),"data-focus-visible":(0,v.PB)(W),"data-hover":(0,v.PB)(G),"data-hover-unselected":(0,v.PB)((G||V)&&!j),"data-pressed":(0,v.PB)(V),"data-selected":(0,v.PB)(j),"data-slot":"tab",...(0,s.d)(F,B?{}:{...$,...U},(0,g.z)(D,{enabled:"string"==typeof R,omitPropNames:new Set(["title"])}),{onClick:()=>{(0,y.t)(L,F.onClick),(null==O?void 0:O.current)&&(null==b?void 0:b.current)&&function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(E(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:n,top:i,left:a}of E(e,T(t)))n.scroll({top:i,left:a,behavior:r})}(O.current,{scrollMode:"if-needed",behavior:"smooth",block:"end",inline:"end",boundary:null==b?void 0:b.current})}}),className:null==(r=w.tab)?void 0:r.call(w,{class:Z}),title:null==D?void 0:D.titleValue,type:"button"===R?"button":void 0,children:[j&&!P&&!k&&H?(0,h.jsx)(A.X,{features:tK,children:(0,h.jsx)(tV.m.span,{className:w.cursor({class:null==f?void 0:f.cursor}),"data-slot":"cursor",layoutDependency:!1,layoutId:"cursor",transition:{type:"spring",bounce:.15,duration:.5},...x})}):null,(0,h.jsx)("div",{className:w.tabContent({class:null==f?void 0:f.tabContent}),"data-slot":"tabContent",children:u.rendered})]})});tB.displayName="NextUI.Tab";var t$=r(46100),tz=r(84563),tW=r(78210),tU=r(91988),tG=(0,tW.tv)({slots:{base:"inline-flex",tabList:["flex","p-1","h-fit","gap-2","items-center","flex-nowrap","overflow-x-scroll","scrollbar-hide","bg-default-100"],tab:["z-0","w-full","px-3","py-1","flex","group","relative","justify-center","items-center","outline-none","cursor-pointer","transition-opacity","tap-highlight-transparent","data-[disabled=true]:cursor-not-allowed","data-[disabled=true]:opacity-30","data-[hover-unselected=true]:opacity-disabled",...tU.Dh],tabContent:["relative","z-10","text-inherit","whitespace-nowrap","transition-colors","text-default-500","group-data-[selected=true]:text-foreground"],cursor:["absolute","z-0","bg-white"],panel:["py-3","px-1","outline-none","data-[inert=true]:hidden",...tU.Dh],wrapper:[]},variants:{variant:{solid:{cursor:"inset-0"},light:{tabList:"bg-transparent dark:bg-transparent",cursor:"inset-0"},underlined:{tabList:"bg-transparent dark:bg-transparent",cursor:"h-[2px] w-[80%] bottom-0 shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]"},bordered:{tabList:"bg-transparent dark:bg-transparent border-medium border-default-200 shadow-sm",cursor:"inset-0"}},color:{default:{},primary:{},secondary:{},success:{},warning:{},danger:{}},size:{sm:{tabList:"rounded-medium",tab:"h-7 text-tiny rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"h-8 text-small rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"h-9 text-medium rounded-medium",cursor:"rounded-medium"}},radius:{none:{tabList:"rounded-none",tab:"rounded-none",cursor:"rounded-none"},sm:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},md:{tabList:"rounded-medium",tab:"rounded-small",cursor:"rounded-small"},lg:{tabList:"rounded-large",tab:"rounded-medium",cursor:"rounded-medium"},full:{tabList:"rounded-full",tab:"rounded-full",cursor:"rounded-full"}},fullWidth:{true:{base:"w-full",tabList:"w-full"}},isDisabled:{true:{tabList:"opacity-disabled pointer-events-none"}},disableAnimation:{true:{tab:"transition-none",tabContent:"transition-none"}},placement:{top:{},start:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex"},end:{tabList:"flex-col",panel:"py-0 px-3",wrapper:"flex flex-row-reverse"},bottom:{wrapper:"flex flex-col-reverse"}}},defaultVariants:{color:"default",variant:"solid",size:"md",fullWidth:!1,isDisabled:!1},compoundVariants:[{variant:["solid","bordered","light"],color:"default",class:{cursor:["bg-background","dark:bg-default","shadow-small"],tabContent:"group-data-[selected=true]:text-default-foreground"}},{variant:["solid","bordered","light"],color:"primary",class:{cursor:tz.J.solid.primary,tabContent:"group-data-[selected=true]:text-primary-foreground"}},{variant:["solid","bordered","light"],color:"secondary",class:{cursor:tz.J.solid.secondary,tabContent:"group-data-[selected=true]:text-secondary-foreground"}},{variant:["solid","bordered","light"],color:"success",class:{cursor:tz.J.solid.success,tabContent:"group-data-[selected=true]:text-success-foreground"}},{variant:["solid","bordered","light"],color:"warning",class:{cursor:tz.J.solid.warning,tabContent:"group-data-[selected=true]:text-warning-foreground"}},{variant:["solid","bordered","light"],color:"danger",class:{cursor:tz.J.solid.danger,tabContent:"group-data-[selected=true]:text-danger-foreground"}},{variant:"underlined",color:"default",class:{cursor:"bg-foreground",tabContent:"group-data-[selected=true]:text-foreground"}},{variant:"underlined",color:"primary",class:{cursor:"bg-primary",tabContent:"group-data-[selected=true]:text-primary"}},{variant:"underlined",color:"secondary",class:{cursor:"bg-secondary",tabContent:"group-data-[selected=true]:text-secondary"}},{variant:"underlined",color:"success",class:{cursor:"bg-success",tabContent:"group-data-[selected=true]:text-success"}},{variant:"underlined",color:"warning",class:{cursor:"bg-warning",tabContent:"group-data-[selected=true]:text-warning"}},{variant:"underlined",color:"danger",class:{cursor:"bg-danger",tabContent:"group-data-[selected=true]:text-danger"}},{disableAnimation:!0,variant:"underlined",class:{tab:["after:content-['']","after:absolute","after:bottom-0","after:h-[2px]","after:w-[80%]","after:opacity-0","after:shadow-[0_1px_0px_0_rgba(0,0,0,0.05)]","data-[selected=true]:after:opacity-100"]}},{disableAnimation:!0,color:"default",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-default data-[selected=true]:text-default-foreground"}},{disableAnimation:!0,color:"primary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-primary data-[selected=true]:text-primary-foreground"}},{disableAnimation:!0,color:"secondary",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-secondary data-[selected=true]:text-secondary-foreground"}},{disableAnimation:!0,color:"success",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-success data-[selected=true]:text-success-foreground"}},{disableAnimation:!0,color:"warning",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-warning data-[selected=true]:text-warning-foreground"}},{disableAnimation:!0,color:"danger",variant:["solid","bordered","light"],class:{tab:"data-[selected=true]:bg-danger data-[selected=true]:text-danger-foreground"}},{disableAnimation:!0,color:"default",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-foreground"}},{disableAnimation:!0,color:"primary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-primary"}},{disableAnimation:!0,color:"secondary",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-secondary"}},{disableAnimation:!0,color:"success",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-success"}},{disableAnimation:!0,color:"warning",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-warning"}},{disableAnimation:!0,color:"danger",variant:"underlined",class:{tab:"data-[selected=true]:after:bg-danger"}}],compoundSlots:[{variant:"underlined",slots:["tab","tabList","cursor"],class:["rounded-none"]}]}),tZ=r(65052);class tH{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.prevKey)&&void 0!==t?t:null}getKeyAfter(e){var t;let r=this.keyMap.get(e);return r&&null!==(t=r.nextKey)&&void 0!==t?t:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(e){var t;return null!==(t=this.keyMap.get(e))&&void 0!==t?t:null}at(e){let t=[...this.getKeys()];return this.getItem(t[e])}getChildren(e){let t=this.keyMap.get(e);return(null==t?void 0:t.childNodes)||[]}constructor(e){var t;this.keyMap=new Map,this.firstKey=null,this.lastKey=null,this.iterable=e;let r=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&"section"===e.type)for(let t of e.childNodes)r(t)};for(let t of e)r(t);let n=null,i=0;for(let[e,t]of this.keyMap)n?(n.nextKey=e,t.prevKey=n.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(n=t).nextKey=void 0;this.lastKey=null!==(t=null==n?void 0:n.key)&&void 0!==t?t:null}}var tq=r(54335),tX=r(63594),tY=r(54214),tJ=r(36914);function tQ(e,t){let r=null;if(e){for(r=e.getFirstKey();t.has(r)&&r!==e.getLastKey();)r=e.getKeyAfter(r);t.has(r)&&r===e.getLastKey()&&(r=e.getFirstKey())}return r}class t0{getKeyLeftOf(e){return this.flipDirection?this.getNextKey(e):this.getPreviousKey(e)}getKeyRightOf(e){return this.flipDirection?this.getPreviousKey(e):this.getNextKey(e)}getKeyAbove(e){return this.getPreviousKey(e)}getKeyBelow(e){return this.getNextKey(e)}isDisabled(e){var t,r;return this.disabledKeys.has(e)||!!(null===(r=this.collection.getItem(e))||void 0===r?void 0:null===(t=r.props)||void 0===t?void 0:t.isDisabled)}getFirstKey(){let e=this.collection.getFirstKey();return null!=e&&this.isDisabled(e)&&(e=this.getNextKey(e)),e}getLastKey(){let e=this.collection.getLastKey();return null!=e&&this.isDisabled(e)&&(e=this.getPreviousKey(e)),e}getNextKey(e){do null==(e=this.collection.getKeyAfter(e))&&(e=this.collection.getFirstKey());while(this.isDisabled(e));return e}getPreviousKey(e){do null==(e=this.collection.getKeyBefore(e))&&(e=this.collection.getLastKey());while(this.isDisabled(e));return e}constructor(e,t,r,n=new Set){this.collection=e,this.flipDirection="rtl"===t&&"horizontal"===r,this.disabledKeys=n}}var t1=r(91796),t2=r(18660),t5=r(39536);let t3=(0,d.createContext)(null);var t9=r(49767);let t6=e=>!e.isLayoutDirty&&e.willUpdate(!1),t4=e=>!0===e,t8=e=>t4(!0===e)||"id"===e,t7=({children:e,id:t,inherit:r=!0})=>{let n=(0,d.useContext)(ek.p),i=(0,d.useContext)(t3),[a,s]=function(){let e=function(){let e=(0,d.useRef)(!1);return(0,t9.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),[t,r]=(0,d.useState)(0),n=(0,d.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,d.useCallback)(()=>V.Wi.postRender(n),[n]),t]}(),o=(0,d.useRef)(null),l=n.id||i;null===o.current&&(t8(r)&&l&&(t=t?l+"-"+t:l),o.current={id:t,group:t4(r)&&n.group||function(){let e=new Set,t=new WeakMap,r=()=>e.forEach(t6);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);let i=t.get(n);i&&(i(),t.delete(n)),r()},dirty:r}}()});let u=(0,d.useMemo)(()=>({...o.current,forceRender:a}),[s]);return(0,h.jsx)(ek.p.Provider,{value:u,children:e})};function re(e,t){let{Component:r,values:l,state:c,destroyInactiveTabPanel:f,getBaseProps:p,getTabListProps:v,getWrapperProps:y}=function(e){var t,r,l;let c=(0,t$.w)(),[f,p]=(0,n.oe)(e,tG.variantKeys),{ref:h,as:m,className:v,classNames:y,children:b,disableCursorAnimation:w,motionProps:x,isVertical:P=!1,shouldSelectOnPressUp:k=!0,destroyInactiveTabPanel:E=!0,...T}=f,S=m||"div",C="string"==typeof S,M=(0,i.gy)(h),_=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==c?void 0:c.disableAnimation)&&r,A=function(e){var t;let r=function(e){var t;let[r,n]=(0,tJ.z)(e.selectedKey,null!==(t=e.defaultSelectedKey)&&void 0!==t?t:null,e.onSelectionChange),i=(0,d.useMemo)(()=>null!=r?[r]:[],[r]),{collection:a,disabledKeys:s,selectionManager:o}=function(e){let{filter:t,layoutDelegate:r}=e,n=(0,tq.q)(e),i=(0,d.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=(0,d.useCallback)(e=>new tH(t?t(e):e),[t]),s=(0,d.useMemo)(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=(0,tY.K)(e,a,s),l=(0,d.useMemo)(()=>new tX.Z(o,n,{layoutDelegate:r}),[o,n,r]),u=(0,d.useRef)(null);return(0,d.useEffect)(()=>{if(null!=n.focusedKey&&!o.getItem(n.focusedKey)&&u.current){var e,t,r,i,a,s,c;let d=u.current.getItem(n.focusedKey),f=[...u.current.getKeys()].map(e=>{let t=u.current.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),p=[...o.getKeys()].map(e=>{let t=o.getItem(e);return(null==t?void 0:t.type)==="item"?t:null}).filter(e=>null!==e),h=(null!==(e=null==f?void 0:f.length)&&void 0!==e?e:0)-(null!==(t=null==p?void 0:p.length)&&void 0!==t?t:0),m=Math.min(h>1?Math.max((null!==(r=null==d?void 0:d.index)&&void 0!==r?r:0)-h+1,0):null!==(i=null==d?void 0:d.index)&&void 0!==i?i:0,(null!==(a=null==p?void 0:p.length)&&void 0!==a?a:0)-1),g=null,v=!1;for(;m>=0;){if(!l.isDisabled(p[m].key)){g=p[m];break}m<p.length-1&&!v?m++:(v=!0,m>(null!==(s=null==d?void 0:d.index)&&void 0!==s?s:0)&&(m=null!==(c=null==d?void 0:d.index)&&void 0!==c?c:0),m--)}n.setFocusedKey(g?g.key:null)}u.current=o},[o,l,n,n.focusedKey]),{collection:o,disabledKeys:i,selectionManager:l}}({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:t=>{var i;if("all"===t)return;let a=null!==(i=t.values().next().value)&&void 0!==i?i:null;a===r&&e.onSelectionChange&&e.onSelectionChange(a),n(a)}}),l=null!=r?a.getItem(r):null;return{collection:a,disabledKeys:s,selectionManager:o,selectedKey:r,setSelectedKey:n,selectedItem:l}}({...e,suppressTextValueWarning:!0,defaultSelectedKey:null!==(t=e.defaultSelectedKey)&&void 0!==t?t:tQ(e.collection,e.disabledKeys?new Set(e.disabledKeys):new Set)}),{selectionManager:n,collection:i,selectedKey:a}=r,s=(0,d.useRef)(a);return(0,d.useEffect)(()=>{let e=a;(n.isEmpty||!i.getItem(e))&&null!=(e=tQ(i,r.disabledKeys))&&n.setSelectedKeys([e]),(null==e||null!=n.focusedKey)&&(n.isFocused||e===s.current)||n.setFocusedKey(e),s.current=e}),{...r,isDisabled:e.isDisabled||!1}}({children:b,...T}),{tabListProps:I}=function(e,t,r){let{orientation:n="horizontal",keyboardActivation:i="automatic"}=e,{collection:a,selectionManager:l,disabledKeys:c}=t,{direction:f}=(0,t2.j)(),p=(0,d.useMemo)(()=>new t0(a,f,n,c),[a,c,n,f]),{collectionProps:h}=(0,t5.g)({ref:r,selectionManager:l,keyboardDelegate:p,selectOnFocus:"automatic"===i,disallowEmptySelection:!0,scrollRef:r,linkBehavior:"selection"}),m=(0,t1.Me)();o.set(t,m);let g=(0,u.b)({...e,id:m});return{tabListProps:{...(0,s.d)(h,g),role:"tablist","aria-orientation":n,tabIndex:void 0}}}(T,A,M),L=(0,d.useMemo)(()=>tG({...p,className:v,disableAnimation:_,...P?{placement:"start"}:{}}),[(0,tZ.Xx)(p),v,_,P]),D=(0,a.W)(null==y?void 0:y.base,v),N=(0,d.useMemo)(()=>({state:A,slots:L,classNames:y,motionProps:x,disableAnimation:_,listRef:M,shouldSelectOnPressUp:k,disableCursorAnimation:w,isDisabled:null==e?void 0:e.isDisabled}),[A,L,M,x,_,w,k,null==e?void 0:e.isDisabled,y]),O=(0,d.useCallback)(e=>({"data-slot":"base",className:L.base({class:(0,a.W)(D,null==e?void 0:e.className)}),...(0,s.d)((0,g.z)(T,{enabled:C}),e)}),[D,T,L]),R=null!=(l=p.placement)?l:P?"start":"top",F=(0,d.useCallback)(e=>({"data-slot":"tabWrapper",className:L.wrapper({class:(0,a.W)(null==y?void 0:y.wrapper,null==e?void 0:e.className)}),"data-placement":R,"data-vertical":P||"start"===R||"end"===R?"vertical":"horizontal"}),[y,L,R,P]),j=(0,d.useCallback)(e=>({ref:M,"data-slot":"tabList",className:L.tabList({class:(0,a.W)(null==y?void 0:y.tabList,null==e?void 0:e.className)}),...(0,s.d)(I,e)}),[M,I,y,L]);return{Component:S,domRef:M,state:A,values:N,destroyInactiveTabPanel:E,getBaseProps:O,getTabListProps:j,getWrapperProps:F}}({...e,ref:t}),b=(0,d.useId)(),w=!e.disableAnimation&&!e.disableCursorAnimation,x={state:c,listRef:l.listRef,slots:l.slots,classNames:l.classNames,isDisabled:l.isDisabled,motionProps:l.motionProps,disableAnimation:l.disableAnimation,shouldSelectOnPressUp:l.shouldSelectOnPressUp,disableCursorAnimation:l.disableCursorAnimation},P=[...c.collection].map(e=>(0,h.jsx)(tB,{item:e,...x,...e.props},e.key)),k=(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("div",{...p(),children:(0,h.jsx)(r,{...v(),children:w?(0,h.jsx)(t7,{id:b,children:P}):P})}),[...c.collection].map(e=>(0,h.jsx)(m,{classNames:l.classNames,destroyInactiveTabPanel:f,slots:l.slots,state:l.state,tabKey:e.key},e.key))]});return"placement"in e||"isVertical"in e?(0,h.jsx)("div",{...y(),children:k}):k}var rt=(0,n.Gp)(re);re.displayName="NextUI.Tabs"},84035:function(e,t,r){r.d(t,{r:function(){return n}});var n=r(80923).c},84563:function(e,t,r){r.d(t,{J:function(){return n}});var n={solid:{default:"bg-default text-default-foreground",primary:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",success:"bg-success text-success-foreground",warning:"bg-warning text-warning-foreground",danger:"bg-danger text-danger-foreground",foreground:"bg-foreground text-background"},shadow:{default:"shadow-lg shadow-default/50 bg-default text-default-foreground",primary:"shadow-lg shadow-primary/40 bg-primary text-primary-foreground",secondary:"shadow-lg shadow-secondary/40 bg-secondary text-secondary-foreground",success:"shadow-lg shadow-success/40 bg-success text-success-foreground",warning:"shadow-lg shadow-warning/40 bg-warning text-warning-foreground",danger:"shadow-lg shadow-danger/40 bg-danger text-danger-foreground",foreground:"shadow-lg shadow-foreground/40 bg-foreground text-background"},bordered:{default:"bg-transparent border-default text-foreground",primary:"bg-transparent border-primary text-primary",secondary:"bg-transparent border-secondary text-secondary",success:"bg-transparent border-success text-success",warning:"bg-transparent border-warning text-warning",danger:"bg-transparent border-danger text-danger",foreground:"bg-transparent border-foreground text-foreground"},flat:{default:"bg-default/40 text-default-700",primary:"bg-primary/20 text-primary-700",secondary:"bg-secondary/20 text-secondary-700",success:"bg-success/20 text-success-800 dark:text-success",warning:"bg-warning/20 text-warning-800 dark:text-warning",danger:"bg-danger/20 text-danger-800 dark:text-danger-500",foreground:"bg-foreground/10 text-foreground"},faded:{default:"border-default bg-default-100 text-default-foreground",primary:"border-default bg-default-100 text-primary",secondary:"border-default bg-default-100 text-secondary",success:"border-default bg-default-100 text-success",warning:"border-default bg-default-100 text-warning",danger:"border-default bg-default-100 text-danger",foreground:"border-default bg-default-100 text-foreground"},light:{default:"bg-transparent text-default-foreground",primary:"bg-transparent text-primary",secondary:"bg-transparent text-secondary",success:"bg-transparent text-success",warning:"bg-transparent text-warning",danger:"bg-transparent text-danger",foreground:"bg-transparent text-foreground"},ghost:{default:"border-default text-default-foreground",primary:"border-primary text-primary",secondary:"border-secondary text-secondary",success:"border-success text-success",warning:"border-warning text-warning",danger:"border-danger text-danger",foreground:"border-foreground text-foreground hover:!bg-foreground"}}},78210:function(e,t,r){r.d(t,{tv:function(){return er}});var n=["small","medium","large"],i={theme:{opacity:["disabled"],spacing:["divider"],borderWidth:n,borderRadius:n},classGroups:{shadow:[{shadow:n}],"font-size":[{text:["tiny",...n]}],"bg-image":["bg-stripe-gradient"]}},a=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=e=>!e||"object"!=typeof e||0===Object.keys(e).length,o=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function l(e){let t=[];return function e(t,r){t.forEach(function(t){Array.isArray(t)?e(t,r):r.push(t)})}(e,t),t}var u=(...e)=>l(e).filter(Boolean),c=(e,t)=>{let r={},n=Object.keys(e),i=Object.keys(t);for(let a of n)if(i.includes(a)){let n=e[a],i=t[a];"object"==typeof n&&"object"==typeof i?r[a]=c(n,i):Array.isArray(n)||Array.isArray(i)?r[a]=u(i,n):r[a]=i+" "+n}else r[a]=e[a];for(let e of i)n.includes(e)||(r[e]=t[e]);return r},d=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e,f=/^\[(.+)\]$/;function p(e,t){var r=e;return t.split("-").forEach(function(e){r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r}var h=/\s+/;function m(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){if("string"==typeof t)return t;for(var r,n="",i=0;i<t.length;i++)t[i]&&(r=e(t[i]))&&(n&&(n+=" "),n+=r);return n}(e))&&(n&&(n+=" "),n+=t);return n}function g(){for(var e,t,r,n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=function(n){var a=i[0];return t=(e=function(e){var t,r,n,i,a,s,o,l,u,c,d;return{cache:function(e){if(e<1)return{get:function(){},set:function(){}};var t=0,r=new Map,n=new Map;function i(i,a){r.set(i,a),++t>e&&(t=0,n=r,r=new Map)}return{get:function(e){var t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set:function(e,t){r.has(e)?r.set(e,t):i(e,t)}}}(e.cacheSize),splitModifiers:(r=1===(t=e.separator||":").length,n=t[0],i=t.length,function(e){for(var a,s=[],o=0,l=0,u=0;u<e.length;u++){var c=e[u];if(0===o){if(c===n&&(r||e.slice(u,u+i)===t)){s.push(e.slice(l,u)),l=u+i;continue}if("/"===c){a=u;continue}}"["===c?o++:"]"===c&&o--}var d=0===s.length?e:e.substring(l),f=d.startsWith("!"),p=f?d.substring(1):d;return{modifiers:s,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:a&&a>l?a-l:void 0}}),...(l=e.theme,u=e.prefix,c={nextPart:new Map,validators:[]},(d=Object.entries(e.classGroups),u?d.map(function(e){return[e[0],e[1].map(function(e){return"string"==typeof e?u+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(function(e){return[u+e[0],e[1]]})):e})]}):d).forEach(function(e){var t=e[0];(function e(t,r,n,i){t.forEach(function(t){if("string"==typeof t){(""===t?r:p(r,t)).classGroupId=n;return}if("function"==typeof t){if(t.isThemeGetter){e(t(i),r,n,i);return}r.validators.push({validator:t,classGroupId:n});return}Object.entries(t).forEach(function(t){var a=t[0];e(t[1],p(r,a),n,i)})})})(e[1],c,t,l)}),a=e.conflictingClassGroups,o=void 0===(s=e.conflictingClassGroupModifiers)?{}:s,{getClassGroupId:function(e){var t=e.split("-");return""===t[0]&&1!==t.length&&t.shift(),function e(t,r){if(0===t.length)return r.classGroupId;var n=t[0],i=r.nextPart.get(n),a=i?e(t.slice(1),i):void 0;if(a)return a;if(0!==r.validators.length){var s=t.join("-");return r.validators.find(function(e){return(0,e.validator)(s)})?.classGroupId}}(t,c)||function(e){if(f.test(e)){var t=f.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=a[e]||[];return t&&o[e]?[].concat(r,o[e]):r}})}}(i.slice(1).reduce(function(e,t){return t(e)},a()))).cache.get,r=e.cache.set,s=o,o(n)};function o(n){var i,a,s,o,l,u=t(n);if(u)return u;var c=(a=(i=e).splitModifiers,s=i.getClassGroupId,o=i.getConflictingClassGroupIds,l=new Set,n.trim().split(h).map(function(e){var t=a(e),r=t.modifiers,n=t.hasImportantModifier,i=t.baseClassName,o=t.maybePostfixModifierPosition,l=s(o?i.substring(0,o):i),u=!!o;if(!l){if(!o||!(l=s(i)))return{isTailwindClass:!1,originalClassName:e};u=!1}var c=(function(e){if(e.length<=1)return e;var t=[],r=[];return e.forEach(function(e){"["===e[0]?(t.push.apply(t,r.sort().concat([e])),r=[]):r.push(e)}),t.push.apply(t,r.sort()),t})(r).join(":");return{isTailwindClass:!0,modifierId:n?c+"!":c,classGroupId:l,originalClassName:e,hasPostfixModifier:u}}).reverse().filter(function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,r=e.classGroupId,n=e.hasPostfixModifier,i=t+r;return!l.has(i)&&(l.add(i),o(r,n).forEach(function(e){return l.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,c),c}return function(){return s(m.apply(null,arguments))}}function v(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var y=/^\[(?:([a-z-]+):)?(.+)\]$/i,b=/^\d+\/\d+$/,w=new Set(["px","full","screen"]),x=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,P=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function E(e){return A(e)||w.has(e)||b.test(e)||T(e)}function T(e){return F(e,"length",j)}function S(e){return F(e,"size",K)}function C(e){return F(e,"position",K)}function M(e){return F(e,"url",V)}function _(e){return F(e,"number",A)}function A(e){return!Number.isNaN(Number(e))}function I(e){return e.endsWith("%")&&A(e.slice(0,-1))}function L(e){return B(e)||F(e,"number",B)}function D(e){return y.test(e)}function N(){return!0}function O(e){return x.test(e)}function R(e){return F(e,"",$)}function F(e,t,r){var n=y.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function j(e){return P.test(e)}function K(){return!1}function V(e){return e.startsWith("url(")}function B(e){return Number.isInteger(Number(e))}function $(e){return k.test(e)}function z(){var e=v("colors"),t=v("spacing"),r=v("blur"),n=v("brightness"),i=v("borderColor"),a=v("borderRadius"),s=v("borderSpacing"),o=v("borderWidth"),l=v("contrast"),u=v("grayscale"),c=v("hueRotate"),d=v("invert"),f=v("gap"),p=v("gradientColorStops"),h=v("gradientColorStopPositions"),m=v("inset"),g=v("margin"),y=v("opacity"),b=v("padding"),w=v("saturate"),x=v("scale"),P=v("sepia"),k=v("skew"),F=v("space"),j=v("translate"),K=function(){return["auto","contain","none"]},V=function(){return["auto","hidden","clip","visible","scroll"]},B=function(){return["auto",D,t]},$=function(){return[D,t]},z=function(){return["",E]},W=function(){return["auto",A,D]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},Z=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},H=function(){return["start","end","center","between","around","evenly","stretch"]},q=function(){return["","0",D]},X=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Y=function(){return[A,_]},J=function(){return[A,D]};return{cacheSize:500,theme:{colors:[N],spacing:[E],blur:["none","",O,D],brightness:Y(),borderColor:[e],borderRadius:["none","","full",O,D],borderSpacing:$(),borderWidth:z(),contrast:Y(),grayscale:q(),hueRotate:J(),invert:q(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[I,T],inset:B(),margin:B(),opacity:Y(),padding:$(),saturate:Y(),scale:Y(),sepia:q(),skew:J(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",D]}],container:["container"],columns:[{columns:[O]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(U(),[D])}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:K()}],"overscroll-x":[{"overscroll-x":K()}],"overscroll-y":[{"overscroll-y":K()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",L]}],basis:[{basis:B()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",D]}],grow:[{grow:q()}],shrink:[{shrink:q()}],order:[{order:["first","last","none",L]}],"grid-cols":[{"grid-cols":[N]}],"col-start-end":[{col:["auto",{span:["full",L]},D]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[N]}],"row-start-end":[{row:["auto",{span:[L]},D]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",D]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",D]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(H())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(H(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(H(),["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[F]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[F]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",D,t]}],"min-w":[{"min-w":["min","max","fit",D,E]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[O]},O,D]}],h:[{h:[D,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",D,E]}],"max-h":[{"max-h":[D,t,"min","max","fit"]}],"font-size":[{text:["base",O,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[N]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",D]}],"line-clamp":[{"line-clamp":["none",A,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",D,E]}],"list-image":[{"list-image":["none",D]}],"list-style-type":[{list:["none","disc","decimal",D]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(G(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",E]}],"underline-offset":[{"underline-offset":["auto",D,E]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",D]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",D]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(U(),[C])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",S]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},M]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(G())}],"outline-offset":[{"outline-offset":[D,E]}],"outline-w":[{outline:[E]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[E]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",O,R]}],"shadow-color":[{shadow:[N]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":Z()}],"bg-blend":[{"bg-blend":Z()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",O,D]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[P]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[P]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",D]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",D]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",D]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[L,D]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[k]}],"skew-y":[{"skew-y":[k]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",D]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",D]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",D]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[E,_]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var W=g(z),U=Object.prototype.hasOwnProperty,G=new Set(["string","number","boolean"]),Z={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},H=e=>e||void 0,q=(...e)=>H(l(e).filter(Boolean).join(" ")),X=null,Y={},J=!1,Q=(...e)=>t=>t.twMerge?((!X||J)&&(J=!1,X=s(Y)?W:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e?g.apply(void 0,[z,e].concat(r)):g.apply(void 0,[function(){return function(e,t){for(var r in t)(function e(t,r,n){if(!U.call(t,r)||G.has(typeof n)||null===n){t[r]=n;return}if(Array.isArray(n)&&Array.isArray(t[r])){t[r]=t[r].concat(n);return}if("object"==typeof n&&"object"==typeof t[r]){if(null===t[r]){t[r]=n;return}for(var i in n)e(t[r],i,n[i])}})(e,r,t[r]);return e}(z(),e)}].concat(r))}(Y)),H(X(q(e)))):q(e),ee=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=q(e[r],t[r]):e[r]=t[r];return e},et=(e,t)=>{let{extend:r=null,slots:n={},variants:i={},compoundVariants:l=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...Z,...t},m=null!=r&&r.base?q(r.base,null==e?void 0:e.base):null==e?void 0:e.base,g=null!=r&&r.variants&&!s(r.variants)?c(i,r.variants):i,v=null!=r&&r.defaultVariants&&!s(r.defaultVariants)?{...r.defaultVariants,...p}:p;s(h.twMergeConfig)||o(h.twMergeConfig,Y)||(J=!0,Y=h.twMergeConfig);let y=s(null==r?void 0:r.slots),b=s(n)?{}:{base:q(null==e?void 0:e.base,y&&(null==r?void 0:r.base)),...n},w=y?b:ee({...null==r?void 0:r.slots},s(b)?{base:null==e?void 0:e.base}:b),x=e=>{if(s(g)&&s(n)&&y)return Q(m,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(l&&!Array.isArray(l))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof l}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],n)=>{let i=r;if("string"==typeof t)i=i.concat(d(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))i=i.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof n){for(let r in t)if(t.hasOwnProperty(r)&&r===n){let a=t[r];if(a&&"string"==typeof a){let t=d(a);i[n]?i[n]=i[n].concat(t.split(" ").map(t=>`${e}:${t}`)):i[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(a)&&a.length>0&&(i[n]=a.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return i},i=(r,n=g,i=null,o=null)=>{var l;let u=n[r];if(!u||s(u))return null;let c=null!=(l=null==o?void 0:o[r])?l:null==e?void 0:e[r];if(null===c)return null;let d=a(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==v?void 0:v[r],m=[];if("object"==typeof d&&f)for(let[e,r]of Object.entries(d)){let n=u[r];if("initial"===e){p=r;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(m=t(e,n,m,i))}let y=u[d]||u[a(p)];return"object"==typeof m&&"string"==typeof i&&m[i]?ee(m,y):m.length>0?(m.push(y),m):y},o=(e,t)=>{if(!g||"object"!=typeof g)return null;let r=[];for(let n in g){let a=i(n,g,e,t),s="base"===e&&"string"==typeof a?a:a&&a[e];s&&(r[r.length]=s)}return r},c={};for(let t in e)void 0!==e[t]&&(c[t]=e[t]);let p=(t,r)=>{var n;let i="object"==typeof(null==e?void 0:e[t])?{[t]:null==(n=e[t])?void 0:n.initial}:{};return{...v,...c,...i,...r}},b=(e=[],t)=>{let r=[];for(let{class:n,className:i,...a}of e){let e=!0;for(let[r,n]of Object.entries(a)){let i=p(r,t);if(Array.isArray(n)){if(!n.includes(i[r])){e=!1;break}}else if(i[r]!==n){e=!1;break}}e&&(n&&r.push(n),i&&r.push(i))}return r},x=e=>{let t=b(l,e);return u(b(null==r?void 0:r.compoundVariants,e),t)},P=e=>{let t=x(e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=Q(r.base,e)(h)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=Q(r[t],n)(h);return r},k=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:i,...a}of f){if(!s(a)){let t=!0;for(let r of Object.keys(a)){let n=p(r,e)[r];if(void 0===n||(Array.isArray(a[r])?!a[r].includes(n):a[r]!==n)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([n,i])}return t};if(!s(n)||!y){let e={};if("object"==typeof w&&!s(w))for(let t of Object.keys(w))e[t]=e=>{var r,n;return Q(w[t],o(t,e),(null!=(r=P(e))?r:[])[t],(null!=(n=k(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Q(m,g?Object.keys(g).map(e=>i(e,g)):null,x(),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return x.variantKeys=(()=>{if(!(!g||"object"!=typeof g))return Object.keys(g)})(),x.extend=r,x.base=m,x.slots=w,x.variants=g,x.defaultVariants=v,x.compoundSlots=f,x.compoundVariants=l,x},er=(e,t)=>{var r,n,a;return et(e,{...t,twMerge:null==(r=null==t?void 0:t.twMerge)||r,twMergeConfig:{...null==t?void 0:t.twMergeConfig,theme:{...null==(n=null==t?void 0:t.twMergeConfig)?void 0:n.theme,...i.theme},classGroups:{...null==(a=null==t?void 0:t.twMergeConfig)?void 0:a.classGroups,...i.classGroups}}})}},91988:function(e,t,r){r.d(t,{Dh:function(){return n},ID:function(){return i},Zs:function(){return a}});var n=["outline-none","data-[focus-visible=true]:z-10","data-[focus-visible=true]:outline-2","data-[focus-visible=true]:outline-focus","data-[focus-visible=true]:outline-offset-2"],i=["outline-none","group-data-[focus-visible=true]:z-10","group-data-[focus-visible=true]:ring-2","group-data-[focus-visible=true]:ring-focus","group-data-[focus-visible=true]:ring-offset-2","group-data-[focus-visible=true]:ring-offset-background"],a={default:["[&+.border-medium.border-default]:ms-[calc(theme(borderWidth.medium)*-1)]"],primary:["[&+.border-medium.border-primary]:ms-[calc(theme(borderWidth.medium)*-1)]"],secondary:["[&+.border-medium.border-secondary]:ms-[calc(theme(borderWidth.medium)*-1)]"],success:["[&+.border-medium.border-success]:ms-[calc(theme(borderWidth.medium)*-1)]"],warning:["[&+.border-medium.border-warning]:ms-[calc(theme(borderWidth.medium)*-1)]"],danger:["[&+.border-medium.border-danger]:ms-[calc(theme(borderWidth.medium)*-1)]"]}},79247:function(e,t,r){r.d(t,{e:function(){return ef}});var n=r(50959),i=r(36914);let a={},s=0,o=!1,l=null,u=null;var c=r(93738),d=r(660),f=r(53783),p=r(91796),h=r(65092),m=r(97546),g=r(19349),v=r(88776);function y(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&r.stopPropagation()}}let b=n.createContext(null);var w=r(27602),x=r(78230);function P(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}let k={top:"top",bottom:"top",left:"left",right:"left"},E={top:"bottom",bottom:"top",left:"right",right:"left"},T={top:"left",left:"top"},S={top:"height",left:"width"},C={width:"totalWidth",height:"totalHeight"},M={},_="undefined"!=typeof document&&window.visualViewport;function A(e){let t=0,r=0,n=0,i=0,a=0,s=0,o={},l=(null==_?void 0:_.scale)>1;if("BODY"===e.tagName){var u,c;let l=document.documentElement;n=l.clientWidth,i=l.clientHeight,t=null!==(u=null==_?void 0:_.width)&&void 0!==u?u:n,r=null!==(c=null==_?void 0:_.height)&&void 0!==c?c:i,o.top=l.scrollTop||e.scrollTop,o.left=l.scrollLeft||e.scrollLeft,_&&(a=_.offsetTop,s=_.offsetLeft)}else({width:t,height:r,top:a,left:s}=O(e)),o.top=e.scrollTop,o.left=e.scrollLeft,n=t,i=r;return(0,x.Pf)()&&("BODY"===e.tagName||"HTML"===e.tagName)&&l&&(o.top=0,o.left=0,a=_.pageTop,s=_.pageLeft),{width:t,height:r,totalWidth:n,totalHeight:i,scroll:o,top:a,left:s}}function I(e,t,r,n,i,a,s){let o=i.scroll[e],l=n[S[e]],u=n.scroll[k[e]]+a,c=l+n.scroll[k[e]]-a,d=t-o+s[e]-n[k[e]],f=t-o+r+s[e]-n[k[e]];return d<u?u-d:f>c?Math.max(c-f,u-d):0}function L(e){if(M[e])return M[e];let[t,r]=e.split(" "),n=k[t]||"right",i=T[n];k[r]||(r="center");let a=S[n],s=S[i];return M[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:a,crossSize:s},M[e]}function D(e,t,r,n,i,a,s,o,l,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:p,size:h,crossSize:m}=n,g={};g[p]=e[p],"center"===d?g[p]+=(e[m]-r[m])/2:d!==p&&(g[p]+=e[m]-r[m]),g[p]+=a;let v=e[p]-r[m]+l+u,y=e[p]+e[m]-l-u;if(g[p]=P(g[p],v,y),c===f){let r=o?s[h]:t[C[h]];g[E[f]]=Math.floor(r-e[f]+i)}else g[f]=Math.floor(e[f]+e[h]+i);return g}function N(e,t,r,n,i,a){let{placement:s,axis:o,size:l}=a;return s===o?Math.max(0,r[o]-e[o]-e.scroll[o]+t[o]-n[o]-n[E[o]]-i):Math.max(0,e[l]+e[o]+e.scroll[o]-t[o]-r[o]-r[l]-n[o]-n[E[o]]-i)}function O(e){let{top:t,left:r,width:n,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:s,clientTop:o,clientLeft:l}=document.documentElement;return{top:t+a-o,left:r+s-l,width:n,height:i}}function R(e,t){let r,n=window.getComputedStyle(e);if("fixed"===n.position){let{top:t,left:n,width:i,height:a}=e.getBoundingClientRect();r={top:t,left:n,width:i,height:a}}else{r=O(e);let n=O(t),i=window.getComputedStyle(t);n.top+=(parseInt(i.borderTopWidth,10)||0)-t.scrollTop,n.left+=(parseInt(i.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=n.top,r.left-=n.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function F(e){let t=window.getComputedStyle(e);return"none"!==t.transform||/transform|perspective/.test(t.willChange)||"none"!==t.filter||"paint"===t.contain||"backdropFilter"in t&&"none"!==t.backdropFilter||"WebkitBackdropFilter"in t&&"none"!==t.WebkitBackdropFilter}let j=new WeakMap;var K=r(22903),V=r(18660);let B="undefined"!=typeof document&&window.visualViewport;var $=r(37371),z=r(46100),W=r(20321),U=r(84563),G=r(78210),Z=r(91988),H=(0,G.tv)({slots:{base:["z-0","relative","bg-transparent","before:content-['']","before:hidden","before:z-[-1]","before:absolute","before:rotate-45","before:w-2.5","before:h-2.5","before:rounded-sm","data-[arrow=true]:before:block","data-[placement=top]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top]:before:left-1/2","data-[placement=top]:before:-translate-x-1/2","data-[placement=top-start]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-start]:before:left-3","data-[placement=top-end]:before:-bottom-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=top-end]:before:right-3","data-[placement=bottom]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom]:before:left-1/2","data-[placement=bottom]:before:-translate-x-1/2","data-[placement=bottom-start]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-start]:before:left-3","data-[placement=bottom-end]:before:-top-[calc(theme(spacing.5)/4_-_1.5px)]","data-[placement=bottom-end]:before:right-3","data-[placement=left]:before:-right-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=left]:before:top-1/2","data-[placement=left]:before:-translate-y-1/2","data-[placement=left-start]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-start]:before:top-1/4","data-[placement=left-end]:before:-right-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=left-end]:before:bottom-1/4","data-[placement=right]:before:-left-[calc(theme(spacing.5)/4_-_2px)]","data-[placement=right]:before:top-1/2","data-[placement=right]:before:-translate-y-1/2","data-[placement=right-start]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-start]:before:top-1/4","data-[placement=right-end]:before:-left-[calc(theme(spacing.5)/4_-_3px)]","data-[placement=right-end]:before:bottom-1/4",...Z.Dh],content:["z-10","px-2.5","py-1","w-full","inline-flex","flex-col","items-center","justify-center","box-border","subpixel-antialiased","outline-none","box-border"],trigger:["z-10"],backdrop:["hidden"],arrow:[]},variants:{size:{sm:{content:"text-tiny"},md:{content:"text-small"},lg:{content:"text-medium"}},color:{default:{base:"before:bg-content1 before:shadow-small",content:"bg-content1"},foreground:{base:"before:bg-foreground",content:U.J.solid.foreground},primary:{base:"before:bg-primary",content:U.J.solid.primary},secondary:{base:"before:bg-secondary",content:U.J.solid.secondary},success:{base:"before:bg-success",content:U.J.solid.success},warning:{base:"before:bg-warning",content:U.J.solid.warning},danger:{base:"before:bg-danger",content:U.J.solid.danger}},radius:{none:{content:"rounded-none"},sm:{content:"rounded-small"},md:{content:"rounded-medium"},lg:{content:"rounded-large"},full:{content:"rounded-full"}},shadow:{sm:{content:"shadow-small"},md:{content:"shadow-medium"},lg:{content:"shadow-large"}},backdrop:{transparent:{},opaque:{backdrop:"bg-overlay/50 backdrop-opacity-disabled"},blur:{backdrop:"backdrop-blur-sm backdrop-saturate-150 bg-overlay/30"}},triggerScaleOnOpen:{true:{trigger:["aria-expanded:scale-[0.97]","aria-expanded:opacity-70","subpixel-antialiased"]},false:{}},disableAnimation:{true:{base:"animate-none"}},isTriggerDisabled:{true:{trigger:"opacity-disabled pointer-events-none"},false:{}}},defaultVariants:{color:"default",radius:"lg",size:"md",shadow:"md",backdrop:"transparent",triggerScaleOnOpen:!0},compoundVariants:[{backdrop:["opaque","blur"],class:{backdrop:"block w-full h-full fixed inset-0 -z-30"}}]}),q=r(65052),X=r(49975),Y=r(85151),J=r(21832),Q=e=>{let t={top:{originY:1},bottom:{originY:0},left:{originX:1},right:{originX:0},"top-start":{originX:0,originY:1},"top-end":{originX:1,originY:1},"bottom-start":{originX:0,originY:0},"bottom-end":{originX:1,originY:0},"right-start":{originX:0,originY:0},"right-end":{originX:0,originY:1},"left-start":{originX:1,originY:0},"left-end":{originX:1,originY:1}};return(null==t?void 0:t[e])||{}},ee=e=>({top:"top",bottom:"bottom",left:"left",right:"right","top-start":"top start","top-end":"top end","bottom-start":"bottom start","bottom-end":"bottom end","left-start":"left top","left-end":"left bottom","right-start":"right top","right-end":"right bottom"})[e],et=(e,t)=>{if(t.includes("-")){let[,r]=t.split("-");return`${e}-${r}`}return e},er=r(84194),en=r(9145),ei=r(66469),ea=r(63039),es=r(12565),eo=r(49621),el=r(46881),eu=r(69581),ec=r(11527),ed=(0,W.Gp)((e,t)=>{let r;let{Component:x,children:k,content:T,isOpen:S,portalContainer:M,placement:_,disableAnimation:U,motionProps:G,getTriggerProps:Z,getTooltipProps:ed,getTooltipContentProps:ef}=function(e){var t,r;let x=(0,z.w)(),[k,T]=(0,W.oe)(e,H.variantKeys),{ref:S,as:M,isOpen:_,content:U,children:G,defaultOpen:Z,onOpenChange:Q,isDisabled:en,trigger:ei,shouldFlip:ea=!0,containerPadding:es=12,placement:eo="top",delay:el=0,closeDelay:eu=500,showArrow:ec=!1,offset:ed=7,crossOffset:ef=0,isDismissable:ep,shouldCloseOnBlur:eh=!0,portalContainer:em,isKeyboardDismissDisabled:eg=!1,updatePositionDeps:ev=[],shouldCloseOnInteractOutside:ey,className:eb,onClose:ew,motionProps:ex,classNames:eP,...ek}=k,eE=null!=(r=null!=(t=null==e?void 0:e.disableAnimation)?t:null==x?void 0:x.disableAnimation)&&r,eT=function(e={}){let{delay:t=1500,closeDelay:r=500}=e,{isOpen:c,open:d,close:f}=function(e){let[t,r]=(0,i.z)(e.isOpen,e.defaultOpen||!1,e.onOpenChange),a=(0,n.useCallback)(()=>{r(!0)},[r]),s=(0,n.useCallback)(()=>{r(!1)},[r]),o=(0,n.useCallback)(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:a,close:s,toggle:o}}(e),p=(0,n.useMemo)(()=>`${++s}`,[]),h=(0,n.useRef)(),m=()=>{a[p]=y},g=()=>{for(let e in a)e!==p&&(a[e](!0),delete a[e])},v=()=>{clearTimeout(h.current),h.current=null,g(),m(),o=!0,d(),l&&(clearTimeout(l),l=null),u&&(clearTimeout(u),u=null)},y=e=>{e||r<=0?(clearTimeout(h.current),h.current=null,f()):h.current||(h.current=setTimeout(()=>{h.current=null,f()},r)),l&&(clearTimeout(l),l=null),o&&(u&&clearTimeout(u),u=setTimeout(()=>{delete a[p],u=null,o=!1},Math.max(500,r)))},b=()=>{g(),m(),c||l||o?c||v():l=setTimeout(()=>{l=null,o=!0,v()},t)};return(0,n.useEffect)(()=>()=>{clearTimeout(h.current),a[p]&&delete a[p]},[p]),{isOpen:c,open:e=>{e||!(t>0)||h.current?v():b()},close:y}}({delay:el,closeDelay:eu,isDisabled:en,defaultOpen:Z,isOpen:_,onOpenChange:e=>{null==Q||Q(e),e||null==ew||ew()}}),eS=(0,n.useRef)(null),eC=(0,n.useRef)(null),eM=(0,n.useId)(),e_=eT.isOpen&&!en;(0,n.useImperativeHandle)(S,()=>(0,J.fg)(eC));let{triggerProps:eA,tooltipProps:eI}=function(e,t,r){let{isDisabled:i,trigger:a}=e,s=(0,p.Me)(),o=(0,n.useRef)(!1),l=(0,n.useRef)(!1),u=()=>{(o.current||l.current)&&t.open(l.current)},w=e=>{o.current||l.current||t.close(e)};(0,n.useEffect)(()=>{let e=e=>{r&&r.current&&"Escape"===e.key&&(e.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",e,!0),()=>{document.removeEventListener("keydown",e,!0)}},[r,t]);let x=()=>{l.current=!1,o.current=!1,w(!0)},{hoverProps:P}=(0,f.X)({isDisabled:i,onHoverStart:()=>{"focus"!==a&&("pointer"===(0,d.Jz)()?o.current=!0:o.current=!1,u())},onHoverEnd:()=>{"focus"!==a&&(l.current=!1,o.current=!1,w())}}),{focusableProps:k}=function(e,t){let{focusProps:r}=(0,v.K)(e),{keyboardProps:i}={keyboardProps:e.isDisabled?{}:{onKeyDown:y(e.onKeyDown),onKeyUp:y(e.onKeyUp)}},a=(0,g.d)(r,i),s=function(e){let t=(0,n.useContext)(b)||{};(0,m.l)(t,e);let{ref:r,...i}=t;return i}(t),o=e.isDisabled?{}:s,l=(0,n.useRef)(e.autoFocus);return(0,n.useEffect)(()=>{l.current&&t.current&&(0,h.e)(t.current),l.current=!1},[t]),{focusableProps:(0,g.d)({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}({isDisabled:i,onFocus:()=>{(0,d.E)()&&(l.current=!0,u())},onBlur:()=>{l.current=!1,o.current=!1,w(!0)}},r);return{triggerProps:{"aria-describedby":t.isOpen?s:void 0,...(0,c.d)(k,P,{onPointerDown:x,onKeyDown:x})},tooltipProps:{id:s}}}({isDisabled:en,trigger:ei},eT,eS),{tooltipProps:eL}=function(e,t){let r=(0,w.z)(e,{labelable:!0}),{hoverProps:n}=(0,f.X)({onHoverStart:()=>null==t?void 0:t.open(!0),onHoverEnd:()=>null==t?void 0:t.close()});return{tooltipProps:(0,c.d)(r,n,{role:"tooltip"})}}({isOpen:e_,...(0,c.d)(k,eI)},eT),{overlayProps:eD,placement:eN,updatePosition:eO}=function(e){let{direction:t}=(0,V.j)(),{arrowSize:r=0,targetRef:i,overlayRef:a,scrollRef:s=a,placement:o="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c="undefined"!=typeof document?document.body:null,offset:d=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:h=!0,onClose:m,maxHeight:g,arrowBoundaryOffset:v=0}=e,[y,b]=(0,n.useState)({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),w=[p,o,a.current,i.current,s.current,l,u,c,d,f,h,t,g,v,r],x=(0,n.useRef)(null==B?void 0:B.scale);(0,n.useEffect)(()=>{h&&(x.current=null==B?void 0:B.scale)},[h]);let k=(0,n.useCallback)(()=>{var e,n;if(!1===p||!h||!a.current||!i.current||!s.current||!c||(null==B?void 0:B.scale)!==x.current)return;let m=a.current;!g&&a.current&&(m.style.top="0px",m.style.bottom="",m.style.maxHeight=(null!==(n=null===(e=window.visualViewport)||void 0===e?void 0:e.height)&&void 0!==n?n:window.innerHeight)+"px");let y=function(e){let t,{placement:r,targetNode:n,overlayNode:i,scrollNode:a,padding:s,shouldFlip:o,boundaryElement:l,offset:u,crossOffset:c,maxHeight:d,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,h=i instanceof HTMLElement?function(e){let t=e.offsetParent;if(t&&t===document.body&&"static"===window.getComputedStyle(t).position&&!F(t)&&(t=document.documentElement),null==t)for(t=e.parentElement;t&&!F(t);)t=t.parentElement;return t||document.documentElement}(i):document.documentElement,m=h===document.documentElement,g=window.getComputedStyle(h).position,v=m?O(n):R(n,h);if(!m){let{marginTop:e,marginLeft:t}=window.getComputedStyle(n);v.top+=parseInt(e,10)||0,v.left+=parseInt(t,10)||0}let y=O(i),b={top:parseInt((t=window.getComputedStyle(i)).marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0};y.width+=b.left+b.right,y.height+=b.top+b.bottom;let w={top:a.scrollTop,left:a.scrollLeft,width:a.scrollWidth,height:a.scrollHeight},x=A(l),k=A(h),T="BODY"===l.tagName?O(h):R(h,l);return"HTML"===h.tagName&&"BODY"===l.tagName&&(k.scroll.top=0,k.scroll.left=0),function(e,t,r,n,i,a,s,o,l,u,c,d,f,p,h,m){let g=L(e),{size:v,crossAxis:y,crossSize:b,placement:w,crossPlacement:x}=g,k=D(t,o,r,g,c,d,u,f,h,m),T=c,S=N(o,u,t,i,a+c,g);if(s&&n[v]>S){let e=L(`${E[w]} ${x}`),n=D(t,o,r,e,c,d,u,f,h,m);N(o,u,t,i,a+c,e)>S&&(g=e,k=n,T=c)}let M="bottom";"top"===g.axis?"top"===g.placement?M="top":"bottom"===g.placement&&(M="bottom"):"top"===g.crossAxis&&("top"===g.crossPlacement?M="bottom":"bottom"===g.crossPlacement&&(M="top"));let _=I(y,k[y],r[b],o,l,a,u);k[y]+=_;let A=function(e,t,r,n,i,a,s,o){let l=n?r.height:t[C.height],u=null!=e.top?r.top+e.top:r.top+(l-e.bottom-s),c="top"!==o?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+s-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-2*a,c)}(k,o,u,f,i,a,r.height,M);p&&p<A&&(A=p),r.height=Math.min(r.height,A),_=I(y,(k=D(t,o,r,g,T,d,u,f,h,m))[y],r[b],o,l,a,u),k[y]+=_;let O={},R=t[y]+.5*t[b]-k[y],F=h/2+m,j=r[b]-h/2-m,K=P(R,t[y]-k[y]+h/2,t[y]+t[b]-k[y]-h/2);return O[y]=P(K,F,j),{position:k,maxHeight:A,arrowOffsetLeft:O.left,arrowOffsetTop:O.top,placement:g.placement}}(r,v,y,w,b,s,o,x,k,T,u,c,!!g&&"static"!==g,d,f,p)}({placement:"rtl"===t?o.replace("start","right").replace("end","left"):o.replace("start","left").replace("end","right"),overlayNode:a.current,targetNode:i.current,scrollNode:s.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:f,maxHeight:g,arrowSize:r,arrowBoundaryOffset:v});m.style.top="",m.style.bottom="",Object.keys(y.position).forEach(e=>m.style[e]=y.position[e]+"px"),m.style.maxHeight=null!=y.maxHeight?y.maxHeight+"px":void 0,b(y)},w);(0,K.b)(k,w),(0,K.b)(()=>(window.addEventListener("resize",k,!1),()=>{window.removeEventListener("resize",k,!1)}),[k]),function(e){let{ref:t,onResize:r}=e;(0,n.useEffect)(()=>{let e=null==t?void 0:t.current;if(e){if(!(void 0!==window.ResizeObserver))return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)};{let t=new window.ResizeObserver(e=>{e.length&&r()});return t.observe(e),()=>{e&&t.unobserve(e)}}}},[r,t])}({ref:a,onResize:k});let T=(0,n.useRef)(!1);(0,K.b)(()=>{let e;let t=()=>{T.current=!0,clearTimeout(e),e=setTimeout(()=>{T.current=!1},500),k()},r=()=>{T.current&&t()};return null==B||B.addEventListener("resize",t),null==B||B.addEventListener("scroll",r),()=>{null==B||B.removeEventListener("resize",t),null==B||B.removeEventListener("scroll",r)}},[k]);let S=(0,n.useCallback)(()=>{T.current||m()},[m,T]);return!function(e){let{triggerRef:t,isOpen:r,onClose:i}=e;(0,n.useEffect)(()=>{if(!r||null===i)return;let e=e=>{let r=e.target;if(!t.current||r instanceof Node&&!r.contains(t.current))return;let n=i||j.get(t.current);n&&n()};return window.addEventListener("scroll",e,!0),()=>{window.removeEventListener("scroll",e,!0)}},[r,i,t])}({triggerRef:i,isOpen:h,onClose:m&&S}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:y.maxHeight}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:k}}({isOpen:e_,targetRef:eS,placement:ee(eo),overlayRef:eC,offset:ec?ed+3:ed,crossOffset:ef,shouldFlip:ea,containerPadding:es});(0,er.G)(()=>{ev.length&&eO()},ev);let{overlayProps:eR}=(0,$.I)({isOpen:e_,onClose:eT.close,isDismissable:ep,shouldCloseOnBlur:eh,isKeyboardDismissDisabled:eg,shouldCloseOnInteractOutside:ey},eC),eF=(0,n.useMemo)(()=>{var t,r,n;return H({...T,disableAnimation:eE,radius:null!=(t=null==e?void 0:e.radius)?t:"md",size:null!=(r=null==e?void 0:e.size)?r:"md",shadow:null!=(n=null==e?void 0:e.shadow)?n:"sm"})},[(0,q.Xx)(T),eE,null==e?void 0:e.radius,null==e?void 0:e.size,null==e?void 0:e.shadow]),ej=(0,n.useCallback)((e={},t=null)=>({...(0,c.d)(eA,e),ref:function(...e){return t=>{e.forEach(e=>(function(e,t){if(null!=e){if((0,X.mf)(e)){e(t);return}try{e.current=t}catch(r){throw Error(`Cannot assign value '${t}' to ref '${e}'`)}}})(e,t))}}(t,eS),"aria-describedby":e_?eM:void 0}),[eA,e_,eM,eT]),eK=(0,n.useCallback)(()=>({ref:eC,"data-slot":"base","data-open":(0,X.PB)(e_),"data-arrow":(0,X.PB)(ec),"data-disabled":(0,X.PB)(en),"data-placement":et(eN,eo),...(0,c.d)(eL,eR,ek),style:(0,c.d)(eD.style,ek.style,k.style),className:eF.base({class:null==eP?void 0:eP.base}),id:eM}),[eF,e_,ec,en,eN,eo,eL,eR,ek,eD,k,eM]),eV=(0,n.useCallback)(()=>({"data-slot":"content","data-open":(0,X.PB)(e_),"data-arrow":(0,X.PB)(ec),"data-disabled":(0,X.PB)(en),"data-placement":et(eN,eo),className:eF.content({class:(0,Y.W)(null==eP?void 0:eP.content,eb)})}),[eF,e_,ec,en,eN,eo,eP]);return{Component:M||"div",content:U,children:G,isOpen:e_,triggerRef:eS,showArrow:ec,portalContainer:em,placement:eo,disableAnimation:eE,isDisabled:en,motionProps:ex,getTooltipContentProps:eV,getTriggerProps:ej,getTooltipProps:eK}}({...e,ref:t});try{let e=n.Children.count(k);if(1!==e)throw Error();r=(0,n.isValidElement)(k)?(0,n.cloneElement)(k,Z(k.props,k.ref)):(0,ec.jsx)("p",{...Z(),children:k})}catch(e){r=(0,ec.jsx)("span",{}),(0,eu.Z)("Tooltip must have only one child node. Please, check your code.")}let{ref:ep,id:eh,style:em,...eg}=ed(),ev=(0,ec.jsx)("div",{ref:ep,id:eh,style:em,children:(0,ec.jsx)(ei.X,{features:ea.H,children:(0,ec.jsx)(es.m.div,{animate:"enter",exit:"exit",initial:"exit",variants:el.y7.scaleSpring,...(0,c.d)(G,eg),style:{...Q(_)},children:(0,ec.jsx)(x,{...ef(),children:T})})})});return(0,ec.jsxs)(ec.Fragment,{children:[r,U&&S?(0,ec.jsx)(en.Xj,{portalContainer:M,children:(0,ec.jsx)("div",{ref:ep,id:eh,style:em,...eg,children:(0,ec.jsx)(x,{...ef(),children:T})})}):(0,ec.jsx)(eo.M,{children:S?(0,ec.jsx)(en.Xj,{portalContainer:M,children:ev}):null})]})});ed.displayName="NextUI.Tooltip";var ef=ed},59757:function(e,t,r){r.d(t,{j:function(){return o}});var n=r(93738),i=r(27602),a=r(54980),s=r(59449);function o(e,t){let r,{elementType:o="button",isDisabled:l,onPress:u,onPressStart:c,onPressEnd:d,onPressChange:f,preventFocusOnPress:p,allowFocusWhenDisabled:h,onClick:m,href:g,target:v,rel:y,type:b="button",allowTextSelectionOnPress:w}=e;r="button"===o?{type:b,disabled:l}:{role:"button",tabIndex:l?void 0:0,href:"a"===o&&l?void 0:g,target:"a"===o?v:void 0,type:"input"===o?b:void 0,disabled:"input"===o?l:void 0,"aria-disabled":l&&"input"!==o?l:void 0,rel:"a"===o?y:void 0};let{pressProps:x,isPressed:P}=(0,s.r)({onPressStart:c,onPressEnd:d,onPressChange:f,onPress:u,isDisabled:l,preventFocusOnPress:p,allowTextSelectionOnPress:w,ref:t}),{focusableProps:k}=(0,a.k)(e,t);h&&(k.tabIndex=l?-1:k.tabIndex);let E=(0,n.d)(k,x,(0,i.z)(e,{labelable:!0}));return{isPressed:P,buttonProps:(0,n.d)(r,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{null==m||m(e)}})}}},84194:function(e,t,r){r.d(t,{G:function(){return i}});var n=r(50959),i=(null==globalThis?void 0:globalThis.document)?n.useLayoutEffect:n.useEffect},81499:function(e,t,r){r.d(t,{JQ:function(){return f}});var n=r(21520),i=r(44915);let a=(e,t,r)=>e&t^~e&r,s=(e,t,r)=>e&t^e&r^t&r;class o extends i.kb{constructor(e,t,r,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=r,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:r,blockLen:a}=this,s=(e=(0,i.O0)(e)).length;for(let n=0;n<s;){let o=Math.min(a-this.pos,s-n);if(o===a){let t=(0,i.GL)(e);for(;a<=s-n;n+=a)this.process(t,n);continue}r.set(e.subarray(n,n+o),this.pos),this.pos+=o,n+=o,this.pos===a&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:r,blockLen:a,isLE:s}=this,{pos:o}=this;t[o++]=128,this.buffer.subarray(o).fill(0),this.padOffset>a-o&&(this.process(r,0),o=0);for(let e=o;e<a;e++)t[e]=0;!function(e,t,r,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,r,n);let i=BigInt(32),a=BigInt(4294967295),s=Number(r>>i&a),o=Number(r&a),l=n?4:0,u=n?0:4;e.setUint32(t+l,s,n),e.setUint32(t+u,o,n)}(r,a-8,BigInt(8*this.length),s),this.process(r,0);let l=(0,i.GL)(e),u=this.outputLen;if(u%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=u/4,d=this.get();if(c>d.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)l.setUint32(4*e,d[e],s)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let r=e.slice(0,t);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:r,length:n,finished:i,destroyed:a,pos:s}=this;return e.length=n,e.pos=s,e.finished=i,e.destroyed=a,n%t&&e.buffer.set(r),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),u=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),c=new Uint32Array(64);class d extends o{constructor(){super(64,32,8,!1),this.A=0|u[0],this.B=0|u[1],this.C=0|u[2],this.D=0|u[3],this.E=0|u[4],this.F=0|u[5],this.G=0|u[6],this.H=0|u[7]}get(){let{A:e,B:t,C:r,D:n,E:i,F:a,G:s,H:o}=this;return[e,t,r,n,i,a,s,o]}set(e,t,r,n,i,a,s,o){this.A=0|e,this.B=0|t,this.C=0|r,this.D=0|n,this.E=0|i,this.F=0|a,this.G=0|s,this.H=0|o}process(e,t){for(let r=0;r<16;r++,t+=4)c[r]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=c[e-15],r=c[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,a=(0,i.np)(r,17)^(0,i.np)(r,19)^r>>>10;c[e]=a+c[e-7]+n+c[e-16]|0}let{A:r,B:n,C:o,D:u,E:d,F:f,G:p,H:h}=this;for(let e=0;e<64;e++){let t=h+((0,i.np)(d,6)^(0,i.np)(d,11)^(0,i.np)(d,25))+a(d,f,p)+l[e]+c[e]|0,m=((0,i.np)(r,2)^(0,i.np)(r,13)^(0,i.np)(r,22))+s(r,n,o)|0;h=p,p=f,f=d,d=u+t|0,u=o,o=n,n=r,r=t+m|0}r=r+this.A|0,n=n+this.B|0,o=o+this.C|0,u=u+this.D|0,d=d+this.E|0,f=f+this.F|0,p=p+this.G|0,h=h+this.H|0,this.set(r,n,o,u,d,f,p,h)}roundClean(){c.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let f=(0,i.hE)(()=>new d)},5592:function(e,t,r){r.d(t,{MT:function(){return u},QL:function(){return x},cW:function(){return v}});var n=r(41554),i=r(99479),a=r(22903),s=r(50959);let o=s.createContext(null),l=null;function u(e){let t,r,{children:n,contain:u,restoreFocus:c,autoFocus:d}=e,f=(0,s.useRef)(null),v=(0,s.useRef)(null),P=(0,s.useRef)([]),{parentNode:T}=(0,s.useContext)(o)||{},S=(0,s.useMemo)(()=>new k({scopeRef:P}),[P]);(0,a.b)(()=>{let e=T||E.root;if(E.getTreeNode(e.scopeRef)&&l&&!y(l,e.scopeRef)){let t=E.getTreeNode(l);t&&(e=t)}e.addChild(S),E.addNode(S)},[S,T]),(0,a.b)(()=>{let e=E.getTreeNode(P);e&&(e.contain=!!u)},[u]),(0,a.b)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.nextSibling,r=[];for(;t&&t!==v.current;)r.push(t),t=t.nextSibling;P.current=r},[n]),(0,a.b)(()=>{if(c||u)return;let e=P.current,t=(0,i.r)(e?e[0]:void 0),r=e=>{let t=e.target;m(t,P.current)?l=P:g(t)||(l=null)};return t.addEventListener("focusin",r,!1),null==e||e.forEach(e=>e.addEventListener("focusin",r,!1)),()=>{t.removeEventListener("focusin",r,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",r,!1))}},[P,c,u]),t=(0,s.useRef)(),r=(0,s.useRef)(),(0,a.b)(()=>{let e=P.current;if(!u){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}let n=(0,i.r)(e?e[0]:void 0),a=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!h(P)||e.isComposing)return;let t=n.activeElement,r=P.current;if(!r||!m(t,r))return;let i=x(p(r),{tabbable:!0},r);if(!t)return;i.currentNode=t;let a=e.shiftKey?i.previousNode():i.nextNode();a||(i.currentNode=e.shiftKey?r[r.length-1].nextElementSibling:r[0].previousElementSibling,a=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),a&&b(a,!0)},s=e=>{(!l||y(l,P))&&m(e.target,P.current)?(l=P,t.current=e.target):h(P)&&!g(e.target,P)?t.current?t.current.focus():l&&l.current&&w(l.current):h(P)&&(t.current=e.target)},o=e=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(n.activeElement&&h(P)&&!g(n.activeElement,P)){if(l=P,n.body.contains(e.target)){var r;t.current=e.target,null===(r=t.current)||void 0===r||r.focus()}else l.current&&w(l.current)}})};return n.addEventListener("keydown",a,!1),n.addEventListener("focusin",s,!1),null==e||e.forEach(e=>e.addEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",o,!1)),()=>{n.removeEventListener("keydown",a,!1),n.removeEventListener("focusin",s,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",s,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",o,!1))}},[P,u]),(0,a.b)(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r]),function(e,t,r){let n=(0,s.useRef)("undefined"!=typeof document?(0,i.r)(e.current?e.current[0]:void 0).activeElement:null);(0,a.b)(()=>{let n=e.current,a=(0,i.r)(n?n[0]:void 0);if(!t||r)return;let s=()=>{(!l||y(l,e))&&m(a.activeElement,e.current)&&(l=e)};return a.addEventListener("focusin",s,!1),null==n||n.forEach(e=>e.addEventListener("focusin",s,!1)),()=>{a.removeEventListener("focusin",s,!1),null==n||n.forEach(e=>e.removeEventListener("focusin",s,!1))}},[e,r]),(0,a.b)(()=>{let n=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let a=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!h(e)||t.isComposing)return;let r=n.activeElement;if(!m(r,e.current))return;let i=E.getTreeNode(e);if(!i)return;let a=i.nodeToRestore,s=x(n.body,{tabbable:!0});s.currentNode=r;let o=t.shiftKey?s.previousNode():s.nextNode();if(a&&n.body.contains(a)&&a!==n.body||(a=void 0,i.nodeToRestore=void 0),(!o||!m(o,e.current))&&a){s.currentNode=a;do o=t.shiftKey?s.previousNode():s.nextNode();while(m(o,e.current));(t.preventDefault(),t.stopPropagation(),o)?b(o,!0):g(a)?b(a,!0):r.blur()}};return r||n.addEventListener("keydown",a,!0),()=>{r||n.removeEventListener("keydown",a,!0)}},[e,t,r]),(0,a.b)(()=>{var r;let a=(0,i.r)(e.current?e.current[0]:void 0);if(!t)return;let s=E.getTreeNode(e);if(s)return s.nodeToRestore=null!==(r=n.current)&&void 0!==r?r:void 0,()=>{let r=E.getTreeNode(e);if(!r)return;let n=r.nodeToRestore;if(t&&n&&(m(a.activeElement,e.current)||a.activeElement===a.body&&function(e){let t=E.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=E.clone();requestAnimationFrame(()=>{if(a.activeElement===a.body){let r=t.getTreeNode(e);for(;r;){if(r.nodeToRestore&&r.nodeToRestore.isConnected){b(r.nodeToRestore);return}r=r.parent}for(r=t.getTreeNode(e);r;){if(r.scopeRef&&r.scopeRef.current&&E.getTreeNode(r.scopeRef)){w(r.scopeRef.current,!0);return}r=r.parent}}})}}},[e,t])}(P,c,u),function(e,t){let r=s.useRef(t);(0,s.useEffect)(()=>{r.current&&(l=e,!m((0,i.r)(e.current?e.current[0]:void 0).activeElement,l.current)&&e.current&&w(e.current)),r.current=!1},[e])}(P,d),(0,s.useEffect)(()=>{let e=(0,i.r)(P.current?P.current[0]:void 0).activeElement,t=null;if(m(e,P.current)){for(let r of E.traverse())r.scopeRef&&m(e,r.scopeRef.current)&&(t=r);t===E.getTreeNode(P)&&(l=t.scopeRef)}},[P]),(0,a.b)(()=>()=>{var e,t,r;let n=null!==(r=null===(t=E.getTreeNode(P))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==r?r:null;(P===l||y(P,l))&&(!n||E.getTreeNode(n))&&(l=n),E.removeTreeNode(P)},[P]);let C=(0,s.useMemo)(()=>({focusNext(e={}){let t=P.current,{from:r,tabbable:n,wrap:a,accept:s}=e,o=r||(0,i.r)(t[0]).activeElement,l=t[0].previousElementSibling,u=x(p(t),{tabbable:n,accept:s},t);u.currentNode=m(o,t)?o:l;let c=u.nextNode();return!c&&a&&(u.currentNode=l,c=u.nextNode()),c&&b(c,!0),c},focusPrevious(e={}){let t=P.current,{from:r,tabbable:n,wrap:a,accept:s}=e,o=r||(0,i.r)(t[0]).activeElement,l=t[t.length-1].nextElementSibling,u=x(p(t),{tabbable:n,accept:s},t);u.currentNode=m(o,t)?o:l;let c=u.previousNode();return!c&&a&&(u.currentNode=l,c=u.previousNode()),c&&b(c,!0),c},focusFirst(e={}){let t=P.current,{tabbable:r,accept:n}=e,i=x(p(t),{tabbable:r,accept:n},t);i.currentNode=t[0].previousElementSibling;let a=i.nextNode();return a&&b(a,!0),a},focusLast(e={}){let t=P.current,{tabbable:r,accept:n}=e,i=x(p(t),{tabbable:r,accept:n},t);i.currentNode=t[t.length-1].nextElementSibling;let a=i.previousNode();return a&&b(a,!0),a}}),[]),M=(0,s.useMemo)(()=>({focusManager:C,parentNode:S}),[S,C]);return s.createElement(o.Provider,{value:M},s.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:f}),n,s.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:v}))}let c=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],d=c.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";c.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let f=c.join(':not([hidden]):not([tabindex="-1"]),');function p(e){return e[0].parentElement}function h(e){let t=E.getTreeNode(l);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function m(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function g(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of E.traverse(E.getTreeNode(t)))if(r&&m(e,r.current))return!0;return!1}function v(e){return g(e,l)}function y(e,t){var r;let n=null===(r=E.getTreeNode(t))||void 0===r?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function b(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{(0,n.e)(e)}catch(e){}}function w(e,t=!0){let r=e[0].previousElementSibling,n=p(e),i=x(n,{tabbable:t},e);i.currentNode=r;let a=i.nextNode();t&&!a&&((i=x(n=p(e),{tabbable:!1},e)).currentNode=r,a=i.nextNode()),b(a)}function x(e,t,r){let n=(null==t?void 0:t.tabbable)?f:d,a=(0,i.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var a;return(null==t?void 0:null===(a=t.from)||void 0===a?void 0:a.contains(e))?NodeFilter.FILTER_REJECT:e.matches(n)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,i.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,a="none"!==r&&"hidden"!==n&&"collapse"!==n;if(a){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);a="none"!==r&&"hidden"!==n&&"collapse"!==n}return a}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(e)&&(!r||m(e,r))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(a.currentNode=t.from),a}class P{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let i=new k({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&m(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new P;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new k({scopeRef:null}),this.fastMap.set(null,this.root)}}class k{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}let E=new P},41554:function(e,t,r){r.d(t,{e:function(){return o}});var n=r(99479),i=r(56495),a=r(5125),s=r(660);function o(e){let t=(0,n.r)(e);if("virtual"===(0,s.Jz)()){let r=t.activeElement;(0,i.Q)(()=>{t.activeElement===r&&e.isConnected&&(0,a.A)(e)})}else(0,a.A)(e)}},90074:function(e,t,r){r.d(t,{F:function(){return o}});var n=r(660),i=r(19147),a=r(32510),s=r(50959);function o(e={}){let{autoFocus:t=!1,isTextInput:r,within:o}=e,l=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,n.E)()}),[u,c]=(0,s.useState)(!1),[d,f]=(0,s.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),p=(0,s.useCallback)(()=>f(l.current.isFocused&&l.current.isFocusVisible),[]),h=(0,s.useCallback)(e=>{l.current.isFocused=e,c(e),p()},[p]);(0,n.mG)(e=>{l.current.isFocusVisible=e,p()},[],{isTextInput:r});let{focusProps:m}=(0,i.K)({isDisabled:o,onFocusChange:h}),{focusWithinProps:g}=(0,a.L)({isDisabled:!o,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:o?g:m}}},54980:function(e,t,r){r.d(t,{k:function(){return c}});var n=r(41554),i=r(71954),a=r(93738),s=r(50959),o=r(19147);function l(e){if(!e)return;let t=!0;return r=>{e({...r,preventDefault(){r.preventDefault()},isDefaultPrevented:()=>r.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&r.stopPropagation()}}let u=s.createContext(null);function c(e,t){let{focusProps:r}=(0,o.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:l(e.onKeyDown),onKeyUp:l(e.onKeyUp)}},d=(0,a.d)(r,c),f=function(e){let t=(0,s.useContext)(u)||{};(0,i.l)(t,e);let{ref:r,...n}=t;return n}(t),p=e.isDisabled?{}:f,h=(0,s.useRef)(e.autoFocus);return(0,s.useEffect)(()=>{h.current&&t.current&&(0,n.e)(t.current),h.current=!1},[t]),{focusableProps:(0,a.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},65092:function(e,t,r){r.d(t,{e:function(){return o}});var n=r(39562),i=r(90057),a=r(71340),s=r(71450);function o(e){let t=(0,n.r)(e);if("virtual"===(0,s.Jz)()){let r=t.activeElement;(0,i.Q)(()=>{t.activeElement===r&&e.isConnected&&(0,a.A)(e)})}else(0,a.A)(e)}},18660:function(e,t,r){r.d(t,{j:function(){return p}});let n=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),i=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);var a=r(50959),s=r(16309);let o=Symbol.for("react-aria.i18n.locale");function l(){let e="undefined"!=typeof window&&window[o]||"undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:!function(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),r="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(r)return"rtl"===r.direction;if(t.script)return n.has(t.script)}let t=e.split("-")[0];return i.has(t)}(e)?"ltr":"rtl"}}let u=l(),c=new Set;function d(){for(let e of(u=l(),c))e(u)}let f=a.createContext(null);function p(){let e=function(){let e=(0,s.Av)(),[t,r]=(0,a.useState)(u);return((0,a.useEffect)(()=>(0===c.size&&window.addEventListener("languagechange",d),c.add(r),()=>{c.delete(r),0===c.size&&window.removeEventListener("languagechange",d)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}();return(0,a.useContext)(f)||e}},34411:function(e,t,r){r.d(t,{O:function(){return n}});let n=r(50959).createContext({register:()=>{}});n.displayName="PressResponderContext"},19147:function(e,t,r){r.d(t,{K:function(){return s}});var n=r(85845),i=r(50959),a=r(99479);function s(e){let{isDisabled:t,onFocus:r,onBlur:s,onFocusChange:o}=e,l=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return s&&s(e),o&&o(!1),!0},[s,o]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{let t=(0,a.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),o&&o(!0),u(e))},[o,r,u]);return{focusProps:{onFocus:!t&&(r||o||s)?c:void 0,onBlur:!t&&(s||o)?l:void 0}}}},660:function(e,t,r){r.d(t,{E:function(){return x},Jz:function(){return P},mG:function(){return E}});var n=r(78230),i=r(71256),a=r(99479),s=r(50959);let o=null,l=new Set,u=new Map,c=!1,d=!1,f={Tab:!0,Escape:!0};function p(e,t){for(let r of l)r(e,t)}function h(e){c=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",p("keyboard",e))}function m(e){o="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(c=!0,p("pointer",e))}function g(e){(0,i.Z)(e)&&(c=!0,o="virtual")}function v(e){e.target!==window&&e.target!==document&&(c||d||(o="virtual",p("virtual",e)),c=!1,d=!1)}function y(){c=!1,d=!0}function b(e){if("undefined"==typeof window||u.get((0,a.k)(e)))return;let t=(0,a.k)(e),r=(0,a.r)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,n.apply(this,arguments)},r.addEventListener("keydown",h,!0),r.addEventListener("keyup",h,!0),r.addEventListener("click",g,!0),t.addEventListener("focus",v,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",m,!0),r.addEventListener("pointermove",m,!0),r.addEventListener("pointerup",m,!0)):(r.addEventListener("mousedown",m,!0),r.addEventListener("mousemove",m,!0),r.addEventListener("mouseup",m,!0)),t.addEventListener("beforeunload",()=>{w(e)},{once:!0}),u.set(t,{focus:n})}let w=(e,t)=>{let r=(0,a.k)(e),n=(0,a.r)(e);t&&n.removeEventListener("DOMContentLoaded",t),u.has(r)&&(r.HTMLElement.prototype.focus=u.get(r).focus,n.removeEventListener("keydown",h,!0),n.removeEventListener("keyup",h,!0),n.removeEventListener("click",g,!0),r.removeEventListener("focus",v,!0),r.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",m,!0),n.removeEventListener("pointermove",m,!0),n.removeEventListener("pointerup",m,!0)):(n.removeEventListener("mousedown",m,!0),n.removeEventListener("mousemove",m,!0),n.removeEventListener("mouseup",m,!0)),u.delete(r))};function x(){return"pointer"!==o}function P(){return o}"undefined"!=typeof document&&function(e){let t;let r=(0,a.r)(e);"loading"!==r.readyState?b(e):(t=()=>{b(e)},r.addEventListener("DOMContentLoaded",t)),()=>w(e,t)}();let k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function E(e,t,r){b(),(0,s.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){var n;let i="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof i&&!k.has(null==r?void 0:null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof s||(null==r?void 0:r.target)instanceof o&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof l&&!f[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(x())};return l.add(t),()=>{l.delete(t)}},t)}},32510:function(e,t,r){r.d(t,{L:function(){return a}});var n=r(85845),i=r(50959);function a(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:a,onFocusWithinChange:s}=e,o=(0,i.useRef)({isFocusWithin:!1}),l=(0,i.useCallback)(e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),s&&s(!1))},[r,s,o]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{o.current.isFocusWithin||document.activeElement!==e.target||(a&&a(e),s&&s(!0),o.current.isFocusWithin=!0,u(e))},[a,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}},53783:function(e,t,r){r.d(t,{X:function(){return u}});var n=r(50959);let i=!1,a=0;function s(){i=!0,setTimeout(()=>{i=!1},50)}function o(e){"touch"===e.pointerType&&s()}function l(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",o):document.addEventListener("touchend",s),a++,()=>{--a>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",o):document.removeEventListener("touchend",s))}}function u(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:a,isDisabled:s}=e,[o,u]=(0,n.useState)(!1),c=(0,n.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,n.useEffect)(l,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,n.useMemo)(()=>{let e=(e,n)=>{if(c.pointerType=n,s||"touch"===n||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let i=e.currentTarget;c.target=i,t&&t({type:"hoverstart",target:i,pointerType:n}),r&&r(!0),u(!0)},n=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let n=e.currentTarget;a&&a({type:"hoverend",target:n,pointerType:t}),r&&r(!1),u(!1)},o={};return"undefined"!=typeof PointerEvent?(o.onPointerEnter=t=>{i&&"mouse"===t.pointerType||e(t,t.pointerType)},o.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(o.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},o.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||i||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},o.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:o,triggerHoverEnd:n}},[t,r,a,s,c]);return(0,n.useEffect)(()=>{s&&f({currentTarget:c.target},c.pointerType)},[s]),{hoverProps:d,isHovered:o}}},59449:function(e,t,r){r.d(t,{r:function(){return S}});var n=r(78230),i=r(99479),a=r(56495);let s="default",o="",l=new WeakMap;function u(e){if((0,n.gn)()){if("default"===s){let t=(0,i.r)(e);o=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}s="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(l.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,n.gn)())"disabled"===s&&(s="restoring",setTimeout(()=>{(0,a.Q)(()=>{if("restoring"===s){let t=(0,i.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=o||""),o="",s="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),l.delete(e)}}var d=r(34411),f=r(72054),p=r(78317),h=r(75704),m=r(93738),g=r(71954),v=r(50959),y=r(93136),b=r(72196),w=r(90913),x=r(71256),P=r(5125),k=new WeakMap;class E{continuePropagation(){(0,h._)(this,k,!1)}get shouldStopPropagation(){return(0,f._)(this,k)}constructor(e,t,r){(0,p._)(this,k,{writable:!0,value:void 0}),(0,h._)(this,k,!0),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}let T=Symbol("linkClicked");function S(e){let t,r,a,s,{onPress:o,onPressChange:l,onPressStart:f,onPressEnd:p,onPressUp:h,isDisabled:k,isPressed:S,preventFocusOnPress:N,shouldCancelOnPointerExit:O,allowTextSelectionOnPress:R,ref:F,...j}=function(e){let t=(0,v.useContext)(d.O);if(t){let{register:r,...n}=t;e=(0,m.d)(n,e),r()}return(0,g.l)(t,e.ref),e}(e),[K,V]=(0,v.useState)(!1),B=(0,v.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:z}=(t=(0,v.useRef)(new Map),r=(0,v.useCallback)((e,r,n,i)=>{let a=(null==i?void 0:i.once)?(...e)=>{t.current.delete(n),n(...e)}:n;t.current.set(n,{type:r,eventTarget:e,fn:a,options:i}),e.addEventListener(r,n,i)},[]),a=(0,v.useCallback)((e,r,n,i)=>{var a;let s=(null===(a=t.current.get(n))||void 0===a?void 0:a.fn)||n;e.removeEventListener(r,s,i),t.current.delete(n)},[]),s=(0,v.useCallback)(()=>{t.current.forEach((e,t)=>{a(e.eventTarget,e.type,t,e.options)})},[a]),(0,v.useEffect)(()=>s,[s]),{addGlobalListener:r,removeGlobalListener:a,removeAllGlobalListeners:s}),W=(0,y.i)((e,t)=>{let r=B.current;if(k||r.didFirePressStart)return!1;let n=!0;if(r.isTriggeringEvent=!0,f){let r=new E("pressstart",t,e);f(r),n=r.shouldStopPropagation}return l&&l(!0),r.isTriggeringEvent=!1,r.didFirePressStart=!0,V(!0),n}),U=(0,y.i)((e,t,r=!0)=>{let n=B.current;if(!n.didFirePressStart)return!1;n.ignoreClickAfterPress=!0,n.didFirePressStart=!1,n.isTriggeringEvent=!0;let i=!0;if(p){let r=new E("pressend",t,e);p(r),i=r.shouldStopPropagation}if(l&&l(!1),V(!1),o&&r&&!k){let r=new E("press",t,e);o(r),i&&(i=r.shouldStopPropagation)}return n.isTriggeringEvent=!1,i}),G=(0,y.i)((e,t)=>{let r=B.current;if(k)return!1;if(h){r.isTriggeringEvent=!0;let n=new E("pressup",t,e);return h(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),Z=(0,y.i)(e=>{let t=B.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&U(A(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,z(),R||c(t.target))}),H=(0,y.i)(e=>{O&&Z(e)}),q=(0,v.useMemo)(()=>{let e=B.current,t={onKeyDown(t){if(M(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var a;D(t.target,t.key)&&t.preventDefault();let s=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,s=W(t,"keyboard");let n=t.currentTarget;$((0,i.r)(t.currentTarget),"keyup",(0,b.t)(t=>{M(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&G(A(e.target,t),"keyboard")},r),!0)}s&&t.stopPropagation(),t.metaKey&&(0,n.V5)()&&(null===(a=e.metaKeyEvents)||void 0===a||a.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!w.nG.isOpening){let r=!0;if(k&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,x.Z)(t.nativeEvent))){k||N||(0,P.A)(t.currentTarget);let e=W(t,"virtual"),n=G(t,"virtual"),i=U(t,"virtual");r=e&&n&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,r&&t.stopPropagation()}}},r=t=>{var r,n,i;if(e.isPressed&&e.target&&M(t,e.target)){D(t.target,t.key)&&t.preventDefault();let r=t.target;U(A(e.target,t),"keyboard",e.target.contains(r)),z(),"Enter"!==t.key&&C(e.target)&&e.target.contains(r)&&!t[T]&&(t[T]=!0,(0,w.nG)(e.target,t,!1)),e.isPressed=!1,null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",r))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,x.c)(t.nativeEvent)){e.pointerType="virtual";return}L(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let s=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,k||N||(0,P.A)(t.currentTarget),R||u(e.target),s=W(t,e.pointerType),$((0,i.r)(t.currentTarget),"pointermove",r,!1),$((0,i.r)(t.currentTarget),"pointerup",n,!1),$((0,i.r)(t.currentTarget),"pointercancel",a,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(L(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&I(t,t.currentTarget)&&G(t,e.pointerType||t.pointerType)};let r=t=>{t.pointerId===e.activePointerId&&(e.target&&I(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,W(A(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,U(A(e.target,t),e.pointerType,!1),H(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(I(t,e.target)&&null!=e.pointerType?U(A(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&U(A(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,z(),R||c(e.target))},a=e=>{Z(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&Z(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(L(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,x.Z)(t.nativeEvent)?"virtual":"mouse",k||N||(0,P.A)(t.currentTarget),W(t,e.pointerType)&&t.stopPropagation(),$((0,i.r)(t.currentTarget),"mouseup",r,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=W(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=U(t,e.pointerType,!1),H(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&G(t,e.pointerType||"mouse")};let r=t=>{if(0===t.button){if(e.isPressed=!1,z(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&I(t,e.target)&&null!=e.pointerType?U(A(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&U(A(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",k||N||(0,P.A)(t.currentTarget),R||u(e.target),W(t,e.pointerType)&&t.stopPropagation(),$((0,i.k)(t.currentTarget),"scroll",n,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=_(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=W(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=U(t,e.pointerType,!1),H(t)),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=_(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)&&null!=e.pointerType?(G(t,e.pointerType),n=U(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=U(t,e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!R&&c(e.target),z()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&Z(t))};let n=t=>{e.isPressed&&t.target.contains(e.target)&&Z({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&Z(e)}}return t},[$,k,N,z,R,Z,H,U,W,G]);return(0,v.useEffect)(()=>()=>{var e;R||c(null!==(e=B.current.target)&&void 0!==e?e:void 0)},[R]),{isPressed:S||K,pressProps:(0,m.d)(j,q)}}function C(e){return"A"===e.tagName&&e.hasAttribute("href")}function M(e,t){let{key:r,code:n}=e,a=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,i.k)(t).HTMLInputElement&&!O(t,r)||t instanceof(0,i.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===a||!a&&C(t))&&"Enter"!==r)}function _(e,t){let r=e.changedTouches;for(let e=0;e<r.length;e++){let n=r[e];if(n.identifier===t)return n}return null}function A(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function I(e,t){let r,n,i=t.getBoundingClientRect(),a=(r=0,n=0,void 0!==e.width?r=e.width/2:void 0!==e.radiusX&&(r=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+r,bottom:e.clientY+n,left:e.clientX-r});return!(i.left>a.right)&&!(a.left>i.right)&&!(i.top>a.bottom)&&!(a.top>i.bottom)}function L(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function D(e,t){return e instanceof HTMLInputElement?!O(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!C(e)}let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:N.has(e.type)}},85845:function(e,t,r){r.d(t,{d:function(){return o}});var n=r(50959),i=r(22903),a=r(93136);class s{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function o(e){let t=(0,n.useRef)({isFocused:!1,observer:null});(0,i.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=(0,a.i)(t=>{null==e||e(t)});return(0,n.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(new s("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}},88776:function(e,t,r){r.d(t,{K:function(){return s}});var n=r(19976),i=r(50959),a=r(39562);function s(e){let{isDisabled:t,onFocus:r,onBlur:s,onFocusChange:o}=e,l=(0,i.useCallback)(e=>{if(e.target===e.currentTarget)return s&&s(e),o&&o(!1),!0},[s,o]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{let t=(0,a.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),o&&o(!0),u(e))},[o,r,u]);return{focusProps:{onFocus:!t&&(r||o||s)?c:void 0,onBlur:!t&&(s||o)?l:void 0}}}},71450:function(e,t,r){r.d(t,{E:function(){return x},Jz:function(){return P},_w:function(){return k},mG:function(){return T}});var n=r(77338),i=r(99635),a=r(39562),s=r(50959);let o=null,l=new Set,u=new Map,c=!1,d=!1,f={Tab:!0,Escape:!0};function p(e,t){for(let r of l)r(e,t)}function h(e){c=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(o="keyboard",p("keyboard",e))}function m(e){o="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(c=!0,p("pointer",e))}function g(e){(0,i.Z)(e)&&(c=!0,o="virtual")}function v(e){e.target!==window&&e.target!==document&&(c||d||(o="virtual",p("virtual",e)),c=!1,d=!1)}function y(){c=!1,d=!0}function b(e){if("undefined"==typeof window||u.get((0,a.k)(e)))return;let t=(0,a.k)(e),r=(0,a.r)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){c=!0,n.apply(this,arguments)},r.addEventListener("keydown",h,!0),r.addEventListener("keyup",h,!0),r.addEventListener("click",g,!0),t.addEventListener("focus",v,!0),t.addEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",m,!0),r.addEventListener("pointermove",m,!0),r.addEventListener("pointerup",m,!0)):(r.addEventListener("mousedown",m,!0),r.addEventListener("mousemove",m,!0),r.addEventListener("mouseup",m,!0)),t.addEventListener("beforeunload",()=>{w(e)},{once:!0}),u.set(t,{focus:n})}let w=(e,t)=>{let r=(0,a.k)(e),n=(0,a.r)(e);t&&n.removeEventListener("DOMContentLoaded",t),u.has(r)&&(r.HTMLElement.prototype.focus=u.get(r).focus,n.removeEventListener("keydown",h,!0),n.removeEventListener("keyup",h,!0),n.removeEventListener("click",g,!0),r.removeEventListener("focus",v,!0),r.removeEventListener("blur",y,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",m,!0),n.removeEventListener("pointermove",m,!0),n.removeEventListener("pointerup",m,!0)):(n.removeEventListener("mousedown",m,!0),n.removeEventListener("mousemove",m,!0),n.removeEventListener("mouseup",m,!0)),u.delete(r))};function x(){return"pointer"!==o}function P(){return o}function k(e){o=e,p(e,null)}"undefined"!=typeof document&&function(e){let t;let r=(0,a.r)(e);"loading"!==r.readyState?b(e):(t=()=>{b(e)},r.addEventListener("DOMContentLoaded",t)),()=>w(e,t)}();let E=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function T(e,t,r){b(),(0,s.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){var n;let i="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,o="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?(0,a.k)(null==r?void 0:r.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==r?void 0:r.target)instanceof i&&!E.has(null==r?void 0:null===(n=r.target)||void 0===n?void 0:n.type)||(null==r?void 0:r.target)instanceof s||(null==r?void 0:r.target)instanceof o&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof l&&!f[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(x())};return l.add(t),()=>{l.delete(t)}},t)}},13173:function(e,t,r){r.d(t,{L:function(){return a}});var n=r(19976),i=r(50959);function a(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:a,onFocusWithinChange:s}=e,o=(0,i.useRef)({isFocusWithin:!1}),l=(0,i.useCallback)(e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,r&&r(e),s&&s(!1))},[r,s,o]),u=(0,n.d)(l),c=(0,i.useCallback)(e=>{o.current.isFocusWithin||document.activeElement!==e.target||(a&&a(e),s&&s(!0),o.current.isFocusWithin=!0,u(e))},[a,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}},19976:function(e,t,r){r.d(t,{d:function(){return o}});var n=r(50959),i=r(13006),a=r(90300);class s{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function o(e){let t=(0,n.useRef)({isFocused:!1,observer:null});(0,i.b)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let r=(0,a.i)(t=>{null==e||e(t)});return(0,n.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=e.target;n.addEventListener("focusout",e=>{t.current.isFocused=!1,n.disabled&&r(new s("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===document.activeElement?null:document.activeElement;n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[r])}},5759:function(e,t,r){r.d(t,{N:function(){return i}});var n=r(5733);function i(e){let{id:t,label:r,"aria-labelledby":i,"aria-label":a,labelElementType:s="label"}=e;t=(0,n.Me)(t);let o=(0,n.Me)(),l={};return r?(i=i?`${o} ${i}`:o,l={id:o,htmlFor:"label"===s?t:void 0}):i||a||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps:l,fieldProps:function(e,t){let{id:r,"aria-label":i,"aria-labelledby":a}=e;return r=(0,n.Me)(r),a&&i?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),i||a||!t||(i=t),{id:r,"aria-label":i,"aria-labelledby":a}}({id:t,"aria-label":a,"aria-labelledby":i})}}},24412:function(e,t,r){r.d(t,{aV:function(){return f},Bq:function(){return p}});var n=r(50959);let i=(0,n.createContext)({});var a=r(34411);function s({children:e}){let t=(0,n.useMemo)(()=>({register:()=>{}}),[]);return n.createElement(a.O.Provider,{value:t},e)}var o=r(5592),l=r(10422),u=r(16309),c=r(22903);let d=n.createContext(null);function f(e){var t;let r=(0,u.Av)(),{portalContainer:a=r?null:document.body,isExiting:c}=e,[f,p]=(0,n.useState)(!1),h=(0,n.useMemo)(()=>({contain:f,setContain:p}),[f,p]),{getContainer:m}=null!==(t=(0,n.useContext)(i))&&void 0!==t?t:{};if(!e.portalContainer&&m&&(a=m()),!a)return null;let g=e.children;return e.disableFocusManagement||(g=n.createElement(o.MT,{restoreFocus:!0,contain:f&&!c},g)),g=n.createElement(d.Provider,{value:h},n.createElement(s,null,g)),l.createPortal(g,a)}function p(){let e=(0,n.useContext)(d),t=null==e?void 0:e.setContain;(0,c.b)(()=>{null==t||t(!0)},[t])}},37371:function(e,t,r){r.d(t,{I:function(){return c}});var n=r(5592),i=r(50959),a=r(93136),s=r(99479);function o(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}var l=r(32510);let u=[];function c(e,t){let{onClose:r,shouldCloseOnBlur:c,isOpen:d,isDismissable:f=!1,isKeyboardDismissDisabled:p=!1,shouldCloseOnInteractOutside:h}=e;(0,i.useEffect)(()=>(d&&u.push(t),()=>{let e=u.indexOf(t);e>=0&&u.splice(e,1)}),[d,t]);let m=()=>{u[u.length-1]===t&&r&&r()};!function(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:l}=e,u=(0,i.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),c=(0,a.i)(e=>{r&&o(e,t)&&(l&&l(e),u.current.isPointerDown=!0)}),d=(0,a.i)(e=>{r&&r(e)});(0,i.useEffect)(()=>{let e=u.current;if(n)return;let r=t.current,i=(0,s.r)(r);if("undefined"!=typeof PointerEvent){let r=r=>{e.isPointerDown&&o(r,t)&&d(r),e.isPointerDown=!1};return i.addEventListener("pointerdown",c,!0),i.addEventListener("pointerup",r,!0),()=>{i.removeEventListener("pointerdown",c,!0),i.removeEventListener("pointerup",r,!0)}}{let r=r=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&o(r,t)&&d(r),e.isPointerDown=!1},n=r=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&o(r,t)&&d(r),e.isPointerDown=!1};return i.addEventListener("mousedown",c,!0),i.addEventListener("mouseup",r,!0),i.addEventListener("touchstart",c,!0),i.addEventListener("touchend",n,!0),()=>{i.removeEventListener("mousedown",c,!0),i.removeEventListener("mouseup",r,!0),i.removeEventListener("touchstart",c,!0),i.removeEventListener("touchend",n,!0)}}},[t,n,c,d])}({ref:t,onInteractOutside:f&&d?e=>{(!h||h(e.target))&&(u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault()),m())}:null,onInteractOutsideStart:e=>{(!h||h(e.target))&&u[u.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:g}=(0,l.L)({isDisabled:!c,onBlurWithin:e=>{!(!e.relatedTarget||(0,n.cW)(e.relatedTarget))&&(!h||h(e.relatedTarget))&&r()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||p||e.nativeEvent.isComposing||(e.stopPropagation(),e.preventDefault(),m())},...g},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}},39536:function(e,t,r){r.d(t,{g:function(){return T}});var n=r(84171),i=r(50959),a=r(10422),s=r(39562);let o=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],l=o.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";o.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let u=o.join(':not([hidden]):not([tabindex="-1"]),');function c(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}class d{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,r){let n=this.fastMap.get(null!=t?t:null);if(!n)return;let i=new f({scopeRef:e});n.addChild(i),i.parent=n,this.fastMap.set(e,i),r&&(i.nodeToRestore=r)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let r=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&c(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let n=t.children;r&&(r.removeChild(t),n.size>0&&n.forEach(e=>r&&r.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let r=new d;for(let n of this.traverse())r.addTreeNode(n.scopeRef,null!==(t=null===(e=n.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,n.nodeToRestore);return r}constructor(){this.fastMap=new Map,this.root=new f({scopeRef:null}),this.fastMap.set(null,this.root)}}class f{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}}new d;var p=r(65092),h=r(32221),m=r(71340),g=r(90300);function v(e,t,r,n){let a=(0,g.i)(r),s=null==r;(0,i.useEffect)(()=>{if(s||!e.current)return;let r=e.current;return r.addEventListener(t,a,n),()=>{r.removeEventListener(t,a,n)}},[e,t,n,s,a])}var y=r(53919);function b(e,t){let r=w(e,t,"left"),n=w(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,s=e.scrollLeft,o=e.scrollTop,{borderTopWidth:l,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(l,10),f=c+e.clientWidth,p=d+e.clientHeight;r<=s?s=r-parseInt(u,10):r+i>f&&(s+=r+i-f),n<=d?o=n-parseInt(l,10):n+a>p&&(o+=n+a-p),e.scrollLeft=s,e.scrollTop=o}function w(e,t,r){let n="left"===r?"offsetLeft":"offsetTop",i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function x(e,t){if(document.contains(e)){let s=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(s).overflow)for(let t of function(e,t){let r=[];for(;e&&e!==document.documentElement;)(0,y.a)(e,void 0)&&r.push(e),e=e.parentElement;return r}(e))b(t,e);else{var r,n,i,a;let{left:s,top:o}=e.getBoundingClientRect();null==e||null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"});let{left:l,top:u}=e.getBoundingClientRect();(Math.abs(s-l)>1||Math.abs(o-u)>1)&&(null==t||null===(i=t.containingElement)||void 0===i||null===(n=i.scrollIntoView)||void 0===n||n.call(i,{block:"center",inline:"center"}),null===(a=e.scrollIntoView)||void 0===a||a.call(e,{block:"nearest"}))}}}var P=r(19349),k=r(71450),E=r(18660);function T(e){let t,{selectionManager:r,keyboardDelegate:o,ref:d,autoFocus:f=!1,shouldFocusWrap:g=!1,disallowEmptySelection:y=!1,disallowSelectAll:w=!1,selectOnFocus:T="replace"===r.selectionBehavior,disallowTypeAhead:S=!1,shouldUseVirtualFocus:C,allowsTabNavigation:M=!1,isVirtualized:_,scrollRef:A=d,linkBehavior:I="action"}=e,{direction:L}=(0,E.j)(),D=(0,h.tv)(),N=(0,i.useRef)({top:0,left:0});v(A,"scroll",_?null:()=>{N.current={top:A.current.scrollTop,left:A.current.scrollLeft}});let O=(0,i.useRef)(f);(0,i.useEffect)(()=>{if(O.current){let e=null;"first"===f&&(e=o.getFirstKey()),"last"===f&&(e=o.getLastKey());let t=r.selectedKeys;if(t.size){for(let n of t)if(r.canSelectItem(n)){e=n;break}}r.setFocused(!0),r.setFocusedKey(e),null!=e||C||(0,p.e)(d.current)}},[]);let R=(0,i.useRef)(r.focusedKey);(0,i.useEffect)(()=>{if(r.isFocused&&null!=r.focusedKey&&(r.focusedKey!==R.current||O.current)&&(null==A?void 0:A.current)){let e=(0,k.Jz)(),t=d.current.querySelector(`[data-key="${CSS.escape(r.focusedKey.toString())}"]`);if(!t)return;("keyboard"===e||O.current)&&(b(A.current,t),"virtual"!==e&&x(t,{containingElement:d.current}))}!C&&r.isFocused&&null==r.focusedKey&&null!=R.current&&(0,p.e)(d.current),R.current=r.focusedKey,O.current=!1}),v(d,"react-aria-focus-scope-restore",e=>{e.preventDefault(),r.setFocused(!0)});let F={onKeyDown:e=>{var t,i,f,p,h,v,b,x,P,k,E,S,C,_,N;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!d.current.contains(e.target))return;let O=(t,i)=>{if(null!=t){if(r.isLink(t)&&"selection"===I&&T&&!(0,n.F)(e)){(0,a.flushSync)(()=>{r.setFocusedKey(t,i)});let n=A.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),s=r.getItemProps(t);D.open(n,e,s.href,s.routerOptions);return}r.setFocusedKey(t,i),r.isLink(t)&&"override"===I||(e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&!(0,n.F)(e)&&r.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(o.getKeyBelow){let n=null!=r.focusedKey?null===(t=o.getKeyBelow)||void 0===t?void 0:t.call(o,r.focusedKey):null===(i=o.getFirstKey)||void 0===i?void 0:i.call(o);null==n&&g&&(n=null===(f=o.getFirstKey)||void 0===f?void 0:f.call(o,r.focusedKey)),null!=n&&(e.preventDefault(),O(n))}break;case"ArrowUp":if(o.getKeyAbove){let t=null!=r.focusedKey?null===(p=o.getKeyAbove)||void 0===p?void 0:p.call(o,r.focusedKey):null===(h=o.getLastKey)||void 0===h?void 0:h.call(o);null==t&&g&&(t=null===(v=o.getLastKey)||void 0===v?void 0:v.call(o,r.focusedKey)),null!=t&&(e.preventDefault(),O(t))}break;case"ArrowLeft":if(o.getKeyLeftOf){let t=null===(b=o.getKeyLeftOf)||void 0===b?void 0:b.call(o,r.focusedKey);null==t&&g&&(t="rtl"===L?null===(x=o.getFirstKey)||void 0===x?void 0:x.call(o,r.focusedKey):null===(P=o.getLastKey)||void 0===P?void 0:P.call(o,r.focusedKey)),null!=t&&(e.preventDefault(),O(t,"rtl"===L?"first":"last"))}break;case"ArrowRight":if(o.getKeyRightOf){let t=null===(k=o.getKeyRightOf)||void 0===k?void 0:k.call(o,r.focusedKey);null==t&&g&&(t="rtl"===L?null===(E=o.getLastKey)||void 0===E?void 0:E.call(o,r.focusedKey):null===(S=o.getFirstKey)||void 0===S?void 0:S.call(o,r.focusedKey)),null!=t&&(e.preventDefault(),O(t,"rtl"===L?"last":"first"))}break;case"Home":if(o.getFirstKey){e.preventDefault();let t=o.getFirstKey(r.focusedKey,(0,n.y)(e));r.setFocusedKey(t),(0,n.y)(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&r.replaceSelection(t)}break;case"End":if(o.getLastKey){e.preventDefault();let t=o.getLastKey(r.focusedKey,(0,n.y)(e));r.setFocusedKey(t),(0,n.y)(e)&&e.shiftKey&&"multiple"===r.selectionMode?r.extendSelection(t):T&&r.replaceSelection(t)}break;case"PageDown":if(o.getKeyPageBelow){let t=o.getKeyPageBelow(r.focusedKey);null!=t&&(e.preventDefault(),O(t))}break;case"PageUp":if(o.getKeyPageAbove){let t=o.getKeyPageAbove(r.focusedKey);null!=t&&(e.preventDefault(),O(t))}break;case"a":(0,n.y)(e)&&"multiple"===r.selectionMode&&!0!==w&&(e.preventDefault(),r.selectAll());break;case"Escape":y||0===r.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),r.clearSelection());break;case"Tab":if(!M){if(e.shiftKey)d.current.focus();else{let e,t;let r,n,i=(C=d.current,e=(_={tabbable:!0}).tabbable?u:l,t=(0,s.r)(C).createTreeWalker(C,NodeFilter.SHOW_ELEMENT,{acceptNode(t){var r;return(null==_?void 0:null===(r=_.from)||void 0===r?void 0:r.contains(t))?NodeFilter.FILTER_REJECT:t.matches(e)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,s.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:n}=e.style,i="none"!==r&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);i="none"!==r&&"hidden"!==n&&"collapse"!==n}return i}(t)&&!t.hasAttribute("hidden")&&!t.hasAttribute("data-react-aria-prevent-focus")&&("DETAILS"!==t.nodeName||!r||"SUMMARY"===r.nodeName||t.hasAttribute("open"))&&(!t.parentElement||e(t.parentElement,t))}(t)&&(!N||c(t,N))&&(!(null==_?void 0:_.accept)||_.accept(t))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),(null==_?void 0:_.from)&&(t.currentNode=_.from),t);do(n=i.lastChild())&&(r=n);while(n);r&&!r.contains(document.activeElement)&&(0,m.A)(r)}}}},onFocus:e=>{if(r.isFocused){e.currentTarget.contains(e.target)||r.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(r.setFocused(!0),null==r.focusedKey){var t,n,i;let a=e.relatedTarget;null!=(i=a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?null!==(t=r.lastSelectedKey)&&void 0!==t?t:o.getLastKey():null!==(n=r.firstSelectedKey)&&void 0!==n?n:o.getFirstKey())&&(r.setFocusedKey(i),T&&r.replaceSelection(i))}else _||(A.current.scrollTop=N.current.top,A.current.scrollLeft=N.current.left);if(null!=r.focusedKey){let e=A.current.querySelector(`[data-key="${CSS.escape(r.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,m.A)(e),"keyboard"===(0,k.Jz)()&&x(e,{containingElement:d.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||r.setFocused(!1)},onMouseDown(e){A.current===e.target&&e.preventDefault()}},{typeSelectProps:j}=function(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,a=(0,i.useRef)({search:"",timeout:null}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var i;let s=1!==(i=e.key).length&&/^[A-Z]/i.test(i)?"":i;if(!s||e.ctrlKey||e.metaKey||!e.currentTarget.contains(e.target))return;" "!==s||!(a.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),a.search+=s;let o=t.getKeyForSearch(a.search,r.focusedKey);null==o&&(o=t.getKeyForSearch(a.search)),null!=o&&(r.setFocusedKey(o),n&&n(o)),clearTimeout(a.timeout),a.timeout=setTimeout(()=>{a.search=""},1e3)}:null}}}({keyboardDelegate:o,selectionManager:r});return S||(F=(0,P.d)(j,F)),C||(t=null==r.focusedKey?0:-1),{collectionProps:{...F,tabIndex:t}}}},85228:function(e,t,r){r.d(t,{C:function(){return W}});var n=r(84171),i=r(65092),a=r(32221),s=r(19349),o=r(77338),l=r(39562),u=r(90057);let c="default",d="",f=new WeakMap;function p(e){if((0,o.gn)()){if("default"===c){let t=(0,l.r)(e);d=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}c="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(f.set(e,e.style.userSelect),e.style.userSelect="none")}function h(e){if((0,o.gn)())"disabled"===c&&(c="restoring",setTimeout(()=>{(0,u.Q)(()=>{if("restoring"===c){let t=(0,l.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=d||""),d="",c="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&f.has(e)){let t=f.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),f.delete(e)}}var m=r(50959);let g=m.createContext({register:()=>{}});g.displayName="PressResponderContext";var v=r(72054),y=r(78317),b=r(75704),w=r(97546);function x(){let e=(0,m.useRef)(new Map),t=(0,m.useCallback)((t,r,n,i)=>{let a=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:a,options:i}),t.addEventListener(r,n,i)},[]),r=(0,m.useCallback)((t,r,n,i)=>{var a;let s=(null===(a=e.current.get(n))||void 0===a?void 0:a.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),n=(0,m.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,m.useEffect)(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}var P=r(90300),k=r(51607),E=r(99635),T=r(71340),S=new WeakMap;class C{continuePropagation(){(0,b._)(this,S,!1)}get shouldStopPropagation(){return(0,v._)(this,S)}constructor(e,t,r,n){var i;(0,y._)(this,S,{writable:!0,value:void 0}),(0,b._)(this,S,!0);let a=null!==(i=null==n?void 0:n.target)&&void 0!==i?i:r.currentTarget,s=null==a?void 0:a.getBoundingClientRect(),o,l=0,u,c=null;null!=r.clientX&&null!=r.clientY&&(u=r.clientX,c=r.clientY),s&&(null!=u&&null!=c?(o=u-s.left,l=c-s.top):(o=s.width/2,l=s.height/2)),this.type=e,this.pointerType=t,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey,this.x=o,this.y=l}}let M=Symbol("linkClicked");function _(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:u,isDisabled:c,isPressed:d,preventFocusOnPress:f,shouldCancelOnPointerExit:v,allowTextSelectionOnPress:y,ref:b,...S}=function(e){let t=(0,m.useContext)(g);if(t){let{register:r,...n}=t;e=(0,s.d)(n,e),r()}return(0,w.l)(t,e.ref),e}(e),[_,K]=(0,m.useState)(!1),V=(0,m.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:B,removeAllGlobalListeners:$}=x(),z=(0,P.i)((e,t)=>{let i=V.current;if(c||i.didFirePressStart)return!1;let a=!0;if(i.isTriggeringEvent=!0,n){let r=new C("pressstart",t,e);n(r),a=r.shouldStopPropagation}return r&&r(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,K(!0),a}),W=(0,P.i)((e,n,a=!0)=>{let s=V.current;if(!s.didFirePressStart)return!1;s.ignoreClickAfterPress=!0,s.didFirePressStart=!1,s.isTriggeringEvent=!0;let o=!0;if(i){let t=new C("pressend",n,e);i(t),o=t.shouldStopPropagation}if(r&&r(!1),K(!1),t&&a&&!c){let r=new C("press",n,e);t(r),o&&(o=r.shouldStopPropagation)}return s.isTriggeringEvent=!1,o}),U=(0,P.i)((e,t)=>{let r=V.current;if(c)return!1;if(u){r.isTriggeringEvent=!0;let n=new C("pressup",t,e);return u(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),G=(0,P.i)(e=>{let t=V.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&W(N(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,$(),y||h(t.target))}),Z=(0,P.i)(e=>{v&&G(e)}),H=(0,m.useMemo)(()=>{let e=V.current,t={onKeyDown(t){if(I(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var n;j(t.target,t.key)&&t.preventDefault();let i=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,i=z(t,"keyboard");let n=t.currentTarget;B((0,l.r)(t.currentTarget),"keyup",(0,k.t)(t=>{I(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&U(N(e.target,t),"keyboard")},r),!0)}i&&t.stopPropagation(),t.metaKey&&(0,o.V5)()&&(null===(n=e.metaKeyEvents)||void 0===n||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!a.nG.isOpening){let r=!0;if(c&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,E.Z)(t.nativeEvent))){c||f||(0,T.A)(t.currentTarget);let e=z(t,"virtual"),n=U(t,"virtual"),i=W(t,"virtual");r=e&&n&&i}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,r&&t.stopPropagation()}}},r=t=>{var r,n,i;if(e.isPressed&&e.target&&I(t,e.target)){j(t.target,t.key)&&t.preventDefault();let r=t.target;W(N(e.target,t),"keyboard",e.target.contains(r)),$(),"Enter"!==t.key&&A(e.target)&&e.target.contains(r)&&!t[M]&&(t[M]=!0,(0,a.nG)(e.target,t,!1)),e.isPressed=!1,null===(n=e.metaKeyEvents)||void 0===n||n.delete(t.key)}else if("Meta"===t.key&&(null===(r=e.metaKeyEvents)||void 0===r?void 0:r.size)){let t=e.metaKeyEvents;for(let r of(e.metaKeyEvents=void 0,t.values()))null===(i=e.target)||void 0===i||i.dispatchEvent(new KeyboardEvent("keyup",r))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,E.c)(t.nativeEvent)){e.pointerType="virtual";return}R(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let i=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,c||f||(0,T.A)(t.currentTarget),y||p(e.target),i=z(t,e.pointerType),B((0,l.r)(t.currentTarget),"pointermove",r,!1),B((0,l.r)(t.currentTarget),"pointerup",n,!1),B((0,l.r)(t.currentTarget),"pointercancel",a,!1)),i&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(R(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&O(t,t.currentTarget)&&U(t,e.pointerType||t.pointerType)};let r=t=>{t.pointerId===e.activePointerId&&(e.target&&O(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,z(N(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,W(N(e.target,t),e.pointerType,!1),Z(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(O(t,e.target)&&null!=e.pointerType?W(N(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&W(N(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,$(),y||h(e.target),"ontouchend"in e.target&&"mouse"!==t.pointerType&&B(e.target,"touchend",i,{once:!0}))},i=e=>{F(e.currentTarget)&&e.preventDefault()},a=e=>{G(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(R(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,E.Z)(t.nativeEvent)?"virtual":"mouse",c||f||(0,T.A)(t.currentTarget),z(t,e.pointerType)&&t.stopPropagation(),B((0,l.r)(t.currentTarget),"mouseup",r,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,r=z(t,e.pointerType)),r&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let r=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,r=W(t,e.pointerType,!1),Z(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&U(t,e.pointerType||"mouse")};let r=t=>{if(0===t.button){if(e.isPressed=!1,$(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&O(t,e.target)&&null!=e.pointerType?W(N(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&W(N(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let r=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);r&&(e.activePointerId=r.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",c||f||(0,T.A)(t.currentTarget),y||p(e.target),z(D(e.target,t),e.pointerType)&&t.stopPropagation(),B((0,l.k)(t.currentTarget),"scroll",n,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=L(t.nativeEvent,e.activePointerId),n=!0;r&&O(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=z(D(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=W(D(e.target,t),e.pointerType,!1),Z(D(e.target,t))),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=L(t.nativeEvent,e.activePointerId),n=!0;r&&O(r,t.currentTarget)&&null!=e.pointerType?(U(D(e.target,t),e.pointerType),n=W(D(e.target,t),e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=W(D(e.target,t),e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!y&&h(e.target),$()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&G(D(e.target,t)))};let n=t=>{e.isPressed&&t.target.contains(e.target)&&G({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&G(e)}}return t},[B,c,f,$,y,G,Z,W,z,U]);return(0,m.useEffect)(()=>()=>{var e;y||h(null!==(e=V.current.target)&&void 0!==e?e:void 0)},[y]),{isPressed:d||_,pressProps:(0,s.d)(S,H)}}function A(e){return"A"===e.tagName&&e.hasAttribute("href")}function I(e,t){let{key:r,code:n}=e,i=t.getAttribute("role");return("Enter"===r||" "===r||"Spacebar"===r||"Space"===n)&&!(t instanceof(0,l.k)(t).HTMLInputElement&&!V(t,r)||t instanceof(0,l.k)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===i||!i&&A(t))&&"Enter"!==r)}function L(e,t){let r=e.changedTouches;for(let e=0;e<r.length;e++){let n=r[e];if(n.identifier===t)return n}return null}function D(e,t){let r=0,n=0;return t.targetTouches&&1===t.targetTouches.length&&(r=t.targetTouches[0].clientX,n=t.targetTouches[0].clientY),{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function N(e,t){let r=t.clientX,n=t.clientY;return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey,clientX:r,clientY:n}}function O(e,t){let r,n,i=t.getBoundingClientRect(),a=(r=0,n=0,void 0!==e.width?r=e.width/2:void 0!==e.radiusX&&(r=e.radiusX),void 0!==e.height?n=e.height/2:void 0!==e.radiusY&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+r,bottom:e.clientY+n,left:e.clientX-r});return!(i.left>a.right)&&!(a.left>i.right)&&!(i.top>a.bottom)&&!(a.top>i.bottom)}function R(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function F(e){return!(e instanceof HTMLInputElement)&&(e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!A(e))}function j(e,t){return e instanceof HTMLInputElement?!V(e,t):F(e)}let K=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function V(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:K.has(e.type)}var B=r(13006);let $=0,z=new Map;function W(e){let{selectionManager:t,key:r,ref:o,shouldSelectOnPressUp:l,shouldUseVirtualFocus:u,focus:c,isDisabled:d,onAction:f,allowsDifferentPressOrigin:p,linkBehavior:h="action"}=e,g=(0,a.tv)(),v=e=>{if("keyboard"===e.pointerType&&(0,n.F)(e))t.toggleSelection(r);else{if("none"===t.selectionMode)return;if(t.isLink(r)){if("selection"===h){let n=t.getItemProps(r);g.open(o.current,e,n.href,n.routerOptions),t.setSelectedKeys(t.selectedKeys);return}if("override"===h||"none"===h)return}"single"===t.selectionMode?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):e&&e.shiftKey?t.extendSelection(r):"toggle"===t.selectionBehavior||e&&((0,n.y)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?t.toggleSelection(r):t.replaceSelection(r)}};(0,m.useEffect)(()=>{r===t.focusedKey&&t.isFocused&&!u&&(c?c():document.activeElement!==o.current&&(0,i.e)(o.current))},[o,r,t.focusedKey,t.childFocusStrategy,t.isFocused,u]),d=d||t.isDisabled(r);let y={};u||d?d&&(y.onMouseDown=e=>{e.preventDefault()}):y={tabIndex:r===t.focusedKey?0:-1,onFocus(e){e.target===o.current&&t.setFocusedKey(r)}};let b=t.isLink(r)&&"override"===h,w=t.isLink(r)&&"selection"!==h&&"none"!==h,P=!d&&t.canSelectItem(r)&&!b,k=(f||w)&&!d,E=k&&("replace"===t.selectionBehavior?!P:!P||t.isEmpty),T=k&&P&&"replace"===t.selectionBehavior,S=E||T,C=(0,m.useRef)(null),M=S&&P,A=(0,m.useRef)(!1),I=(0,m.useRef)(!1),L=e=>{if(f&&f(),w){let n=t.getItemProps(r);g.open(o.current,e,n.href,n.routerOptions)}},D={};l?(D.onPressStart=e=>{C.current=e.pointerType,A.current=M,"keyboard"===e.pointerType&&(!S||G())&&v(e)},p?(D.onPressUp=E?null:e=>{"keyboard"!==e.pointerType&&P&&v(e)},D.onPress=E?L:null):D.onPress=e=>{E||T&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||U())&&L(e):"keyboard"!==e.pointerType&&P&&v(e)}):(D.onPressStart=e=>{C.current=e.pointerType,A.current=M,I.current=E,P&&("mouse"===e.pointerType&&!E||"keyboard"===e.pointerType&&(!k||G()))&&v(e)},D.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"keyboard"===e.pointerType&&S&&U()||"mouse"===e.pointerType&&I.current)&&(S?L(e):P&&v(e))}),y["data-key"]=r,D.preventFocusOnPress=u;let{pressProps:N,isPressed:O}=_(D),R=T?e=>{"mouse"===C.current&&(e.stopPropagation(),e.preventDefault(),L(e))}:void 0,{longPressProps:F}=function(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:a=500,accessibilityDescription:o}=e,l=(0,m.useRef)(void 0),{addGlobalListener:u,removeGlobalListener:c}=x(),{pressProps:d}=_({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(r&&r({...e,type:"longpressstart"}),l.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...e,type:"longpress"}),l.current=void 0},a),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};u(e.target,"contextmenu",t,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(e.target,"contextmenu",t)},30)},{once:!0})}},onPressEnd(e){l.current&&clearTimeout(l.current),n&&("mouse"===e.pointerType||"touch"===e.pointerType)&&n({...e,type:"longpressend"})}}),f=function(e){let[t,r]=(0,m.useState)();return(0,B.b)(()=>{if(!e)return;let t=z.get(e);if(t)r(t.element.id);else{let n=`react-aria-description-${$++}`;r(n);let i=document.createElement("div");i.id=n,i.style.display="none",i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},z.set(e,t)}return t.refCount++,()=>{t&&0==--t.refCount&&(t.element.remove(),z.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}(i&&!t?o:void 0);return{longPressProps:(0,s.d)(d,f)}}({isDisabled:!M,onLongPress(e){"touch"===e.pointerType&&(v(e),t.setSelectionBehavior("toggle"))}}),j=t.isLink(r)?e=>{a.nG.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,s.d)(y,P||E?N:{},M?F:{},{onDoubleClick:R,onDragStartCapture:e=>{"touch"===C.current&&A.current&&e.preventDefault()},onClick:j}),isPressed:O,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:d,allowsSelection:P,hasAction:S}}function U(){let e=window.event;return(null==e?void 0:e.key)==="Enter"}function G(){let e=window.event;return(null==e?void 0:e.key)===" "||(null==e?void 0:e.code)==="Space"}},84171:function(e,t,r){r.d(t,{F:function(){return i},y:function(){return a}});var n=r(77338);function i(e){return(0,n.ad)()?e.altKey:e.ctrlKey}function a(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}},72196:function(e,t,r){r.d(t,{t:function(){return n}});function n(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}},99479:function(e,t,r){r.d(t,{k:function(){return i},r:function(){return n}});let n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window},27602:function(e,t,r){r.d(t,{z:function(){return o}});let n=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),a=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function o(e,t={}){let{labelable:r,isLink:o,propNames:l}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&i.has(t)||o&&a.has(t)||(null==l?void 0:l.has(t))||s.test(t))&&(u[t]=e[t]);return u}},71256:function(e,t,r){r.d(t,{Z:function(){return i},c:function(){return a}});var n=r(78230);function i(e){return 0===e.mozInputSource&&!!e.isTrusted||((0,n.Dt)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function a(e){return!(0,n.Dt)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},93738:function(e,t,r){r.d(t,{d:function(){return s}});var n=r(72196),i=r(91796),a=r(4814);function s(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let s=e[r];for(let e in s){let r=t[e],o=s[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=(0,n.t)(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=(0,a.Z)(r,o):"id"===e&&r&&o?t.id=(0,i.ur)(r,o):t[e]=void 0!==o?o:r}}return t}},56495:function(e,t,r){r.d(t,{Q:function(){return s}});let n=new Map,i=new Set;function a(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let a=n.get(r.target);if(a&&(a.delete(r.propertyName),0===a.size&&(r.target.removeEventListener("transitioncancel",t),n.delete(r.target)),0===n.size)){for(let e of i)e();i.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let i=n.get(r.target);i||(i=new Set,n.set(r.target,i),r.target.addEventListener("transitioncancel",t,{once:!0})),i.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function s(e){requestAnimationFrame(()=>{0===n.size?e():i.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a))},93136:function(e,t,r){r.d(t,{i:function(){return a}});var n=r(22903),i=r(50959);function a(e){let t=(0,i.useRef)(null);return(0,n.b)(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}},91796:function(e,t,r){r.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var n=r(22903),i=r(93136),a=r(50959),s=r(16309);let o=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,r]=(0,a.useState)(e),i=(0,a.useRef)(null),u=(0,s.gP)(t),c=(0,a.useCallback)(e=>{i.current=e},[]);return o&&l.set(u,c),(0,n.b)(()=>()=>{l.delete(u)},[u]),(0,a.useEffect)(()=>{let e=i.current;e&&(i.current=null,r(e))}),u}function c(e,t){if(e===t)return e;let r=l.get(e);if(r)return r(t),t;let n=l.get(t);return n?(n(e),e):t}function d(e=[]){let t=u(),[r,s]=function(e){let[t,r]=(0,a.useState)(e),s=(0,a.useRef)(null),o=(0,i.i)(()=>{if(!s.current)return;let e=s.current.next();if(e.done){s.current=null;return}t===e.value?o():r(e.value)});(0,n.b)(()=>{s.current&&o()});let l=(0,i.i)(e=>{s.current=e(t),o()});return[t,l]}(t),o=(0,a.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return(0,n.b)(o,[t,o,...e]),r}},62682:function(e,t,r){r.d(t,{b:function(){return i}});var n=r(91796);function i(e,t){let{id:r,"aria-label":i,"aria-labelledby":a}=e;return r=(0,n.Me)(r),a&&i?a=[...new Set([r,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),i||a||!t||(i=t),{id:r,"aria-label":i,"aria-labelledby":a}}},22903:function(e,t,r){r.d(t,{b:function(){return i}});var n=r(50959);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},71954:function(e,t,r){r.d(t,{l:function(){return i}});var n=r(22903);function i(e,t){(0,n.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},51607:function(e,t,r){r.d(t,{t:function(){return n}});function n(...e){return(...t)=>{for(let r of e)"function"==typeof r&&r(...t)}}},39562:function(e,t,r){r.d(t,{k:function(){return i},r:function(){return n}});let n=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},i=e=>e&&"window"in e&&e.window===e?e:n(e).defaultView||window},71340:function(e,t,r){function n(e){if(function(){if(null==i){i=!1;try{document.createElement("div").focus({get preventScroll(){return i=!0,!0}})}catch(e){}}return i}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}r.d(t,{A:function(){return n}});let i=null},53919:function(e,t,r){r.d(t,{a:function(){return n}});function n(e,t){let r=window.getComputedStyle(e),n=/(auto|scroll)/.test(r.overflow+r.overflowX+r.overflowY);return n&&t&&(n=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),n}},99635:function(e,t,r){r.d(t,{Z:function(){return i},c:function(){return a}});var n=r(77338);function i(e){return 0===e.mozInputSource&&!!e.isTrusted||((0,n.Dt)()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function a(e){return!(0,n.Dt)()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}},19349:function(e,t,r){r.d(t,{d:function(){return s}});var n=r(51607),i=r(5733),a=r(4814);function s(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let s=e[r];for(let e in s){let r=t[e],o=s[e];"function"==typeof r&&"function"==typeof o&&"o"===e[0]&&"n"===e[1]&&e.charCodeAt(2)>=65&&90>=e.charCodeAt(2)?t[e]=(0,n.t)(r,o):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof o?t[e]=(0,a.Z)(r,o):"id"===e&&r&&o?t.id=(0,i.ur)(r,o):t[e]=void 0!==o?o:r}}return t}},32221:function(e,t,r){r.d(t,{nG:function(){return l},tv:function(){return o}});var n=r(71340),i=r(77338),a=r(50959);let s=(0,a.createContext)({isNative:!0,open:function(e,t){!function(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let r=document.createElement("a");r.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(r.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(r.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(r.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(r.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(r.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(r),t(r),e.removeChild(r)}}(e,e=>l(e,t))},useHref:e=>e});function o(){return(0,a.useContext)(s)}function l(e,t,r=!0){var a,s;let{metaKey:o,ctrlKey:u,altKey:c,shiftKey:d}=t;(0,i.vU)()&&(null===(s=window.event)||void 0===s?void 0:null===(a=s.type)||void 0===a?void 0:a.startsWith("key"))&&"_blank"===e.target&&((0,i.V5)()?o=!0:u=!0);let f=(0,i.Pf)()&&(0,i.V5)()&&!(0,i.zc)()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:u,altKey:c,shiftKey:d}):new MouseEvent("click",{metaKey:o,ctrlKey:u,altKey:c,shiftKey:d,bubbles:!0,cancelable:!0});l.isOpening=r,(0,n.A)(e),e.dispatchEvent(f),l.isOpening=!1}l.isOpening=!1},77338:function(e,t,r){function n(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function i(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function a(e){let t=null;return()=>(null==t&&(t=e()),t)}r.d(t,{Dt:function(){return p},Pf:function(){return d},V5:function(){return s},ad:function(){return c},gn:function(){return u},vU:function(){return h},zc:function(){return l}});let s=a(function(){return i(/^Mac/i)}),o=a(function(){return i(/^iPhone/i)}),l=a(function(){return i(/^iPad/i)||s()&&navigator.maxTouchPoints>1}),u=a(function(){return o()||l()}),c=a(function(){return s()||u()}),d=a(function(){return n(/AppleWebKit/i)&&!f()}),f=a(function(){return n(/Chrome/i)}),p=a(function(){return n(/Android/i)}),h=a(function(){return n(/Firefox/i)})},90057:function(e,t,r){r.d(t,{Q:function(){return s}});let n=new Map,i=new Set;function a(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let a=n.get(r.target);if(a&&(a.delete(r.propertyName),0===a.size&&(r.target.removeEventListener("transitioncancel",t),n.delete(r.target)),0===n.size)){for(let e of i)e();i.clear()}};document.body.addEventListener("transitionrun",r=>{if(!e(r)||!r.target)return;let i=n.get(r.target);i||(i=new Set,n.set(r.target,i),r.target.addEventListener("transitioncancel",t,{once:!0})),i.add(r.propertyName)}),document.body.addEventListener("transitionend",t)}function s(e){requestAnimationFrame(()=>{0===n.size?e():i.add(e)})}"undefined"!=typeof document&&("loading"!==document.readyState?a():document.addEventListener("DOMContentLoaded",a))},90300:function(e,t,r){r.d(t,{i:function(){return a}});var n=r(13006),i=r(50959);function a(e){let t=(0,i.useRef)(null);return(0,n.b)(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let r=t.current;return null==r?void 0:r(...e)},[])}},5733:function(e,t,r){r.d(t,{ur:function(){return c},Me:function(){return u},mp:function(){return d}});var n=r(13006),i=r(90300),a=r(50959),s=r(16309);let o=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function u(e){let[t,r]=(0,a.useState)(e),i=(0,a.useRef)(null),u=(0,s.gP)(t),c=(0,a.useCallback)(e=>{i.current=e},[]);return o&&(l.has(u)&&!l.get(u).includes(c)?l.set(u,[...l.get(u),c]):l.set(u,[c])),(0,n.b)(()=>()=>{l.delete(u)},[u]),(0,a.useEffect)(()=>{let e=i.current;e&&(i.current=null,r(e))}),u}function c(e,t){if(e===t)return e;let r=l.get(e);if(r)return r.forEach(e=>e(t)),t;let n=l.get(t);return n?(n.forEach(t=>t(e)),e):t}function d(e=[]){let t=u(),[r,s]=function(e){let[t,r]=(0,a.useState)(e),s=(0,a.useRef)(null),o=(0,i.i)(()=>{if(!s.current)return;let e=s.current.next();if(e.done){s.current=null;return}t===e.value?o():r(e.value)});(0,n.b)(()=>{s.current&&o()});let l=(0,i.i)(e=>{s.current=e(t),o()});return[t,l]}(t),o=(0,a.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return(0,n.b)(o,[t,o,...e]),r}},13006:function(e,t,r){r.d(t,{b:function(){return i}});var n=r(50959);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},97546:function(e,t,r){r.d(t,{l:function(){return i}});var n=r(13006);function i(e,t){(0,n.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},80923:function(e,t,r){r.d(t,{c:function(){return a}});var n=r(50959);function i(e){return null}i.getCollectionNode=function*(e,t){let{childItems:r,title:i,children:a}=e,s=e.title||e.children,o=e.textValue||("string"==typeof s?s:"")||e["aria-label"]||"";o||(null==t?void 0:t.suppressTextValueWarning)||console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:e,rendered:s,textValue:o,"aria-label":e["aria-label"],hasChildNodes:null!=e.hasChildItems?e.hasChildItems:!!(e.childItems||e.title&&n.Children.count(e.children)>0),*childNodes(){if(r)for(let e of r)yield{type:"item",value:e};else if(i){let e=[];n.Children.forEach(a,t=>{e.push({type:"item",element:t})}),yield*e}}}};let a=i},50567:function(e,t,r){function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return function(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}(e,0)}function a(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...s(e,t),t],i=[...s(e,r),r],a=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==a?(t=n[a],r=i[a],t.index-r.index):n.findIndex(e=>e===r)>=0?1:(i.findIndex(e=>e===t),-1)}function s(e,t){let r=[];for(;(null==t?void 0:t.parentKey)!=null;)r.unshift(t=e.getItem(t.parentKey));return r}r.d(t,{_P:function(){return n},eg:function(){return a},l8:function(){return i}})},54214:function(e,t,r){r.d(t,{K:function(){return o}});var n=r(50959);class i{build(e,t){return this.context=t,a(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;if(n.isValidElement(t)&&t.type===n.Fragment)yield*this.iterateCollection({children:t.props.children,items:r});else if("function"==typeof t){if(!r)throw Error("props.children was a function but props.items is missing");for(let r of e.items)yield*this.getFullNode({value:r},{renderer:t})}else{let e=[];n.Children.forEach(t,t=>{e.push(t)});let r=0;for(let t of e)for(let e of this.getFullNode({element:t,index:r},{}))r++,yield e}}getKey(e,t,r,n){if(null!=e.key)return e.key;if("cell"===t.type&&null!=t.key)return`${n}${t.key}`;let i=t.value;if(null!=i){var a;let e=null!==(a=i.key)&&void 0!==a?a:i.id;if(null==e)throw Error("No key found for item");return e}return n?`${n}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,r,i){if(n.isValidElement(e.element)&&e.element.type===n.Fragment){let a=[];n.Children.forEach(e.element.props.children,e=>{a.push(e)});let s=e.index;for(let e of a)yield*this.getFullNode({element:e,index:s++},t,r,i);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let r=this.cache.get(e.value);if(r&&(!r.shouldInvalidate||!r.shouldInvalidate(this.context))){r.index=e.index,r.parentKey=i?i.key:null,yield r;return}o=t.renderer(e.value)}if(n.isValidElement(o)){let n=o.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode){let e="function"==typeof o.type?o.type.name:o.type;throw Error(`Unknown element <${e}> in collection.`)}let a=n.getCollectionNode(o.props,this.context),l=e.index,u=a.next();for(;!u.done&&u.value;){let n=u.value;e.index=l;let c=n.key;c||(c=n.element?null:this.getKey(o,e,t,r));let d=[...this.getFullNode({...n,key:c,index:l,wrapper:function(e,t){return e&&t?r=>e(t(r)):e||t||void 0}(e.wrapper,n.wrapper)},this.getChildState(t,n),r?`${r}${o.key}`:o.key,i)];for(let t of d){if(t.value=n.value||e.value,t.value&&this.cache.set(t.value,t),e.type&&t.type!==e.type)throw Error(`Unsupported type <${s(t.type)}> in <${s(i.type)}>. Only <${s(e.type)}> is supported.`);l++,yield t}u=a.next(d)}return}if(null==e.key)return;let l=this,u={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:e.value,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:e.textValue,"aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes,childNodes:a(function*(){if(!e.hasChildNodes)return;let r=0;for(let n of e.childNodes())for(let e of(null!=n.key&&(n.key=`${u.key}${n.key}`),n.index=r,l.getFullNode(n,l.getChildState(t,n),u.key,u)))r++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function a(e){let t=[],r=null;return{*[Symbol.iterator](){for(let e of t)yield e;for(let n of(r||(r=e()),r))t.push(n),yield n}}}function s(e){return e[0].toUpperCase()+e.slice(1)}function o(e,t,r){let a=(0,n.useMemo)(()=>new i,[]),{children:s,items:o,collection:l}=e;return(0,n.useMemo)(()=>l||t(a.build({children:s,items:o},r)),[a,s,o,l,r,t])}},80928:function(e,t,r){r.d(t,{Y:function(){return n}});class n extends Set{constructor(e,t,r){super(e),e instanceof n?(this.anchorKey=null!=t?t:e.anchorKey,this.currentKey=null!=r?r:e.currentKey):(this.anchorKey=t,this.currentKey=r)}}},63594:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(80928),i=r(50567);class a{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(null==e||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return"all"===this.state.selectedKeys?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){return"none"!==this.state.selectionMode&&(e=this.getKey(e),"all"===this.state.selectedKeys?this.canSelectItem(e):this.state.selectedKeys.has(e))}get isEmpty(){return"all"!==this.state.selectedKeys&&0===this.state.selectedKeys.size}get isSelectAll(){if(this.isEmpty)return!1;if("all"===this.state.selectedKeys)return!0;if(null!=this._isSelectAll)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(e=>t.has(e)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&0>(0,i.eg)(this.collection,r,e))&&(e=r)}return null==e?void 0:e.key}get lastSelectedKey(){let e=null;for(let t of this.state.selectedKeys){let r=this.collection.getItem(t);(!e||r&&(0,i.eg)(this.collection,r,e)>0)&&(e=r)}return null==e?void 0:e.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){let t;if("none"!==this.selectionMode){if("single"===this.selectionMode){this.replaceSelection(e);return}if(e=this.getKey(e),"all"===this.state.selectedKeys)t=new n.Y([e],e,e);else{var r,i;let a=this.state.selectedKeys,s=null!==(r=a.anchorKey)&&void 0!==r?r:e;for(let r of(t=new n.Y(a,s,e),this.getKeyRange(s,null!==(i=a.currentKey)&&void 0!==i?i:e)))t.delete(r);for(let r of this.getKeyRange(e,s))this.canSelectItem(r)&&t.add(r)}this.state.setSelectedKeys(t)}}getKeyRange(e,t){let r=this.collection.getItem(e),n=this.collection.getItem(t);return r&&n?0>=(0,i.eg)(this.collection,r,n)?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var r;if(null===(r=this.layoutDelegate)||void 0===r?void 0:r.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let n=[],i=e;for(;null!=i;){let e=this.collection.getItem(i);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&n.push(i),i===t)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||"cell"===t.type&&this.allowsCellSelection)return e;for(;"item"!==t.type&&null!=t.parentKey;)t=this.collection.getItem(t.parentKey);return t&&"item"===t.type?t.key:null}toggleSelection(e){if("none"===this.selectionMode)return;if("single"===this.selectionMode&&!this.isSelected(e)){this.replaceSelection(e);return}if(null==(e=this.getKey(e)))return;let t=new n.Y("all"===this.state.selectedKeys?this.getSelectAllKeys():this.state.selectedKeys);t.has(e)?t.delete(e):this.canSelectItem(e)&&(t.add(e),t.anchorKey=e,t.currentKey=e),this.disallowEmptySelection&&0===t.size||this.state.setSelectedKeys(t)}replaceSelection(e){if("none"===this.selectionMode||null==(e=this.getKey(e)))return;let t=this.canSelectItem(e)?new n.Y([e],e,e):new n.Y;this.state.setSelectedKeys(t)}setSelectedKeys(e){if("none"===this.selectionMode)return;let t=new n.Y;for(let r of e)if(null!=(r=this.getKey(r))&&(t.add(r),"single"===this.selectionMode))break;this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=r=>{for(;null!=r;){if(this.canSelectItem(r)){let n=this.collection.getItem(r);"item"===n.type&&e.push(r),n.hasChildNodes&&(this.allowsCellSelection||"item"!==n.type)&&t((0,i.l8)((0,i._P)(n,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return t(this.collection.getFirstKey()),e}selectAll(){this.isSelectAll||"multiple"!==this.selectionMode||this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&("all"===this.state.selectedKeys||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new n.Y)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){"none"!==this.selectionMode&&("single"===this.selectionMode?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):"toggle"===this.selectionBehavior||t&&("touch"===t.pointerType||"virtual"===t.pointerType)?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;for(let r of t)if(!e.has(r))return!1;return!0}canSelectItem(e){var t;if("none"===this.state.selectionMode||this.state.disabledKeys.has(e))return!1;let r=this.collection.getItem(e);return!!r&&(null==r||null===(t=r.props)||void 0===t||!t.isDisabled)&&("cell"!==r.type||!!this.allowsCellSelection)}isDisabled(e){var t,r;return"all"===this.state.disabledBehavior&&(this.state.disabledKeys.has(e)||!!(null===(r=this.collection.getItem(e))||void 0===r?void 0:null===(t=r.props)||void 0===t?void 0:t.isDisabled))}isLink(e){var t,r;return!!(null===(r=this.collection.getItem(e))||void 0===r?void 0:null===(t=r.props)||void 0===t?void 0:t.href)}getItemProps(e){var t;return null===(t=this.collection.getItem(e))||void 0===t?void 0:t.props}constructor(e,t,r){var n;this.collection=e,this.state=t,this.allowsCellSelection=null!==(n=null==r?void 0:r.allowsCellSelection)&&void 0!==n&&n,this._isSelectAll=null,this.layoutDelegate=(null==r?void 0:r.layoutDelegate)||null}}},54335:function(e,t,r){r.d(t,{q:function(){return s}});var n=r(80928),i=r(36914),a=r(50959);function s(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:s,selectionBehavior:l="toggle",disabledBehavior:u="all"}=e,c=(0,a.useRef)(!1),[,d]=(0,a.useState)(!1),f=(0,a.useRef)(null),p=(0,a.useRef)(null),[,h]=(0,a.useState)(null),m=(0,a.useMemo)(()=>o(e.selectedKeys),[e.selectedKeys]),g=(0,a.useMemo)(()=>o(e.defaultSelectedKeys,new n.Y),[e.defaultSelectedKeys]),[v,y]=(0,i.z)(m,g,e.onSelectionChange),b=(0,a.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,x]=(0,a.useState)(l);"replace"===l&&"toggle"===w&&"object"==typeof v&&0===v.size&&x("replace");let P=(0,a.useRef)(l);return(0,a.useEffect)(()=>{l!==P.current&&(x(l),P.current=l)},[l]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:w,setSelectionBehavior:x,get isFocused(){return c.current},setFocused(e){c.current=e,d(e)},get focusedKey(){return f.current},get childFocusStrategy(){return p.current},setFocusedKey(e,t="first"){f.current=e,p.current=t,h(e)},selectedKeys:v,setSelectedKeys(e){(s||!function(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}(e,v))&&y(e)},disabledKeys:b,disabledBehavior:u}}function o(e,t){return e?"all"===e?"all":new n.Y(e):t}},36914:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(50959);function i(e,t,r){let[i,a]=(0,n.useState)(e||t),s=(0,n.useRef)(void 0!==e),o=void 0!==e;(0,n.useEffect)(()=>{let e=s.current;e!==o&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),s.current=o},[o]);let l=o?e:i,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(l,e)&&r(e,...t),o||(l=e)};"function"==typeof e?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((r,...i)=>{let a=e(o?l:r,...i);return(n(a,...t),o)?r:a})):(o||a(e),n(e,...t))},[o,l,r]);return[l,u]}},34483:function(e,t,r){r.d(t,{J:function(){return n}});function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}},72054:function(e,t,r){r.d(t,{_:function(){return i}});var n=r(34483);function i(e,t){var r=(0,n.J)(e,t,"get");return r.get?r.get.call(e):r.value}},78317:function(e,t,r){r.d(t,{_:function(){return n}});function n(e,t,r){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,r)}},75704:function(e,t,r){r.d(t,{_:function(){return i}});var n=r(34483);function i(e,t,r){var i=(0,n.J)(e,t,"set");return!function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=r}}(e,i,r),r}},58231:function(e,t,r){r.d(t,{D:function(){return d}});var n=r(50959),i=r(30821),a=r(88506),s=r(33485),o=r(48842),l=class extends s.l{#e;#t=void 0;#r;#n;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(t.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#a()}mutate(e,t){return this.#n=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){let e=this.#r?.state??(0,i.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#a(e){a.V.batch(()=>{if(this.#n&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context;e?.type==="success"?(this.#n.onSuccess?.(e.data,t,r),this.#n.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#n.onError?.(e.error,t,r),this.#n.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#t)})})}},u=r(94537),c=r(41723);function d(e,t){let r=(0,u.NL)(t),[i]=n.useState(()=>new l(r,e));n.useEffect(()=>{i.setOptions(e)},[i,e]);let s=n.useSyncExternalStore(n.useCallback(e=>i.subscribe(a.V.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=n.useCallback((e,t)=>{i.mutate(e,t).catch(c.Z)},[i]);if(s.error&&(0,c.L)(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}},41723:function(e,t,r){function n(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{L:function(){return n},Z:function(){return i}})},46211:function(e,t,r){r.d(t,{O:function(){return f}});var n=r(90954),i=r(66539),a=r(85174),s=r(43179),o=r(52671),l=r(20216),u=r(35318),c=r(64937),d=r(78327);function f(e={}){let t,p,h,m,g,v,y,b;return(0,n.K)(n=>({id:"metaMaskSDK",name:"MetaMask",rdns:"io.metamask",type:f.type,async setup(){let e=await this.getProvider();e?.on&&(v||(v=this.onConnect.bind(this),e.on("connect",v)),m||(m=this.onAccountsChanged.bind(this),e.on("accountsChanged",m)))},async connect({chainId:r,isReconnecting:n}={}){let i=await this.getProvider();y||(y=this.onDisplayUri,i.on("display_uri",y));let a=[];n&&(a=await this.getAccounts().catch(()=>[]));try{let n,l;a?.length||(e.connectAndSign||e.connectWith?(e.connectAndSign?n=await t.connectAndSign({msg:e.connectAndSign}):e.connectWith&&(l=await t.connectWith({method:e.connectWith.method,params:e.connectWith.params})),a=await this.getAccounts()):a=(await t.connect()).map(e=>(0,s.K)(e)));let u=await this.getChainId();if(r&&u!==r){let e=await this.switchChain({chainId:r}).catch(e=>{if(e.code===o.ab.code)throw e;return{id:u}});u=e?.id??u}return y&&(i.removeListener("display_uri",y),y=void 0),n?i.emit("connectAndSign",{accounts:a,chainId:u,signResponse:n}):l&&i.emit("connectWith",{accounts:a,chainId:u,connectWithResponse:l}),v&&(i.removeListener("connect",v),v=void 0),m||(m=this.onAccountsChanged.bind(this),i.on("accountsChanged",m)),g||(g=this.onChainChanged.bind(this),i.on("chainChanged",g)),b||(b=this.onDisconnect.bind(this),i.on("disconnect",b)),{accounts:a,chainId:u}}catch(e){if(e.code===o.ab.code)throw new o.ab(e);if(e.code===o.pT.code)throw new o.pT(e);throw e}},async disconnect(){let e=await this.getProvider();g&&(e.removeListener("chainChanged",g),g=void 0),b&&(e.removeListener("disconnect",b),b=void 0),v||(v=this.onConnect.bind(this),e.on("connect",v)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,s.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){return t=new(await (async()=>{let{default:e}=await Promise.all([r.e(547),r.e(872)]).then(r.t.bind(r,51590,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({_source:"wagmi",forceDeleteProvider:!1,forceInjectProvider:!1,injectProvider:!1,...e,readonlyRPCMap:Object.fromEntries(n.chains.map(e=>{let[t]=(0,i.N)({chain:e,transports:n.transports});return[e.id,t]})),dappMetadata:e.dappMetadata??("undefined"!=typeof window?{url:window.location.origin}:{name:"wagmi",url:"https://wagmi.sh"}),useDeeplink:e.useDeeplink??!0}),await t.init(),t.getProvider()}return p||(h||(h=a()),p=await h),p},async isAuthorized(){try{return!!(await (0,l.J)(()=>(0,u.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider(),i=n.chains.find(e=>e.id===t);if(!i)throw new o.x3(new a.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,c.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&n.emitter.emit("change",{chainId:t})}),new Promise(e=>{let r=i=>{"chainId"in i&&i.chainId===t&&(n.emitter.off("change",r),e())};n.emitter.on("change",r)})]),i}catch(n){if(4902===n.code||n?.data?.originalError?.code===4902)try{let n,a;let{default:s,...l}=i.blockExplorers??{};e?.blockExplorerUrls?n=e.blockExplorerUrls:s&&(n=[s.url,...Object.values(l).map(e=>e.url)]),a=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let u={blockExplorerUrls:n,chainId:(0,c.eC)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:a};if(await r.request({method:"wallet_addEthereumChain",params:[u]}),(0,d.ly)(await r.request({method:"eth_chainId"}))!==t)throw new o.ab(Error("User rejected switch after adding network."));return i}catch(e){throw new o.ab(e)}if(n.code===o.ab.code)throw new o.ab(n);throw new o.x3(n)}},async onAccountsChanged(e){if(0===e.length)t.isExtensionActive()&&this.onDisconnect();else if(n.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else n.emitter.emit("change",{accounts:e.map(e=>(0,s.K)(e))})},onChainChanged(e){let t=Number(e);n.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let r=Number(e.chainId);n.emitter.emit("connect",{accounts:t,chainId:r});let i=await this.getProvider();v&&(i.removeListener("connect",v),v=void 0),m||(m=this.onAccountsChanged.bind(this),i.on("accountsChanged",m)),g||(g=this.onChainChanged.bind(this),i.on("chainChanged",g)),b||(b=this.onDisconnect.bind(this),i.on("disconnect",b))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(n.emitter.emit("disconnect"),g&&(t.removeListener("chainChanged",g),g=void 0),b&&(t.removeListener("disconnect",b),b=void 0),v||(v=this.onConnect.bind(this),t.on("connect",v)))},onDisplayUri(e){n.emitter.emit("message",{type:"display_uri",data:e})}}))}f.type="metaMask"},90214:function(e,t,r){r.d(t,{a:function(){return c}});var n=r(90954),i=r(48054),a=r(66539),s=r(85174),o=r(43179),l=r(52671),u=r(64937);function c(e){let t,d,f,p,h,m,g,v;let y=e.isNewChainsStale??!0;return(0,n.K)(n=>({id:"walletConnect",name:"WalletConnect",type:c.type,async setup(){let e=await this.getProvider().catch(()=>null);e&&(h||(h=this.onConnect.bind(this),e.on("connect",h)),g||(g=this.onSessionDelete.bind(this),e.on("session_delete",g)))},async connect({chainId:e,...t}={}){try{let r=await this.getProvider();if(!r)throw new i.M;m||(m=this.onDisplayUri,r.on("display_uri",m));let a=e;if(!a){let e=await n.storage?.getItem("state")??{};a=n.chains.some(t=>t.id===e.chainId)?e.chainId:n.chains[0]?.id}if(!a)throw Error("No chains found on connector.");let s=await this.isChainsStale();if(r.session&&s&&await r.disconnect(),!r.session||s){let e=n.chains.filter(e=>e.id!==a).map(e=>e.id);await r.connect({optionalChains:[a,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(n.chains.map(e=>e.id))}let l=(await r.enable()).map(e=>(0,o.K)(e)),u=await this.getChainId();return m&&(r.removeListener("display_uri",m),m=void 0),h&&(r.removeListener("connect",h),h=void 0),f||(f=this.onAccountsChanged.bind(this),r.on("accountsChanged",f)),p||(p=this.onChainChanged.bind(this),r.on("chainChanged",p)),v||(v=this.onDisconnect.bind(this),r.on("disconnect",v)),g||(g=this.onSessionDelete.bind(this),r.on("session_delete",g)),{accounts:l,chainId:u}}catch(e){if(/(user rejected|connection request reset)/i.test(e?.message))throw new l.ab(e);throw e}},async disconnect(){let e=await this.getProvider();try{await e?.disconnect()}catch(e){if(!/No matching key/i.test(e.message))throw e}finally{p&&(e?.removeListener("chainChanged",p),p=void 0),v&&(e?.removeListener("disconnect",v),v=void 0),h||(h=this.onConnect.bind(this),e?.on("connect",h)),f&&(e?.removeListener("accountsChanged",f),f=void 0),g&&(e?.removeListener("session_delete",g),g=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map(e=>(0,o.K)(e))},async getProvider({chainId:i}={}){async function s(){let t=n.chains.map(e=>e.id);if(!t.length)return;let{EthereumProvider:i}=await Promise.all([r.e(626),r.e(872),r.e(377),r.e(506)]).then(r.bind(r,47273));return await i.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(n.chains.map(e=>{let[t]=(0,a.N)({chain:e,transports:n.transports});return[e.id,t]})),showQrModal:e.showQrModal??!0})}return t||(d||(d=s()),t=await d,t?.events.setMaxListeners(Number.POSITIVE_INFINITY)),i&&await this.switchChain?.({chainId:i}),t},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;if(await this.isChainsStale()&&t.session)return await t.disconnect().catch(()=>{}),!1;return!0}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let r=await this.getProvider();if(!r)throw new i.M;let a=n.chains.find(e=>e.id===t);if(!a)throw new l.x3(new s.X4);try{await Promise.all([new Promise(e=>{let r=({chainId:i})=>{i===t&&(n.emitter.off("change",r),e())};n.emitter.on("change",r)}),r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]})]);let e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,t]),a}catch(n){if(/(user rejected)/i.test(n.message))throw new l.ab(n);try{let n,i;n=e?.blockExplorerUrls?e.blockExplorerUrls:a.blockExplorers?.default.url?[a.blockExplorers?.default.url]:[],i=e?.rpcUrls?.length?e.rpcUrls:[...a.rpcUrls.default.http];let s={blockExplorerUrls:n,chainId:(0,u.eC)(t),chainName:e?.chainName??a.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??a.nativeCurrency,rpcUrls:i};await r.request({method:"wallet_addEthereumChain",params:[s]});let o=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...o,t]),a}catch(e){throw new l.ab(e)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():n.emitter.emit("change",{accounts:e.map(e=>(0,o.K)(e))})},onChainChanged(e){let t=Number(e);n.emitter.emit("change",{chainId:t})},async onConnect(e){let t=Number(e.chainId),r=await this.getAccounts();n.emitter.emit("connect",{accounts:r,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),n.emitter.emit("disconnect");let t=await this.getProvider();f&&(t.removeListener("accountsChanged",f),f=void 0),p&&(t.removeListener("chainChanged",p),p=void 0),v&&(t.removeListener("disconnect",v),v=void 0),g&&(t.removeListener("session_delete",g),g=void 0),h||(h=this.onConnect.bind(this),t.on("connect",h))},onDisplayUri(e){n.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds:()=>t?t.session?.namespaces.eip155?.accounts?.map(e=>Number.parseInt(e.split(":")[1]||""))??[]:[],async getRequestedChainsIds(){return await n.storage?.getItem(this.requestedChainsStorageKey)??[]},async isChainsStale(){if(!y)return!1;let e=n.chains.map(e=>e.id),t=this.getNamespaceChainsIds();if(t.length&&!t.some(t=>e.includes(t)))return!1;let r=await this.getRequestedChainsIds();return!e.every(e=>r.includes(e))},async setRequestedChainsIds(e){await n.storage?.setItem(this.requestedChainsStorageKey,e)},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}}))}c.type="walletConnect"},99649:function(e,t,r){r.d(t,{D:function(){return n}});function n(e){let t=e.state.current,r=e.state.connections.get(t),n=r?.accounts,i=n?.[0],a=e.chains.find(e=>e.id===r?.chainId),s=e.state.status;switch(s){case"connected":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:s};case"reconnecting":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!!i,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:s};case"connecting":return{address:i,addresses:n,chain:a,chainId:r?.chainId,connector:r?.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:s};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:s}}}},82997:function(e,t,r){r.d(t,{L:function(){return a}});var n=r(70695),i=r(61880);function a(e,t){let{chainId:r,...a}=t,s=e.getClient({chainId:r});return(0,i.s)(s,n.L,"readContract")(a)}},66004:function(e,t,r){r.d(t,{OP:function(){return l},if:function(){return a},kq:function(){return s}});var n=r(48842),i=r(84092);function a(e,t){return(0,i.v)(e,t)?e:(0,n.Q$)(e,t)}function s(e){return JSON.stringify(e,(e,t)=>!function(e){if(!o(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(o(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function l(e){let{_defaulted:t,behavior:r,gcTime:n,initialData:i,initialDataUpdatedAt:a,maxPages:s,meta:o,networkMode:l,queryFn:u,queryHash:c,queryKey:d,queryKeyHashFn:f,retry:p,retryDelay:h,structuralSharing:m,getPreviousPageParam:g,getNextPageParam:v,initialPageParam:y,_optimisticResults:b,enabled:w,notifyOnChangeProps:x,placeholderData:P,refetchInterval:k,refetchIntervalInBackground:E,refetchOnMount:T,refetchOnReconnect:S,refetchOnWindowFocus:C,retryOnMount:M,select:_,staleTime:A,suspense:I,throwOnError:L,config:D,connector:N,query:O,...R}=e;return R}},84092:function(e,t,r){r.d(t,{v:function(){return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){let n,i;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)&&Array.isArray(r)){if((n=t.length)!==r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();let a=Object.keys(t);if((n=a.length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){let n=a[i];if(n&&!e(t[n],r[n]))return!1}return!0}return t!=t&&r!=r}}})},66539:function(e,t,r){r.d(t,{N:function(){return n}});function n(e){let{chain:t}=e,r=t.rpcUrls.default.http[0];if(!e.transports)return[r];let n=e.transports?.[t.id]?.({chain:t});return(n?.value?.transports||[n]).map(({value:e})=>e?.url||r)}},61880:function(e,t,r){r.d(t,{s:function(){return n}});function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}},18767:function(e,t,r){function n(e,t){let r=e.exec(t);return r?.groups}r.d(t,{Zw:function(){return n},cN:function(){return s},eL:function(){return i},lh:function(){return a}});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,a=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,s=/^\(.+?\).*?$/},4814:function(e,t,r){t.Z=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}},60999:function(e,t,r){r.d(t,{t:function(){return n}});let n=new Set(["opacity","clipPath","filter","transform"])},42474:function(e,t,r){r.d(t,{v:function(){return eR}});var n=r(62660),i=r(11729);let a={type:"spring",stiffness:500,damping:25,restSpeed:10},s=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),o={type:"keyframes",duration:.8},l={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},u=(e,{keyframes:t})=>t.length>2?o:i.G.has(e)?e.startsWith("scale")?s(t[1]):a:l;var c=r(46778),d=r(62341);let f={current:!1},p=e=>null!==e;function h(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(p),a=t&&"loop"!==r&&t%2==1?0:i.length-1;return a&&void 0!==n?n:i[a]}var m=r(73943),g=r(25417);let v=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function y(e,t,r,n){if(e===t&&r===n)return g.Z;let i=t=>(function(e,t,r,n,i){let a,s;let o=0;do(a=v(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(a)>1e-7&&++o<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:v(i(e),t,n)}var b=r(3397),w=r(75212);let x=y(.33,1.53,.69,.99),P=(0,w.M)(x),k=(0,b.o)(P),E=e=>(e*=2)<1?.5*P(e):.5*(2-Math.pow(2,-10*(e-1)));var T=r(44317),S=r(44198);function C(e){return"function"==typeof e}var M=r(88955),_=r(96717),A=r(32980),I=r(47587);let L=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(I.P.test(e)||"0"===e)&&!e.startsWith("url("));class D{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:a="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=M.X.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:a,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(0,_.m)(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=M.X.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:a,onComplete:s,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let a=e[e.length-1],s=L(i,t),o=L(a,t);return(0,A.K)(s===o,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!!s&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||C(r))&&n)}(e,r,n,i)){if(f.current||!a){null==o||o(h(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}var N=r(4920);function O(e,t,r){let n=Math.max(t-5,0);return(0,N.R)(r-e(n),t-n)}var R=r(21442);function F(e,t){return e*Math.sqrt(1-t*t)}let j=["duration","bounce"],K=["stiffness","damping","mass"];function V(e,t){return t.some(t=>void 0!==e[t])}function B({keyframes:e,restDelta:t,restSpeed:r,...i}){let a;let s=e[0],o=e[e.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:d,duration:f,velocity:p,isResolvedFromDuration:h}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!V(e,K)&&V(e,j)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:i=1}){let a,s;(0,A.K)(e<=(0,n.w)(10),"Spring duration must be 10 seconds or less");let o=1-t;o=(0,R.u)(.05,1,o),e=(0,R.u)(.01,10,(0,n.X)(e)),o<1?(a=t=>{let n=t*o,i=n*e;return .001-(n-r)/F(t,o)*Math.exp(-i)},s=t=>{let n=t*o*e,i=Math.pow(o,2)*Math.pow(t,2)*e,s=F(Math.pow(t,2),o);return(n*r+r-i)*Math.exp(-n)*(-a(t)+.001>0?-1:1)/s}):(a=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let l=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(a,s,5/e);if(e=(0,n.w)(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*o*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-(0,n.X)(i.velocity||0)}),m=p||0,g=c/(2*Math.sqrt(u*d)),v=o-s,y=(0,n.X)(Math.sqrt(u/d)),b=5>Math.abs(v);if(r||(r=b?.01:2),t||(t=b?.005:.5),g<1){let e=F(y,g);a=t=>o-Math.exp(-g*y*t)*((m+g*y*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===g)a=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);else{let e=y*Math.sqrt(g*g-1);a=t=>{let r=Math.exp(-g*y*t),n=Math.min(e*t,300);return o-r*((m+g*y*v)*Math.sinh(n)+e*v*Math.cosh(n))/e}}return{calculatedDuration:h&&f||null,next:e=>{let i=a(e);if(h)l.done=e>=f;else{let s=0;g<1&&(s=0===e?(0,n.w)(m):O(a,e,i));let u=Math.abs(s)<=r,c=Math.abs(o-i)<=t;l.done=u&&c}return l.value=l.done?o:i,l}}}function $({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==o&&e<o||void 0!==l&&e>l,g=e=>void 0===o?l:void 0===l?o:Math.abs(o-e)<Math.abs(l-e)?o:l,v=r*t,y=p+v,b=void 0===s?y:s(y);b!==y&&(v=b-p);let w=e=>-v*Math.exp(-e/n),x=e=>b+w(e),P=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},k=e=>{m(h.value)&&(d=e,f=B({keyframes:[h.value,g(h.value)],velocity:O(x,e,h.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,P(e),k(e)),void 0!==d&&e>=d)?f.next(e-d):(t||P(e),h)}}}let z=y(.42,0,1,1),W=y(0,0,.58,1),U=y(.42,0,.58,1),G=e=>Array.isArray(e)&&"number"!=typeof e[0],Z=e=>Array.isArray(e)&&"number"==typeof e[0],H={linear:g.Z,easeIn:z,easeInOut:U,easeOut:W,circIn:T.Z7,circInOut:T.X7,circOut:T.Bn,backIn:P,backInOut:k,backOut:x,anticipate:E},q=e=>{if(Z(e)){(0,A.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return y(t,r,n,i)}return"string"==typeof e?((0,A.k)(void 0!==H[e],`Invalid easing type '${e}'`),H[e]):e};var X=r(35748),Y=r(27783),J=r(90388);function Q(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}var ee=r(58839),et=r(21263),er=r(34560);function en(e,t){return r=>r>0?t:e}let ei=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},ea=[ee.$,et.m,er.J],es=e=>ea.find(t=>t.test(e));function eo(e){let t=es(e);if((0,A.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===er.J&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,a=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,o=2*r-n;i=Q(o,n,e+1/3),a=Q(o,n,e),s=Q(o,n,e-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:n}}(r)),r}let el=(e,t)=>{let r=eo(e),n=eo(t);if(!r||!n)return en(e,t);let i={...r};return e=>(i.red=ei(r.red,n.red,e),i.green=ei(r.green,n.green,e),i.blue=ei(r.blue,n.blue,e),i.alpha=(0,J.t)(r.alpha,n.alpha,e),et.m.transform(i))};var eu=r(65797),ec=r(33768);let ed=new Set(["none","hidden"]);function ef(e,t){return r=>(0,J.t)(e,t,r)}function ep(e){return"number"==typeof e?ef:"string"==typeof e?(0,ec.t)(e)?en:eu.$.test(e)?el:eg:Array.isArray(e)?eh:"object"==typeof e?eu.$.test(e)?el:em:en}function eh(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>ep(e)(e,t[r]));return e=>{for(let t=0;t<n;t++)r[t]=i[t](e);return r}}function em(e,t){let r={...e,...t},n={};for(let i in r)void 0!==e[i]&&void 0!==t[i]&&(n[i]=ep(e[i])(e[i],t[i]));return e=>{for(let t in n)r[t]=n[t](e);return r}}let eg=(e,t)=>{let r=I.P.createTransformer(t),n=(0,I.V)(e),i=(0,I.V)(t);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?ed.has(e)&&!i.values.length||ed.has(t)&&!n.values.length?ed.has(e)?r=>r<=0?e:t:r=>r>=1?t:e:(0,X.z)(eh(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let s=t.types[a],o=e.indexes[s][i[s]],l=null!==(r=e.values[o])&&void 0!==r?r:0;n[a]=l,i[s]++}return n}(n,i),i.values),r):((0,A.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),en(e,t))};function ev(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?(0,J.t)(e,t,r):ep(e)(e,t)}function ey({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let i=G(n)?n.map(q):q(n),a={done:!1,value:t[0]},s=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let a=e.length;if((0,A.k)(a===t.length,"Both input and output ranges must be the same length"),1===a)return()=>t[0];if(2===a&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||ev,a=e.length-1;for(let r=0;r<a;r++){let a=i(e[r],e[r+1]);if(t){let e=Array.isArray(t)?t[r]||g.Z:t;a=(0,X.z)(e,a)}n.push(a)}return n}(t,n,i),o=s.length,l=t=>{let r=0;if(o>1)for(;r<e.length-2&&!(t<e[r+1]);r++);let n=(0,Y.Y)(e[r],e[r+1],t);return s[r](n)};return r?t=>l((0,R.u)(e[0],e[a-1],t)):l}((r&&r.length===t.length?r:function(e){let t=[0];return function(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let i=(0,Y.Y)(0,t,n);e.push((0,J.t)(r,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||U).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=s(t),a.done=t>=e,a)}}let eb=e=>{let t=({timestamp:t})=>e(t);return{start:()=>m.Wi.update(t,!0),stop:()=>(0,m.Pn)(t),now:()=>m.frameData.isProcessing?m.frameData.timestamp:M.X.now()}},ew={decay:$,inertia:$,tween:ey,keyframes:ey,spring:B},ex=e=>e/100;class eP extends D{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:n,keyframes:i}=this.options,a=(null==n?void 0:n.KeyframeResolver)||_.e;this.resolver=new a(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s,velocity:o=0}=this.options,l=C(n)?n:ew[n]||ey;l!==ey&&"number"!=typeof e[0]&&(t=(0,X.z)(ex,ev(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+a;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-a}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:a,mapPercentToKeyframes:s,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:m,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let b=this.currentTime,w=i;if(f){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,f+1))%2&&("reverse"===p?(r=1-r,m&&(r-=m/c)):"mirror"===p&&(w=a)),b=(0,R.u)(0,1,r)*c}let x=y?{done:!1,value:o[0]}:w.next(b);s&&(x.value=s(x.value));let{done:P}=x;y||null===l||(P=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&P);return k&&void 0!==n&&(x.value=h(o,this.options,n)),g&&g(x.value),k&&this.finish(),x}get duration(){let{resolved:e}=this;return e?(0,n.X)(e.calculatedDuration):0}get time(){return(0,n.X)(this.currentTime)}set time(e){e=(0,n.w)(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=(0,n.X)(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=eb,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}var ek=r(60999);let eE=(e,t)=>{let r="",n=Math.max(Math.round(t/10),2);for(let t=0;t<n;t++)r+=e((0,Y.Y)(0,n-1,t))+", ";return`linear(${r.substring(0,r.length-2)})`};function eT(e){let t;return()=>(void 0===t&&(t=e()),t)}let eS={linearEasing:void 0},eC=function(e,t){let r=eT(e);return()=>{var e;return null!==(e=eS[t])&&void 0!==e?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),eM=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,e_={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:eM([0,.65,.55,1]),circOut:eM([.55,0,1,.45]),backIn:eM([.31,.01,.66,-.59]),backOut:eM([.33,1.53,.69,.99])};function eA(e,t){e.timeline=t,e.onfinish=null}let eI=eT(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),eL={anticipate:E,backInOut:k,circInOut:T.X7};class eD extends D{constructor(e){super(e);let{name:t,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new S.s(i,(e,t)=>this.onKeyframesResolved(e,t),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:a,ease:s,type:o,motionValue:l,name:u,startTime:c}=this.options;if(!(null===(r=l.owner)||void 0===r?void 0:r.current))return!1;if("string"==typeof s&&eC()&&s in eL&&(s=eL[s]),C((n=this.options).type)||"spring"===n.type||!function e(t){return!!("function"==typeof t&&eC()||!t||"string"==typeof t&&(t in e_||eC())||Z(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,element:l,...u}=this.options,c=function(e,t){let r=new eP({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],a=0;for(;!n.done&&a<2e4;)i.push((n=r.sample(a)).value),a+=10;return{times:void 0,keyframes:i,duration:a-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),i=c.duration,a=c.times,s=c.ease,o="keyframes"}let d=function(e,t,r,{delay:n=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o,times:l}={}){let u={[t]:r};l&&(u.offset=l);let c=function e(t,r){if(t)return"function"==typeof t&&eC()?eE(t,r):Z(t)?eM(t):Array.isArray(t)?t.map(t=>e(t,r)||e_.easeOut):e_[t]}(o,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:i,times:a,ease:s});return d.startTime=null!=c?c:this.calcStartTime(),this.pendingTimeline?(eA(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:r}=this.options;l.set(h(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:a,type:o,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return(0,n.X)(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(0,n.X)(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=(0,n.w)(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return g.Z;let{animation:r}=t;eA(r,e)}else this.pendingTimeline=e;return g.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:a,ease:s,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,element:u,...c}=this.options,d=new eP({...c,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),f=(0,n.w)(this.time);e.setWithVelocity(d.sample(f-10).value,d.sample(f).value,10)}let{onStop:l}=this.options;l&&l(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:n,repeatType:i,damping:a,type:s}=e;return eI()&&r&&ek.t.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==a&&"inertia"!==s}}let eN=eT(()=>void 0!==window.ScrollTimeline);class eO{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>eN()&&r.attachTimeline?r.attachTimeline(e):t(r));return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let eR=(e,t,r,i={},a,s)=>o=>{let l=(0,c.e)(i,e)||{},p=l.delay||i.delay||0,{elapsed:g=0}=i;g-=(0,n.w)(p);let v={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-g,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:a};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(v={...v,...u(e,v)}),v.duration&&(v.duration=(0,n.w)(v.duration)),v.repeatDelay&&(v.repeatDelay=(0,n.w)(v.repeatDelay)),void 0!==v.from&&(v.keyframes[0]=v.from);let y=!1;if(!1!==v.type&&(0!==v.duration||v.repeatDelay)||(v.duration=0,0!==v.delay||(y=!0)),(f.current||d.c.skipAnimations)&&(y=!0,v.duration=0,v.delay=0),y&&!s&&void 0!==t.get()){let e=h(v.keyframes,l);if(void 0!==e)return m.Wi.update(()=>{v.onUpdate(e),v.onComplete()}),new eO([])}return!s&&eD.supports(v)?new eD(v):new eP(v)}},49618:function(e,t,r){r.d(t,{M:function(){return n}});let n="data-"+(0,r(38482).D)("framerAppearId")},50315:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(49618);function i(e){return e.props[n.M]}},46778:function(e,t,r){r.d(t,{e:function(){return n}});function n(e,t){return e?e[t]||e.default||e:void 0}},44874:function(e,t,r){r.d(t,{H:function(){return n}});function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}},57844:function(e,t,r){r.d(t,{C:function(){return n}});let n=e=>Array.isArray(e)},49621:function(e,t,r){r.d(t,{M:function(){return v}});var n=r(11527),i=r(50959),a=r(80436),s=r(28755),o=r(33570);class l extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function u({children:e,isPresent:t}){let r=(0,i.useId)(),a=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:u}=(0,i.useContext)(o._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:o}=s.current;if(t||!a.current||!e||!n)return;a.current.dataset.motionPopId=r;let l=document.createElement("style");return u&&(l.nonce=u),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${n}px !important;
            top: ${i}px !important;
            left: ${o}px !important;
          }
        `),()=>{document.head.removeChild(l)}},[t]),(0,n.jsx)(l,{isPresent:t,childRef:a,sizeRef:s,children:i.cloneElement(e,{ref:a})})}let c=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:c,mode:f})=>{let p=(0,s.h)(d),h=(0,i.useId)(),m=(0,i.useCallback)(e=>{for(let t of(p.set(e,!0),p.values()))if(!t)return;o&&o()},[p,o]),g=(0,i.useMemo)(()=>({id:h,initial:t,isPresent:r,custom:l,onExitComplete:m,register:e=>(p.set(e,!1),()=>p.delete(e))}),c?[Math.random(),m]:[r,m]);return(0,i.useMemo)(()=>{p.forEach((e,t)=>p.set(t,!1))},[r]),i.useEffect(()=>{r||p.size||!o||o()},[r]),"popLayout"===f&&(e=(0,n.jsx)(u,{isPresent:r,children:e})),(0,n.jsx)(a.O.Provider,{value:g,children:e})};function d(){return new Map}var f=r(82004),p=r(32980);let h=e=>e.key||"";function m(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}var g=r(49767);let v=({children:e,exitBeforeEnter:t,custom:r,initial:a=!0,onExitComplete:o,presenceAffectsLayout:l=!0,mode:u="sync"})=>{(0,p.k)(!t,"Replace exitBeforeEnter with mode='wait'");let d=(0,i.useMemo)(()=>m(e),[e]),v=d.map(h),y=(0,i.useRef)(!0),b=(0,i.useRef)(d),w=(0,s.h)(()=>new Map),[x,P]=(0,i.useState)(d),[k,E]=(0,i.useState)(d);(0,g.L)(()=>{y.current=!1,b.current=d;for(let e=0;e<k.length;e++){let t=h(k[e]);v.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[k,v.length,v.join("-")]);let T=[];if(d!==x){let e=[...d];for(let t=0;t<k.length;t++){let r=k[t],n=h(r);v.includes(n)||(e.splice(t,0,r),T.push(r))}"wait"===u&&T.length&&(e=T),E(m(e)),P(d);return}let{forceRender:S}=(0,i.useContext)(f.p);return(0,n.jsx)(n.Fragment,{children:k.map(e=>{let t=h(e),i=d===k||v.includes(t);return(0,n.jsx)(c,{isPresent:i,initial:(!y.current||!!a)&&void 0,custom:i?void 0:r,presenceAffectsLayout:l,mode:u,onExitComplete:i?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==S||S(),E(b.current),o&&o())},children:e},t)})})}},66469:function(e,t,r){r.d(t,{X:function(){return o}});var n=r(11527),i=r(50959),a=r(97391),s=r(55590);function o({children:e,features:t,strict:r=!1}){let[,o]=(0,i.useState)(!l(t)),u=(0,i.useRef)(void 0);if(!l(t)){let{renderer:e,...r}=t;u.current=e,(0,s.K)(r)}return(0,i.useEffect)(()=>{l(t)&&t().then(({renderer:e,...t})=>{(0,s.K)(t),u.current=e,o(!0)})},[]),(0,n.jsx)(a.u.Provider,{value:{renderer:u.current,strict:r},children:e})}function l(e){return"function"==typeof e}},82004:function(e,t,r){r.d(t,{p:function(){return n}});let n=(0,r(50959).createContext)({})},97391:function(e,t,r){r.d(t,{u:function(){return n}});let n=(0,r(50959).createContext)({strict:!1})},33570:function(e,t,r){r.d(t,{_:function(){return n}});let n=(0,r(50959).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},80436:function(e,t,r){r.d(t,{O:function(){return n}});let n=(0,r(50959).createContext)(null)},95962:function(e,t,r){r.d(t,{g:function(){return n}});let n=(0,r(50959).createContext)({})},44317:function(e,t,r){r.d(t,{Bn:function(){return s},X7:function(){return o},Z7:function(){return a}});var n=r(3397),i=r(75212);let a=e=>1-Math.sin(Math.acos(e)),s=(0,i.M)(a),o=(0,n.o)(a)},3397:function(e,t,r){r.d(t,{o:function(){return n}});let n=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2},75212:function(e,t,r){r.d(t,{M:function(){return n}});let n=e=>t=>1-e(1-t)},53412:function(e,t,r){r.d(t,{E:function(){return n}});function n(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}},23842:function(e,t,r){r.d(t,{a:function(){return a}});var n=r(53412),i=r(18354);function a(e,t,r,a){return(0,n.E)(e,t,(0,i.s)(r),a)}},18354:function(e,t,r){r.d(t,{Q:function(){return i},s:function(){return a}});var n=r(46663);function i(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let a=e=>t=>(0,n.D)(t)&&e(t,i(t))},46663:function(e,t,r){r.d(t,{D:function(){return n}});let n=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary},55193:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(62341);let i=["read","resolveKeyframes","update","preRender","render","postRender"];function a(e,t){let r=!1,a=!0,s={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,l=i.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,i=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function o(t){a.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let o=s&&n?t:r;return i&&a.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,n){i=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(o),n=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:p,postRender:h}=l,m=()=>{let i=n.c.useManualTiming?s.timestamp:performance.now();r=!1,s.delta=a?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,u.process(s),c.process(s),d.process(s),f.process(s),p.process(s),h.process(s),s.isProcessing=!1,r&&t&&(a=!1,e(m))},g=()=>{r=!0,a=!0,s.isProcessing||e(m)};return{schedule:i.reduce((e,t)=>{let n=l[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<i.length;t++)l[i[t]].cancel(e)},state:s,steps:l}}},73943:function(e,t,r){r.d(t,{Pn:function(){return a},Wi:function(){return i},frameData:function(){return s},yL:function(){return o}});var n=r(25417);let{schedule:i,cancel:a,state:s,steps:o}=(0,r(55193).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:n.Z,!0)},56201:function(e,t,r){r.d(t,{g:function(){return n}});let{schedule:n,cancel:i}=(0,r(55193).Z)(queueMicrotask,!1)},88955:function(e,t,r){let n;r.d(t,{X:function(){return o}});var i=r(62341),a=r(73943);function s(){n=void 0}let o={now:()=>(void 0===n&&o.set(a.frameData.isProcessing||i.c.useManualTiming?a.frameData.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(s)}}},16861:function(e,t,r){function n(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}r.d(t,{fJ:function(){return s},gD:function(){return o}});let i=n("dragHorizontal"),a=n("dragVertical");function s(e){let t=!1;if("y"===e)t=a();else if("x"===e)t=i();else{let e=i(),r=a();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}function o(){let e=s(!0);return!e||(e(),!1)}},28202:function(e,t,r){r.d(t,{L:function(){return n}});class n{constructor(e){this.isMounted=!1,this.node=e}update(){}}},69281:function(e,t,r){r.d(t,{featureDefinitions:function(){return i}});let n={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},i={};for(let e in n)i[e]={isEnabled:t=>n[e].some(e=>!!t[e])}},55590:function(e,t,r){r.d(t,{K:function(){return i}});var n=r(69281);function i(e){for(let t in e)n.featureDefinitions[t]={...n.featureDefinitions[t],...e[t]}}},13153:function(e,t,r){r.d(t,{j:function(){return a}});var n=r(38266),i=r(11729);function a(e,{layout:t,layoutId:r}){return i.G.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!n.P[e]||"opacity"===e)}},16416:function(e,t,r){function n({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function i({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function a(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}r.d(t,{d7:function(){return a},i8:function(){return n},z2:function(){return i}})},43882:function(e,t,r){r.d(t,{D2:function(){return f},YY:function(){return u},am:function(){return c},o2:function(){return l},q2:function(){return a}});var n=r(90388),i=r(77666);function a(e,t,r){return r+t*(e-r)}function s(e,t,r,n,i){return void 0!==i&&(e=n+i*(e-n)),n+r*(e-n)+t}function o(e,t=0,r=1,n,i){e.min=s(e.min,t,r,n,i),e.max=s(e.max,t,r,n,i)}function l(e,{x:t,y:r}){o(e.x,t.translate,t.scale,t.originPoint),o(e.y,r.translate,r.scale,r.originPoint)}function u(e,t,r,n=!1){let a,s;let o=r.length;if(o){t.x=t.y=1;for(let u=0;u<o;u++){s=(a=r[u]).projectionDelta;let{visualElement:o}=a.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&f(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,l(e,s)),n&&(0,i.ud)(a.latestValues)&&f(e,a.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}function c(e,t){e.min=e.min+t,e.max=e.max+t}function d(e,t,r,i,a=.5){let s=(0,n.t)(e.min,e.max,a);o(e,t,r,s,i)}function f(e,t){d(e.x,t.x,t.scaleX,t.scale,t.originX),d(e.y,t.y,t.scaleY,t.scale,t.originY)}},34283:function(e,t,r){r.d(t,{dO:function(){return s},wc:function(){return i}});let n=()=>({translate:0,scale:1,origin:0,originPoint:0}),i=()=>({x:n(),y:n()}),a=()=>({min:0,max:0}),s=()=>({x:a(),y:a()})},38266:function(e,t,r){r.d(t,{B:function(){return i},P:function(){return n}});let n={};function i(e){Object.assign(n,e)}},77666:function(e,t,r){function n(e){return void 0===e||1===e}function i({scale:e,scaleX:t,scaleY:r}){return!n(e)||!n(t)||!n(r)}function a(e){return i(e)||s(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function s(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}r.d(t,{D_:function(){return s},Lj:function(){return i},ud:function(){return a}})},67625:function(e,t,r){r.d(t,{J:function(){return a},z:function(){return s}});var n=r(16416),i=r(43882);function a(e,t){return(0,n.i8)((0,n.d7)(e.getBoundingClientRect(),t))}function s(e,t,r){let n=a(e,r),{scroll:s}=t;return s&&((0,i.am)(n.x,s.offset.x),(0,i.am)(n.y,s.offset.y)),n}},12565:function(e,t,r){r.d(t,{m:function(){return q}});var n,i=r(11527),a=r(50959),s=r(33570);let o=(0,a.createContext)({});var l=r(80436),u=r(49767),c=r(97391),d=r(49618),f=r(56201),p=r(26185),h=r(95962),m=r(42940),g=r(37769);function v(e){return Array.isArray(e)?e.join(" "):e}var y=r(55590),b=r(63568),w=r(82004);let x=Symbol.for("motionComponentSymbol");var P=r(69281),k=r(4151),E=r(69407),T=r(31078),S=r(44874),C=r(26575),M=r(28755),_=r(7072),A=r(60999),I=r(38482),L=r(11729);let D=e=>(t,r)=>{let n=(0,a.useContext)(o),i=(0,a.useContext)(l.O),s=()=>(function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:r,onMount:n},i,a,s,o){let l={latestValues:function(e,t,r,n,i){var a;let s={},o=new Set,l=n&&(null===(a=e.style)||void 0===a?void 0:a.willChange)===void 0,u=i(e,{});for(let e in u)s[e]=(0,_.b)(u[e]);let{initial:c,animate:d}=e,f=(0,g.G)(e),p=(0,g.M)(e);t&&p&&!f&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let h=!!r&&!1===r.initial,m=(h=h||!1===c)?d:c;return m&&"boolean"!=typeof m&&!(0,S.H)(m)&&N(e,m,(e,t)=>{for(let t in e){let r=e[t];if(Array.isArray(r)){let e=h?r.length-1:0;r=r[e]}null!==r&&(s[t]=r)}for(let e in t)s[e]=t[e]}),l&&(d&&!1!==c&&!(0,S.H)(d)&&N(e,d,e=>{for(let t in e){let e=L.G.has(t)?"transform":A.t.has(t)?(0,I.D)(t):void 0;e&&o.add(e)}}),o.size&&(s.willChange=Array.from(o).join(","))),s}(i,a,s,!o&&e,t),renderState:r()};return n&&(l.mount=e=>n(i,e,l)),l})(e,t,n,i,r);return r?s():(0,M.h)(s)};function N(e,t,r){let n=Array.isArray(t)?t:[t];for(let t=0;t<n.length;t++){let i=(0,C.o)(e,n[t]);if(i){let{transitionEnd:e,transition:t,...n}=i;r(n,e)}}}let O=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),R=()=>({...O(),attrs:{}});var F=r(63820),j=r(501),K=r(73943);let V={useVisualState:D({scrapeMotionValuesFromProps:T.U,createRenderState:R,onMount:(e,t,{renderState:r,latestValues:n})=>{K.Wi.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),K.Wi.render(()=>{(0,F.i)(r,n,(0,j.a)(t.tagName),e.transformTemplate),(0,E.K)(t,r)})}})},B={useVisualState:D({applyWillChange:!0,scrapeMotionValuesFromProps:r(10951).U,createRenderState:O})};var $=r(13153),z=r(20591),W=r(23469);function U(e,t,r){for(let n in t)(0,z.i)(t[n])||(0,$.j)(n,r)||(e[n]=t[n])}let G=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Z(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||G.has(e)}let H=e=>!Z(e);try{(n=require("@emotion/is-prop-valid").default)&&(H=e=>e.startsWith("on")?!Z(e):n(e))}catch(e){}let q=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}(function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:k}){e&&(0,y.K)(e);let E=(0,a.forwardRef)(function(e,y){var x;let E;let T={...(0,a.useContext)(s._),...e,layoutId:function({layoutId:e}){let t=(0,a.useContext)(w.p).id;return t&&void 0!==e?t+"-"+e:e}(e)},{isStatic:S}=T,C=function(e){let{initial:t,animate:r}=function(e,t){if((0,g.G)(e)){let{initial:t,animate:r}=e;return{initial:!1===t||(0,m.$)(t)?t:void 0,animate:(0,m.$)(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(o));return(0,a.useMemo)(()=>({initial:t,animate:r}),[v(t),v(r)])}(e),M=n(e,S);if(!S&&b.j){(0,a.useContext)(c.u).strict;let e=function(e){let{drag:t,layout:r}=P.featureDefinitions;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(T);E=e.MeasureLayout,C.visualElement=function(e,t,r,n,i){var m,g;let{visualElement:v}=(0,a.useContext)(o),y=(0,a.useContext)(c.u),b=(0,a.useContext)(l.O),w=(0,a.useContext)(s._).reducedMotion,x=(0,a.useRef)();n=n||y.renderer,!x.current&&n&&(x.current=n(e,{visualState:t,parent:v,props:r,presenceContext:b,blockInitialAnimation:!!b&&!1===b.initial,reducedMotionConfig:w}));let P=x.current,k=(0,a.useContext)(h.g);P&&!P.projection&&i&&("html"===P.type||"svg"===P.type)&&function(e,t,r,n){let{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&(0,p.I)(o),visualElement:e,animationType:"string"==typeof a?a:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(x.current,r,i,k),(0,a.useInsertionEffect)(()=>{P&&P.update(r,b)});let E=r[d.M],T=(0,a.useRef)(!!E&&!(null===(m=window.MotionHandoffIsComplete)||void 0===m?void 0:m.call(window,E))&&(null===(g=window.MotionHasOptimisedAnimation)||void 0===g?void 0:g.call(window,E)));return(0,u.L)(()=>{P&&(window.MotionIsMounted=!0,P.updateFeatures(),f.g.render(P.render),T.current&&P.animationState&&P.animationState.animateChanges())}),(0,a.useEffect)(()=>{P&&(!T.current&&P.animationState&&P.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,E)}),T.current=!1))}),P}(k,M,T,t,e.ProjectionNode)}return(0,i.jsxs)(o.Provider,{value:C,children:[E&&C.visualElement?(0,i.jsx)(E,{visualElement:C.visualElement,...T}):null,r(k,e,(x=C.visualElement,(0,a.useCallback)(e=>{e&&M.mount&&M.mount(e),x&&(e?x.mount(e):x.unmount()),y&&("function"==typeof y?y(e):(0,p.I)(y)&&(y.current=e))},[x])),M,S,C.visualElement)]})});return E[x]=k,E}({...(0,k.q)(e)?V:B,preloadedFeatures:void 0,useRender:function(e=!1){return(t,r,n,{latestValues:i},s)=>{let o=((0,k.q)(t)?function(e,t,r,n){let i=(0,a.useMemo)(()=>{let r=R();return(0,F.i)(r,t,(0,j.a)(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};U(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let r={},n=function(e,t){let r=e.style||{},n={};return U(n,r,e),Object.assign(n,function({transformTemplate:e},t){return(0,a.useMemo)(()=>{let r=O();return(0,W.r)(r,t,e),Object.assign({},r.vars,r.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,s,t),l=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(H(i)||!0===r&&Z(i)||!t&&!Z(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),u=t!==a.Fragment?{...l,...o,ref:n}:{},{children:c}=r,d=(0,a.useMemo)(()=>(0,z.i)(c)?c.get():c,[c]);return(0,a.createElement)(t,{...u,children:d})}}(t),createVisualElement:void 0,Component:e})})},44198:function(e,t,r){r.d(t,{s:function(){return h}});var n=r(56925),i=r(32980),a=r(31727),s=r(33768);let o=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var l=r(22347),u=r(99081),c=r(96717),d=r(47587),f=r(25786);let p=new Set(["auto","none","0"]);class h extends c.e{constructor(e,t,r,n,i){super(e,t,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),(0,s.t)(n))){let l=function e(t,r,n=1){(0,i.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[l,u]=function(e){let t=o.exec(e);if(!t)return[,];let[,r,n,i]=t;return[`--${null!=r?r:n}`,i]}(t);if(!l)return;let c=window.getComputedStyle(r).getPropertyValue(l);if(c){let e=c.trim();return(0,a.P)(e)?parseFloat(e):e}return(0,s.t)(u)?e(u,r,n+1):u}(n,t.current);void 0!==l&&(e[r]=l),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!l.z2.has(r)||2!==e.length)return;let[n,c]=e,d=(0,u.C)(n),f=(0,u.C)(c);if(d!==f){if((0,l.mP)(d)&&(0,l.mP)(f))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||(0,n.W)(i))&&r.push(t)}r.length&&function(e,t,r){let n,i=0;for(;i<e.length&&!n;){let t=e[i];"string"==typeof t&&!p.has(t)&&(0,d.V)(t).values.length&&(n=e[i]),i++}if(n&&r)for(let i of t)e[i]=(0,f.T)(r,n)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=l.lw[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;let i=t.getValue(r);i&&i.jump(this.measuredOrigin,!1);let a=n.length-1,s=n[a];n[a]=l.lw[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}},63039:function(e,t,r){r.d(t,{H:function(){return eN}});var n=r(44874),i=r(57844);function a(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var s=r(42940),o=r(26575);function l(e,t,r){let n=e.getProps();return(0,o.o)(n,t,void 0!==r?r:n.custom,e)}var u=r(50740),c=r(11729),d=r(42474),f=r(77381),p=r(57615),h=r(46778),m=r(50315),g=r(70486),v=r(73943);function y(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...u}=t;n&&(s=n);let y=[],b=i&&e.animationState&&e.animationState.getState()[i];for(let t in u){let n=e.getValue(t,null!==(a=e.latestValues[t])&&void 0!==a?a:null),i=u[t];if(void 0===i||b&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(b,t))continue;let o={delay:r,...(0,h.e)(s||{},t)},l=!1;if(window.MotionHandoffAnimation){let r=(0,m.s)(e);if(r){let e=window.MotionHandoffAnimation(r,t,v.Wi);null!==e&&(o.startTime=e,l=!0)}}(0,g.K)(e,t),n.start((0,d.v)(t,n,i,e.shouldReduceMotion&&c.G.has(t)?{type:!1}:o,e,l));let f=n.animation;f&&y.push(f)}return o&&Promise.all(y).then(()=>{v.Wi.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:n={},...i}=l(e,t)||{};for(let t in i={...i,...r}){let r=(0,f.Y)(i[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,(0,p.BX)(r))}}(e,o)})}),y}function b(e,t,r={}){var n;let i=l(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(a=r.transitionOverride);let s=i?()=>Promise.all(y(e,i,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:o}=a;return function(e,t,r=0,n=0,i=1,a){let s=[],o=(e.variantChildren.size-1)*n,l=1===i?(e=0)=>e*n:(e=0)=>o-e*n;return Array.from(e.variantChildren).sort(w).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(b(e,t,{...a,delay:r+l(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,o,r)}:()=>Promise.resolve(),{when:u}=a;if(!u)return Promise.all([s(),o(r.delay)]);{let[e,t]="beforeChildren"===u?[s,o]:[o,s];return e().then(()=>t())}}function w(e,t){return e.sortNodePosition(t)}let x=u.V.length,P=[...u.e].reverse(),k=u.e.length;function E(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function T(){return{animate:E(!0),whileInView:E(),whileHover:E(),whileTap:E(),whileDrag:E(),whileFocus:E(),exit:E()}}var S=r(28202);class C extends S.L{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t))n=Promise.all(t.map(t=>b(e,t,r)));else if("string"==typeof t)n=b(e,t,r);else{let i="function"==typeof t?l(e,t,r.custom):t;n=Promise.all(y(e,i,r))}return n.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=T(),o=!0,c=t=>(r,n)=>{var i;let a=l(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(a){let{transition:e,transitionEnd:t,...n}=a;r={...r,...n,...t}}return r};function d(l){let{props:d}=e,f=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<x;e++){let n=u.V[e],i=t.props[n];((0,s.$)(i)||!1===i)&&(r[n]=i)}return r}(e.parent)||{},p=[],h=new Set,m={},g=1/0;for(let t=0;t<k;t++){var v;let u=P[t],y=r[u],b=void 0!==d[u]?d[u]:f[u],w=(0,s.$)(b),x=u===l?y.isActive:null;!1===x&&(g=t);let k=b===f[u]&&b!==d[u]&&w;if(k&&o&&e.manuallyAnimateOnMount&&(k=!1),y.protectedKeys={...m},!y.isActive&&null===x||!b&&!y.prevProp||(0,n.H)(b)||"boolean"==typeof b)continue;let E=(v=y.prevProp,"string"==typeof b?b!==v:!!Array.isArray(b)&&!a(b,v)),T=E||u===l&&y.isActive&&!k&&w||t>g&&w,S=!1,C=Array.isArray(b)?b:[b],M=C.reduce(c(u),{});!1===x&&(M={});let{prevResolvedValues:_={}}=y,A={..._,...M},I=t=>{T=!0,h.has(t)&&(S=!0,h.delete(t)),y.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in A){let t=M[e],r=_[e];if(!m.hasOwnProperty(e))((0,i.C)(t)&&(0,i.C)(r)?a(t,r):t===r)?void 0!==t&&h.has(e)?I(e):y.protectedKeys[e]=!0:null!=t?I(e):h.add(e)}y.prevProp=b,y.prevResolvedValues=M,y.isActive&&(m={...m,...M}),o&&e.blockInitialAnimation&&(T=!1);let L=!(k&&E)||S;T&&L&&p.push(...C.map(e=>({animation:e,options:{type:u}})))}if(h.size){let t={};h.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),p.push({animation:t})}let y=!!p.length;return o&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(y=!1),o=!1,y?t(p):Promise.resolve()}return{animateChanges:d,setActive:function(t,n){var i;if(r[t].isActive===n)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)}),r[t].isActive=n;let a=d(t);for(let e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=T(),o=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();(0,n.H)(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}let M=0;class _ extends S.L{constructor(){super(...arguments),this.id=M++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}var A=r(23842),I=r(35748),L=r(16861);function D(e,t){let r=t?"onHoverStart":"onHoverEnd";return(0,A.a)(e.current,t?"pointerenter":"pointerleave",(n,i)=>{if("touch"===n.pointerType||(0,L.gD)())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let s=a[r];s&&v.Wi.postRender(()=>s(n,i))},{passive:!e.getProps()[r]})}class N extends S.L{mount(){this.unmount=(0,I.z)(D(this.node,!0),D(this.node,!1))}unmount(){}}var O=r(53412);class R extends S.L{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,I.z)((0,O.E)(this.node.current,"focus",()=>this.onFocus()),(0,O.E)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var F=r(18354);let j=(e,t)=>!!t&&(e===t||j(e,t.parentElement));var K=r(25417);function V(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,(0,F.Q)(r))}class B extends S.L{constructor(){super(...arguments),this.removeStartListeners=K.Z,this.removeEndListeners=K.Z,this.removeAccessibleListeners=K.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let r=this.node.getProps(),n=(0,A.a)(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps(),a=i||j(this.node.current,e.target)?r:n;a&&v.Wi.update(()=>a(e,t))},{passive:!(r.onTap||r.onPointerUp)}),i=(0,A.a)(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(r.onTapCancel||r.onPointerCancel)});this.removeEndListeners=(0,I.z)(n,i),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=(0,O.E)(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=(0,O.E)(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&V("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&v.Wi.postRender(()=>r(e,t))})}),V("down",(e,t)=>{this.startPress(e,t)}))}),t=(0,O.E)(this.node.current,"blur",()=>{this.isPressing&&V("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=(0,I.z)(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:r,whileTap:n}=this.node.getProps();n&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&v.Wi.postRender(()=>r(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,L.gD)()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&v.Wi.postRender(()=>r(e,t))}mount(){let e=this.node.getProps(),t=(0,A.a)(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),r=(0,O.E)(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,I.z)(t,r)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let $=new WeakMap,z=new WeakMap,W=e=>{let t=$.get(e.target);t&&t(e)},U=e=>{e.forEach(W)},G={some:0,all:1};class Z extends S.L{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:i}=e,a={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:G[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;z.has(r)||z.set(r,{});let n=z.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(U,{root:e,...t})),n[i]}(t);return $.set(e,r),n.observe(e),()=>{$.delete(e),n.unobserve(e)}}(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),a=t?r:n;a&&a(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}var H=r(50959),q=r(23469),X=r(33768),Y=r(10951),J=r(87302),Q=r(78484),ee=r(67625),et=r(63568);let er={current:null},en={current:!1};var ei=r(90007),ea=r(20591),es=r(37769),eo=r(69281);let el=new WeakMap;var eu=r(96717),ec=r(31727),ed=r(56925),ef=r(65797),ep=r(47587),eh=r(99081),em=r(35630);let eg=[...eh.$,ef.$,ep.P],ev=e=>eg.find((0,em.l)(e));var ey=r(25786),eb=r(34283),ew=r(88955);let ex=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class eP{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:a},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eu.e,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=ew.X.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,v.Wi.render(this.render,!1,!0))};let{latestValues:o,renderState:l}=a;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=(0,es.G)(t),this.isVariantNode=(0,es.M)(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==o[e]&&(0,ea.i)(t)&&t.set(o[e],!1)}}mount(e){this.current=e,el.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),en.current||function(){if(en.current=!0,et.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>er.current=e.matches;e.addListener(t),t()}else er.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||er.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in el.delete(this.current),this.projection&&this.projection.unmount(),(0,v.Pn)(this.notifyUpdate),(0,v.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=c.G.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&v.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),a(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in eo.featureDefinitions){let t=eo.featureDefinitions[e];if(!t)continue;let{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):(0,eb.dO)()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<ex.length;t++){let r=ex[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(let n in t){let i=t[n],a=r[n];if((0,ea.i)(i))e.addValue(n,i);else if((0,ea.i)(a))e.addValue(n,(0,p.BX)(i,{owner:e}));else if(a!==i){if(e.hasValue(n)){let t=e.getValue(n);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(n);e.addValue(n,(0,p.BX)(void 0!==t?t:i,{owner:e}))}}}for(let n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=(0,p.BX)(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&((0,ec.P)(n)||(0,ed.W)(n))?n=parseFloat(n):!ev(n)&&ep.P.test(t)&&(n=(0,ey.T)(e,t)),this.setBaseTarget(e,(0,ea.i)(n)?n.get():n)),(0,ea.i)(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=(0,o.o)(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||(0,ea.i)(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new ei.L),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}var ek=r(44198);class eE extends eP{constructor(){super(...arguments),this.KeyframeResolver=ek.s}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}}class eT extends eE{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=J.N}readValueFromInstance(e,t){if(c.G.has(t)){let e=(0,Q.A)(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=((0,X.f)(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return(0,ee.J)(e,t)}build(e,t,r){(0,q.r)(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return(0,Y.U)(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;(0,ea.i)(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}var eS=r(31078),eC=r(63820),eM=r(38482),e_=r(75819),eA=r(69407),eI=r(501);class eL extends eE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=eb.dO}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(c.G.has(t)){let e=(0,Q.A)(t);return e&&e.default||0}return t=e_.s.has(t)?t:(0,eM.D)(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return(0,eS.U)(e,t,r)}build(e,t,r){(0,eC.i)(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){(0,eA.K)(e,t,r,n)}mount(e){this.isSVGTag=(0,eI.a)(e.tagName),super.mount(e)}}var eD=r(4151);let eN={renderer:(e,t)=>(0,eD.q)(e)?new eL(t):new eT(t,{allowProjection:e!==H.Fragment}),animation:{Feature:C},exit:{Feature:_},inView:{Feature:Z},tap:{Feature:B},focus:{Feature:R},hover:{Feature:N}}},38482:function(e,t,r){r.d(t,{D:function(){return n}});let n=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase()},33768:function(e,t,r){r.d(t,{f:function(){return i},t:function(){return s}});let n=e=>t=>"string"==typeof t&&t.startsWith(e),i=n("--"),a=n("var(--"),s=e=>!!a(e)&&o.test(e.split("/*")[0].trim()),o=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu},4151:function(e,t,r){r.d(t,{q:function(){return i}});let n=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function i(e){if("string"!=typeof e||e.includes("-"));else if(n.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}},22347:function(e,t,r){r.d(t,{Ei:function(){return f},lw:function(){return p},mP:function(){return o},z2:function(){return s}});var n=r(11729),i=r(94685),a=r(3471);let s=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),o=e=>e===i.Rx||e===a.px,l=(e,t)=>parseFloat(e.split(", ")[t]),u=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return l(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?l(t[1],e):0}},c=new Set(["x","y","z"]),d=n._.filter(e=>!c.has(e));function f(e){let t=[];return d.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}let p={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:u(4,13),y:u(5,14)};p.translateX=p.x,p.translateY=p.y},25786:function(e,t,r){r.d(t,{T:function(){return s}});var n=r(47587),i=r(6644),a=r(78484);function s(e,t){let r=(0,a.A)(e);return r!==i.h&&(r=n.P),r.getAnimatableNone?r.getAnimatableNone(t):void 0}},78484:function(e,t,r){r.d(t,{A:function(){return s}});var n=r(65797),i=r(6644);let a={...r(67664).j,color:n.$,backgroundColor:n.$,outlineColor:n.$,fill:n.$,stroke:n.$,borderColor:n.$,borderTopColor:n.$,borderRightColor:n.$,borderBottomColor:n.$,borderLeftColor:n.$,filter:i.h,WebkitFilter:i.h},s=e=>a[e]},99081:function(e,t,r){r.d(t,{$:function(){return s},C:function(){return o}});var n=r(94685),i=r(3471),a=r(35630);let s=[n.Rx,i.px,i.aQ,i.RW,i.vw,i.vh,{test:e=>"auto"===e,parse:e=>e}],o=e=>s.find((0,a.l)(e))},67664:function(e,t,r){r.d(t,{j:function(){return l}});var n=r(94685),i=r(3471);let a={borderWidth:i.px,borderTopWidth:i.px,borderRightWidth:i.px,borderBottomWidth:i.px,borderLeftWidth:i.px,borderRadius:i.px,radius:i.px,borderTopLeftRadius:i.px,borderTopRightRadius:i.px,borderBottomRightRadius:i.px,borderBottomLeftRadius:i.px,width:i.px,maxWidth:i.px,height:i.px,maxHeight:i.px,top:i.px,right:i.px,bottom:i.px,left:i.px,padding:i.px,paddingTop:i.px,paddingRight:i.px,paddingBottom:i.px,paddingLeft:i.px,margin:i.px,marginTop:i.px,marginRight:i.px,marginBottom:i.px,marginLeft:i.px,backgroundPositionX:i.px,backgroundPositionY:i.px},s={rotate:i.RW,rotateX:i.RW,rotateY:i.RW,rotateZ:i.RW,scale:n.bA,scaleX:n.bA,scaleY:n.bA,scaleZ:n.bA,skew:i.RW,skewX:i.RW,skewY:i.RW,distance:i.px,translateX:i.px,translateY:i.px,translateZ:i.px,x:i.px,y:i.px,z:i.px,perspective:i.px,transformPerspective:i.px,opacity:n.Fq,originX:i.$C,originY:i.$C,originZ:i.px},o={...n.Rx,transform:Math.round},l={...a,...s,zIndex:o,size:i.px,fillOpacity:n.Fq,strokeOpacity:n.Fq,numOctaves:o}},35630:function(e,t,r){r.d(t,{l:function(){return n}});let n=e=>t=>t.test(e)},23469:function(e,t,r){r.d(t,{r:function(){return u}});var n=r(11729);let i=(e,t)=>t&&"number"==typeof e?t.transform(e):e;var a=r(67664);let s={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},o=n._.length;var l=r(33768);function u(e,t,r){let{style:u,vars:c,transformOrigin:d}=e,f=!1,p=!1;for(let e in t){let r=t[e];if(n.G.has(e)){f=!0;continue}if((0,l.f)(e)){c[e]=r;continue}{let t=i(r,a.j[e]);e.startsWith("origin")?(p=!0,d[e]=t):u[e]=t}}if(!t.transform&&(f||r?u.transform=function(e,t,r){let l="",u=!0;for(let c=0;c<o;c++){let o=n._[c],d=e[o];if(void 0===d)continue;let f=!0;if(!(f="number"==typeof d?d===(o.startsWith("scale")?1:0):0===parseFloat(d))||r){let e=i(d,a.j[o]);if(!f){u=!1;let t=s[o]||o;l+=`${t}(${e}) `}r&&(t[o]=e)}}return l=l.trim(),r?l=r(t,u?"":l):u&&(l="none"),l}(t,e.transform,r):u.transform&&(u.transform="none")),p){let{originX:e="50%",originY:t="50%",originZ:r=0}=d;u.transformOrigin=`${e} ${t} ${r}`}}},87302:function(e,t,r){r.d(t,{N:function(){return n}});function n(e,{style:t,vars:r},n,i){for(let a in Object.assign(e.style,t,i&&i.getProjectionStyles(n)),r)e.style.setProperty(a,r[a])}},10951:function(e,t,r){r.d(t,{U:function(){return a}});var n=r(13153),i=r(20591);function a(e,t,r){var a;let{style:s}=e,o={};for(let l in s)((0,i.i)(s[l])||t.style&&(0,i.i)(t.style[l])||(0,n.j)(l,e)||(null===(a=null==r?void 0:r.getValue(l))||void 0===a?void 0:a.liveStyle)!==void 0)&&(o[l]=s[l]);return r&&s&&"string"==typeof s.willChange&&(r.applyWillChange=!1),o}},11729:function(e,t,r){r.d(t,{G:function(){return i},_:function(){return n}});let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n)},63820:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(23469),i=r(3471);function a(e,t,r){return"string"==typeof e?e:i.px.transform(t+r*e)}let s={offset:"stroke-dashoffset",array:"stroke-dasharray"},o={offset:"strokeDashoffset",array:"strokeDasharray"};function l(e,{attrX:t,attrY:r,attrScale:l,originX:u,originY:c,pathLength:d,pathSpacing:f=1,pathOffset:p=0,...h},m,g){if((0,n.r)(e,h,g),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:v,style:y,dimensions:b}=e;v.transform&&(b&&(y.transform=v.transform),delete v.transform),b&&(void 0!==u||void 0!==c||y.transform)&&(y.transformOrigin=function(e,t,r){let n=a(t,e.x,e.width),i=a(r,e.y,e.height);return`${n} ${i}`}(b,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==t&&(v.x=t),void 0!==r&&(v.y=r),void 0!==l&&(v.scale=l),void 0!==d&&function(e,t,r=1,n=0,a=!0){e.pathLength=1;let l=a?s:o;e[l.offset]=i.px.transform(-n);let u=i.px.transform(t),c=i.px.transform(r);e[l.array]=`${u} ${c}`}(v,d,f,p,!1)}},75819:function(e,t,r){r.d(t,{s:function(){return n}});let n=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"])},501:function(e,t,r){r.d(t,{a:function(){return n}});let n=e=>"string"==typeof e&&"svg"===e.toLowerCase()},69407:function(e,t,r){r.d(t,{K:function(){return s}});var n=r(38482),i=r(87302),a=r(75819);function s(e,t,r,s){for(let r in(0,i.N)(e,t,void 0,s),t.attrs)e.setAttribute(a.s.has(r)?r:(0,n.D)(r),t.attrs[r])}},31078:function(e,t,r){r.d(t,{U:function(){return s}});var n=r(20591),i=r(10951),a=r(11729);function s(e,t,r){let s=(0,i.U)(e,t,r);for(let r in e)((0,n.i)(e[r])||(0,n.i)(t[r]))&&(s[-1!==a._.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return s}},96717:function(e,t,r){r.d(t,{e:function(){return d},m:function(){return c}});var n=r(22347),i=r(73943);let a=new Set,s=!1,o=!1;function l(){if(o){let e=Array.from(a).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=(0,n.Ei)(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}o=!1,s=!1,a.forEach(e=>e.complete()),a.clear()}function u(){a.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(o=!0)})}function c(){u(),l()}class d{constructor(e,t,r,n,i,a=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=i,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(a.add(this),s||(s=!0,i.Wi.read(u),i.Wi.resolveKeyframes(l))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;i<e.length;i++)if(null===e[i]){if(0===i){let i=null==n?void 0:n.get(),a=e[e.length-1];if(void 0!==i)e[0]=i;else if(r&&t){let n=r.readValue(t,a);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=a),n&&void 0===i&&n.set(e[0])}else e[i]=e[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),a.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,a.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}},37769:function(e,t,r){r.d(t,{G:function(){return s},M:function(){return o}});var n=r(44874),i=r(42940),a=r(50740);function s(e){return(0,n.H)(e.animate)||a.V.some(t=>(0,i.$)(e[t]))}function o(e){return!!(s(e)||e.variants)}},42940:function(e,t,r){r.d(t,{$:function(){return n}});function n(e){return"string"==typeof e||Array.isArray(e)}},26575:function(e,t,r){function n(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}function i(e,t,r,i){if("function"==typeof t){let[a,s]=n(i);t=t(void 0!==r?r:e.custom,a,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,s]=n(i);t=t(void 0!==r?r:e.custom,a,s)}return t}r.d(t,{o:function(){return i}})},50740:function(e,t,r){r.d(t,{V:function(){return i},e:function(){return n}});let n=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i=["initial",...n]},69902:function(e,t,r){function n(e,t){-1===e.indexOf(t)&&e.push(t)}function i(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}r.d(t,{cl:function(){return i},y4:function(){return n}})},21442:function(e,t,r){r.d(t,{u:function(){return n}});let n=(e,t,r)=>r>t?t:r<e?e:r},32980:function(e,t,r){r.d(t,{K:function(){return i},k:function(){return a}});var n=r(25417);let i=n.Z,a=n.Z},63568:function(e,t,r){r.d(t,{j:function(){return n}});let n="undefined"!=typeof window},31727:function(e,t,r){r.d(t,{P:function(){return n}});let n=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)},26185:function(e,t,r){r.d(t,{I:function(){return n}});function n(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}},56925:function(e,t,r){r.d(t,{W:function(){return n}});let n=e=>/^0[^.\s]+$/u.test(e)},90388:function(e,t,r){r.d(t,{t:function(){return n}});let n=(e,t,r)=>e+(t-e)*r},25417:function(e,t,r){r.d(t,{Z:function(){return n}});let n=e=>e},35748:function(e,t,r){r.d(t,{z:function(){return i}});let n=(e,t)=>r=>t(e(r)),i=(...e)=>e.reduce(n)},27783:function(e,t,r){r.d(t,{Y:function(){return n}});let n=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n}},77381:function(e,t,r){r.d(t,{Y:function(){return a},p:function(){return i}});var n=r(57844);let i=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),a=e=>(0,n.C)(e)?e[e.length-1]||0:e},90007:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(69902);class i{constructor(){this.subscriptions=[]}add(e){return(0,n.y4)(this.subscriptions,e),()=>(0,n.cl)(this.subscriptions,e)}notify(e,t,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](e,t,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(e,t,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},62660:function(e,t,r){r.d(t,{X:function(){return i},w:function(){return n}});let n=e=>1e3*e,i=e=>e/1e3},28755:function(e,t,r){r.d(t,{h:function(){return i}});var n=r(50959);function i(e){let t=(0,n.useRef)(null);return null===t.current&&(t.current=e()),t.current}},49767:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(50959);let i=r(63568).j?n.useLayoutEffect:n.useEffect},4920:function(e,t,r){r.d(t,{R:function(){return n}});function n(e,t){return t?1e3/t*e:0}},57615:function(e,t,r){r.d(t,{BX:function(){return c}});var n=r(90007),i=r(4920),a=r(88955),s=r(73943);let o=e=>!isNaN(parseFloat(e)),l={current:void 0};class u{constructor(e,t={}){this.version="11.11.9",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=a.X.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=a.X.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=o(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n.L);let r=this.events[e].add(t);return"change"===e?()=>{r(),s.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return l.current&&l.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=a.X.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return(0,i.R)(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function c(e,t){return new u(e,t)}},58839:function(e,t,r){r.d(t,{$:function(){return i}});var n=r(21263);let i={test:(0,r(45318).i)("#"),parse:function(e){let t="",r="",n="",i="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),i=e.substring(4,5),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}},transform:n.m.transform}},34560:function(e,t,r){r.d(t,{J:function(){return o}});var n=r(94685),i=r(3471),a=r(92193),s=r(45318);let o={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:s=1})=>"hsla("+Math.round(e)+", "+i.aQ.transform((0,a.N)(t))+", "+i.aQ.transform((0,a.N)(r))+", "+(0,a.N)(n.Fq.transform(s))+")"}},65797:function(e,t,r){r.d(t,{$:function(){return s}});var n=r(58839),i=r(34560),a=r(21263);let s={test:e=>a.m.test(e)||n.$.test(e)||i.J.test(e),parse:e=>a.m.test(e)?a.m.parse(e):i.J.test(e)?i.J.parse(e):n.$.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?a.m.transform(e):i.J.transform(e)}},21263:function(e,t,r){r.d(t,{m:function(){return u}});var n=r(21442),i=r(94685),a=r(92193),s=r(45318);let o=e=>(0,n.u)(0,255,e),l={...i.Rx,transform:e=>Math.round(o(e))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+l.transform(e)+", "+l.transform(t)+", "+l.transform(r)+", "+(0,a.N)(i.Fq.transform(n))+")"}},45318:function(e,t,r){r.d(t,{i:function(){return a},d:function(){return s}});var n=r(91498);let i=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,a=(e,t)=>r=>!!("string"==typeof r&&i.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),s=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[a,s,o,l]=i.match(n.K);return{[e]:parseFloat(a),[t]:parseFloat(s),[r]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}}},6644:function(e,t,r){r.d(t,{h:function(){return l}});var n=r(47587),i=r(91498);let a=new Set(["brightness","contrast","saturate","opacity"]);function s(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(i.K)||[];if(!n)return e;let s=r.replace(n,""),o=a.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+s+")"}let o=/\b([a-z-]*)\(.*?\)/gu,l={...n.P,getAnimatableNone:e=>{let t=e.match(o);return t?t.map(s).join(" "):e}}},47587:function(e,t,r){r.d(t,{V:function(){return c},P:function(){return h}});var n=r(65797);let i=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;var a=r(91498),s=r(92193);let o="number",l="color",u=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function c(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},a=[],s=0,c=t.replace(u,e=>(n.$.test(e)?(i.color.push(s),a.push(l),r.push(n.$.parse(e))):e.startsWith("var(")?(i.var.push(s),a.push("var"),r.push(e)):(i.number.push(s),a.push(o),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:c,indexes:i,types:a}}function d(e){return c(e).values}function f(e){let{split:t,types:r}=c(e),i=t.length;return e=>{let a="";for(let u=0;u<i;u++)if(a+=t[u],void 0!==e[u]){let t=r[u];t===o?a+=(0,s.N)(e[u]):t===l?a+=n.$.transform(e[u]):a+=e[u]}return a}}let p=e=>"number"==typeof e?0:e,h={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(a.K))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(i))||void 0===r?void 0:r.length)||0)>0},parse:d,createTransformer:f,getAnimatableNone:function(e){let t=d(e);return f(e)(t.map(p))}}},94685:function(e,t,r){r.d(t,{Fq:function(){return a},Rx:function(){return i},bA:function(){return s}});var n=r(21442);let i={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},a={...i,transform:e=>(0,n.u)(0,1,e)},s={...i,default:1}},3471:function(e,t,r){r.d(t,{$C:function(){return u},RW:function(){return i},aQ:function(){return a},px:function(){return s},vh:function(){return o},vw:function(){return l}});let n=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),i=n("deg"),a=n("%"),s=n("px"),o=n("vh"),l=n("vw"),u={...a,parse:e=>a.parse(e)/100,transform:e=>a.transform(100*e)}},91498:function(e,t,r){r.d(t,{K:function(){return n}});let n=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu},92193:function(e,t,r){r.d(t,{N:function(){return n}});let n=e=>Math.round(1e5*e)/1e5},70486:function(e,t,r){r.d(t,{K:function(){return i}});var n=r(20591);function i(e,t){if(!e.applyWillChange)return;let r=e.getValue("willChange");if((0,n.i)(r)&&r.add)return r.add(t)}},20591:function(e,t,r){r.d(t,{i:function(){return n}});let n=e=>!!(e&&e.getVelocity)},7072:function(e,t,r){r.d(t,{b:function(){return a}});var n=r(77381),i=r(20591);function a(e){let t=(0,i.i)(e)?e.get():e;return(0,n.p)(t)?t.toValue():t}},95977:function(e,t,r){r.d(t,{KN:function(){return R},Qr:function(){return O},U2:function(){return v},cI:function(){return eP},t8:function(){return x}});var n=r(50959),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,s=e=>null==e;let o=e=>"object"==typeof e;var l=e=>!s(e)&&!Array.isArray(e)&&o(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},p="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let r=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(p&&(e instanceof Blob||e instanceof FileList))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=h(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],g=e=>void 0===e,v=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>s(e)?e:e[t],e);return g(n)||n===e?g(e[t])?r:e[t]:n},y=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),x=(e,t,r)=>{let n=-1,i=b(t)?[t]:w(t),a=i.length,s=a-1;for(;++n<a;){let t=i[n],a=r;if(n!==s){let r=e[t];a=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t)return;e[t]=a,e=e[t]}return e};let P={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},k={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},E={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},T=n.createContext(null),S=()=>n.useContext(T);var C=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==k.all&&(t._proxyFormState[a]=!n||k.all),r&&(r[a]=!0),e[a])});return i},M=e=>l(e)&&!Object.keys(e).length,_=(e,t,r,n)=>{r(e);let{name:i,...a}=e;return M(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||k.all))},A=e=>Array.isArray(e)?e:[e],I=(e,t,r)=>!e||!t||e===t||A(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e)));function L(e){let t=n.useRef(e);t.current=e,n.useEffect(()=>{let r=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{r&&r.unsubscribe()}},[e.disabled])}var D=e=>"string"==typeof e,N=(e,t,r,n,i)=>D(e)?(n&&t.watch.add(e),v(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),v(r,e))):(n&&(t.watchAll=!0),r);let O=e=>e.render(function(e){let t=S(),{name:r,disabled:i,control:a=t.control,shouldUnregister:s}=e,o=d(a._names.array,r),l=function(e){let t=S(),{control:r=t.control,name:i,defaultValue:a,disabled:s,exact:o}=e||{},l=n.useRef(i);l.current=i,L({disabled:s,subject:r._subjects.values,next:e=>{I(l.current,e.name,o)&&c(h(N(l.current,r._names,e.values||r._formValues,!1,a)))}});let[u,c]=n.useState(r._getWatch(i,a));return n.useEffect(()=>r._removeUnmounted()),u}({control:a,name:r,defaultValue:v(a._formValues,r,v(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){let t=S(),{control:r=t.control,disabled:i,name:a,exact:s}=e||{},[o,l]=n.useState(r._formState),u=n.useRef(!0),c=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=n.useRef(a);return d.current=a,L({disabled:i,next:e=>u.current&&I(d.current,e.name,s)&&_(e,c.current,r._updateFormState)&&l({...r._formState,...e}),subject:r._subjects.state}),n.useEffect(()=>(u.current=!0,c.current.isValid&&r._updateValid(!0),()=>{u.current=!1}),[r]),C(o,r,c.current,!1)}({control:a,name:r,exact:!0}),f=n.useRef(a.register(r,{...e.rules,value:l,...y(e.disabled)?{disabled:e.disabled}:{}}));return n.useEffect(()=>{let e=a._options.shouldUnregister||s,t=(e,t)=>{let r=v(a._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=h(v(a._options.defaultValues,r));x(a._defaultValues,r,e),g(v(a._formValues,r))&&x(a._formValues,r,e)}return()=>{(o?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}},[r,a,o,s]),n.useEffect(()=>{v(a._fields,r)&&a._updateDisabledField({disabled:i,fields:a._fields,name:r,value:v(a._fields,r)._f.value})},[i,r,a]),{field:{name:r,value:l,...y(i)||c.disabled?{disabled:c.disabled||i}:{},onChange:n.useCallback(e=>f.current.onChange({target:{value:u(e),name:r},type:P.CHANGE}),[r]),onBlur:n.useCallback(()=>f.current.onBlur({target:{value:v(a._formValues,r),name:r},type:P.BLUR}),[r,a]),ref:n.useCallback(e=>{let t=v(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[a._fields,r])},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!v(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!v(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!v(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!v(c.validatingFields,r)},error:{enumerable:!0,get:()=>v(c.errors,r)}})}}(e));var R=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},F=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched}),j=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let K=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=v(e,i);if(r){let{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n||e.ref&&t(e.ref,e.name)&&!n)return!0;if(K(a,t))break}else if(l(a)&&K(a,t))break}}};var V=(e,t,r)=>{let n=A(v(e,r));return x(n,"root",t[r]),x(e,r,n),e},B=e=>"file"===e.type,$=e=>"function"==typeof e,z=e=>{if(!p)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},W=e=>D(e),U=e=>"radio"===e.type,G=e=>e instanceof RegExp;let Z={value:!1,isValid:!1},H={value:!0,isValid:!0};var q=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!g(e[0].attributes.value)?g(e[0].value)||""===e[0].value?H:{value:e[0].value,isValid:!0}:H:Z}return Z};let X={isValid:!1,value:null};var Y=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,X):X;function J(e,t,r="validate"){if(W(e)||Array.isArray(e)&&e.every(W)||y(e)&&!e)return{type:r,message:W(e)?e:"",ref:t}}var Q=e=>l(e)&&!G(e)?e:{value:e,message:""},ee=async(e,t,r,n,a)=>{let{ref:o,refs:u,required:c,maxLength:d,minLength:f,min:p,max:h,pattern:m,validate:b,name:w,valueAsNumber:x,mount:P,disabled:k}=e._f,T=v(t,w);if(!P||k)return{};let S=u?u[0]:o,C=e=>{n&&S.reportValidity&&(S.setCustomValidity(y(e)?"":e||""),S.reportValidity())},_={},A=U(o),I=i(o),L=(x||B(o))&&g(o.value)&&g(T)||z(o)&&""===o.value||""===T||Array.isArray(T)&&!T.length,N=R.bind(null,w,r,_),O=(e,t,r,n=E.maxLength,i=E.minLength)=>{let a=e?t:r;_[w]={type:e?n:i,message:a,ref:o,...N(e?n:i,a)}};if(a?!Array.isArray(T)||!T.length:c&&(!(A||I)&&(L||s(T))||y(T)&&!T||I&&!q(u).isValid||A&&!Y(u).isValid)){let{value:e,message:t}=W(c)?{value:!!c,message:c}:Q(c);if(e&&(_[w]={type:E.required,message:t,ref:S,...N(E.required,t)},!r))return C(t),_}if(!L&&(!s(p)||!s(h))){let e,t;let n=Q(h),i=Q(p);if(s(T)||isNaN(T)){let r=o.valueAsDate||new Date(T),a=e=>new Date(new Date().toDateString()+" "+e),s="time"==o.type,l="week"==o.type;D(n.value)&&T&&(e=s?a(T)>a(n.value):l?T>n.value:r>new Date(n.value)),D(i.value)&&T&&(t=s?a(T)<a(i.value):l?T<i.value:r<new Date(i.value))}else{let r=o.valueAsNumber||(T?+T:T);s(n.value)||(e=r>n.value),s(i.value)||(t=r<i.value)}if((e||t)&&(O(!!e,n.message,i.message,E.max,E.min),!r))return C(_[w].message),_}if((d||f)&&!L&&(D(T)||a&&Array.isArray(T))){let e=Q(d),t=Q(f),n=!s(e.value)&&T.length>+e.value,i=!s(t.value)&&T.length<+t.value;if((n||i)&&(O(n,e.message,t.message),!r))return C(_[w].message),_}if(m&&!L&&D(T)){let{value:e,message:t}=Q(m);if(G(e)&&!T.match(e)&&(_[w]={type:E.pattern,message:t,ref:o,...N(E.pattern,t)},!r))return C(t),_}if(b){if($(b)){let e=J(await b(T,t),S);if(e&&(_[w]={...e,...N(E.validate,e.message)},!r))return C(e.message),_}else if(l(b)){let e={};for(let n in b){if(!M(e)&&!r)break;let i=J(await b[n](T,t),S,n);i&&(e={...i,...N(n,i.message)},C(i.message),r&&(_[w]=e))}if(!M(e)&&(_[w]={ref:S,...e},!r))return _}}return C(!0),_};function et(e,t){let r=Array.isArray(t)?t:b(t)?[t]:w(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=g(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,a=r[i];return n&&delete n[a],0!==i&&(l(n)&&M(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!g(e[t]))return!1;return!0}(n))&&et(e,r.slice(0,-1)),e}var er=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},en=e=>s(e)||!o(e);function ei(e,t){if(en(e)||en(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(r)&&a(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!ei(r,e):r!==e)return!1}}return!0}var ea=e=>"select-multiple"===e.type,es=e=>U(e)||i(e),eo=e=>z(e)&&e.isConnected,el=e=>{for(let t in e)if($(e[t]))return!0;return!1};function eu(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!el(e[r])?(t[r]=Array.isArray(e[r])?[]:{},eu(e[r],t[r])):s(e[r])||(t[r]=!0);return t}var ec=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!el(t[i])?g(r)||en(n[i])?n[i]=Array.isArray(t[i])?eu(t[i],[]):{...eu(t[i])}:e(t[i],s(r)?{}:r[i],n[i]):n[i]=!ei(t[i],r[i]);return n})(e,t,eu(t)),ed=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>g(e)?e:t?""===e?NaN:e?+e:e:r&&D(e)?new Date(e):n?n(e):e;function ef(e){let t=e.ref;return(e.refs?e.refs.every(e=>e.disabled):t.disabled)?void 0:B(t)?t.files:U(t)?Y(e.refs).value:ea(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?q(e.refs).value:ed(g(t.value)?e.ref.value:t.value,e)}var ep=(e,t,r,n)=>{let i={};for(let r of e){let e=v(t,r);e&&x(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},eh=e=>g(e)?e:G(e)?e.source:l(e)?G(e.value)?e.value.source:e.value:e;let em="AsyncFunction";var eg=e=>(!e||!e.validate)&&!!($(e.validate)&&e.validate.constructor.name===em||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===em)),ev=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ey(e,t,r){let n=v(e,r);if(n||b(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),a=v(t,n),s=v(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(s&&s.type)return{name:n,error:s};i.pop()}return{name:r}}var eb=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),ew=(e,t)=>!m(v(e,t)).length&&et(e,t);let ex={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function eP(e={}){let t=n.useRef(),r=n.useRef(),[o,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:$(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,r={...ex,...e},n={submitCount:0,isDirty:!1,isLoading:$(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},o={},c=(l(r.defaultValues)||l(r.values))&&h(r.defaultValues||r.values)||{},f=r.shouldUnregister?{}:h(c),b={action:!1,mount:!1,watch:!1},w={mount:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,T={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={values:er(),array:er(),state:er()},C=F(r.mode),_=F(r.reValidateMode),I=r.criteriaMode===k.all,L=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},O=async t=>{if(!e.disabled&&(T.isValid||t)){let e=r.resolver?M((await H()).errors):await X(o,!0);e!==n.isValid&&S.state.next({isValid:e})}},R=(t,r)=>{!e.disabled&&(T.isValidating||T.validatingFields)&&((t||Array.from(w.mount)).forEach(e=>{e&&(r?x(n.validatingFields,e,r):et(n.validatingFields,e))}),S.state.next({validatingFields:n.validatingFields,isValidating:!M(n.validatingFields)}))},W=(e,t)=>{x(n.errors,e,t),S.state.next({errors:n.errors})},U=(e,t,r,n)=>{let i=v(o,e);if(i){let a=v(f,e,g(r)?v(c,e):r);g(a)||n&&n.defaultChecked||t?x(f,e,t?a:ef(i._f)):Q(e,a),b.mount&&O()}},G=(t,r,i,a,s)=>{let l=!1,u=!1,d={name:t};if(!e.disabled){let e=!!(v(o,t)&&v(o,t)._f&&v(o,t)._f.disabled);if(!i||a){T.isDirty&&(u=n.isDirty,n.isDirty=d.isDirty=Y(),l=u!==d.isDirty);let i=e||ei(v(c,t),r);u=!!(!e&&v(n.dirtyFields,t)),i||e?et(n.dirtyFields,t):x(n.dirtyFields,t,!0),d.dirtyFields=n.dirtyFields,l=l||T.dirtyFields&&!i!==u}if(i){let e=v(n.touchedFields,t);e||(x(n.touchedFields,t,i),d.touchedFields=n.touchedFields,l=l||T.touchedFields&&e!==i)}l&&s&&S.state.next(d)}return l?d:{}},Z=(r,i,a,s)=>{let o=v(n.errors,r),l=T.isValid&&y(i)&&n.isValid!==i;if(e.delayError&&a?(t=L(()=>W(r,a)))(e.delayError):(clearTimeout(E),t=null,a?x(n.errors,r,a):et(n.errors,r)),(a?!ei(o,a):o)||!M(s)||l){let e={...s,...l&&y(i)?{isValid:i}:{},errors:n.errors,name:r};n={...n,...e},S.state.next(e)}},H=async e=>{R(e,!0);let t=await r.resolver(f,r.context,ep(e||w.mount,o,r.criteriaMode,r.shouldUseNativeValidation));return R(e),t},q=async e=>{let{errors:t}=await H(e);if(e)for(let r of e){let e=v(t,r);e?x(n.errors,r,e):et(n.errors,r)}else n.errors=t;return t},X=async(e,t,i={valid:!0})=>{for(let a in e){let s=e[a];if(s){let{_f:e,...o}=s;if(e){let o=w.array.has(e.name),l=s._f&&eg(s._f);l&&T.validatingFields&&R([a],!0);let u=await ee(s,f,I,r.shouldUseNativeValidation&&!t,o);if(l&&T.validatingFields&&R([a]),u[e.name]&&(i.valid=!1,t))break;t||(v(u,e.name)?o?V(n.errors,u,e.name):x(n.errors,e.name,u[e.name]):et(n.errors,e.name))}M(o)||await X(o,t,i)}}return i.valid},Y=(t,r)=>!e.disabled&&(t&&r&&x(f,t,r),!ei(ek(),c)),J=(e,t,r)=>N(e,w,{...b.mount?f:g(t)?c:D(e)?{[e]:t}:t},r,t),Q=(e,t,r={})=>{let n=v(o,e),a=t;if(n){let r=n._f;r&&(r.disabled||x(f,e,ed(t,r)),a=z(r.ref)&&s(t)?"":t,ea(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):B(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||S.values.next({name:e,values:{...f}})))}(r.shouldDirty||r.shouldTouch)&&G(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eP(e)},en=(e,t,r)=>{for(let n in t){let i=t[n],s=`${e}.${n}`,u=v(o,s);(w.array.has(e)||l(i)||u&&!u._f)&&!a(i)?en(s,i,r):Q(s,i,r)}},el=(e,t,r={})=>{let i=v(o,e),a=w.array.has(e),l=h(t);x(f,e,l),a?(S.array.next({name:e,values:{...f}}),(T.isDirty||T.dirtyFields)&&r.shouldDirty&&S.state.next({name:e,dirtyFields:ec(c,f),isDirty:Y(e,l)})):!i||i._f||s(l)?Q(e,l,r):en(e,l,r),j(e,w)&&S.state.next({...n}),S.values.next({name:b.mount?e:void 0,values:{...f}})},eu=async i=>{b.mount=!0;let s=i.target,l=s.name,c=!0,d=v(o,l),p=e=>{c=Number.isNaN(e)||a(e)&&isNaN(e.getTime())||ei(e,v(f,l,e))};if(d){let a,h;let m=s.type?ef(d._f):u(i),g=i.type===P.BLUR||i.type===P.FOCUS_OUT,y=!ev(d._f)&&!r.resolver&&!v(n.errors,l)&&!d._f.deps||eb(g,v(n.touchedFields,l),n.isSubmitted,_,C),b=j(l,w,g);x(f,l,m),g?(d._f.onBlur&&d._f.onBlur(i),t&&t(0)):d._f.onChange&&d._f.onChange(i);let k=G(l,m,g,!1),E=!M(k)||b;if(g||S.values.next({name:l,type:i.type,values:{...f}}),y)return T.isValid&&("onBlur"===e.mode?g&&O():O()),E&&S.state.next({name:l,...b?{}:k});if(!g&&b&&S.state.next({...n}),r.resolver){let{errors:e}=await H([l]);if(p(m),c){let t=ey(n.errors,o,l),r=ey(e,o,t.name||l);a=r.error,l=r.name,h=M(e)}}else R([l],!0),a=(await ee(d,f,I,r.shouldUseNativeValidation))[l],R([l]),p(m),c&&(a?h=!1:T.isValid&&(h=await X(o,!0)));c&&(d._f.deps&&eP(d._f.deps),Z(l,h,a,k))}},em=(e,t)=>{if(v(n.errors,t)&&e.focus)return e.focus(),1},eP=async(e,t={})=>{let i,a;let s=A(e);if(r.resolver){let t=await q(g(e)?e:s);i=M(t),a=e?!s.some(e=>v(t,e)):i}else e?((a=(await Promise.all(s.map(async e=>{let t=v(o,e);return await X(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&O():a=i=await X(o);return S.state.next({...!D(e)||T.isValid&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!a&&K(o,em,e?s:w.mount),a},ek=e=>{let t={...b.mount?f:c};return g(e)?t:D(e)?v(t,e):e.map(e=>v(t,e))},eE=(e,t)=>({invalid:!!v((t||n).errors,e),isDirty:!!v((t||n).dirtyFields,e),error:v((t||n).errors,e),isValidating:!!v(n.validatingFields,e),isTouched:!!v((t||n).touchedFields,e)}),eT=(e,t,r)=>{let i=(v(o,e,{_f:{}})._f||{}).ref,{ref:a,message:s,type:l,...u}=v(n.errors,e)||{};x(n.errors,e,{...u,...t,ref:i}),S.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eS=(e,t={})=>{for(let i of e?A(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||(et(o,i),et(f,i)),t.keepError||et(n.errors,i),t.keepDirty||et(n.dirtyFields,i),t.keepTouched||et(n.touchedFields,i),t.keepIsValidating||et(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||et(c,i);S.values.next({values:{...f}}),S.state.next({...n,...t.keepDirty?{isDirty:Y()}:{}}),t.keepIsValid||O()},eC=({disabled:e,name:t,field:r,fields:n,value:i})=>{if(y(e)&&b.mount||e){let a=e?void 0:g(i)?ef(r?r._f:v(n,t)._f):i;x(f,t,a),G(t,a,!1,!1,!0)}},eM=(t,n={})=>{let i=v(o,t),a=y(n.disabled)||y(e.disabled);return x(o,t,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:t}},name:t,mount:!0,...n}}),w.mount.add(t),i?eC({field:i,disabled:y(n.disabled)?n.disabled:e.disabled,name:t,value:n.value}):U(t,!0,n.value),{...a?{disabled:n.disabled||e.disabled}:{},...r.progressive?{required:!!n.required,min:eh(n.min),max:eh(n.max),minLength:eh(n.minLength),maxLength:eh(n.maxLength),pattern:eh(n.pattern)}:{},name:t,onChange:eu,onBlur:eu,ref:e=>{if(e){eM(t,n),i=v(o,t);let r=g(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,a=es(r),s=i._f.refs||[];(a?s.find(e=>e===r):r===i._f.ref)||(x(o,t,{_f:{...i._f,...a?{refs:[...s.filter(eo),r,...Array.isArray(v(c,t))?[{}]:[]],ref:{type:r.type,name:t}}:{ref:r}}}),U(t,!1,void 0,r))}else(i=v(o,t,{}))._f&&(i._f.mount=!1),(r.shouldUnregister||n.shouldUnregister)&&!(d(w.array,t)&&b.action)&&w.unMount.add(t)}}},e_=()=>r.shouldFocusError&&K(o,em,w.mount),eA=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let s=h(f);if(S.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await H();n.errors=e,s=t}else await X(o);if(et(n.errors,"root"),M(n.errors)){S.state.next({errors:{}});try{await e(s,i)}catch(e){a=e}}else t&&await t({...n.errors},i),e_(),setTimeout(e_);if(S.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:M(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},eI=(t,r={})=>{let i=t?h(t):c,a=h(i),s=M(t),l=s?c:a;if(r.keepDefaultValues||(c=i),!r.keepValues){if(r.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(ec(c,f))])))v(n.dirtyFields,e)?x(l,e,v(f,e)):el(e,v(l,e));else{if(p&&g(t))for(let e of w.mount){let t=v(o,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(z(e)){let t=e.closest("form");if(t){t.reset();break}}}}o={}}f=e.shouldUnregister?r.keepDefaultValues?h(c):{}:h(l),S.array.next({values:{...l}}),S.values.next({values:{...l}})}w={mount:r.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!T.isValid||!!r.keepIsValid||!!r.keepDirtyValues,b.watch=!!e.shouldUnregister,S.state.next({submitCount:r.keepSubmitCount?n.submitCount:0,isDirty:!s&&(r.keepDirty?n.isDirty:!!(r.keepDefaultValues&&!ei(t,c))),isSubmitted:!!r.keepIsSubmitted&&n.isSubmitted,dirtyFields:s?{}:r.keepDirtyValues?r.keepDefaultValues&&f?ec(c,f):n.dirtyFields:r.keepDefaultValues&&t?ec(c,t):r.keepDirty?n.dirtyFields:{},touchedFields:r.keepTouched?n.touchedFields:{},errors:r.keepErrors?n.errors:{},isSubmitSuccessful:!!r.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eL=(e,t)=>eI($(e)?e(f):e,t);return{control:{register:eM,unregister:eS,getFieldState:eE,handleSubmit:eA,setError:eT,_executeSchema:H,_getWatch:J,_getDirty:Y,_updateValid:O,_removeUnmounted:()=>{for(let e of w.unMount){let t=v(o,e);t&&(t._f.refs?t._f.refs.every(e=>!eo(e)):!eo(t._f.ref))&&eS(e)}w.unMount=new Set},_updateFieldArray:(t,r=[],i,a,s=!0,l=!0)=>{if(a&&i&&!e.disabled){if(b.action=!0,l&&Array.isArray(v(o,t))){let e=i(v(o,t),a.argA,a.argB);s&&x(o,t,e)}if(l&&Array.isArray(v(n.errors,t))){let e=i(v(n.errors,t),a.argA,a.argB);s&&x(n.errors,t,e),ew(n.errors,t)}if(T.touchedFields&&l&&Array.isArray(v(n.touchedFields,t))){let e=i(v(n.touchedFields,t),a.argA,a.argB);s&&x(n.touchedFields,t,e)}T.dirtyFields&&(n.dirtyFields=ec(c,f)),S.state.next({name:t,isDirty:Y(t,r),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(f,t,r)},_updateDisabledField:eC,_getFieldArray:t=>m(v(b.mount?f:c,t,e.shouldUnregister?v(c,t,[]):[])),_reset:eI,_resetDefaultValues:()=>$(r.defaultValues)&&r.defaultValues().then(e=>{eL(e,r.resetOptions),S.state.next({isLoading:!1})}),_updateFormState:e=>{n={...n,...e}},_disableForm:e=>{y(e)&&(S.state.next({disabled:e}),K(o,(t,r)=>{let n=v(o,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:S,_proxyFormState:T,_setErrors:e=>{n.errors=e,S.state.next({errors:n.errors,isValid:!1})},get _fields(){return o},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return w},set _names(value){w=value},get _formState(){return n},set _formState(value){n=value},get _options(){return r},set _options(value){r={...r,...value}}},trigger:eP,register:eM,handleSubmit:eA,watch:(e,t)=>$(e)?S.values.subscribe({next:r=>e(J(void 0,t),r)}):J(e,t,!0),setValue:el,getValues:ek,reset:eL,resetField:(e,t={})=>{v(o,e)&&(g(t.defaultValue)?el(e,h(v(c,e))):(el(e,t.defaultValue),x(c,e,h(t.defaultValue))),t.keepTouched||et(n.touchedFields,e),t.keepDirty||(et(n.dirtyFields,e),n.isDirty=t.defaultValue?Y(e,h(v(c,e))):Y()),!t.keepError&&(et(n.errors,e),T.isValid&&O()),S.state.next({...n}))},clearErrors:e=>{e&&A(e).forEach(e=>et(n.errors,e)),S.state.next({errors:e?n.errors:{}})},unregister:eS,setError:eT,setFocus:(e,t={})=>{let r=v(o,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:eE}}(e),formState:o});let f=t.current.control;return f._options=e,L({subject:f._subjects.state,next:e=>{_(e,f._proxyFormState,f._updateFormState,!0)&&c({...f._formState})}}),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==o.isDirty&&f._subjects.state.next({isDirty:e})}},[f,o.isDirty]),n.useEffect(()=>{e.values&&!ei(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),n.useEffect(()=>{e.errors&&f._setErrors(e.errors)},[e.errors,f]),n.useEffect(()=>{f._state.mount||(f._updateValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),n.useEffect(()=>{e.shouldUnregister&&f._subjects.values.next({values:f._getWatch()})},[e.shouldUnregister,f]),n.useEffect(()=>{t.current&&(t.current.watch=t.current.watch.bind({}))},[o]),t.current.formState=C(o,f),t.current}},37586:function(e,t,r){r.d(t,{tv:function(){return ey}});var n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=e=>!e||"object"!=typeof e||0===Object.keys(e).length,a=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function s(e){let t=[];return function e(t,r){t.forEach(function(t){Array.isArray(t)?e(t,r):r.push(t)})}(e,t),t}var o=(...e)=>s(e).filter(Boolean),l=(e,t)=>{let r={},n=Object.keys(e),i=Object.keys(t);for(let a of n)if(i.includes(a)){let n=e[a],i=t[a];"object"==typeof n&&"object"==typeof i?r[a]=l(n,i):Array.isArray(n)||Array.isArray(i)?r[a]=o(i,n):r[a]=i+" "+n}else r[a]=e[a];for(let e of i)n.includes(e)||(r[e]=t[e]);return r},u=e=>e&&"string"==typeof e?e.replace(/\s+/g," ").trim():e;let c=e=>{let t=h(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),d(r,t)||p(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&n[e]?[...i,...n[e]]:i}}},d=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),i=n?d(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},f=/^\[(.+)\]$/,p=e=>{if(f.test(e)){let t=f.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},h=e=>{let{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return y(Object.entries(e.classGroups),r).forEach(([e,r])=>{m(r,n,e,t)}),n},m=(e,t,r,n)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:g(t,e)).classGroupId=r;return}if("function"==typeof e){if(v(e)){m(e(n),t,r,n);return}t.validators.push({validator:e,classGroupId:r});return}Object.entries(e).forEach(([e,i])=>{m(i,g(t,e),r,n)})})},g=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},v=e=>e.isThemeGetter,y=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,b=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,n=new Map,i=(i,a)=>{r.set(i,a),++t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(i(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):i(e,t)}}},w=e=>{let{separator:t,experimentalParseClassName:r}=e,n=1===t.length,i=t[0],a=t.length,s=e=>{let r;let s=[],o=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===o){if(c===i&&(n||e.slice(u,u+a)===t)){s.push(e.slice(l,u)),l=u+a;continue}if("/"===c){r=u;continue}}"["===c?o++:"]"===c&&o--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:s}):s},x=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},P=e=>({cache:b(e.cacheSize),parseClassName:w(e),...c(e)}),k=/\s+/,E=(e,t)=>{let{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],s=e.trim().split(k),o="";for(let e=s.length-1;e>=0;e-=1){let t=s[e],{modifiers:l,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:d}=r(t),f=!!d,p=n(f?c.substring(0,d):c);if(!p){if(!f||!(p=n(c))){o=t+(o.length>0?" "+o:o);continue}f=!1}let h=x(l).join(":"),m=u?h+"!":h,g=m+p;if(a.includes(g))continue;a.push(g);let v=i(p,f);for(let e=0;e<v.length;++e){let t=v[e];a.push(m+t)}o=t+(o.length>0?" "+o:o)}return o};function T(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=S(e))&&(n&&(n+=" "),n+=t);return n}let S=e=>{let t;if("string"==typeof e)return e;let r="";for(let n=0;n<e.length;n++)e[n]&&(t=S(e[n]))&&(r&&(r+=" "),r+=t);return r};function C(e,...t){let r,n,i;let a=function(o){return n=(r=P(t.reduce((e,t)=>t(e),e()))).cache.get,i=r.cache.set,a=s,s(o)};function s(e){let t=n(e);if(t)return t;let a=E(e,r);return i(e,a),a}return function(){return a(T.apply(null,arguments))}}let M=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},_=/^\[(?:([a-z-]+):)?(.+)\]$/i,A=/^\d+\/\d+$/,I=new Set(["px","full","screen"]),L=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,D=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,N=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,O=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,R=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,F=e=>K(e)||I.has(e)||A.test(e),j=e=>J(e,"length",Q),K=e=>!!e&&!Number.isNaN(Number(e)),V=e=>J(e,"number",K),B=e=>!!e&&Number.isInteger(Number(e)),$=e=>e.endsWith("%")&&K(e.slice(0,-1)),z=e=>_.test(e),W=e=>L.test(e),U=new Set(["length","size","percentage"]),G=e=>J(e,U,ee),Z=e=>J(e,"position",ee),H=new Set(["image","url"]),q=e=>J(e,H,er),X=e=>J(e,"",et),Y=()=>!0,J=(e,t,r)=>{let n=_.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},Q=e=>D.test(e)&&!N.test(e),ee=()=>!1,et=e=>O.test(e),er=e=>R.test(e),en=()=>{let e=M("colors"),t=M("spacing"),r=M("blur"),n=M("brightness"),i=M("borderColor"),a=M("borderRadius"),s=M("borderSpacing"),o=M("borderWidth"),l=M("contrast"),u=M("grayscale"),c=M("hueRotate"),d=M("invert"),f=M("gap"),p=M("gradientColorStops"),h=M("gradientColorStopPositions"),m=M("inset"),g=M("margin"),v=M("opacity"),y=M("padding"),b=M("saturate"),w=M("scale"),x=M("sepia"),P=M("skew"),k=M("space"),E=M("translate"),T=()=>["auto","contain","none"],S=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",z,t],_=()=>[z,t],A=()=>["",F,j],I=()=>["auto",K,z],L=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],D=()=>["solid","dashed","dotted","double","none"],N=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",z],U=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[K,z];return{cacheSize:500,separator:":",theme:{colors:[Y],spacing:[F,j],blur:["none","",W,z],brightness:H(),borderColor:[e],borderRadius:["none","","full",W,z],borderSpacing:_(),borderWidth:A(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:_(),gradientColorStops:[e],gradientColorStopPositions:[$,j],inset:C(),margin:C(),opacity:H(),padding:_(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:_(),translate:_()},classGroups:{aspect:[{aspect:["auto","square","video",z]}],container:["container"],columns:[{columns:[W]}],"break-after":[{"break-after":U()}],"break-before":[{"break-before":U()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...L(),z]}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",B,z]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",z]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",B,z]}],"grid-cols":[{"grid-cols":[Y]}],"col-start-end":[{col:["auto",{span:["full",B,z]},z]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Y]}],"row-start-end":[{row:["auto",{span:[B,z]},z]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",z]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",z]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",z,t]}],"min-w":[{"min-w":[z,t,"min","max","fit"]}],"max-w":[{"max-w":[z,t,"none","full","min","max","fit","prose",{screen:[W]},W]}],h:[{h:[z,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[z,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[z,t,"auto","min","max","fit"]}],"font-size":[{text:["base",W,j]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",V]}],"font-family":[{font:[Y]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",z]}],"line-clamp":[{"line-clamp":["none",K,V]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,z]}],"list-image":[{"list-image":["none",z]}],"list-style-type":[{list:["none","disc","decimal",z]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...D(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",F,j]}],"underline-offset":[{"underline-offset":["auto",F,z]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...L(),Z]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",G]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},q]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[h]}],"gradient-via-pos":[{via:[h]}],"gradient-to-pos":[{to:[h]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[o]}],"border-w-x":[{"border-x":[o]}],"border-w-y":[{"border-y":[o]}],"border-w-s":[{"border-s":[o]}],"border-w-e":[{"border-e":[o]}],"border-w-t":[{"border-t":[o]}],"border-w-r":[{"border-r":[o]}],"border-w-b":[{"border-b":[o]}],"border-w-l":[{"border-l":[o]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...D(),"hidden"]}],"divide-x":[{"divide-x":[o]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[o]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:D()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...D()]}],"outline-offset":[{"outline-offset":[F,z]}],"outline-w":[{outline:[F,j]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:A()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[F,j]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",W,X]}],"shadow-color":[{shadow:[Y]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...N(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":N()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",W,z]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[b]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",z]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",z]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",z]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[B,z]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",z]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",z]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",z]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[F,j,V]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},ei=(e,{cacheSize:t,prefix:r,separator:n,experimentalParseClassName:i,extend:a={},override:s={}})=>{for(let a in ea(e,"cacheSize",t),ea(e,"prefix",r),ea(e,"separator",n),ea(e,"experimentalParseClassName",i),s)es(e[a],s[a]);for(let t in a)eo(e[t],a[t]);return e},ea=(e,t,r)=>{void 0!==r&&(e[t]=r)},es=(e,t)=>{if(t)for(let r in t)ea(e,r,t[r])},eo=(e,t)=>{if(t)for(let r in t){let n=t[r];void 0!==n&&(e[r]=(e[r]||[]).concat(n))}},el=(e,...t)=>"function"==typeof e?C(en,e,...t):C(()=>ei(en(),e),...t),eu=C(en);var ec={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},ed=e=>e||void 0,ef=(...e)=>ed(s(e).filter(Boolean).join(" ")),ep=null,eh={},em=!1,eg=(...e)=>t=>t.twMerge?((!ep||em)&&(em=!1,ep=i(eh)?eu:el({...eh,extend:{theme:eh.theme,classGroups:eh.classGroups,conflictingClassGroupModifiers:eh.conflictingClassGroupModifiers,conflictingClassGroups:eh.conflictingClassGroups,...eh.extend}})),ed(ep(ef(e)))):ef(e),ev=(e,t)=>{for(let r in t)e.hasOwnProperty(r)?e[r]=ef(e[r],t[r]):e[r]=t[r];return e},ey=(e,t)=>{let{extend:r=null,slots:s={},variants:c={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...ec,...t},m=null!=r&&r.base?ef(r.base,null==e?void 0:e.base):null==e?void 0:e.base,g=null!=r&&r.variants&&!i(r.variants)?l(c,r.variants):c,v=null!=r&&r.defaultVariants&&!i(r.defaultVariants)?{...r.defaultVariants,...p}:p;i(h.twMergeConfig)||a(h.twMergeConfig,eh)||(em=!0,eh=h.twMergeConfig);let y=i(null==r?void 0:r.slots),b=i(s)?{}:{base:ef(null==e?void 0:e.base,y&&(null==r?void 0:r.base)),...s},w=y?b:ev({...null==r?void 0:r.slots},i(b)?{base:null==e?void 0:e.base}:b),x=i(null==r?void 0:r.compoundVariants)?d:o(null==r?void 0:r.compoundVariants,d),P=e=>{if(i(g)&&i(s)&&y)return eg(m,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(x&&!Array.isArray(x))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof x}`);if(f&&!Array.isArray(f))throw TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);let t=(e,t,r=[],n)=>{let i=r;if("string"==typeof t)i=i.concat(u(t).split(" ").map(t=>`${e}:${t}`));else if(Array.isArray(t))i=i.concat(t.reduce((t,r)=>t.concat(`${e}:${r}`),[]));else if("object"==typeof t&&"string"==typeof n){for(let r in t)if(t.hasOwnProperty(r)&&r===n){let a=t[r];if(a&&"string"==typeof a){let t=u(a);i[n]?i[n]=i[n].concat(t.split(" ").map(t=>`${e}:${t}`)):i[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(a)&&a.length>0&&(i[n]=a.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return i},r=(r,a=g,s=null,o=null)=>{var l;let u=a[r];if(!u||i(u))return null;let c=null!=(l=null==o?void 0:o[r])?l:null==e?void 0:e[r];if(null===c)return null;let d=n(c),f=Array.isArray(h.responsiveVariants)&&h.responsiveVariants.length>0||!0===h.responsiveVariants,p=null==v?void 0:v[r],m=[];if("object"==typeof d&&f)for(let[e,r]of Object.entries(d)){let n=u[r];if("initial"===e){p=r;continue}Array.isArray(h.responsiveVariants)&&!h.responsiveVariants.includes(e)||(m=t(e,n,m,s))}let y=u[(null!=d&&"object"!=typeof d?d:n(p))||"false"];return"object"==typeof m&&"string"==typeof s&&m[s]?ev(m,y):m.length>0?(m.push(y),m):y},a=(e,t)=>{if(!g||"object"!=typeof g)return null;let n=[];for(let i in g){let a=r(i,g,e,t),s="base"===e&&"string"==typeof a?a:a&&a[e];s&&(n[n.length]=s)}return n},o={};for(let t in e)void 0!==e[t]&&(o[t]=e[t]);let l=(t,r)=>{var n;let i="object"==typeof(null==e?void 0:e[t])?{[t]:null==(n=e[t])?void 0:n.initial}:{};return{...v,...o,...i,...r}},c=(e=[],t)=>{let r=[];for(let{class:n,className:i,...a}of e){let e=!0;for(let[r,n]of Object.entries(a)){let i=l(r,t);if(Array.isArray(n)){if(!n.includes(i[r])){e=!1;break}}else if(i[r]!==n){e=!1;break}}e&&(n&&r.push(n),i&&r.push(i))}return r},d=e=>{let t=c(x,e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=eg(r.base,e)(h)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=eg(r[t],n)(h);return r},p=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:a,...s}of f){if(!i(s)){let t=!0;for(let r of Object.keys(s)){let n=l(r,e)[r];if(void 0===n||(Array.isArray(s[r])?!s[r].includes(n):s[r]!==n)){t=!1;break}}if(!t)continue}for(let e of r)t[e]=t[e]||[],t[e].push([n,a])}return t};if(!i(s)||!y){let e={};if("object"==typeof w&&!i(w))for(let t of Object.keys(w))e[t]=e=>{var r,n;return eg(w[t],a(t,e),(null!=(r=d(e))?r:[])[t],(null!=(n=p(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return eg(m,g?Object.keys(g).map(e=>r(e,g)):null,c(x),null==e?void 0:e.class,null==e?void 0:e.className)(h)};return P.variantKeys=(()=>{if(!(!g||"object"!=typeof g))return Object.keys(g)})(),P.extend=r,P.base=m,P.slots=w,P.variants=g,P.defaultVariants=v,P.compoundSlots=f,P.compoundVariants=x,P}},14055:function(e,t,r){r.d(t,{R:function(){return en}});var n=r(18767);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,s=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,o=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,l=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,u=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,c=/^receive\(\) external payable$/,d=new Set(["indexed"]),f=new Set(["calldata","memory","storage"]);class p extends Error{constructor(e,t={}){let r=t.cause instanceof p?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof p&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.0.6"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class h extends p{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class m extends p{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class g extends p{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class v extends p{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class y extends p{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class b extends p{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class w extends p{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class x extends p{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class P extends p{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class k extends p{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class E extends p{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class T extends p{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}let S=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]),C=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,M=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,_=/^u?int$/;function A(e,t){var r,i,a;let s;let o=(r=t?.type)?`${r}:${e}`:e;if(S.has(o))return S.get(o);let l=n.cN.test(e),u=(0,n.Zw)(l?M:C,e);if(!u)throw new g({param:e});if(u.name&&("address"===(i=u.name)||"bool"===i||"function"===i||"string"===i||"tuple"===i||n.eL.test(i)||n.lh.test(i)||D.test(i)))throw new v({param:e,name:u.name});let c=u.name?{name:u.name}:{},d="indexed"===u.modifier?{indexed:!0}:{},p=t?.structs??{},h={};if(l){s="tuple";let e=I(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(A(e[n],{structs:p}));h={components:t}}else if(u.type in p)s="tuple",h={components:p[u.type]};else if(_.test(u.type))s=`${u.type}256`;else if(s=u.type,t?.type!=="struct"&&!L(s))throw new m({type:s});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new y({param:e,type:t?.type,modifier:u.modifier});if(f.has(u.modifier)&&(a=s,!u.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a))throw new b({param:e,type:t?.type,modifier:u.modifier})}let w={type:`${s}${u.array??""}`,...c,...d,...h};return S.set(o,w),w}function I(e,t=[],r="",n=0){let i=e.trim().length;for(let a=0;a<i;a++){let i=e[a],s=e.slice(a+1);switch(i){case",":return 0===n?I(s,[...t,r.trim()]):I(s,t,`${r}${i}`,n);case"(":return I(s,t,`${r}${i}`,n+1);case")":return I(s,t,`${r}${i}`,n-1);default:return I(s,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new T({current:r,depth:n});return t.push(r.trim()),t}function L(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.eL.test(e)||n.lh.test(e)}let D=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/,N=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function O(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!o.test(r))continue;let a=(0,n.Zw)(o,r);if(!a)throw new x({signature:r,type:"struct"});let s=a.properties.split(";"),l=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let r=A(t,{type:"struct"});l.push(r)}if(!l.length)throw new k({signature:r});t[a.name]=l}let i={},a=Object.entries(t),s=a.length;for(let e=0;e<s;e++){let[r,s]=a[e];i[r]=function e(t,r,i=new Set){let a=[],s=t.length;for(let o=0;o<s;o++){let s=t[o];if(n.cN.test(s.type))a.push(s);else{let t=(0,n.Zw)(N,s.type);if(!t?.type)throw new w({abiParameter:s});let{array:o,type:l}=t;if(l in r){if(i.has(l))throw new E({type:l});a.push({...s,type:`tuple${o??""}`,components:e(r[l]??[],r,new Set([...i,l]))})}else if(L(l))a.push(s);else throw new h({type:l})}}return a}(s,t)}return i}(e),r=[],p=e.length;for(let h=0;h<p;h++){let p=e[h];o.test(p)||r.push(function(e,t={}){if(s.test(e)){let r=(0,n.Zw)(s,e);if(!r)throw new x({signature:e,type:"function"});let i=I(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(A(i[e],{modifiers:f,structs:t,type:"function"}));let l=[];if(r.returns){let e=I(r.returns),n=e.length;for(let r=0;r<n;r++)l.push(A(e[r],{modifiers:f,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:a,outputs:l}}if(a.test(e)){let r=(0,n.Zw)(a,e);if(!r)throw new x({signature:e,type:"event"});let i=I(r.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(A(i[e],{modifiers:d,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:s}}if(i.test(e)){let r=(0,n.Zw)(i,e);if(!r)throw new x({signature:e,type:"error"});let a=I(r.parameters),s=[],o=a.length;for(let e=0;e<o;e++)s.push(A(a[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:s}}if(l.test(e)){let r=(0,n.Zw)(l,e);if(!r)throw new x({signature:e,type:"constructor"});let i=I(r.parameters),a=[],s=i.length;for(let e=0;e<s;e++)a.push(A(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:a}}if(u.test(e))return{type:"fallback"};if(c.test(e))return{type:"receive",stateMutability:"payable"};throw new P({signature:e})}(p,t))}return r}var R=r(37080),F=r(94309),j=r(43257),K=r(85819),V=r(70538),B=r(75204),$=r(12397),z=r(64105),W=r(68315);let U="/docs/contract/encodeDeployData";function G(e){let{abi:t,args:r,bytecode:n}=e;if(!r||0===r.length)return n;let i=t.find(e=>"type"in e&&"constructor"===e.type);if(!i)throw new $.fM({docsPath:U});if(!("inputs"in i)||!i.inputs||0===i.inputs.length)throw new $.cO({docsPath:U});let a=(0,W.E)(i.inputs,r);return(0,z.SM)([n,a])}var Z=r(16216),H=r(49952),q=r(64937),X=r(61064),Y=r(24255),J=r(64340),Q=r(66039),ee=r(91209),et=r(2777),er=r(24879);async function en(e,t){let{account:n=e.account,batch:i=!!e.batch?.multicall,blockNumber:a,blockTag:s="latest",accessList:o,blobs:l,code:u,data:c,factory:d,factoryData:f,gas:p,gasPrice:h,maxFeePerBlobGas:m,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,to:b,value:w,stateOverride:x,...P}=t,k=n?(0,R.T)(n):void 0;if(u&&(d||f))throw new j.G("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&b)throw new j.G("Cannot provide both `code` & `to` as parameters.");let E=u&&c,T=d&&f&&b&&c,S=E||T,C=E?function(e){let{code:t,data:r}=e;return G({abi:O(["constructor(bytes, bytes)"]),bytecode:"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",args:[t,r]})}({code:u,data:c}):T?function(e){let{data:t,factory:r,factoryData:n,to:i}=e;return G({abi:O(["constructor(address, bytes, address, bytes)"]),bytecode:"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",args:[i,t,r,n]})}({data:c,factory:d,factoryData:f,to:b}):c;try{(0,er.F)(t);let r=(a?(0,q.eC)(a):void 0)||s,n=(0,et.mF)(x),u=e.chain?.formatters?.transactionRequest?.format,c=(u||Q.tG)({...(0,J.K)(P,{format:u}),from:k?.address,accessList:o,blobs:l,data:C,gas:p,gasPrice:h,maxFeePerBlobGas:m,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,to:S?void 0:b,value:w});if(i&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:c})&&!n)try{return await ei(e,{...c,blockNumber:a,blockTag:s})}catch(e){if(!(e instanceof K.pZ)&&!(e instanceof K.mm))throw e}let d=await e.request({method:"eth_call",params:n?[c,r,n]:[c,r]});if("0x"===d)return{data:void 0};return{data:d}}catch(s){let n=function(e){if(!(e instanceof j.G))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(s),{offchainLookup:i,offchainLookupSignature:a}=await r.e(629).then(r.bind(r,40629));if(!1!==e.ccipRead&&n?.slice(0,10)===a&&b)return{data:await i(e,{data:n,to:b})};if(S&&n?.slice(0,10)==="0x101bb98d")throw new V.Mo({factory:d});throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,Y.k)(e,r);return t instanceof X.cj?e:t})();return new V.cg(n,{docsPath:t,...r})}(s,{...t,account:k,chain:e.chain})}}async function ei(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:a="latest",data:s,multicallAddress:o,to:l}=t,u=o;if(!u){if(!e.chain)throw new K.pZ;u=(0,H.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let c=(i?(0,q.eC)(i):void 0)||a,{schedule:d}=(0,ee.S)({id:`${e.uid}.${c}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,Z.R)({abi:F.F8,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:u},c]});return(0,B.k)({abi:F.F8,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:f,success:p}]=await d({data:s,to:l});if(!p)throw new V.VQ({data:f});return"0x"===f?{data:void 0}:{data:f}}},49027:function(e,t,r){r.d(t,{Q:function(){return s}});var n=r(55083),i=r(64937),a=r(75411);async function s(e,{blockHash:t,blockNumber:r,blockTag:s,includeTransactions:o}={}){let l=o??!1,u=void 0!==r?(0,i.eC)(r):void 0,c=null;if(!(c=t?await e.request({method:"eth_getBlockByHash",params:[t,l]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[u||(s??"latest"),l]},{dedupe:!!u})))throw new n.f({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||function(e){let t=e.transactions?.map(e=>"string"==typeof e?e:a.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}})(c)}},70695:function(e,t,r){r.d(t,{L:function(){return l}});var n=r(75204),i=r(16216),a=r(89410),s=r(24737),o=r(14055);async function l(e,t){let{abi:r,address:l,args:u,functionName:c,...d}=t,f=(0,i.R)({abi:r,args:u,functionName:c});try{let{data:t}=await (0,s.s)(e,o.R,"call")({...d,data:f,to:l});return(0,n.k)({abi:r,args:u,functionName:c,data:t||"0x"})}catch(e){throw(0,a.S)(e,{abi:r,address:l,args:u,docsPath:"/docs/contract/readContract",functionName:c})}}},94309:function(e,t,r){r.d(t,{F8:function(){return n},Wo:function(){return a}});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}];[...i],[...i];let a=[{type:"event",name:"Approval",inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"event",name:"Transfer",inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}]},{type:"function",name:"allowance",stateMutability:"view",inputs:[{name:"owner",type:"address"},{name:"spender",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"approve",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{name:"account",type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"name",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:"string"}]},{type:"function",name:"totalSupply",stateMutability:"view",inputs:[],outputs:[{type:"uint256"}]},{type:"function",name:"transfer",stateMutability:"nonpayable",inputs:[{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]},{type:"function",name:"transferFrom",stateMutability:"nonpayable",inputs:[{name:"sender",type:"address"},{name:"recipient",type:"address"},{name:"amount",type:"uint256"}],outputs:[{type:"bool"}]}]},33752:function(e,t,r){r.d(t,{$:function(){return n},Up:function(){return i},hZ:function(){return a}});let n={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},a={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},92461:function(e,t,r){r.d(t,{Zn:function(){return i},ez:function(){return n}});let n={gwei:9,wei:18},i={ether:-9,wei:9}},12397:function(e,t,r){r.d(t,{CI:function(){return y},M4:function(){return d},MX:function(){return m},S4:function(){return g},cO:function(){return o},dh:function(){return v},fM:function(){return s},fs:function(){return f},gr:function(){return c},hn:function(){return b},wM:function(){return w},wb:function(){return u},xB:function(){return l},xL:function(){return h},yP:function(){return p}});var n=r(66759),i=r(60610),a=r(43257);class s extends a.G{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class o extends a.G{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class l extends a.G{constructor({data:e,params:t,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,n.h)(t,{includeName:!0})})`,`Data:   ${e} (${r} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=r}}class u extends a.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class c extends a.G{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}.
Expected length: ${e}
Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class d extends a.G{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.d)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class f extends a.G{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch.
Expected length (params): ${e}
Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class p extends a.G{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI.
Make sure you are using the correct ABI and that the error exists on it.
You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class h extends a.G{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class m extends a.G{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI.
Cannot decode function result without knowing what the parameter types are.
Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class g extends a.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,n.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,n.t)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class v extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type.
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class y extends a.G{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type.
Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class b extends a.G{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class w extends a.G{constructor(e){super(`"${e}" is not a valid definition type.
Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}},55083:function(e,t,r){r.d(t,{f:function(){return i}});var n=r(43257);class i extends n.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},85819:function(e,t,r){r.d(t,{Bk:function(){return s},Yl:function(){return a},mm:function(){return i},pZ:function(){return o}});var n=r(43257);class i extends n.G{constructor({blockNumber:e,chain:t,contract:r}){super(`Chain "${t.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...e&&r.blockCreated&&r.blockCreated>e?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class a extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID:  ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class s extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class o extends n.G{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}},70538:function(e,t,r){r.d(t,{cg:function(){return v},uq:function(){return y},Lu:function(){return b},Dk:function(){return w},Mo:function(){return x},VQ:function(){return P}});var n=r(37080),i=r(33752),a=r(17204),s=r(66759),o=r(84812);function l({abiItem:e,args:t,includeFunctionName:r=!0,includeName:n=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${r?e.name:""}(${e.inputs.map((e,r)=>`${n&&e.name?`${e.name}: `:""}${"object"==typeof t[r]?(0,o.P)(t[r]):t[r]}`).join(", ")})`}var u=r(58579),c=r(13396),d=r(30868),f=r(12397),p=r(43257),h=r(77152),m=r(52520),g=r(11522);class v extends p.G{constructor(e,{account:t,docsPath:r,chain:i,data:a,gas:s,gasPrice:o,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:f,to:p,value:g,stateOverride:v}){let y=t?(0,n.T)(t):void 0,b=(0,m.xr)({from:y?.address,to:p,value:void 0!==g&&`${(0,c.d)(g)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==o&&`${(0,d.o)(o)} gwei`,maxFeePerGas:void 0!==l&&`${(0,d.o)(l)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,d.o)(u)} gwei`,nonce:f});v&&(b+=`
${(0,h.Bj)(v)}`),super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",b].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class y extends p.G{constructor(e,{abi:t,args:r,contractAddress:n,docsPath:i,functionName:a,sender:o}){let c=(0,u.mE)({abi:t,args:r,name:a}),d=c?l({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,f=c?(0,s.t)(c,{includeName:!0}):void 0,p=(0,m.xr)({address:n&&(0,g.C)(n),function:f,args:d&&"()"!==d&&`${[...Array(a?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:o});super(e.shortMessage||`An unknown error occurred while executing the contract function "${a}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],p&&"Contract Call:",p].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=r,this.cause=e,this.contractAddress=n,this.functionName=a,this.sender=o}}class b extends p.G{constructor({abi:e,data:t,functionName:r,message:n}){let o,u,c,d,p;if(t&&"0x"!==t)try{let{abiItem:r,errorName:n,args:o}=p=(0,a.p)({abi:e,data:t});if("Error"===n)c=o[0];else if("Panic"===n){let[e]=o;c=i.$[e]}else{let e=r?(0,s.t)(r,{includeName:!0}):void 0,t=r&&o?l({abiItem:r,args:o,includeFunctionName:!1,includeName:!1}):void 0;u=[e?`Error: ${e}`:"",t&&"()"!==t?`       ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){o=e}else n&&(c=n);o instanceof f.yP&&(d=o.signature,u=[`Unable to decode signature "${d}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${d}.`]),super(c&&"execution reverted"!==c||d?[`The contract function "${r}" reverted with the following ${d?"signature":"reason"}:`,c||d].join("\n"):`The contract function "${r}" reverted.`,{cause:o,metaMessages:u,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=p,this.reason=c,this.signature=d}}class w extends p.G{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",`  - The contract does not have the function "${e}",`,"  - The parameters passed to the contract function may be invalid, or","  - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class x extends p.G{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class P extends p.G{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},61064:function(e,t,r){r.d(t,{C_:function(){return d},G$:function(){return o},Hh:function(){return s},M_:function(){return a},WF:function(){return f},ZI:function(){return l},cj:function(){return g},cs:function(){return m},dR:function(){return p},pZ:function(){return h},se:function(){return c},vU:function(){return u}});var n=r(30868),i=r(43257);class a extends i.G{constructor({cause:e,message:t}={}){let r=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class d extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class h extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class m extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:r}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${(0,n.o)(r)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(m,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},77152:function(e,t,r){r.d(t,{Bj:function(){return o},Nc:function(){return i},Z8:function(){return a}});var n=r(43257);class i extends n.G{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class a extends n.G{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function s(e){return e.reduce((e,{slot:t,value:r})=>`${e}        ${t}: ${r}
`,"")}function o(e){return e.reduce((e,{address:t,...r})=>{let n=`${e}    ${t}:
`;return r.nonce&&(n+=`      nonce: ${r.nonce}
`),r.balance&&(n+=`      balance: ${r.balance}
`),r.code&&(n+=`      code: ${r.code}
`),r.state&&(n+="      state:\n"+s(r.state)),r.stateDiff&&(n+="      stateDiff:\n"+s(r.stateDiff)),n},"  State Override:\n").slice(0,-1)}},52520:function(e,t,r){r.d(t,{Bh:function(){return c},Yb:function(){return d},j3:function(){return l},mc:function(){return f},mk:function(){return u},xY:function(){return o},xr:function(){return s}});var n=r(13396),i=r(30868),a=r(43257);function s(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),r=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(r+1)}  ${t}`).join("\n")}class o extends a.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class l extends a.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",s(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends a.G{constructor(e,{account:t,docsPath:r,chain:a,data:o,gas:l,gasPrice:u,maxFeePerGas:c,maxPriorityFeePerGas:d,nonce:f,to:p,value:h}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",s({chain:a&&`${a?.name} (id: ${a?.id})`,from:t?.address,to:p,value:void 0!==h&&`${(0,n.d)(h)} ${a?.nativeCurrency?.symbol||"ETH"}`,data:o,gas:l,gasPrice:void 0!==u&&`${(0,i.o)(u)} gwei`,maxFeePerGas:void 0!==c&&`${(0,i.o)(c)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${(0,i.o)(d)} gwei`,nonce:f})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class c extends a.G{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:n,index:i}){let a="Transaction";r&&void 0!==i&&(a=`Transaction at block time "${r}" at index "${i}"`),e&&void 0!==i&&(a=`Transaction at block hash "${e}" at index "${i}"`),t&&void 0!==i&&(a=`Transaction at block number "${t}" at index "${i}"`),n&&(a=`Transaction with hash "${n}"`),super(`${a} could not be found.`,{name:"TransactionNotFoundError"})}}class d extends a.G{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class f extends a.G{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}},3292:function(e,t,r){r.d(t,{r:function(){return m}});var n=r(12397),i=r(43179),a=r(91005),s=r(60610),o=r(4008),l=r(53914),u=r(72600),c=r(78327),d=r(64937);function f(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.ly)(r,t)}var p=r(79358),h=r(68315);function m(e,t){let r="string"==typeof t?(0,p.nr)(t):t,m=(0,a.q)(r);if(0===(0,s.d)(r)&&e.length>0)throw new n.wb;if((0,s.d)(t)&&32>(0,s.d)(t))throw new n.xB({data:"string"==typeof t?t:(0,d.ci)(t),params:e,size:(0,s.d)(t)});let v=0,y=[];for(let t=0;t<e.length;++t){let r=e[t];m.setPosition(v);let[a,s]=function e(t,r,{staticPosition:a}){let s=(0,h.S)(r.type);if(s){let[n,i]=s;return function(t,r,{length:n,staticPosition:i}){if(!n){let n=i+f(t.readBytes(32)),a=n+32;t.setPosition(n);let s=f(t.readBytes(32)),o=g(r),l=0,u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:l));let[i,s]=e(t,r,{staticPosition:a});l+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(g(r)){let a=i+f(t.readBytes(32)),s=[];for(let i=0;i<n;++i){t.setPosition(a+32*i);let[n]=e(t,r,{staticPosition:a});s.push(n)}return t.setPosition(i+32),[s,32]}let a=0,s=[];for(let o=0;o<n;++o){let[n,o]=e(t,r,{staticPosition:i+a});a+=o,s.push(n)}return[s,a]}(t,{...r,type:i},{length:n,staticPosition:a})}if("tuple"===r.type)return function(t,r,{staticPosition:n}){let i=0===r.components.length||r.components.some(({name:e})=>!e),a=i?[]:{},s=0;if(g(r)){let o=n+f(t.readBytes(32));for(let n=0;n<r.components.length;++n){let l=r.components[n];t.setPosition(o+s);let[u,c]=e(t,l,{staticPosition:o});s+=c,a[i?n:l?.name]=u}return t.setPosition(n+32),[a,32]}for(let o=0;o<r.components.length;++o){let l=r.components[o],[u,c]=e(t,l,{staticPosition:n});a[i?o:l?.name]=u,s+=c}return[a,s]}(t,r,{staticPosition:a});if("address"===r.type)return function(e){let t=e.readBytes(32);return[(0,i.x)((0,d.ci)((0,o.T4)(t,-20))),32]}(t);if("bool"===r.type)return[function(e,t={}){let r=e;if(void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r)),r.length>1||r[0]>1)throw new u.yr(r);return!!r[0]}(t.readBytes(32),{size:32}),32];if(r.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[n,i]=t.type.split("bytes");if(!i){let t=f(e.readBytes(32));e.setPosition(r+t);let n=f(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];let i=e.readBytes(n);return e.setPosition(r+32),[(0,d.ci)(i),32]}return[(0,d.ci)(e.readBytes(Number.parseInt(i),32)),32]}(t,r,{staticPosition:a});if(r.type.startsWith("uint")||r.type.startsWith("int"))return function(e,t){let r=t.type.startsWith("int"),n=Number.parseInt(t.type.split("int")[1]||"256"),i=e.readBytes(32);return[n>48?function(e,t={}){void 0!==t.size&&(0,c.Yf)(e,{size:t.size});let r=(0,d.ci)(e,t);return(0,c.y_)(r,t)}(i,{signed:r}):f(i,{signed:r}),32]}(t,r);if("string"===r.type)return function(e,{staticPosition:t}){let r=f(e.readBytes(32));e.setPosition(t+r);let n=f(e.readBytes(32));if(0===n)return e.setPosition(t+32),["",32];let i=e.readBytes(n,32),a=function(e,t={}){let r=e;return void 0!==t.size&&((0,c.Yf)(r,{size:t.size}),r=(0,l.f)(r,{dir:"right"})),new TextDecoder().decode(r)}((0,l.f)(i));return e.setPosition(t+32),[a,32]}(t,{staticPosition:a});throw new n.CI(r.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(m,r,{staticPosition:0});v+=s,y.push(a)}return y}function g(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(g);let r=(0,h.S)(e.type);return!!(r&&g({...e,type:r[1]}))}},17204:function(e,t,r){r.d(t,{p:function(){return u}});var n=r(33752),i=r(12397),a=r(4008),s=r(81502),o=r(3292),l=r(66759);function u(e){let{abi:t,data:r}=e,u=(0,a.tP)(r,0,4);if("0x"===u)throw new i.wb;let c=[...t||[],n.Up,n.hZ].find(e=>"error"===e.type&&u===(0,s.C)((0,l.t)(e)));if(!c)throw new i.yP(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,o.r)(c.inputs,(0,a.tP)(r,4)):void 0,errorName:c.name}}},75204:function(e,t,r){r.d(t,{k:function(){return o}});var n=r(12397),i=r(3292),a=r(58579);let s="/docs/contract/decodeFunctionResult";function o(e){let{abi:t,args:r,functionName:o,data:l}=e,u=t[0];if(o){let e=(0,a.mE)({abi:t,args:r,name:o});if(!e)throw new n.xL(o,{docsPath:s});u=e}if("function"!==u.type)throw new n.xL(void 0,{docsPath:s});if(!u.outputs)throw new n.MX(u.name,{docsPath:s});let c=(0,i.r)(u.outputs,l);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},68315:function(e,t,r){r.d(t,{E:function(){return f},S:function(){return h}});var n=r(12397),i=r(52240),a=r(43257),s=r(82793),o=r(64105),l=r(43872),u=r(60610),c=r(4008),d=r(64937);function f(e,t){if(e.length!==t.length)throw new n.fs({expectedLength:e.length,givenLength:t.length});let r=p(function({params:e,values:t}){let r=[];for(let f=0;f<e.length;f++)r.push(function e({param:t,value:r}){let f=h(t.type);if(f){let[i,a]=f;return function(t,{length:r,param:i}){let a=null===r;if(!Array.isArray(t))throw new n.hn(t);if(!a&&t.length!==r)throw new n.gr({expectedLength:r,givenLength:t.length,type:`${i.type}[${r}]`});let s=!1,l=[];for(let r=0;r<t.length;r++){let n=e({param:i,value:t[r]});n.dynamic&&(s=!0),l.push(n)}if(a||s){let e=p(l);if(a){let t=(0,d.eC)(l.length,{size:32});return{dynamic:!0,encoded:l.length>0?(0,o.zo)([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,o.zo)(l.map(({encoded:e})=>e))}}(r,{length:i,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:r}){let n=!1,i=[];for(let a=0;a<r.components.length;a++){let s=r.components[a],o=Array.isArray(t)?a:s.name,l=e({param:s,value:t[o]});i.push(l),l.dynamic&&(n=!0)}return{dynamic:n,encoded:n?p(i):(0,o.zo)(i.map(({encoded:e})=>e))}}(r,{param:t});if("address"===t.type)return function(e){if(!(0,s.U)(e))throw new i.b({address:e});return{dynamic:!1,encoded:(0,l.gc)(e.toLowerCase())}}(r);if("bool"===t.type)return function(e){if("boolean"!=typeof e)throw new a.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,l.gc)((0,d.C4)(e))}}(r);if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,{signed:t}){return{dynamic:!1,encoded:(0,d.eC)(e,{size:32,signed:t})}}(r,{signed:t.type.startsWith("int")});if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,r]=t.type.split("bytes"),i=(0,u.d)(e);if(!r){let t=e;return i%32!=0&&(t=(0,l.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,o.zo)([(0,l.gc)((0,d.eC)(i,{size:32})),t])}}if(i!==Number.parseInt(r))throw new n.M4({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:(0,l.gc)(e,{dir:"right"})}}(r,{param:t});if("string"===t.type)return function(e){let t=(0,d.$G)(e),r=Math.ceil((0,u.d)(t)/32),n=[];for(let e=0;e<r;e++)n.push((0,l.gc)((0,c.tP)(t,32*e,(e+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,o.zo)([(0,l.gc)((0,d.eC)((0,u.d)(t),{size:32})),...n])}}(r);throw new n.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[f],value:t[f]}));return r}({params:e,values:t}));return 0===r.length?"0x":r}function p(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=(0,u.d)(i)}let r=[],n=[],i=0;for(let a=0;a<e.length;a++){let{dynamic:s,encoded:o}=e[a];s?(r.push((0,d.eC)(t+i,{size:32})),n.push(o),i+=(0,u.d)(o)):r.push(o)}return(0,o.zo)([...r,...n])}function h(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},16216:function(e,t,r){r.d(t,{R:function(){return c}});var n=r(64105),i=r(68315),a=r(12397),s=r(81502),o=r(66759),l=r(58579);let u="/docs/contract/encodeFunctionData";function c(e){let{args:t}=e,{abi:r,functionName:c}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,l.mE)({abi:t,args:r,name:n});if(!e)throw new a.xL(n,{docsPath:u});i=e}if("function"!==i.type)throw new a.xL(void 0,{docsPath:u});return{abi:[i],functionName:(0,s.C)((0,o.t)(i))}}(e),d=r[0],f="inputs"in d&&d.inputs?(0,i.E)(d.inputs,t??[]):void 0;return(0,n.SM)([c,f??"0x"])}},66759:function(e,t,r){r.d(t,{h:function(){return a},t:function(){return i}});var n=r(12397);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new n.wM(e.type);return`${e.name}(${a(e.inputs,{includeName:t})})`}function a(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${a(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},58579:function(e,t,r){r.d(t,{mE:function(){return l}});var n=r(12397),i=r(3504),a=r(82793);let s=r(46995).r;var o=r(81502);function l(e){let t;let{abi:r,args:l=[],name:u}=e,c=(0,i.v)(u,{strict:!1}),d=r.filter(e=>c?"function"===e.type?(0,o.C)(e)===u:"event"===e.type&&s(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!l||0===l.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===l.length&&l.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,i=r.type;switch(i){case"address":return(0,a.U)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let i in t){let s=t[i],o=r[i];if("tuple"===s.type&&"tuple"===o.type&&"components"in s&&"components"in o)return e(s.components,o.components,n[i]);let l=[s.type,o.type];if(l.includes("address")&&l.includes("bytes20")||(l.includes("address")&&l.includes("string")||l.includes("address")&&l.includes("bytes"))&&(0,a.U)(n[i],{strict:!1}))return l}}(e.inputs,t.inputs,l);if(r)throw new n.S4({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}return t||d[0]}}},49952:function(e,t,r){r.d(t,{L:function(){return i}});var n=r(85819);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.mm({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.mm({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},91005:function(e,t,r){r.d(t,{q:function(){return l}});var n=r(43257);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class a extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class s extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}let o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new s({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new a({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new i({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let r=t??this.position;return this.assertPosition(r+e-1),this.bytes.subarray(r,r+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let r=this.inspectBytes(e);return this.position+=t??e,r},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function l(e,{recursiveReadLimit:t=8192}={}){let r=Object.create(o);return r.bytes=e,r.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),r.positionReadCount=new Map,r.recursiveReadLimit=t,r}},64105:function(e,t,r){function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}r.d(t,{SM:function(){return i},zo:function(){return n}})},4008:function(e,t,r){r.d(t,{T4:function(){return u},tP:function(){return s}});var n=r(89153),i=r(3504),a=r(60610);function s(e,t,r,{strict:n}={}){return(0,i.v)(e,{strict:!1})?function(e,t,r,{strict:n}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&l(i,t,r),i}(e,t,r,{strict:n}):u(e,t,r,{strict:n})}function o(e,t){if("number"==typeof t&&t>0&&t>(0,a.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,a.d)(e)})}function l(e,t,r){if("number"==typeof t&&"number"==typeof r&&(0,a.d)(e)!==r-t)throw new n.mV({offset:r,position:"end",size:(0,a.d)(e)})}function u(e,t,r,{strict:n}={}){o(e,t);let i=e.slice(t,r);return n&&l(i,t,r),i}},89410:function(e,t,r){r.d(t,{S:function(){return o}});var n=r(12397),i=r(43257),a=r(70538),s=r(52671);function o(e,{abi:t,address:r,args:o,docsPath:l,functionName:u,sender:c}){let{code:d,data:f,message:p,shortMessage:h}=e instanceof a.VQ?e:e instanceof i.G?e.walk(e=>"data"in e)||e.walk():{},m=e instanceof n.wb?new a.Dk({functionName:u}):[3,s.XS.code].includes(d)&&(f||p||h)?new a.Lu({abi:t,data:"object"==typeof f?f.data:f,functionName:u,message:h??p}):e;return new a.uq(m,{abi:t,args:o,contractAddress:r,docsPath:l,functionName:u,sender:c})}},24255:function(e,t,r){r.d(t,{k:function(){return a}});var n=r(43257),i=r(61064);function a(e,t){let r=(e.details||"").toLowerCase(),a=e instanceof n.G?e.walk(e=>e?.code===i.M_.code):e;return a instanceof n.G?new i.M_({cause:e,message:a.details}):i.M_.nodeMessage.test(r)?new i.M_({cause:e,message:e.details}):i.Hh.nodeMessage.test(r)?new i.Hh({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.G$.nodeMessage.test(r)?new i.G$({cause:e,maxFeePerGas:t?.maxFeePerGas}):i.ZI.nodeMessage.test(r)?new i.ZI({cause:e,nonce:t?.nonce}):i.vU.nodeMessage.test(r)?new i.vU({cause:e,nonce:t?.nonce}):i.se.nodeMessage.test(r)?new i.se({cause:e,nonce:t?.nonce}):i.C_.nodeMessage.test(r)?new i.C_({cause:e}):i.WF.nodeMessage.test(r)?new i.WF({cause:e,gas:t?.gas}):i.dR.nodeMessage.test(r)?new i.dR({cause:e,gas:t?.gas}):i.pZ.nodeMessage.test(r)?new i.pZ({cause:e}):i.cs.nodeMessage.test(r)?new i.cs({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new i.cj({cause:e})}},64340:function(e,t,r){r.d(t,{K:function(){return n}});function n(e,{format:t}){if(!t)return{};let r={};return!function t(n){for(let i of Object.keys(n))i in e&&(r[i]=e[i]),n[i]&&"object"==typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(t(e||{})),r}},75411:function(e,t,r){r.d(t,{Tr:function(){return a},c8:function(){return i}});var n=r(78327);let i={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function a(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?i[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},66039:function(e,t,r){r.d(t,{tG:function(){return a}});var n=r(64937);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function a(e){let t={};return void 0!==e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({address:e.contractAddress,r:e.r,s:e.s,chainId:(0,n.eC)(e.chainId),nonce:(0,n.eC)(e.nonce),...void 0!==e.yParity?{yParity:(0,n.eC)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,n.eC)(e.v)}:{}}))),void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>(0,n.ci)(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=(0,n.eC)(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=(0,n.eC)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,n.eC)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=(0,n.eC)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,n.eC)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=(0,n.eC)(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=i[e.type]),void 0!==e.value&&(t.value=(0,n.eC)(e.value)),t}},24737:function(e,t,r){r.d(t,{s:function(){return n}});function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}},81502:function(e,t,r){r.d(t,{C:function(){return a}});var n=r(4008),i=r(46995);let a=e=>(0,n.tP)((0,i.r)(e),0,4)},46995:function(e,t,r){r.d(t,{r:function(){return d}});var n=r(79358),i=r(55535);let a=e=>(0,i.w)((0,n.O0)(e));var s=r(18767);let o=/^tuple(?<array>(\[(\d*)\])*)$/;function l(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(o.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=", ");let i=(0,s.Zw)(o,t.type);return r+=`)${i?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r} indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}var u=r(43257);let c=e=>(function(e){let t=!0,r="",n=0,i="",a=!1;for(let s=0;s<e.length;s++){let o=e[s];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function",""].includes(i))i="";else if(i+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!a)throw new u.G("Unable to normalize signature.");return i})("string"==typeof e?e:"function"===e.type?`function ${e.name}(${l(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs.length?` returns (${l(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${l(e.inputs)})`:"error"===e.type?`error ${e.name}(${l(e.inputs)})`:"constructor"===e.type?`constructor(${l(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback()":"receive() external payable");function d(e){return a(c(e))}},2777:function(e,t,r){r.d(t,{mF:function(){return u}});var n=r(52240),i=r(89153),a=r(77152),s=r(82793),o=r(64937);function l(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.W_({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.W_({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function u(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,s.U)(r,{strict:!1}))throw new n.b({address:r});if(t[r])throw new a.Nc({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:s}=e,u={};if(void 0!==s&&(u.code=s),void 0!==t&&(u.balance=(0,o.eC)(t)),void 0!==r&&(u.nonce=(0,o.eC)(r)),void 0!==n&&(u.state=l(n)),void 0!==i){if(u.state)throw new a.Z8;u.stateDiff=l(i)}return u}(i)}return t}},24879:function(e,t,r){r.d(t,{F:function(){return u}});var n=r(37080);let i=2n**256n-1n;var a=r(52240),s=r(61064),o=r(52520),l=r(82793);function u(e){let{account:t,gasPrice:r,maxFeePerGas:u,maxPriorityFeePerGas:c,to:d}=e,f=t?(0,n.T)(t):void 0;if(f&&!(0,l.U)(f.address))throw new a.b({address:f.address});if(d&&!(0,l.U)(d))throw new a.b({address:d});if(void 0!==r&&(void 0!==u||void 0!==c))throw new o.xY;if(u&&u>i)throw new s.Hh({maxFeePerGas:u});if(c&&u&&c>u)throw new s.cs({maxFeePerGas:u,maxPriorityFeePerGas:c})}},13396:function(e,t,r){r.d(t,{d:function(){return a}});var n=r(92461),i=r(45744);function a(e,t="wei"){return(0,i.b)(e,n.ez[t])}},30868:function(e,t,r){r.d(t,{o:function(){return a}});var n=r(92461),i=r(45744);function a(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},45744:function(e,t,r){r.d(t,{b:function(){return n}});function n(e,t){let r=e.toString(),n=r.startsWith("-");n&&(r=r.slice(1));let[i,a]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return a=a.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${a?`.${a}`:""}`}},70131:function(e,t,r){r.d(t,{f:function(){return s}});var n=r(92461),i=r(43257);class a extends i.G{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function s(e,t="wei"){return function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new a({value:e});let[r,n="0"]=e.split("."),i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){let[e,i,a]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],s=Math.round(Number(`${i}.${a}`));(n=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`).length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}(e,n.ez[t])}},96134:function(e,t,r){r.d(t,{m:function(){return u}});var n=r(84092),i=r(99649),a=r(70793),s=r(50959),o=r(7231);let l=e=>"object"==typeof e&&!Array.isArray(e);function u(e={}){let t=(0,a.Z)(e);return function(e,t,r=t,i=n.v){let a=(0,s.useRef)([]),u=(0,o.useSyncExternalStoreWithSelector)(e,t,r,e=>e,(e,t)=>{if(l(e)&&l(t)&&a.current.length){for(let r of a.current)if(!i(e[r],t[r]))return!1;return!0}return i(e,t)});return(0,s.useMemo)(()=>{if(l(u)){let e={...u},t={};for(let[r,n]of Object.entries(e))t={...t,[r]:{configurable:!1,enumerable:!0,get:()=>(a.current.includes(r)||a.current.push(r),n)}};return Object.defineProperties(e,t),e}return u},[u])}(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,i.D)(e),r,{equalityFn(e,t){let{connector:r,...i}=e,{connector:a,...s}=t;return(0,n.v)(i,s)&&r?.id===a?.id&&r?.uid===a?.uid}})})(t,{onChange:e}),()=>(0,i.D)(t))}},98096:function(e,t,r){function n(e){return e.state.chainId}r.d(t,{x:function(){return s}});var i=r(50959),a=r(70793);function s(e={}){let t=(0,a.Z)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(e=>e.chainId,r)})(t,{onChange:e}),()=>n(t),()=>n(t))}},70793:function(e,t,r){r.d(t,{Z:function(){return u}});var n=r(50959),i=r(95231),a=r(35067);let s=()=>"wagmi@2.12.24";class o extends a.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return s()}}class l extends o{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function u(e={}){let t=e.config??(0,n.useContext)(i.V);if(!t)throw new l;return t}},92810:function(e,t,r){r.d(t,{$:function(){return d}});var n=r(58231),i=r(85174);async function a(e,t){let r;if((r="function"==typeof t.connector?e._internal.connectors.setup(t.connector):t.connector).uid===e.state.current)throw new i.wi;try{e.setState(e=>({...e,status:"connecting"})),r.emitter.emit("message",{type:"connecting"});let n=await r.connect({chainId:t.chainId}),i=n.accounts;return r.emitter.off("connect",e._internal.events.connect),r.emitter.on("change",e._internal.events.change),r.emitter.on("disconnect",e._internal.events.disconnect),await e.storage?.setItem("recentConnectorId",r.id),e.setState(e=>({...e,connections:new Map(e.connections).set(r.uid,{accounts:i,chainId:n.chainId,connector:r}),current:r.uid,status:"connected"})),{accounts:i,chainId:n.chainId}}catch(t){throw e.setState(e=>({...e,status:e.current?"connected":"disconnected"})),t}}var s=r(50959),o=r(70793),l=r(84092);let u=[];function c(e){let t=e.connectors;return(0,l.v)(u,t)?u:(u=t,t)}function d(e={}){let{mutation:t}=e,r=(0,o.Z)(e),{mutate:i,mutateAsync:l,...u}=(0,n.D)({...t,mutationFn:e=>a(r,e),mutationKey:["connect"]});return(0,s.useEffect)(()=>r.subscribe(({status:e})=>e,(e,t)=>{"connected"===t&&"disconnected"===e&&u.reset()}),[r,u.reset]),{...u,connect:i,connectAsync:l,connectors:function(e={}){let t=(0,o.Z)(e);return(0,s.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e._internal.connectors.subscribe((e,t)=>{r(Object.values(e),t)})})(t,{onChange:e}),()=>c(t),()=>c(t))}({config:r})}}},33987:function(e,t,r){r.d(t,{q:function(){return c}});var n=r(58231);async function i(e,t={}){let r;if(t.connector)r=t.connector;else{let{connections:t,current:n}=e.state,i=t.get(n);r=i?.connector}let n=e.state.connections;r&&(await r.disconnect(),r.emitter.off("change",e._internal.events.change),r.emitter.off("disconnect",e._internal.events.disconnect),r.emitter.on("connect",e._internal.events.connect),n.delete(r.uid)),e.setState(e=>{if(0===n.size)return{...e,connections:new Map,current:null,status:"disconnected"};let t=n.values().next().value;return{...e,connections:new Map(n),current:t.connector.uid}});{let t=e.state.current;if(!t)return;let r=e.state.connections.get(t)?.connector;if(!r)return;await e.storage?.setItem("recentConnectorId",r.id)}}var a=r(70793),s=r(84092);let o=[];function l(e){let t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,s.v)(o,t)?o:(o=t,t)}var u=r(50959);function c(e={}){let{mutation:t}=e,r=(0,a.Z)(e),{mutate:o,mutateAsync:c,...d}=(0,n.D)({...t,mutationFn:e=>i(r,e),mutationKey:["disconnect"]});return{...d,connectors:(function(e={}){let t=(0,a.Z)(e);return(0,u.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>l(e),r,{equalityFn:s.v})})(t,{onChange:e}),()=>l(t),()=>l(t))})({config:r}).map(e=>e.connector),disconnect:o,disconnectAsync:c}}},82482:function(e,t,r){r.d(t,{u:function(){return l}});var n=r(82997),i=r(66004),a=r(15243),s=r(98096),o=r(70793);function l(e={}){let{abi:t,address:r,functionName:l,query:u={}}=e,c=e.code,d=(0,o.Z)(e),f=(0,s.x)({config:d}),p=function(e,t={}){return{async queryFn({queryKey:r}){let i=t.abi;if(!i)throw Error("abi is required");let{functionName:a,scopeKey:s,...o}=r[1],l=(()=>{let e=r[1];if(e.address)return{address:e.address};if(e.code)return{code:e.code};throw Error("address or code is required")})();if(!a)throw Error("functionName is required");return(0,n.L)(e,{abi:i,functionName:a,args:o.args,...l,...o})},queryKey:function(e={}){let{abi:t,...r}=e;return["readContract",(0,i.OP)(r)]}(t)}}(d,{...e,chainId:e.chainId??f}),h=!!((r||c)&&t&&l&&(u.enabled??!0));return(0,a.aM)({...u,...p,enabled:h,structuralSharing:u.structuralSharing??i.if})}},58019:function(e,t,r){r.d(t,{N:function(){return k}});var n=r(70538),i=r(94309),a=r(12397),s=r(43257),o=r(75204),l=r(16216),u=r(49952),c=r(89410),d=r(24737),f=r(70695);async function p(e,t){let{allowFailure:r=!0,batchSize:p,blockNumber:h,blockTag:m,multicallAddress:g,stateOverride:v}=t,y=t.contracts,b=p??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),w=g;if(!w){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");w=(0,u.L)({blockNumber:h,chain:e.chain,contract:"multicall3"})}let x=[[]],P=0,k=0;for(let e=0;e<y.length;e++){let{abi:t,address:n,args:i,functionName:a}=y[e];try{let e=(0,l.R)({abi:t,args:i,functionName:a});k+=(e.length-2)/2,b>0&&k>b&&x[P].length>0&&(P++,k=(e.length-2)/2,x[P]=[]),x[P]=[...x[P],{allowFailure:!0,callData:e,target:n}]}catch(s){let e=(0,c.S)(s,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:a});if(!r)throw e;x[P]=[...x[P],{allowFailure:!0,callData:"0x",target:n}]}}let E=await Promise.allSettled(x.map(t=>(0,d.s)(e,f.L,"readContract")({abi:i.F8,address:w,args:[t],blockNumber:h,blockTag:m,functionName:"aggregate3",stateOverride:v}))),T=[];for(let e=0;e<E.length;e++){let t=E[e];if("rejected"===t.status){if(!r)throw t.reason;for(let r=0;r<x[e].length;r++)T.push({status:"failure",error:t.reason,result:void 0});continue}let i=t.value;for(let t=0;t<i.length;t++){let{returnData:s,success:l}=i[t],{callData:u}=x[e][t],{abi:d,address:f,functionName:p,args:h}=y[T.length];try{if("0x"===u)throw new a.wb;if(!l)throw new n.VQ({data:s});let e=(0,o.k)({abi:d,args:h,data:s,functionName:p});T.push(r?{result:e,status:"success"}:e)}catch(t){let e=(0,c.S)(t,{abi:d,address:f,args:h,docsPath:"/docs/contract/multicall",functionName:p});if(!r)throw e;T.push({error:e,result:void 0,status:"failure"})}}}if(T.length!==y.length)throw new s.G("multicall results mismatch");return T}var h=r(61880);async function m(e,t){let{allowFailure:r=!0,chainId:n,contracts:i,...a}=t,s=e.getClient({chainId:n});return(0,h.s)(s,p,"multicall")({allowFailure:r,contracts:i,...a})}var g=r(82997);async function v(e,t){let{allowFailure:r=!0,blockNumber:i,blockTag:a,...s}=t,o=t.contracts;try{let t={};for(let[r,n]of o.entries()){let i=n.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:n,index:r})}let n=(await Promise.all(Object.entries(t).map(([t,n])=>m(e,{...s,allowFailure:r,blockNumber:i,blockTag:a,chainId:Number.parseInt(t),contracts:n.map(({contract:e})=>e)})))).flat(),l=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return n.reduce((e,t,r)=>(e&&(e[l[r]]=t),e),[])}catch(s){if(s instanceof n.uq)throw s;let t=()=>o.map(t=>(0,g.L)(e,{...t,blockNumber:i,blockTag:a}));if(r)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}var y=r(66004),b=r(50959),w=r(15243),x=r(98096),P=r(70793);function k(e={}){let{contracts:t=[],query:r={}}=e,n=(0,P.Z)(e),i=(0,x.x)({config:n}),a=function(e,t={}){return{async queryFn({queryKey:r}){let n=[],i=r[1].contracts.length;for(let e=0;e<i;e++){let i=r[1].contracts[e],a=(t.contracts?.[e]).abi;n.push({...i,abi:a})}let{scopeKey:a,...s}=r[1];return v(e,{...s,contracts:n})},queryKey:function(e={}){let t=[];for(let r of e.contracts??[]){let{abi:n,...i}=r;t.push({...i,chainId:i.chainId??e.chainId})}return["readContracts",(0,y.OP)({...e,contracts:t})]}(t)}}(n,{...e,chainId:i}),s=(0,b.useMemo)(()=>{let e=!1;for(let r of t){let{abi:t,address:n,functionName:i}=r;if(!t||!n||!i){e=!1;break}e=!0}return!!(e&&(r.enabled??!0))},[t,r.enabled]);return(0,w.aM)({...a,...r,enabled:s,structuralSharing:r.structuralSharing??y.if})}},37348:function(e,t,r){r.d(t,{o:function(){return f}});var n=r(58231),i=r(85174),a=r(48054);async function s(e,t){let{addEthereumChainParameter:r,chainId:n}=t,s=e.state.connections.get(t.connector?.uid??e.state.current);if(s){let e=s.connector;if(!e.switchChain)throw new a.O({connector:e});return await e.switchChain({addEthereumChainParameter:r,chainId:n})}let o=e.chains.find(e=>e.id===n);if(!o)throw new i.X4;return e.setState(e=>({...e,chainId:n})),o}var o=r(84092);let l=[];function u(e){let t=e.chains;return(0,o.v)(l,t)?l:(l=t,t)}var c=r(50959),d=r(70793);function f(e={}){let{mutation:t}=e,r=(0,d.Z)(e),{mutate:i,mutateAsync:a,...o}=(0,n.D)({...t,mutationFn:e=>s(r,e),mutationKey:["switchChain"]});return{...o,chains:function(e={}){let t=(0,d.Z)(e);return(0,c.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e._internal.chains.subscribe((e,t)=>{r(e,t)})})(t,{onChange:e}),()=>u(t),()=>u(t))}({config:r}),switchChain:i,switchChainAsync:a}}},57465:function(e,t,r){r.d(t,{A:function(){return N}});var n=r(78327),i=r(55083),a=r(52520),s=r(24737);let o=new Map,l=new Map,u=0;function c(e,t,r){let n=++u,i=()=>o.get(e)||[],a=()=>{let t=i();o.set(e,t.filter(e=>e.id!==n))},s=()=>{let t=l.get(e);1===i().length&&t&&t(),a()},c=i();if(o.set(e,[...c,{id:n,fns:t}]),c&&c.length>0)return s;let d={};for(let e in t)d[e]=(...t)=>{let r=i();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let f=r(d);return"function"==typeof f&&l.set(e,f),s}var d=r(20216),f=r(84812),p=r(49027),h=r(64937),m=r(75411);async function g(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:s}){let o=n||"latest",l=void 0!==r?(0,h.eC)(r):void 0,u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]},{dedupe:!0}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,h.eC)(s)]},{dedupe:!0}):(l||o)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[l||o,(0,h.eC)(s)]},{dedupe:!!l})),!u)throw new a.Bh({blockHash:t,blockNumber:r,blockTag:o,hash:i,index:s});return(e.chain?.formatters?.transaction?.format||m.Tr)(u)}let v={"0x0":"reverted","0x1":"success"};async function y(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new a.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(function(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}})(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ly)(e.transactionIndex):null,status:e.status?v[e.status]:null,type:e.type?m.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t})(r)}var b=r(19398);let w=new Map,x=new Map;async function P(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let n=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,w),n=t(e,x);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0&&new Date().getTime()-i.created.getTime()<r)return i.data;let a=n.promise.get();a||(a=e(),n.promise.set(a));try{let e=await a;return n.response.set({created:new Date,data:e}),e}finally{n.promise.clear()}}let k=e=>`blockNumber.${e}`;async function E(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await P(()=>e.request({method:"eth_blockNumber"}),{cacheKey:k(e.uid),cacheTime:t}))}function T(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:i,onError:a,poll:o,pollingInterval:l=e.pollingInterval}){let u;return(void 0!==o?o:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?c((0,f.P)(["watchBlockNumber",e.uid,t,r,l]),{onBlockNumber:i,onError:a},n=>(function(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0,a=()=>i=!1;return(async()=>{let s;t&&(s=await e({unpoll:a}));let o=await r?.(s)??n;await (0,b.D)(o);let l=async()=>{i&&(await e({unpoll:a}),await (0,b.D)(n),l())};l()})(),a})(async()=>{try{let t=await (0,s.s)(e,E,"getBlockNumber")({cacheTime:0});if(u){if(t===u)return;if(t-u>1&&r)for(let e=u+1n;e<t;e++)n.onBlockNumber(e,u),u=e}(!u||t>u)&&(n.onBlockNumber(t,u),u=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:l})):c((0,f.P)(["watchBlockNumber",e.uid,t,r]),{onBlockNumber:i,onError:a},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let a=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:s}=await a.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.y_)(e.result?.number);t.onBlockNumber(i,u),u=i},onError(e){t.onError?.(e)}});i=s,r||i()}catch(e){a?.(e)}})(),()=>i()})}async function S(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:o=e.pollingInterval,retryCount:l=6,retryDelay:u=({count:e})=>200*~~(1<<e),timeout:h=18e4}){let m,v,b;let w=(0,f.P)(["waitForTransactionReceipt",e.uid,r]),x=!1;return new Promise((f,P)=>{h&&setTimeout(()=>P(new a.mc({hash:r})),h);let k=c(w,{onReplaced:n,resolve:f,reject:P},n=>{let c=(0,s.s)(e,T,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:o,async onBlockNumber(o){let f=e=>{c(),e(),k()},h=o;if(!x)try{if(b){if(t>1&&(!b.blockNumber||h-b.blockNumber+1n<t))return;f(()=>n.resolve(b));return}if(m||(x=!0,await (0,d.J)(async()=>{(m=await (0,s.s)(e,g,"getTransaction")({hash:r})).blockNumber&&(h=m.blockNumber)},{delay:u,retryCount:l}),x=!1),b=await (0,s.s)(e,y,"getTransactionReceipt")({hash:r}),t>1&&(!b.blockNumber||h-b.blockNumber+1n<t))return;f(()=>n.resolve(b))}catch(r){if(r instanceof a.Bh||r instanceof a.Yb){if(!m){x=!1;return}try{v=m,x=!0;let r=await (0,d.J)(()=>(0,s.s)(e,p.Q,"getBlock")({blockNumber:h,includeTransactions:!0}),{delay:u,retryCount:l,shouldRetry:({error:e})=>e instanceof i.f});x=!1;let a=r.transactions.find(({from:e,nonce:t})=>e===v.from&&t===v.nonce);if(!a||(b=await (0,s.s)(e,y,"getTransactionReceipt")({hash:a.hash}),t>1&&(!b.blockNumber||h-b.blockNumber+1n<t)))return;let o="replaced";a.to===v.to&&a.value===v.value?o="repriced":a.from===a.to&&0n===a.value&&(o="cancelled"),f(()=>{n.onReplaced?.({reason:o,replacedTransaction:v,transaction:a,transactionReceipt:b}),n.resolve(b)})}catch(e){f(()=>n.reject(e))}}else f(()=>n.reject(r))}}})})})}var C=r(14055),M=r(61880);async function _(e,t){let{chainId:r,timeout:i=0,...a}=t,s=e.getClient({chainId:r}),o=(0,M.s)(s,S,"waitForTransactionReceipt"),l=await o({...a,timeout:i});if("reverted"===l.status){let e=(0,M.s)(s,g,"getTransaction"),t=await e({hash:l.transactionHash}),r=(0,M.s)(s,C.R,"call"),i=await r({...t,gasPrice:"eip1559"!==t.type?t.gasPrice:void 0,maxFeePerGas:"eip1559"===t.type?t.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===t.type?t.maxPriorityFeePerGas:void 0});throw Error(i?.data?(0,n.rR)(`0x${i.data.substring(138)}`):"unknown reason")}return{...l,chainId:s.chain.id}}var A=r(66004),I=r(15243),L=r(98096),D=r(70793);function N(e={}){let{hash:t,query:r={}}=e,n=(0,D.Z)(e),i=(0,L.x)({config:n}),a=function(e,t={}){return{async queryFn({queryKey:r}){let{hash:n,...i}=r[1];if(!n)throw Error("hash is required");return _(e,{...i,onReplaced:t.onReplaced,hash:n})},queryKey:function(e={}){let{onReplaced:t,...r}=e;return["waitForTransactionReceipt",(0,A.OP)(r)]}(t)}}(n,{...e,chainId:e.chainId??i}),s=!!(t&&(r.enabled??!0));return(0,I.aM)({...r,...a,enabled:s})}},84679:function(e,t,r){r.d(t,{S:function(){return ev}});var n=r(58231),i=r(37080),a=r(43257);class s extends a.G{constructor({docsPath:e}={}){super("Could not find an Account to execute with this Action.\nPlease provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client.",{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}class o extends a.G{constructor({docsPath:e,metaMessages:t,type:r}){super(`Account type "${r}" is not supported.`,{docsPath:e,metaMessages:t,name:"AccountTypeNotSupportedError"})}}var l=r(16216),u=r(89410),c=r(24737),d=r(43179),f=r(55535),p=r(3504),h=r(78327),m=r(64937);async function g({hash:e,signature:t}){let n=(0,p.v)(e)?e:(0,m.NC)(e),{secp256k1:i}=await r.e(975).then(r.bind(r,82975)),a=(()=>{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:a}=t,s=v(Number(a??n));return new i.Signature((0,h.y_)(e),(0,h.y_)(r)).addRecoveryBit(s)}let e=(0,p.v)(t)?t:(0,m.NC)(t),r=v((0,h.ly)(`0x${e.slice(130)}`));return i.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${a}`}function v(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function y({hash:e,signature:t}){return function(e){let t=(0,f.w)(`0x${e.substring(4)}`).substring(26);return(0,d.x)(`0x${t}`)}(await g({hash:e,signature:t}))}var b=r(64105),w=r(79358),x=r(91005);function P(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new a.G("Length is too large.")}async function k(e){let{authorization:t,signature:r}=e;return y({hash:function(e){let{chainId:t,contractAddress:r,nonce:n,to:i}=e,a=(0,f.w)((0,b.SM)(["0x05",function(e,t="hex"){let r=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),r=P(t);return{length:t<=55?1+t:1+r+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+r),1===r?n.pushUint8(t):2===r?n.pushUint16(t):3===r?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,w.nr)(e):e,r=P(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+r+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+r),1===r?e.pushUint8(t.length):2===r?e.pushUint16(t.length):3===r?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,x.q)(new Uint8Array(r.length));return(r.encode(n),"hex"===t)?(0,m.ci)(n.bytes):n.bytes}([t?(0,m.eC)(t):"0x",r,n?(0,m.eC)(n):"0x"])]));return"bytes"===i?(0,w.nr)(a):a}(t),signature:r??t})}var E=r(85819),T=r(61064),S=r(52520),C=r(24255),M=r(64340),_=r(66039),A=r(1911),I=r(24879);async function L(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,h.ly)(t)}var D=r(30868);class N extends a.G{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class O extends a.G{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class R extends a.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,D.o)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}var F=r(49027);async function j(e){return BigInt(await e.request({method:"eth_gasPrice"}))}async function K(e,t){let{block:r,chain:n=e.chain,request:i}=t||{};try{let t=n?.fees?.maxPriorityFeePerGas??n?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,c.s)(e,F.Q,"getBlock")({}),a=await t({block:n,client:e,request:i});if(null===a)throw Error();return a}if(void 0!==t)return t;let a=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,h.y_)(a)}catch{let[t,n]=await Promise.all([r?Promise.resolve(r):(0,c.s)(e,F.Q,"getBlock")({}),(0,c.s)(e,j,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new O;let i=n-t.baseFeePerGas;if(i<0n)return 0n;return i}}async function V(e,t){let{block:r,chain:n=e.chain,request:i,type:a="eip1559"}=t||{},s=await (async()=>"function"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:e,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new N;let o=10**(s.toString().split(".")[1]?.length??0),l=e=>e*BigInt(Math.ceil(s*o))/BigInt(o),u=r||await (0,c.s)(e,F.Q,"getBlock")({});if("function"==typeof n?.fees?.estimateFeesPerGas){let t=await n.fees.estimateFeesPerGas({block:r,client:e,multiply:l,request:i,type:a});if(null!==t)return t}if("eip1559"===a){if("bigint"!=typeof u.baseFeePerGas)throw new O;let t="bigint"==typeof i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await K(e,{block:u,chain:n,request:i}),r=l(u.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??l(await (0,c.s)(e,j,"getGasPrice")({}))}}var B=r(13396);class $ extends a.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:a,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:l,nonce:u,to:c,value:d}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,S.xr)({from:t?.address,to:c,value:void 0!==d&&`${(0,B.d)(d)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:a,gasPrice:void 0!==s&&`${(0,D.o)(s)} gwei`,maxFeePerGas:void 0!==o&&`${(0,D.o)(o)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,D.o)(l)} gwei`,nonce:u})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var z=r(2777);async function W(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=r?(0,m.eC)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,i||n]}))}async function U(e,t){let{account:r=e.account}=t,n=r?(0,i.T)(r):void 0;try{let{accessList:r,authorizationList:i,blobs:o,blobVersionedHashes:l,blockNumber:u,blockTag:c,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,value:b,stateOverride:w,...x}=await ee(e,{...t,parameters:n?.type==="local"?void 0:["blobVersionedHashes"]}),P=(u?(0,m.eC)(u):void 0)||c,E=(0,z.mF)(w),T=await (async()=>x.to?x.to:i&&i.length>0?await k({authorization:i[0]}).catch(()=>{throw new a.G("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,I.F)(t);let S=e.chain?.formatters?.transactionRequest?.format,C=(S||_.tG)({...(0,M.K)(x,{format:S}),from:n?.address,accessList:r,authorizationList:i,blobs:o,blobVersionedHashes:l,data:d,gas:f,gasPrice:p,maxFeePerBlobGas:h,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,to:T,value:b});function s(t){let{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??"latest",i]:r?[n,r]:[n]})}let A=BigInt(await s({block:P,request:C,rpcStateOverride:E}));if(i){let t=await W(e,{address:C.from}),r=await Promise.all(i.map(async e=>{let{contractAddress:r}=e,i=await s({block:P,request:{authorizationList:void 0,data:d,from:n?.address,to:r,value:(0,m.eC)(t)},rpcStateOverride:E}).catch(()=>100000n);return 2n*BigInt(i)}));A+=r.reduce((e,t)=>e+t,0n)}return A}catch(r){throw function(e,{docsPath:t,...r}){return new $((()=>{let t=(0,C.k)(e,r);return t instanceof T.cj?e:t})(),{docsPath:t,...r})}(r,{...t,account:n,chain:e.chain})}}async function G(e,{address:t,blockTag:r="latest",blockNumber:n}){let i=await e.request({method:"eth_getTransactionCount",params:[t,n?(0,m.eC)(n):r]},{dedupe:!!n});return(0,h.ly)(i)}function Z(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,w.nr)(e)):e.blobs,i=[];for(let e of n)i.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===r?i:i.map(e=>(0,m.ci)(e))}function H(e){let{kzg:t}=e,r=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),n="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,w.nr)(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,w.nr)(e)):e.commitments,a=[];for(let e=0;e<n.length;e++){let r=n[e],s=i[e];a.push(Uint8Array.from(t.computeBlobKzgProof(r,s)))}return"bytes"===r?a:a.map(e=>(0,m.ci)(e))}var q=r(81499);class X extends a.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class Y extends a.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}var J=r(60610);let Q=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function ee(e,t){let r,n;let{account:a=e.account,blobs:s,chain:o,gas:l,kzg:u,nonce:d,nonceManager:f,parameters:h=Q,type:g}=t,v=a?(0,i.T)(a):a,y={...t,...v?{from:v?.address}:{}};async function b(){return r||(r=await (0,c.s)(e,F.Q,"getBlock")({blockTag:"latest"}))}async function P(){return n||(o?o.id:void 0!==t.chainId?t.chainId:n=await (0,c.s)(e,L,"getChainId")({}))}if((h.includes("blobVersionedHashes")||h.includes("sidecars"))&&s&&u){let e=Z({blobs:s,kzg:u});if(h.includes("blobVersionedHashes")){let t=function(e){let{commitments:t,version:r}=e,n=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(let e of t)i.push(function(e){let{commitment:t,version:r=1}=e,n=e.to??("string"==typeof t?"hex":"bytes"),i=function(e,t){let r=(0,q.JQ)((0,p.v)(e,{strict:!1})?(0,w.O0)(e):e);return"bytes"===(t||"hex")?r:(0,m.NC)(r)}(t,"bytes");return i.set([r],0),"bytes"===n?i:(0,m.ci)(i)}({commitment:e,to:n,version:r}));return i}({commitments:e,to:"hex"});y.blobVersionedHashes=t}if(h.includes("sidecars")){let t=H({blobs:s,commitments:e,kzg:u}),r=function(e){let{data:t,kzg:r,to:n}=e,i=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),r="string"==typeof e.data?(0,w.nr)(e.data):e.data,n=(0,J.d)(r);if(!n)throw new Y;if(n>761855)throw new X({maxSize:761855,size:n});let i=[],a=!0,s=0;for(;a;){let e=(0,x.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=r.slice(s,s+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),a=!1;break}t++,s+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,m.ci)(e.bytes))}({data:t,to:n}),a=e.commitments??Z({blobs:i,kzg:r,to:n}),s=e.proofs??H({blobs:i,commitments:a,kzg:r,to:n}),o=[];for(let e=0;e<i.length;e++)o.push({blob:i[e],commitment:a[e],proof:s[e]});return o}({blobs:s,commitments:e,proofs:t,to:"hex"});y.sidecars=r}}if(h.includes("chainId")&&(y.chainId=await P()),h.includes("nonce")&&void 0===d&&v){if(f){let t=await P();y.nonce=await f.consume({address:v.address,chainId:t,client:e})}else y.nonce=await (0,c.s)(e,G,"getTransactionCount")({address:v.address,blockTag:"pending"})}if((h.includes("fees")||h.includes("type"))&&void 0===g)try{y.type=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new S.j3({transaction:e})}(y)}catch{let e=await b();y.type="bigint"==typeof e?.baseFeePerGas?"eip1559":"legacy"}if(h.includes("fees")){if("legacy"!==y.type&&"eip2930"!==y.type){if(void 0===y.maxFeePerGas||void 0===y.maxPriorityFeePerGas){let r=await b(),{maxFeePerGas:n,maxPriorityFeePerGas:i}=await V(e,{block:r,chain:o,request:y});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new R({maxPriorityFeePerGas:i});y.maxPriorityFeePerGas=i,y.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new O;let r=await b(),{gasPrice:n}=await V(e,{block:r,chain:o,request:y,type:"legacy"});y.gasPrice=n}}return h.includes("gas")&&void 0===l&&(y.gas=await (0,c.s)(e,U,"estimateGas")({...y,account:v?{address:v.address,type:"json-rpc"}:v})),(0,I.F)(y),delete y.parameters,y}async function et(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}let er=new A.k(128);async function en(e,t){let{account:r=e.account,chain:n=e.chain,accessList:l,authorizationList:u,blobs:d,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:m,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,value:b,...w}=t;if(void 0===r)throw new s({docsPath:"/docs/actions/wallet/sendTransaction"});let x=r?(0,i.T)(r):null;try{(0,I.F)(t);let r=await (async()=>t.to?t.to:u&&u.length>0?await k({authorization:u[0]}).catch(()=>{throw new a.G("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(x?.type==="json-rpc"||null===x){let t;null!==n&&(t=await (0,c.s)(e,L,"getChainId")({}),function({chain:e,currentChainId:t}){if(!e)throw new E.Bk;if(t!==e.id)throw new E.Yl({chain:e,currentChainId:t})}({currentChainId:t,chain:n}));let i=e.chain?.formatters?.transactionRequest?.format,a=(i||_.tG)({...(0,M.K)(w,{format:i}),accessList:l,authorizationList:u,blobs:d,chainId:t,data:f,from:x?.address,gas:p,gasPrice:h,maxFeePerBlobGas:m,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,to:r,value:b}),s=er.get(e.uid)?"wallet_sendTransaction":"eth_sendTransaction";try{return await e.request({method:s,params:[a]},{retryCount:0})}catch(t){if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[a]},{retryCount:0}).then(t=>(er.set(e.uid,!0),t));throw t}}if(x?.type==="local"){let t=await (0,c.s)(e,ee,"prepareTransactionRequest")({account:x,accessList:l,authorizationList:u,blobs:d,chain:n,data:f,gas:p,gasPrice:h,maxFeePerBlobGas:m,maxFeePerGas:g,maxPriorityFeePerGas:v,nonce:y,nonceManager:x.nonceManager,parameters:[...Q,"sidecars"],value:b,...w,to:r}),i=n?.serializers?.transaction,a=await x.signTransaction(t,{serializer:i});return await (0,c.s)(e,et,"sendRawTransaction")({serializedTransaction:a})}if(x?.type==="smart")throw new o({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new o({docsPath:"/docs/actions/wallet/sendTransaction",type:x?.type})}catch(e){if(e instanceof o)throw e;throw function(e,{docsPath:t,...r}){let n=(()=>{let t=(0,C.k)(e,r);return t instanceof T.cj?e:t})();return new S.mk(n,{docsPath:t,...r})}(e,{...t,account:x,chain:t.chain||void 0})}}async function ei(e,t){let{abi:r,account:n=e.account,address:a,args:o,dataSuffix:d,functionName:f,...p}=t;if(void 0===n)throw new s({docsPath:"/docs/contract/writeContract"});let h=n?(0,i.T)(n):null,m=(0,l.R)({abi:r,args:o,functionName:f});try{return await (0,c.s)(e,en,"sendTransaction")({data:`${m}${d?d.replace("0x",""):""}`,to:a,account:h,...p})}catch(e){throw(0,u.S)(e,{abi:r,address:a,args:o,docsPath:"/docs/contract/writeContract",functionName:f,sender:h?.address})}}var ea=r(61880),es=r(99649),eo=r(85412),el=r(2538),eu=r(85174);async function ec(e,t={}){let r;if(t.connector){let{connector:n}=t;if("reconnecting"===e.state.status&&!n.getAccounts&&!n.getChainId)throw new eu.$S({connector:n});let[i,a]=await Promise.all([n.getAccounts(),n.getChainId()]);r={accounts:i,chainId:a,connector:n}}else r=e.state.connections.get(e.state.current);if(!r)throw new eu.aH;let n=t.chainId??r.chainId,a=await r.connector.getChainId();if(a!==r.chainId)throw new eu.XZ({connectionChainId:r.chainId,connectorChainId:a});let s=r.connector;if(s.getClient)return s.getClient({chainId:n});let o=(0,i.T)(t.account??r.accounts[0]);if(o.address=(0,d.K)(o.address),t.account&&!r.accounts.some(e=>e.toLowerCase()===o.address.toLowerCase()))throw new eu.JK({address:o.address,connector:s});let l=e.chains.find(e=>e.id===n),u=await r.connector.getProvider({chainId:n});return(0,eo.e)({account:o,chain:l,name:"Connector Client",transport:e=>(function(e,t={}){let{key:r="custom",name:n="Custom Provider",retryDelay:i}=t;return({retryCount:a})=>(0,el.q)({key:r,name:n,request:e.request.bind(e),retryCount:t.retryCount??a,retryDelay:i,type:"custom"})})(u)({...e,retryCount:0})})}var ed=r(75204),ef=r(14055);async function ep(e,t){let{abi:r,address:n,args:a,dataSuffix:s,functionName:o,...d}=t,f=d.account?(0,i.T)(d.account):e.account,p=(0,l.R)({abi:r,args:a,functionName:o});try{let{data:i}=await (0,c.s)(e,ef.R,"call")({batch:!1,data:`${p}${s?s.replace("0x",""):""}`,to:n,...d,account:f}),l=(0,ed.k)({abi:r,args:a,functionName:o,data:i||"0x"}),u=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:l,request:{abi:u,address:n,args:a,dataSuffix:s,functionName:o,...d,account:f}}}catch(e){throw(0,u.S)(e,{abi:r,address:n,args:a,docsPath:"/docs/contract/simulateContract",functionName:o,sender:f?.address})}}async function eh(e,t){let r;let{abi:n,chainId:i,connector:a,...s}=t;r=t.account?t.account:(await ec(e,{chainId:i,connector:a})).account;let o=e.getClient({chainId:i}),l=(0,ea.s)(o,ep,"simulateContract"),{result:u,request:c}=await l({...s,abi:n,account:r});return{chainId:o.chain.id,result:u,request:{__mode:"prepared",...c,chainId:i}}}async function em(e,t){let r,n;let{account:i,chainId:a,connector:s,__mode:o,...l}=t;r="object"==typeof i&&i?.type==="local"?e.getClient({chainId:a}):await ec(e,{account:i??void 0,chainId:a,connector:s});let{connector:u}=(0,es.D)(e);if("prepared"===o||u?.supportsSimulation)n=l;else{let{request:t}=await eh(e,{...l,account:i,chainId:a});n=t}let c=(0,ea.s)(r,ei,"writeContract");return await c({...n,...i?{account:i}:{},chain:a?{id:a}:null})}var eg=r(70793);function ev(e={}){var t;let{mutation:r}=e,i=(t=(0,eg.Z)(e),{mutationFn:e=>em(t,e),mutationKey:["writeContract"]}),{mutate:a,mutateAsync:s,...o}=(0,n.D)({...r,...i});return{...o,writeContract:a,writeContractAsync:s}}},15243:function(e,t,r){let n;r.d(t,{aM:function(){return A}});var i=r(26566),a=r(88506),s=r(43489),o=r(33485),l=r(40963),u=r(48842),c=class extends o.l{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=(0,l.O)(),this.options.experimental_prefetchInRender||this.#o.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#l=void 0;#u=void 0;#t=void 0;#c;#d;#o;#s;#f;#p;#h;#m;#g;#v;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#l.addObserver(this),d(this.#l,this.options)?this.#b():this.updateResult(),this.#w())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#l,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#l,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#P(),this.#l.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.#l;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Nc)(this.options.enabled,this.#l))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#k(),this.#l.setOptions(this.options),r._defaulted&&!(0,u.VS)(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#l,observer:this});let i=this.hasListeners();i&&p(this.#l,n,this.options,r)&&this.#b(),this.updateResult(t),i&&(this.#l!==n||(0,u.Nc)(this.options.enabled,this.#l)!==(0,u.Nc)(r.enabled,this.#l)||(0,u.KC)(this.options.staleTime,this.#l)!==(0,u.KC)(r.staleTime,this.#l))&&this.#E();let a=this.#T();i&&(this.#l!==n||(0,u.Nc)(this.options.enabled,this.#l)!==(0,u.Nc)(r.enabled,this.#l)||a!==this.#v)&&this.#S(a)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return(0,u.VS)(this.getCurrentResult(),r)||(this.#t=r,this.#d=this.options,this.#c=this.#l.state),r}getCurrentResult(){return this.#t}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#y.add(e)}getCurrentQuery(){return this.#l}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#b({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#b(e){this.#k();let t=this.#l.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.ZT)),t}#E(){this.#x();let e=(0,u.KC)(this.options.staleTime,this.#l);if(u.sk||this.#t.isStale||!(0,u.PN)(e))return;let t=(0,u.Kp)(this.#t.dataUpdatedAt,e);this.#m=setTimeout(()=>{this.#t.isStale||this.updateResult()},t+1)}#T(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#l):this.options.refetchInterval)??!1}#S(e){this.#P(),this.#v=e,!u.sk&&!1!==(0,u.Nc)(this.options.enabled,this.#l)&&(0,u.PN)(this.#v)&&0!==this.#v&&(this.#g=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#b()},this.#v))}#w(){this.#E(),this.#S(this.#T())}#x(){this.#m&&(clearTimeout(this.#m),this.#m=void 0)}#P(){this.#g&&(clearInterval(this.#g),this.#g=void 0)}createResult(e,t){let r;let n=this.#l,i=this.options,a=this.#t,o=this.#c,c=this.#d,f=e!==n?e.state:this.#u,{state:m}=e,g={...m},v=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&d(e,t),o=r&&p(e,n,t,i);(a||o)&&(g={...g,...(0,s.z)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:w}=g;if(t.select&&void 0!==g.data){if(a&&g.data===o?.data&&t.select===this.#f)r=this.#p;else try{this.#f=t.select,r=t.select(g.data),r=(0,u.oE)(a?.data,r,t),this.#p=r,this.#s=null}catch(e){this.#s=e}}else r=g.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===w){let e;if(a?.isPlaceholderData&&t.placeholderData===c?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#s=null}catch(e){this.#s=e}void 0!==e&&(w="success",r=(0,u.oE)(a?.data,e,t),v=!0)}this.#s&&(y=this.#s,r=this.#p,b=Date.now(),w="error");let x="fetching"===g.fetchStatus,P="pending"===w,k="error"===w,E=P&&x,T=void 0!==r,S={status:w,fetchStatus:g.fetchStatus,isPending:P,isSuccess:"success"===w,isError:k,isInitialLoading:E,isLoading:E,data:r,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>f.dataUpdateCount||g.errorUpdateCount>f.errorUpdateCount,isFetching:x,isRefetching:x&&!P,isLoadingError:k&&!T,isPaused:"paused"===g.fetchStatus,isPlaceholderData:v,isRefetchError:k&&T,isStale:h(e,t),refetch:this.refetch,promise:this.#o};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===S.status?e.reject(S.error):void 0!==S.data&&e.resolve(S.data)},r=()=>{t(this.#o=S.promise=(0,l.O)())},i=this.#o;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":("error"===S.status||S.data!==i.value)&&r();break;case"rejected":("error"!==S.status||S.error!==i.reason)&&r()}}return S}updateResult(e){let t=this.#t,r=this.createResult(this.#l,this.options);if(this.#c=this.#l.state,this.#d=this.options,void 0!==this.#c.data&&(this.#h=this.#l),(0,u.VS)(r,t))return;this.#t=r;let n={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#y.size)return!0;let n=new Set(r??this.#y);return this.options.throwOnError&&n.add("error"),Object.keys(this.#t).some(e=>this.#t[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.#a({...n,...e})}#k(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#l)return;let t=this.#l;this.#l=e,this.#u=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#w()}#a(e){a.V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#e.getQueryCache().notify({query:this.#l,type:"observerResultsUpdated"})})}};function d(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,u.Nc)(t.enabled,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&h(e,t)}return!1}function p(e,t,r,n){return(e!==t||!1===(0,u.Nc)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==(0,u.Nc)(t.enabled,e)&&e.isStaleByTime((0,u.KC)(t.staleTime,e))}var m=r(50959),g=r(94537);r(11527);var v=m.createContext((n=!1,{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n})),y=()=>m.useContext(v),b=r(41723),w=(e,t)=>{(e.suspense||e.throwOnError)&&!t.isReset()&&(e.retryOnMount=!1)},x=e=>{m.useEffect(()=>{e.clearReset()},[e])},P=({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(0,b.L)(r,[e.error,n]),k=m.createContext(!1),E=()=>m.useContext(k);k.Provider;var T=e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},S=(e,t)=>e.isLoading&&e.isFetching&&!t,C=(e,t)=>e?.suspense&&t.isPending,M=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()}),_=r(66004);function A(e){let t=function(e,t,r){let n=(0,g.NL)(r),i=E(),s=y(),o=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=i?"isRestoring":"optimistic",T(o),w(o,s),x(s);let l=!n.getQueryCache().get(o.queryHash),[c]=m.useState(()=>new t(n,o)),d=c.getOptimisticResult(o);if(m.useSyncExternalStore(m.useCallback(e=>{let t=i?()=>void 0:c.subscribe(a.V.batchCalls(e));return c.updateResult(),t},[c,i]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),C(o,d))throw M(o,c,s);if(P({result:d,errorResetBoundary:s,throwOnError:o.throwOnError,query:n.getQueryCache().get(o.queryHash)}))throw d.error;if(n.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!u.sk&&S(d,i)){let e=l?M(o,c,s):n.getQueryCache().get(o.queryHash)?.promise;e?.catch(b.Z).finally(()=>{c.hasListeners()||c.updateResult()})}return o.notifyOnChangeProps?d:c.trackResult(d)}({...e,queryKeyHashFn:_.kq},c,void 0);return t.queryKey=e.queryKey,t}},11615:function(e,t,r){let n;r.d(t,{z:function(){return to}}),(e8=tt||(tt={})).assertEqual=e=>e,e8.assertIs=function(e){},e8.assertNever=function(e){throw Error()},e8.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e8.getValidEnumValues=e=>{let t=e8.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(let n of t)r[n]=e[n];return e8.objectValues(r)},e8.objectValues=e=>e8.objectKeys(e).map(function(t){return e[t]}),e8.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e8.find=(e,t)=>{for(let r of e)if(t(r))return r},e8.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e8.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e8.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(tr||(tr={})).mergeShapes=(e,t)=>({...e,...t});let i=tt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}},s=tt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class o extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof o))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tt.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}o.create=e=>new o(e);let l=(e,t)=>{let r;switch(e.code){case s.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case s.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tt.jsonStringifyReplacer)}`;break;case s.unrecognized_keys:r=`Unrecognized key(s) in object: ${tt.joinValues(e.keys,", ")}`;break;case s.invalid_union:r="Invalid input";break;case s.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tt.joinValues(e.options)}`;break;case s.invalid_enum_value:r=`Invalid enum value. Expected ${tt.joinValues(e.options)}, received '${e.received}'`;break;case s.invalid_arguments:r="Invalid function arguments";break;case s.invalid_return_type:r="Invalid function return type";break;case s.invalid_date:r="Invalid date";break;case s.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tt.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case s.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case s.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case s.custom:r="Invalid input";break;case s.invalid_intersection_types:r="Intersection results could not be merged";break;case s.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case s.not_finite:r="Number must be finite";break;default:r=t.defaultError,tt.assertNever(e)}return{message:r}},u=l;function c(){return u}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],s={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let o="";for(let e of n.filter(e=>!!e).slice().reverse())o=e(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function f(e,t){let r=c(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class p{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return h;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return p.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return h;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let h=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),g=e=>({status:"valid",value:e}),v=e=>"aborted"===e.status,y=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function P(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,(e7=tn||(tn={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},e7.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class k{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let E=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new o(e.common.issues);return this._error=t,this._error}}};function T(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,s;let{message:o}=e;return"invalid_enum_value"===t.code?{message:null!=o?o:i.defaultError}:void 0===i.data?{message:null!==(a=null!=o?o:n)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(s=null!=o?o:r)&&void 0!==s?s:i.defaultError}},description:i}}class S{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new p,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:n.path,parent:n});return E(n,i)}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},n=this._parse({data:e,path:r.path,parent:r});return E(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:s.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new eg({schema:this,typeName:ts.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return ev.create(this,this._def)}nullable(){return ey.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Q.create(this,this._def)}promise(){return em.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return ei.create(this,e,this._def)}transform(e){return new eg({...T(this._def),schema:this,typeName:ts.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eb({...T(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:ts.ZodDefault})}brand(){return new ek({typeName:ts.ZodBranded,type:this,...T(this._def)})}catch(e){return new ew({...T(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:ts.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eE.create(this,e)}readonly(){return eT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let C=/^c[^\s-]{8,}$/i,M=/^[0-9a-z]+$/,_=/^[0-9A-HJKMNP-TV-Z]{26}$/,A=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,I=/^[a-z0-9_-]{21}$/i,L=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,D=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,N=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,O=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,R=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",j=RegExp(`^${F}$`);function K(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function V(e){let t=`${F}T${K(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class B extends S{_parse(e){var t,r;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.string,received:t.parsedType}),h}let o=new p;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(f(a=this._getOrReturnCtx(e,a),{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if("max"===i.kind)e.data.length>i.value&&(f(a=this._getOrReturnCtx(e,a),{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),o.dirty());else if("length"===i.kind){let t=e.data.length>i.value,r=e.data.length<i.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?f(a,{code:s.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):r&&f(a,{code:s.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),o.dirty())}else if("email"===i.kind)D.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"email",code:s.invalid_string,message:i.message}),o.dirty());else if("emoji"===i.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:s.invalid_string,message:i.message}),o.dirty());else if("uuid"===i.kind)A.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:s.invalid_string,message:i.message}),o.dirty());else if("nanoid"===i.kind)I.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:s.invalid_string,message:i.message}),o.dirty());else if("cuid"===i.kind)C.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:s.invalid_string,message:i.message}),o.dirty());else if("cuid2"===i.kind)M.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:s.invalid_string,message:i.message}),o.dirty());else if("ulid"===i.kind)_.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:s.invalid_string,message:i.message}),o.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){f(a=this._getOrReturnCtx(e,a),{validation:"url",code:s.invalid_string,message:i.message}),o.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"regex",code:s.invalid_string,message:i.message}),o.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),o.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{startsWith:i.value},message:i.message}),o.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:{endsWith:i.value},message:i.message}),o.dirty()):"datetime"===i.kind?V(i).test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"datetime",message:i.message}),o.dirty()):"date"===i.kind?j.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"date",message:i.message}),o.dirty()):"time"===i.kind?RegExp(`^${K(i)}$`).test(e.data)||(f(a=this._getOrReturnCtx(e,a),{code:s.invalid_string,validation:"time",message:i.message}),o.dirty()):"duration"===i.kind?L.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"duration",code:s.invalid_string,message:i.message}),o.dirty()):"ip"===i.kind?(t=e.data,("v4"===(r=i.version)||!r)&&N.test(t)||("v6"===r||!r)&&O.test(t)||(f(a=this._getOrReturnCtx(e,a),{validation:"ip",code:s.invalid_string,message:i.message}),o.dirty())):"base64"===i.kind?R.test(e.data)||(f(a=this._getOrReturnCtx(e,a),{validation:"base64",code:s.invalid_string,message:i.message}),o.dirty()):tt.assertNever(i);return{status:o.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:s.invalid_string,...tn.errToObj(r)})}_addCheck(e){return new B({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...tn.errToObj(e)})}url(e){return this._addCheck({kind:"url",...tn.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...tn.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...tn.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...tn.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...tn.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...tn.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...tn.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...tn.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...tn.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...tn.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...tn.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...tn.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...tn.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...tn.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...tn.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...tn.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...tn.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...tn.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...tn.errToObj(t)})}nonempty(e){return this.min(1,tn.errToObj(e))}trim(){return new B({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new B({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new B({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}B.create=e=>{var t;return new B({checks:[],typeName:ts.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class $ extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.number,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"int"===n.kind?tt.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:s.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:s.not_finite,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:tn.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:tn.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:tn.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:tn.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tt.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks){if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value)}return Number.isFinite(t)&&Number.isFinite(e)}}$.create=e=>new $({checks:[],typeName:ts.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class z extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==i.bigint){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.bigint,received:t.parsedType}),h}let r=new p;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:s.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tt.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,tn.toString(t))}gt(e,t){return this.setLimit("min",e,!1,tn.toString(t))}lte(e,t){return this.setLimit("max",e,!0,tn.toString(t))}lt(e,t){return this.setLimit("max",e,!1,tn.toString(t))}setLimit(e,t,r,n){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:tn.toString(n)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:tn.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:tn.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:tn.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}z.create=e=>{var t;return new z({checks:[],typeName:ts.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...T(e)})};class W extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.boolean,received:t.parsedType}),h}return g(e.data)}}W.create=e=>new W({typeName:ts.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...T(e)});class U extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.date,received:t.parsedType}),h}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:s.invalid_date}),h;let r=new p;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(f(t=this._getOrReturnCtx(e,t),{code:s.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tt.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:tn.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:tn.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}U.create=e=>new U({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:ts.ZodDate,...T(e)});class G extends S{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.symbol,received:t.parsedType}),h}return g(e.data)}}G.create=e=>new G({typeName:ts.ZodSymbol,...T(e)});class Z extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.undefined,received:t.parsedType}),h}return g(e.data)}}Z.create=e=>new Z({typeName:ts.ZodUndefined,...T(e)});class H extends S{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.null,received:t.parsedType}),h}return g(e.data)}}H.create=e=>new H({typeName:ts.ZodNull,...T(e)});class q extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return g(e.data)}}q.create=e=>new q({typeName:ts.ZodAny,...T(e)});class X extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return g(e.data)}}X.create=e=>new X({typeName:ts.ZodUnknown,...T(e)});class Y extends S{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.never,received:t.parsedType}),h}}Y.create=e=>new Y({typeName:ts.ZodNever,...T(e)});class J extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.void,received:t.parsedType}),h}return g(e.data)}}J.create=e=>new J({typeName:ts.ZodVoid,...T(e)});class Q extends S{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return f(t,{code:s.invalid_type,expected:i.array,received:t.parsedType}),h;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(f(t,{code:e?s.too_big:s.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(f(t,{code:s.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(f(t,{code:s.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new k(t,e,t.path,r)))).then(e=>p.mergeArray(r,e));let a=[...t.data].map((e,r)=>n.type._parseSync(new k(t,e,t.path,r)));return p.mergeArray(r,a)}get element(){return this._def.type}min(e,t){return new Q({...this._def,minLength:{value:e,message:tn.toString(t)}})}max(e,t){return new Q({...this._def,maxLength:{value:e,message:tn.toString(t)}})}length(e,t){return new Q({...this._def,exactLength:{value:e,message:tn.toString(t)}})}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ts.ZodArray,...T(t)});class ee extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tt.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),h}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),o=[];if(!(this._def.catchall instanceof Y&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||o.push(e);let l=[];for(let e of a){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new k(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof Y){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of o)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)o.length>0&&(f(r,{code:s.unrecognized_keys,keys:o}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of o){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new k(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>p.mergeObjectSync(t,e)):p.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return tn.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,s;let o=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(s=tn.errToObj(e).message)&&void 0!==s?s:o}:{message:o}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:ts.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};return tt.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}omit(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ev.create(e(i))}return new ee({...t._def,shape:()=>r})}return t instanceof Q?new Q({...t._def,type:e(t.element)}):t instanceof ev?ev.create(e(t.unwrap())):t instanceof ey?ey.create(e(t.unwrap())):t instanceof ea?ea.create(t.items.map(t=>e(t))):t}(this)}partial(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ee({...this._def,shape:()=>t})}required(e){let t={};return tt.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ev;)e=e._def.innerType;t[r]=e}}),new ee({...this._def,shape:()=>t})}keyof(){return ef(tt.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:Y.create(),typeName:ts.ZodObject,...T(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:Y.create(),typeName:ts.ZodObject,...T(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:Y.create(),typeName:ts.ZodObject,...T(t)});class et extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new o(e.ctx.common.issues));return f(t,{code:s.invalid_union,unionErrors:r}),h});{let e;let n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new o(e));return f(t,{code:s.invalid_union,unionErrors:i}),h}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:ts.ZodUnion,...T(t)});let er=e=>{if(e instanceof ec)return er(e.schema);if(e instanceof eg)return er(e.innerType());if(e instanceof ed)return[e.value];if(e instanceof ep)return e.options;if(e instanceof eh)return tt.objectValues(e.enum);if(e instanceof eb)return er(e._def.innerType);if(e instanceof Z)return[void 0];else if(e instanceof H)return[null];else if(e instanceof ev)return[void 0,...er(e.unwrap())];else if(e instanceof ey)return[null,...er(e.unwrap())];else if(e instanceof ek)return er(e.unwrap());else if(e instanceof eT)return er(e.unwrap());else if(e instanceof ew)return er(e._def.innerType);else return[]};class en extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:s.invalid_type,expected:i.object,received:t.parsedType}),h;let r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:s.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),h)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=er(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new en({typeName:ts.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...T(r)})}}class ei extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(v(e)||v(n))return h;let o=function e(t,r){let n=a(t),s=a(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&s===i.object){let n=tt.objectKeys(r),i=tt.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===i.array&&s===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===i.date&&s===i.date&&+t==+r?{valid:!0,data:t}:{valid:!1}}(e.value,n.value);return o.valid?((y(e)||y(n))&&t.dirty(),{status:t.value,value:o.data}):(f(r,{code:s.invalid_intersection_types}),h)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}ei.create=(e,t,r)=>new ei({left:e,right:t,typeName:ts.ZodIntersection,...T(r)});class ea extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return f(r,{code:s.invalid_type,expected:i.array,received:r.parsedType}),h;if(r.data.length<this._def.items.length)return f(r,{code:s.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),h;!this._def.rest&&r.data.length>this._def.items.length&&(f(r,{code:s.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new k(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>p.mergeArray(t,e)):p.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new ea({...this._def,rest:e})}}ea.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new ea({items:e,typeName:ts.ZodTuple,rest:null,...T(t)})};class es extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return f(r,{code:s.invalid_type,expected:i.object,received:r.parsedType}),h;let n=[],a=this._def.keyType,o=this._def.valueType;for(let e in r.data)n.push({key:a._parse(new k(r,e,r.path,e)),value:o._parse(new k(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?p.mergeObjectAsync(t,n):p.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new es(t instanceof S?{keyType:e,valueType:t,typeName:ts.ZodRecord,...T(r)}:{keyType:B.create(),valueType:e,typeName:ts.ZodRecord,...T(t)})}}class eo extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return f(r,{code:s.invalid_type,expected:i.map,received:r.parsedType}),h;let n=this._def.keyType,a=this._def.valueType,o=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new k(r,e,r.path,[i,"key"])),value:a._parse(new k(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of o){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of o){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return h;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:ts.ZodMap,...T(r)});class el extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return f(r,{code:s.invalid_type,expected:i.set,received:r.parsedType}),h;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(f(r,{code:s.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(f(r,{code:s.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let a=this._def.valueType;function o(e){let r=new Set;for(let n of e){if("aborted"===n.status)return h;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>a._parse(new k(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>o(e)):o(l)}min(e,t){return new el({...this._def,minSize:{value:e,message:tn.toString(t)}})}max(e,t){return new el({...this._def,maxSize:{value:e,message:tn.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:ts.ZodSet,...T(t)});class eu extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:s.invalid_type,expected:i.function,received:t.parsedType}),h;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:s.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof em){let e=this;return g(async function(...t){let i=new o([]),s=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,s);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return g(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new o([r(t,i.error)]);let s=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(s,a);if(!l.success)throw new o([n(s,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:ea.create(e).rest(X.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||ea.create([]).rest(X.create()),returns:t||X.create(),typeName:ts.ZodFunction,...T(r)})}}class ec extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ec.create=(e,t)=>new ec({getter:e,typeName:ts.ZodLazy,...T(t)});class ed extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:s.invalid_literal,expected:this._def.value}),h}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new ep({values:e,typeName:ts.ZodEnum,...T(t)})}ed.create=(e,t)=>new ed({value:e,typeName:ts.ZodLiteral,...T(t)});class ep extends S{constructor(){super(...arguments),ti.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:tt.joinValues(r),received:t.parsedType,code:s.invalid_type}),h}if(x(this,ti,"f")||P(this,ti,new Set(this._def.values),"f"),!x(this,ti,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:s.invalid_enum_value,options:r}),h}return g(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ep.create(e,{...this._def,...t})}exclude(e,t=this._def){return ep.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ti=new WeakMap,ep.create=ef;class eh extends S{constructor(){super(...arguments),ta.set(this,void 0)}_parse(e){let t=tt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tt.objectValues(t);return f(r,{expected:tt.joinValues(e),received:r.parsedType,code:s.invalid_type}),h}if(x(this,ta,"f")||P(this,ta,new Set(tt.getValidEnumValues(this._def.values)),"f"),!x(this,ta,"f").has(e.data)){let e=tt.objectValues(t);return f(r,{received:r.data,code:s.invalid_enum_value,options:e}),h}return g(e.data)}get enum(){return this._def.values}}ta=new WeakMap,eh.create=(e,t)=>new eh({values:e,typeName:ts.ZodNativeEnum,...T(t)});class em extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:s.invalid_type,expected:i.promise,received:t.parsedType}),h):g((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:ts.ZodPromise,...T(t)});class eg extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ts.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return h;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return h;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?h:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?h:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?h:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type){if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return e;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}}tt.assertNever(n)}}eg.create=(e,t,r)=>new eg({schema:e,typeName:ts.ZodEffects,effect:t,...T(r)}),eg.createWithPreprocess=(e,t,r)=>new eg({schema:t,effect:{type:"preprocess",transform:e},typeName:ts.ZodEffects,...T(r)});class ev extends S{_parse(e){return this._getType(e)===i.undefined?g(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:ts.ZodOptional,...T(t)});class ey extends S{_parse(e){return this._getType(e)===i.null?g(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:ts.ZodNullable,...T(t)});class eb extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:ts.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...T(t)});class ew extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new o(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}ew.create=(e,t)=>new ew({innerType:e,typeName:ts.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...T(t)});class ex extends S{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:s.invalid_type,expected:i.nan,received:t.parsedType}),h}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:ts.ZodNaN,...T(e)});let eP=Symbol("zod_brand");class ek extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eE extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?h:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eE({in:e,out:t,typeName:ts.ZodPipeline})}}class eT extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eS(e,t={},r){return e?q.create().superRefine((n,i)=>{var a,s;if(!e(n)){let e="function"==typeof t?t(n):"string"==typeof t?{message:t}:t,o=null===(s=null!==(a=e.fatal)&&void 0!==a?a:r)||void 0===s||s;i.addIssue({code:"custom",..."string"==typeof e?{message:e}:e,fatal:o})}}):q.create()}eT.create=(e,t)=>new eT({innerType:e,typeName:ts.ZodReadonly,...T(t)});let eC={object:ee.lazycreate};(te=ts||(ts={})).ZodString="ZodString",te.ZodNumber="ZodNumber",te.ZodNaN="ZodNaN",te.ZodBigInt="ZodBigInt",te.ZodBoolean="ZodBoolean",te.ZodDate="ZodDate",te.ZodSymbol="ZodSymbol",te.ZodUndefined="ZodUndefined",te.ZodNull="ZodNull",te.ZodAny="ZodAny",te.ZodUnknown="ZodUnknown",te.ZodNever="ZodNever",te.ZodVoid="ZodVoid",te.ZodArray="ZodArray",te.ZodObject="ZodObject",te.ZodUnion="ZodUnion",te.ZodDiscriminatedUnion="ZodDiscriminatedUnion",te.ZodIntersection="ZodIntersection",te.ZodTuple="ZodTuple",te.ZodRecord="ZodRecord",te.ZodMap="ZodMap",te.ZodSet="ZodSet",te.ZodFunction="ZodFunction",te.ZodLazy="ZodLazy",te.ZodLiteral="ZodLiteral",te.ZodEnum="ZodEnum",te.ZodEffects="ZodEffects",te.ZodNativeEnum="ZodNativeEnum",te.ZodOptional="ZodOptional",te.ZodNullable="ZodNullable",te.ZodDefault="ZodDefault",te.ZodCatch="ZodCatch",te.ZodPromise="ZodPromise",te.ZodBranded="ZodBranded",te.ZodPipeline="ZodPipeline",te.ZodReadonly="ZodReadonly";let eM=B.create,e_=$.create,eA=ex.create,eI=z.create,eL=W.create,eD=U.create,eN=G.create,eO=Z.create,eR=H.create,eF=q.create,ej=X.create,eK=Y.create,eV=J.create,eB=Q.create,e$=ee.create,ez=ee.strictCreate,eW=et.create,eU=en.create,eG=ei.create,eZ=ea.create,eH=es.create,eq=eo.create,eX=el.create,eY=eu.create,eJ=ec.create,eQ=ed.create,e0=ep.create,e1=eh.create,e2=em.create,e5=eg.create,e3=ev.create,e9=ey.create,e6=eg.createWithPreprocess,e4=eE.create;var e8,e7,te,tt,tr,tn,ti,ta,ts,to=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:p,INVALID:h,DIRTY:m,OK:g,isAborted:v,isDirty:y,isValid:b,isAsync:w,get util(){return tt},get objectUtil(){return tr},ZodParsedType:i,getParsedType:a,ZodType:S,datetimeRegex:V,ZodString:B,ZodNumber:$,ZodBigInt:z,ZodBoolean:W,ZodDate:U,ZodSymbol:G,ZodUndefined:Z,ZodNull:H,ZodAny:q,ZodUnknown:X,ZodNever:Y,ZodVoid:J,ZodArray:Q,ZodObject:ee,ZodUnion:et,ZodDiscriminatedUnion:en,ZodIntersection:ei,ZodTuple:ea,ZodRecord:es,ZodMap:eo,ZodSet:el,ZodFunction:eu,ZodLazy:ec,ZodLiteral:ed,ZodEnum:ep,ZodNativeEnum:eh,ZodPromise:em,ZodEffects:eg,ZodTransformer:eg,ZodOptional:ev,ZodNullable:ey,ZodDefault:eb,ZodCatch:ew,ZodNaN:ex,BRAND:eP,ZodBranded:ek,ZodPipeline:eE,ZodReadonly:eT,custom:eS,Schema:S,ZodSchema:S,late:eC,get ZodFirstPartyTypeKind(){return ts},coerce:{string:e=>B.create({...e,coerce:!0}),number:e=>$.create({...e,coerce:!0}),boolean:e=>W.create({...e,coerce:!0}),bigint:e=>z.create({...e,coerce:!0}),date:e=>U.create({...e,coerce:!0})},any:eF,array:eB,bigint:eI,boolean:eL,date:eD,discriminatedUnion:eU,effect:e5,enum:e0,function:eY,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>eS(t=>t instanceof e,t),intersection:eG,lazy:eJ,literal:eQ,map:eq,nan:eA,nativeEnum:e1,never:eK,null:eR,nullable:e9,number:e_,object:e$,oboolean:()=>eL().optional(),onumber:()=>e_().optional(),optional:e3,ostring:()=>eM().optional(),pipeline:e4,preprocess:e6,promise:e2,record:eH,set:eX,strictObject:ez,string:eM,symbol:eN,transformer:e5,tuple:eZ,undefined:eO,union:eW,unknown:ej,void:eV,NEVER:h,ZodIssueCode:s,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:o})}}]);