"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[113],{8274:function(e,t,r){let n,i;r.d(t,{d:function(){return is}});var o,s,l=r(2459),a=r(1264),u=r(5512),c=(0,a.tv)({base:"px-2",variants:{variant:{light:"",shadow:"px-4 shadow-medium rounded-medium bg-content1",bordered:"px-4 border-medium border-divider rounded-medium",splitted:"group is-splitted flex flex-col gap-2"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"light",fullWidth:!0}}),d=(0,a.tv)({slots:{base:["group-[.is-splitted]:px-4","group-[.is-splitted]:bg-content1","group-[.is-splitted]:shadow-medium","group-[.is-splitted]:rounded-medium"],heading:"",trigger:["flex py-4 w-full h-full gap-3 outline-none items-center tap-highlight-transparent",...u.Dh],startContent:"flex-shrink-0",indicator:"text-default-400",titleWrapper:"flex-1 flex flex-col text-start",title:"text-foreground text-large",subtitle:"text-small text-foreground-500 font-normal",content:"py-2"},variants:{isCompact:{true:{trigger:"py-2",title:"text-medium",subtitle:"text-small",indicator:"text-medium",content:"py-1"}},isDisabled:{true:{base:"opacity-disabled pointer-events-none"}},hideIndicator:{true:{indicator:"hidden"}},disableAnimation:{true:{content:"hidden data-[open=true]:block"},false:{indicator:"transition-transform",trigger:"transition-opacity"}},disableIndicatorAnimation:{true:{indicator:"transition-none"},false:{indicator:"rotate-0 data-[open=true]:-rotate-90 rtl:-rotate-180 rtl:data-[open=true]:-rotate-90"}}},defaultVariants:{size:"md",radius:"lg",isDisabled:!1,hideIndicator:!1,disableAnimation:!1,disableIndicatorAnimation:!1}}),f=r(9037),p=r(9869),h=r(262),m=r(3295),g=r(7963),v=r(7294),y=r(6590),b=r(2009),w=r(3136),x=r(1080),S=r(9314),T=r(1086),P=r(8419),E=r(5015),k=r(5893),K=e=>(0,k.jsx)("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:"1em",role:"presentation",viewBox:"0 0 24 24",width:"1em",...e,children:(0,k.jsx)("path",{d:"M15.5 19l-7-7 7-7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})});let C=e=>t=>"string"==typeof t&&t.startsWith(e),M=C("--"),A=C("var(--"),F=e=>{let t=A(e);return!!t&&I.test(e.split("/*")[0].trim())},I=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],L=new Set(V);function R(e,t){-1===e.indexOf(t)&&e.push(t)}function O(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}function N(e){let t=(0,v.useRef)(null);return null===t.current&&(t.current=e()),t.current}class j{constructor(){this.subscriptions=[]}add(e){return R(this.subscriptions,e),()=>O(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;ie;class z{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let $=["read","resolveKeyframes","update","preRender","render","postRender"];function W(e,t){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=$.reduce((e,t)=>(e[t]=function(e){let t=new z,r=new z,n=0,i=!1,o=!1,s=new WeakSet,l={schedule:(e,o=!1,l=!1)=>{let a=l&&i,u=a?t:r;return o&&s.add(e),u.add(e)&&a&&i&&(n=t.order.length),e},cancel:e=>{r.remove(e),s.delete(e)},process:a=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.clear(),n=t.order.length)for(let r=0;rr=!0),e),{}),s=e=>{o[e].process(i)},l=()=>{let o=D.useManualTiming?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,$.forEach(s),i.isProcessing=!1,r&&t&&(n=!1,e(l))},a=()=>{r=!0,n=!0,i.isProcessing||e(l)},u=$.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||a(),n.schedule(e,t,i)),e},{});return{schedule:u,cancel:e=>$.forEach(t=>o[t].cancel(e)),state:i,steps:o}}let{schedule:H,cancel:U,state:G,steps:Y}=W("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:B,!0);function q(){n=void 0}let _={now:()=>(void 0===n&&_.set(G.isProcessing||D.useManualTiming?G.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(q)}},X=e=>!isNaN(parseFloat(e)),Z={current:void 0};class J{constructor(e,t={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=_.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.canTrackVelocity=X(this.current),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=_.now()}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 j);let r=this.events[e].add(t);return"change"===e?()=>{r(),H.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 Z.current&&Z.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=_.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?e*(1e3/r):0}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 Q(e,t){return new J(e,t)}let ee=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();class et extends J{constructor(){super(...arguments),this.members=[],this.transforms=new Set}add(e){let t;L.has(e)?(this.transforms.add(e),t="transform"):e.startsWith("origin")||M(e)||"willChange"===e||(t=ee(e)),t&&(R(this.members,t),this.update())}remove(e){L.has(e)?(this.transforms.delete(e),this.transforms.size||O(this.members,"transform")):O(this.members,ee(e)),this.update()}update(){this.set(this.members.length?this.members.join(", "):"auto")}}let er=(0,v.createContext)({strict:!1}),en={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"]},ei={};for(let e in en)ei[e]={isEnabled:t=>en[e].some(e=>!!t[e])};function eo(e){for(let t in e)ei[t]={...ei[t],...e[t]}}function es({children:e,features:t,strict:r=!1}){let[,n]=(0,v.useState)(!el(t)),i=(0,v.useRef)(void 0);if(!el(t)){let{renderer:e,...r}=t;i.current=e,eo(r)}return(0,v.useEffect)(()=>{el(t)&&t().then(({renderer:e,...t})=>{eo(t),i.current=e,n(!0)})},[]),(0,k.jsx)(er.Provider,{value:{renderer:i.current,strict:r},children:e})}function el(e){return"function"==typeof e}function ea(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let eu=e=>Array.isArray(e);function ec(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;nt[r]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,r)=>t[r]=e.getVelocity()),t}(e))}let eh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],em=["initial",...eh],eg="data-"+ee("framerAppearId"),ev=e=>1e3*e,ey=e=>e/1e3,eb={type:"spring",stiffness:500,damping:25,restSpeed:10},ew=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),ex={type:"keyframes",duration:.8},eS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eT=(e,{keyframes:t})=>t.length>2?ex:L.has(e)?e.startsWith("scale")?ew(t[1]):eb:eS;function eP(e,t){return e[t]||e.default||e}let eE={current:!1},ek=e=>null!==e;function eK(e,{repeat:t,repeatType:r="loop"},n){let i=e.filter(ek),o=t&&"loop"!==r&&t%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}let eC=e=>/^0[^.\s]+$/u.test(e),eM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),eA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eF=(e,t,r)=>r>t?t:r"number"==typeof e,parse:parseFloat,transform:e=>e},eV={...eI,transform:e=>eF(0,1,e)},eL={...eI,default:1},eR=e=>Math.round(1e5*e)/1e5,eO=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ej=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function eD(e){return"string"==typeof e}let eB=e=>({test:t=>eD(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ez=eB("deg"),e$=eB("%"),eW=eB("px"),eH=eB("vh"),eU=eB("vw"),eG={...e$,parse:e=>e$.parse(e)/100,transform:e=>e$.transform(100*e)},eY=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),eq=e=>e===eI||e===eW,e_=(e,t)=>parseFloat(e.split(", ")[t]),eX=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return e_(i[1],t);{let t=n.match(/^matrix\((.+)\)$/u);return t?e_(t[1],e):0}},eZ=new Set(["x","y","z"]),eJ=V.filter(e=>!eZ.has(e)),eQ={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:eX(4,13),y:eX(5,14)};eQ.translateX=eQ.x,eQ.translateY=eQ.y;let e0=e=>t=>t.test(e),e1=[eI,eW,e$,ez,eU,eH,{test:e=>"auto"===e,parse:e=>e}],e2=e=>e1.find(e0(e)),e5=new Set,e3=!1,e9=!1;function e7(){if(e9){let e=Array.from(e5).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;t.forEach(e=>{let t=function(e){let t=[];return eJ.forEach(r=>{let n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}(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)})}e9=!1,e3=!1,e5.forEach(e=>e.complete()),e5.clear()}function e4(){e5.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e9=!0)})}class e6{constructor(e,t,r,n,i,o=!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=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(e5.add(this),e3||(e3=!0,H.read(e4),H.resolveKeyframes(e7))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let i=0;ir=>!!(eD(r)&&ej.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),te=(e,t,r)=>n=>{if(!eD(n))return n;let[i,o,s,l]=n.match(eO);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},tt=e=>eF(0,255,e),tr={...eI,transform:e=>Math.round(tt(e))},tn={test:e8("rgb","red"),parse:te("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+tr.transform(e)+", "+tr.transform(t)+", "+tr.transform(r)+", "+eR(eV.transform(n))+")"},ti={test:e8("#"),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:tn.transform},to={test:e8("hsl","hue"),parse:te("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+e$.transform(eR(t))+", "+e$.transform(eR(r))+", "+eR(eV.transform(n))+")"},ts={test:e=>tn.test(e)||ti.test(e)||to.test(e),parse:e=>tn.test(e)?tn.parse(e):to.test(e)?to.parse(e):ti.parse(e),transform:e=>eD(e)?e:e.hasOwnProperty("red")?tn.transform(e):to.transform(e)},tl="number",ta="color",tu=/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 tc(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=t.replace(tu,e=>(ts.test(e)?(n.color.push(o),i.push(ta),r.push(ts.parse(e))):e.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(e)):(n.number.push(o),i.push(tl),r.push(parseFloat(e))),++o,"${}")),l=s.split("${}");return{values:r,split:l,indexes:n,types:i}}function td(e){return tc(e).values}function tf(e){let{split:t,types:r}=tc(e),n=t.length;return e=>{let i="";for(let o=0;o"number"==typeof e?0:e,th={test:function(e){var t,r;return isNaN(e)&&eD(e)&&((null===(t=e.match(eO))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(eN))||void 0===r?void 0:r.length)||0)>0},parse:td,createTransformer:tf,getAnimatableNone:function(e){let t=td(e),r=tf(e);return r(t.map(tp))}},tm=new Set(["brightness","contrast","saturate","opacity"]);function tg(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[n]=r.match(eO)||[];if(!n)return e;let i=r.replace(n,""),o=tm.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}let tv=/\b([a-z-]*)\(.*?\)/gu,ty={...th,getAnimatableNone:e=>{let t=e.match(tv);return t?t.map(tg).join(" "):e}},tb={...eI,transform:Math.round},tw={borderWidth:eW,borderTopWidth:eW,borderRightWidth:eW,borderBottomWidth:eW,borderLeftWidth:eW,borderRadius:eW,radius:eW,borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomRightRadius:eW,borderBottomLeftRadius:eW,width:eW,maxWidth:eW,height:eW,maxHeight:eW,size:eW,top:eW,right:eW,bottom:eW,left:eW,padding:eW,paddingTop:eW,paddingRight:eW,paddingBottom:eW,paddingLeft:eW,margin:eW,marginTop:eW,marginRight:eW,marginBottom:eW,marginLeft:eW,rotate:ez,rotateX:ez,rotateY:ez,rotateZ:ez,scale:eL,scaleX:eL,scaleY:eL,scaleZ:eL,skew:ez,skewX:ez,skewY:ez,distance:eW,translateX:eW,translateY:eW,translateZ:eW,x:eW,y:eW,z:eW,perspective:eW,transformPerspective:eW,opacity:eV,originX:eG,originY:eG,originZ:eW,zIndex:tb,backgroundPositionX:eW,backgroundPositionY:eW,fillOpacity:eV,strokeOpacity:eV,numOctaves:tb},tx={...tw,color:ts,backgroundColor:ts,outlineColor:ts,fill:ts,stroke:ts,borderColor:ts,borderTopColor:ts,borderRightColor:ts,borderBottomColor:ts,borderLeftColor:ts,filter:ty,WebkitFilter:ty},tS=e=>tx[e];function tT(e,t){let r=tS(e);return r!==ty&&(r=th),r.getAnimatableNone?r.getAnimatableNone(t):void 0}class tP extends e6{constructor(e,t,r,n){super(e,t,r,n,null==n?void 0:n.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t.current)return;super.readKeyframes();for(let r=0;r{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tE=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(th.test(e)||"0"===e)&&!e.startsWith("url("));class tk{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(e4(),e7()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:l,isGenerator:a}=this.options;if(!a&&!function(e,t,r,n){let i=e[0];if(null===i)return!1;let o=e[e.length-1],s=tE(i,t),l=tE(o,t);return B(s===l,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r{this.resolveFinishedPromise=e})}}function tK(e,t,r){var n,i;let o=Math.max(t-5,0);return n=r-e(o),(i=t-o)?n*(1e3/i):0}function tC(e,t){return e*Math.sqrt(1-t*t)}let tM=["duration","bounce"],tA=["stiffness","damping","mass"];function tF(e,t){return t.some(t=>void 0!==e[t])}function tI({keyframes:e,restDelta:t,restSpeed:r,...n}){let i;let o=e[0],s=e[e.length-1],l={done:!1,value:o},{stiffness:a,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!tF(e,tA)&&tF(e,tM)){let r=function({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o;B(e<=ev(10),"Spring duration must be 10 seconds or less");let s=1-t;s=eF(.05,1,s),e=eF(.01,10,ey(e)),s<1?(i=t=>{let n=t*s,i=n*e,o=tC(t,s);return .001-(n-r)/o*Math.exp(-i)},o=t=>{let n=t*s,o=n*e,l=Math.pow(s,2)*Math.pow(t,2)*e,a=tC(Math.pow(t,2),s),u=-i(t)+.001>0?-1:1;return u*((o*r+r-l)*Math.exp(-o))/a}):(i=t=>{let n=Math.exp(-t*e),i=(t-r)*e+1;return -.001+n*i},o=t=>{let n=Math.exp(-t*e),i=(r-t)*(e*e);return n*i});let l=5/e,a=function(e,t,r){let n=r;for(let r=1;r<12;r++)n-=e(n)/t(n);return n}(i,o,l);if(e=ev(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*n;return{stiffness:t,damping:2*s*Math.sqrt(n*t),duration:e}}}(e);(t={...t,...r,mass:1}).isResolvedFromDuration=!0}return t}({...n,velocity:-ey(n.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(a*c)),g=s-o,v=ey(Math.sqrt(a/c)),y=5>Math.abs(g);if(r||(r=y?.01:2),t||(t=y?.005:.5),m<1){let e=tC(v,m);i=t=>{let r=Math.exp(-m*v*t);return s-r*((h+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)i=e=>s-Math.exp(-v*e)*(g+(h+v*g)*e);else{let e=v*Math.sqrt(m*m-1);i=t=>{let r=Math.exp(-m*v*t),n=Math.min(e*t,300);return s-r*((h+m*v*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}return{calculatedDuration:p&&d||null,next:e=>{let n=i(e);if(p)l.done=e>=d;else{let o=h;0!==e&&(o=m<1?tK(i,e,n):0);let a=Math.abs(o)<=r,u=Math.abs(s-n)<=t;l.done=a&&u}return l.value=l.done?s:n,l}}}function tV({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:a,restDelta:u=.5,restSpeed:c}){let d,f;let p=e[0],h={done:!1,value:p},m=e=>void 0!==l&&ea,g=e=>void 0===l?a:void 0===a?l:Math.abs(l-e)-v*Math.exp(-e/n),x=e=>b+w(e),S=e=>{let t=w(e),r=x(e);h.done=Math.abs(t)<=u,h.value=h.done?b:r},T=e=>{m(h.value)&&(d=e,f=tI({keyframes:[h.value,g(h.value)],velocity:tK(x,e,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return T(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==d||(t=!0,S(e),T(e)),void 0!==d&&e>=d)?f.next(e-d):(t||S(e),h)}}}let tL=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function tR(e,t,r,n){if(e===t&&r===n)return B;let i=t=>(function(e,t,r,n,i){let o,s;let l=0;do(o=tL(s=t+(r-t)/2,n,i)-e)>0?r=s:t=s;while(Math.abs(o)>1e-7&&++l<12);return s})(t,0,1,e,r);return e=>0===e||1===e?e:tL(i(e),t,n)}let tO=tR(.42,0,1,1),tN=tR(0,0,.58,1),tj=tR(.42,0,.58,1),tD=e=>Array.isArray(e)&&"number"!=typeof e[0],tB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tz=e=>t=>1-e(1-t),t$=e=>1-Math.sin(Math.acos(e)),tW=tz(t$),tH=tB(t$),tU=tR(.33,1.53,.69,.99),tG=tz(tU),tY=tB(tG),tq={linear:B,easeIn:tO,easeInOut:tj,easeOut:tN,circIn:t$,circInOut:tH,circOut:tW,backIn:tG,backInOut:tY,backOut:tU,anticipate:e=>(e*=2)<1?.5*tG(e):.5*(2-Math.pow(2,-10*(e-1)))},t_=e=>{if(Array.isArray(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,i]=e;return tR(t,r,n,i)}return"string"==typeof e?(B(void 0!==tq[e],`Invalid easing type '${e}'`),tq[e]):e},tX=(e,t)=>r=>t(e(r)),tZ=(...e)=>e.reduce(tX),tJ=(e,t,r)=>{let n=t-e;return 0===n?1:(r-e)/n},tQ=(e,t,r)=>e+(t-e)*r;function t0(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}let t1=(e,t,r)=>{let n=e*e,i=r*(t*t-n)+n;return i<0?0:Math.sqrt(i)},t2=[ti,tn,to],t5=e=>t2.find(t=>t.test(e));function t3(e){let t=t5(e);B(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===to&&(r=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let i=0,o=0,s=0;if(t/=100){let n=r<.5?r*(1+t):r+t-r*t,l=2*r-n;i=t0(l,n,e+1/3),o=t0(l,n,e),s=t0(l,n,e-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let t9=(e,t)=>{let r=t3(e),n=t3(t),i={...r};return e=>(i.red=t1(r.red,n.red,e),i.green=t1(r.green,n.green,e),i.blue=t1(r.blue,n.blue,e),i.alpha=tQ(r.alpha,n.alpha,e),tn.transform(i))};function t7(e,t){return r=>r>0?t:e}function t4(e,t){return r=>tQ(e,t,r)}function t6(e){return"number"==typeof e?t4:"string"==typeof e?F(e)?t7:ts.test(e)?t9:rt:Array.isArray(e)?t8:"object"==typeof e?ts.test(e)?t9:re:t7}function t8(e,t){let r=[...e],n=r.length,i=e.map((e,r)=>t6(e)(e,t[r]));return e=>{for(let t=0;t{for(let t in n)r[t]=n[t](e);return r}}let rt=(e,t)=>{let r=th.createTransformer(t),n=tc(e),i=tc(t),o=n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length;return o?tZ(t8(function(e,t){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;ot*e),l=function(e,t,{clamp:r=!0,ease:n,mixer:i}={}){let o=e.length;if(B(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,r){let n=[],i=r||rr,o=e.length-1;for(let r=0;r{let r=0;if(l>1)for(;ra(eF(e[0],e[o-1],t)):a}(s,t,{ease:Array.isArray(i)?i:t.map(()=>i||tj).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let ri=e=>{let t=({timestamp:t})=>e(t);return{start:()=>H.update(t,!0),stop:()=>U(t),now:()=>G.isProcessing?G.timestamp:_.now()}},ro={decay:tV,inertia:tV,tween:rn,keyframes:rn,spring:tI},rs=e=>e/100;class rl extends tk{constructor({KeyframeResolver:e=e6,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",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:r,motionValue:n,keyframes:i}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);r&&n&&n.owner?this.resolver=n.owner.resolveKeyframes(i,o,r,n):this.resolver=new e(i,o,r,n),this.resolver.scheduleResolve()}initPlayback(e){let t,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:l=0}=this.options,a=ro[n]||rn;a!==rn&&"number"!=typeof e[0]&&(t=tZ(rs,rr(e[0],e[1])),e=[0,100]);let u=a({...this.options,keyframes:e});"mirror"===s&&(r=a({...this.options,keyframes:[...e].reverse(),velocity:-l})),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+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(i+1)-o}}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:o,mapPercentToKeyframes:s,keyframes:l,calculatedDuration:a,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:d,repeat:f,repeatType:p,repeatDelay:h,onUpdate:m}=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 g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=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);let n=!!(t%2);n&&("reverse"===p?(r=1-r,h&&(r-=h/c)):"mirror"===p&&(b=o)),y=eF(0,1,r)*c}let w=v?{done:!1,value:l[0]}:b.next(y);s&&(w.value=s(w.value));let{done:x}=w;v||null===a||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return S&&void 0!==n&&(w.value=eK(l,this.options,n)),m&&m(w.value),S&&this.finish(),w}get duration(){let{resolved:e}=this;return e?ey(e.calculatedDuration):0}get time(){return ey(this.currentTime)}set time(e){e=ev(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=ey(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=ri,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=r),"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)}}let ra=e=>Array.isArray(e)&&"number"==typeof e[0],ru=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rc={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ru([0,.65,.55,1]),circOut:ru([.55,0,1,.45]),backIn:ru([.31,.01,.66,-.59]),backOut:ru([.33,1.53,.69,.99])};function rd(e){return rf(e)||rc.easeOut}function rf(e){if(e)return ra(e)?ru(e):Array.isArray(e)?e.map(rd):rc[e]}let rp=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=o()),i)),rh=new Set(["opacity","clipPath","filter","transform"]);class rm extends tk{constructor(e){super(e);let{name:t,motionValue:r,keyframes:n}=this.options;this.resolver=new tP(n,(e,t)=>this.onKeyframesResolved(e,t),t,r),this.resolver.scheduleResolve()}initPlayback(e,t){var r,n;let{duration:i=300,times:o,ease:s,type:l,motionValue:a,name:u}=this.options;if(!(null===(r=a.owner)||void 0===r?void 0:r.current))return!1;if("spring"===(n=this.options).type||"backgroundColor"===n.name||!function e(t){return!!(!t||"string"==typeof t&&t in rc||ra(t)||Array.isArray(t)&&t.every(e))}(n.ease)){let{onComplete:t,onUpdate:r,motionValue:n,...a}=this.options,u=function(e,t){let r=new rl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,a);1===(e=u.keyframes).length&&(e[1]=e[0]),i=u.duration,o=u.times,s=u.ease,l="keyframes"}let c=function(e,t,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:l,times:a}={}){let u={[t]:r};a&&(u.offset=a);let c=rf(l);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,u,e,{...this.options,duration:i,times:o,ease:s});return c.startTime=_.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;a.set(eK(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:l,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return ey(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return ey(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=ev(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}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return B;let{animation:r}=t;r.timeline=e,r.onfinish=null}else this.pendingTimeline=e;return B}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;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:n,type:i,ease:o,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:l,...a}=this.options,u=new rl({...a,keyframes:r,duration:n,type:i,ease:o,times:s,isGenerator:!0}),c=ev(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}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:o,type:s}=e;return rp()&&r&&rh.has(r)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let rg=(e,t,r,n={},i,o)=>s=>{let l=eP(n,e)||{},a=l.delay||n.delay||0,{elapsed:u=0}=n;u-=ev(a);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&(c={...c,...eT(e,c)}),c.duration&&(c.duration=ev(c.duration)),c.repeatDelay&&(c.repeatDelay=ev(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(eE.current||D.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=eK(c.keyframes,l);if(void 0!==e){H.update(()=>{c.onUpdate(e),c.onComplete()});return}}return!o&&rm.supports(c)?new rm(c):new rl(c)},rv=e=>!!(e&&e.getVelocity);function ry(e){return!!(rv(e)&&e.add)}let rb=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),rw=e=>eu(e)?e[e.length-1]||0:e;function rx(e,t,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:l,...a}=t,u=e.getValue("willChange");n&&(s=n);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in a){let n=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),i=a[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}(d,t))continue;let l={delay:r,elapsed:0,...eP(s||{},t)},f=!1;if(window.HandoffAppearAnimations){let r=e.getProps(),n=r[eg];if(n){let e=window.HandoffAppearAnimations(n,t);null!==e&&(l.elapsed=e,f=!0)}}n.start(rg(t,n,i,e.shouldReduceMotion&&L.has(t)?{type:!1}:l,e,f));let p=n.animation;p&&(ry(u)&&(u.add(t),p.then(()=>u.remove(t))),c.push(p))}return l&&Promise.all(c).then(()=>{H.update(()=>{l&&function(e,t){let r=ep(e,t),{transitionEnd:n={},transition:i={},...o}=r||{};for(let t in o={...o,...n}){let r=rw(o[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Q(r))}}(e,l)})}),c}function rS(e,t,r={}){var n;let i=ep(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(rx(e,i,r)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:l}=o;return function(e,t,r=0,n=0,i=1,o){let s=[],l=(e.variantChildren.size-1)*n,a=1===i?(e=0)=>e*n:(e=0)=>l-e*n;return Array.from(e.variantChildren).sort(rT).forEach((e,n)=>{e.notify("AnimationStart",t),s.push(rS(e,t,{...o,delay:r+a(n)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,i+n,s,l,r)}:()=>Promise.resolve(),{when:a}=o;if(!a)return Promise.all([s(),l(r.delay)]);{let[e,t]="beforeChildren"===a?[s,l]:[l,s];return e().then(()=>t())}}function rT(e,t){return e.sortNodePosition(t)}let rP=[...eh].reverse(),rE=eh.length;function rk(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class rK{constructor(e){this.isMounted=!1,this.node=e}update(){}}let rC=0;function rM(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}let rA=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rF(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let rI=e=>t=>rA(t)&&e(t,rF(t));function rV(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let rL=rV("dragHorizontal"),rR=rV("dragVertical");function rO(){let e=function(e){let t=!1;if("y"===e)t=rR();else if("x"===e)t=rL();else{let e=rL(),r=rR();e&&r?t=()=>{e(),r()}:(e&&e(),r&&r())}return t}(!0);return!e||(e(),!1)}function rN(e,t){var r,n;let i=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return r=e.current,n={passive:!e.getProps()[o]},rM(r,i,rI((r,n)=>{if("touch"===r.pointerType||rO())return;let i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);let s=i[o];s&&s(r,n)}),n)}let rj=(e,t)=>!!t&&(e===t||rj(e,t.parentElement));function rD(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,rF(r))}let rB=new WeakMap,rz=new WeakMap,r$=e=>{let t=rB.get(e.target);t&&t(e)},rW=e=>{e.forEach(r$)},rH={some:0,all:1},rU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},rG=V.length,rY=(e,t)=>t&&"number"==typeof e?t.transform(e):e;function rq(e,t,r,n){let{style:i,vars:o,transform:s,transformOrigin:l}=e,a=!1,u=!1,c=!0;for(let e in t){let r=t[e];if(M(e)){o[e]=r;continue}let n=tw[e],d=rY(r,n);if(L.has(e)){if(a=!0,s[e]=d,!c)continue;r!==(n.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,l[e]=d):i[e]=d}if(!t.transform&&(a||n?i.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,i){let o="";for(let t=0;t({min:0,max:0}),r0=()=>({x:rQ(),y:rQ()});function r1(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let r2="undefined"!=typeof document,r5={current:null},r3={current:!1};function r9(e){return ea(e.animate)||em.some(t=>ed(e[t]))}function r7(e){return!!(r9(e)||e.variants)}let r4=new WeakMap,r6=[...e1,ts,th],r8=e=>r6.find(e0(e)),ne=Object.keys(ei),nt=ne.length,nr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],nn=em.length;class ni{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.resolveKeyframes=(e,t,r,n)=>new this.KeyframeResolver(e,t,r,n,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e6,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.scheduleRender=()=>H.render(this.render,!1,!0);let{latestValues:l,renderState:a}=o;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=a,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=r9(t),this.isVariantNode=r7(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!==l[e]&&rv(t)&&(t.set(l[e],!1),ry(u)&&u.add(e))}}mount(e){this.current=e,r4.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)),r3.current||function(){if(r3.current=!0,r2){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>r5.current=e.matches;e.addListener(t),t()}else r5.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||r5.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in r4.delete(this.current),this.projection&&this.projection.unmount(),U(this.notifyUpdate),U(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let r=L.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&H.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{n(),i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},r,n,i){let o,s;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof r?r:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:a})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):r0()}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;tt.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=Q(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&&(eM(n)||eC(n))?n=parseFloat(n):!r8(n)&&th.test(t)&&(n=tT(e,t)),this.setBaseTarget(e,rv(n)?n.get():n)),rv(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=ef(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||rv(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 j),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class no extends ni{constructor(){super(...arguments),this.KeyframeResolver=tP}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 ns extends no{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(L.has(t)){let e=tS(t);return e&&e.default||0}{let r=window.getComputedStyle(e),n=(M(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return function({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}(function(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}}(e.getBoundingClientRect(),t))}build(e,t,r,n){rq(e,t,r,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return rZ(e,t,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;rv(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,r,n){rJ(e,t,r,n)}}function nl(e,t,r){let n=rZ(e,t,r);for(let r in e)if(rv(e[r])||rv(t[r])){let t=-1!==V.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;n[t]=e[r]}return n}function na(e,t,r){return"string"==typeof e?e:eW.transform(t+r*e)}let nu={offset:"stroke-dashoffset",array:"stroke-dasharray"},nc={offset:"strokeDashoffset",array:"strokeDasharray"};function nd(e,{attrX:t,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:l=1,pathOffset:a=0,...u},c,d,f){if(rq(e,u,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==i||void 0!==o||h.transform)&&(h.transformOrigin=function(e,t,r){let n=na(t,e.x,e.width),i=na(r,e.y,e.height);return`${n} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(p.x=t),void 0!==r&&(p.y=r),void 0!==n&&(p.scale=n),void 0!==s&&function(e,t,r=1,n=0,i=!0){e.pathLength=1;let o=i?nu:nc;e[o.offset]=eW.transform(-n);let s=eW.transform(t),l=eW.transform(r);e[o.array]=`${s} ${l}`}(p,s,l,a,!1)}let nf=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"]);function np(e,t,r,n){for(let r in rJ(e,t,void 0,n),t.attrs)e.setAttribute(nf.has(r)?r:ee(r),t.attrs[r])}let nh=e=>"string"==typeof e&&"svg"===e.toLowerCase();class nm extends no{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(L.has(t)){let e=tS(t);return e&&e.default||0}return t=nf.has(t)?t:ee(t),e.getAttribute(t)}measureInstanceViewportBox(){return r0()}scrapeMotionValuesFromProps(e,t,r){return nl(e,t,r)}build(e,t,r,n){nd(e,t,r,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,r,n){np(e,t,r,n)}mount(e){this.isSVGTag=nh(e.tagName),super.mount(e)}}let ng=["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 nv(e){if("string"!=typeof e||e.includes("-"));else if(ng.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let ny={renderer:(e,t)=>nv(e)?new nm(t,{enableHardwareAcceleration:!1}):new ns(t,{allowProjection:e!==v.Fragment,enableHardwareAcceleration:!0}),animation:{Feature:class extends rK{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)){let i=t.map(t=>rS(e,t,r));n=Promise.all(i)}else if("string"==typeof t)n=rS(e,t,r);else{let i="function"==typeof t?ep(e,t,r.custom):t;n=Promise.all(rx(e,i,r))}return n.then(()=>{H.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,r))),r={animate:rk(!0),whileInView:rk(),whileHover:rk(),whileTap:rk(),whileDrag:rk(),whileFocus:rk(),exit:rk()},n=!0,i=t=>(r,n)=>{var i;let o=ep(e,n,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:e,transitionEnd:t,...n}=o;r={...r,...n,...t}}return r};function o(o){let s=e.getProps(),l=e.getVariantContext(!0)||{},a=[],u=new Set,c={},d=1/0;for(let t=0;td&&g,x=!1,S=Array.isArray(m)?m:[m],T=S.reduce(i(p),{});!1===v&&(T={});let{prevResolvedValues:P={}}=h,E={...P,...T},k=t=>{w=!0,u.has(t)&&(x=!0,u.delete(t)),h.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in E){let t=T[e],r=P[e];if(!c.hasOwnProperty(e))(eu(t)&&eu(r)?ec(t,r):t===r)?void 0!==t&&u.has(e)?k(e):h.protectedKeys[e]=!0:null!=t?k(e):u.add(e)}h.prevProp=m,h.prevResolvedValues=T,h.isActive&&(c={...c,...T}),n&&e.blockInitialAnimation&&(w=!1),w&&(!y||x)&&a.push(...S.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(r=>{let n=e.getBaseTarget(r),i=e.getValue(r);i&&(i.liveStyle=!0),t[r]=null!=n?n:null}),a.push({animation:t})}let p=!!a.length;return n&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),n=!1,p?t(a):Promise.resolve()}return{animateChanges:o,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 s=o(t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),ea(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends rK{constructor(){super(...arguments),this.id=rC++}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(){}}},inView:{Feature:class extends rK{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,o={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:rH[n]};return function(e,t,r){let n=function({root:e,...t}){let r=e||document;rz.has(r)||rz.set(r,{});let n=rz.get(r),i=JSON.stringify(t);return n[i]||(n[i]=new IntersectionObserver(rW,{root:e,...t})),n[i]}(t);return rB.set(e,r),n.observe(e),()=>{rB.delete(e),n.unobserve(e)}}(this.node.current,o,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(),o=t?r:n;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,r=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t));r&&this.startObserver()}unmount(){}}},tap:{Feature:class extends rK{constructor(){super(...arguments),this.removeStartListeners=B,this.removeEndListeners=B,this.removeAccessibleListeners=B,this.startPointerPress=(e,t)=>{var r,n,i,o;if(this.isPressing)return;this.removeEndListeners();let s=this.node.getProps(),l=(r=window,n={passive:!(s.onTap||s.onPointerUp)},rM(r,"pointerup",rI((e,t)=>{if(!this.checkPressEnd())return;let{onTap:r,onTapCancel:n,globalTapTarget:i}=this.node.getProps();i||rj(this.node.current,e.target)?r&&r(e,t):n&&n(e,t)}),n)),a=(i=window,o={passive:!(s.onTapCancel||s.onPointerCancel)},rM(i,"pointercancel",rI((e,t)=>this.cancelPress(e,t)),o));this.removeEndListeners=tZ(l,a),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=rM(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=rM(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&rD("up",(e,t)=>{let{onTap:r}=this.node.getProps();r&&r(e,t)})}),rD("down",(e,t)=>{this.startPress(e,t)}))}),t=rM(this.node.current,"blur",()=>{this.isPressing&&rD("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=tZ(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&&r(e,t)}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!rO()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:r}=this.node.getProps();r&&r(e,t)}mount(){var e,t,r;let n=this.node.getProps(),i=(e=n.globalTapTarget?window:this.node.current,t=this.startPointerPress,r={passive:!(n.onTapStart||n.onPointerStart)},rM(e,"pointerdown",rI(t),r)),o=rM(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tZ(i,o)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends rK{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=tZ(rM(this.node.current,"focus",()=>this.onFocus()),rM(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends rK{mount(){this.unmount=tZ(rN(this.node,!0),rN(this.node,!1))}unmount(){}}}},nb=(0,v.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nw=(0,v.createContext)({}),nx=(0,v.createContext)(null),nS=r2?v.useLayoutEffect:v.useEffect,{schedule:nT,cancel:nP}=W(queueMicrotask,!1);function nE(e){return Array.isArray(e)?e.join(" "):e}let nk=(0,v.createContext)({}),nK=(0,v.createContext)({}),nC=Symbol.for("motionComponentSymbol"),nM=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nA(e,t,r){for(let n in t)rv(t[n])||rX(n,r)||(e[n]=t[n])}function nF(e,t,r){let n={},i=function(e,t,r){let n=e.style||{},i={};return nA(i,n,e),Object.assign(i,function({transformTemplate:e},t,r){return(0,v.useMemo)(()=>{let n=nM();return rq(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}(e,t,r)),i}(e,t,r);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n}let nI=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 nV(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nI.has(e)}let nL=e=>!nV(e);try{(s=require("@emotion/is-prop-valid").default)&&(nL=e=>e.startsWith("on")?!nV(e):s(e))}catch(e){}let nR=()=>({...nM(),attrs:{}});function nO(e,t,r,n){let i=(0,v.useMemo)(()=>{let r=nR();return nd(r,t,{enableHardwareAcceleration:!1},nh(n),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};nA(t,e.style,e),i.style={...t,...i.style}}return i}let nN=e=>(t,r)=>{let n=(0,v.useContext)(nw),i=(0,v.useContext)(nx),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,i,o){let s={latestValues:function(e,t,r,n){let i={},o=n(e,{});for(let e in o)i[e]=function(e){let t=rv(e)?e.get():e;return rb(t)?t.toValue():t}(o[e]);let{initial:s,animate:l}=e,a=r9(e),u=r7(e);t&&u&&!a&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let c=!!r&&!1===r.initial;c=c||!1===s;let d=c?l:s;if(d&&"boolean"!=typeof d&&!ea(d)){let t=Array.isArray(d)?d:[d];t.forEach(t=>{let r=ef(e,t);if(!r)return;let{transitionEnd:n,transition:o,...s}=r;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in n)i[e]=n[e]})}return i}(n,i,o,e),renderState:t()};return r&&(s.mount=e=>r(n,e,s)),s})(e,t,n,i);return r?o():N(o)},nj={useVisualState:nN({scrapeMotionValuesFromProps:nl,createRenderState:nR,onMount:(e,t,{renderState:r,latestValues:n})=>{H.read(()=>{try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}}),H.render(()=>{nd(r,n,{enableHardwareAcceleration:!1},nh(t.tagName),e.transformTemplate),np(t,r)})}})},nD={useVisualState:nN({scrapeMotionValuesFromProps:rZ,createRenderState:nM})},nB=function(e){function t(t,r={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:i}){e&&eo(e);let o=(0,v.forwardRef)(function(o,s){var l;let a;let u={...(0,v.useContext)(nb),...o,layoutId:function({layoutId:e}){let t=(0,v.useContext)(nk).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:c}=u,d=function(e){let{initial:t,animate:r}=function(e,t){if(r9(e)){let{initial:t,animate:r}=e;return{initial:!1===t||ed(t)?t:void 0,animate:ed(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,v.useContext)(nw));return(0,v.useMemo)(()=>({initial:t,animate:r}),[nE(t),nE(r)])}(o),f=n(o,c);if(!c&&r2){d.visualElement=function(e,t,r,n){let{visualElement:i}=(0,v.useContext)(nw),o=(0,v.useContext)(er),s=(0,v.useContext)(nx),l=(0,v.useContext)(nb).reducedMotion,a=(0,v.useRef)();n=n||o.renderer,!a.current&&n&&(a.current=n(e,{visualState:t,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));let u=a.current;(0,v.useInsertionEffect)(()=>{u&&u.update(r,s)});let c=(0,v.useRef)(!!(r[eg]&&!window.HandoffComplete));return nS(()=>{u&&(nT.postRender(u.render),c.current&&u.animationState&&u.animationState.animateChanges())}),(0,v.useEffect)(()=>{u&&(u.updateFeatures(),!c.current&&u.animationState&&u.animationState.animateChanges(),c.current&&(c.current=!1,window.HandoffComplete=!0))}),u}(i,f,u,t);let r=(0,v.useContext)(nK),n=(0,v.useContext)(er).strict;d.visualElement&&(a=d.visualElement.loadFeatures(u,n,e,r))}return(0,k.jsxs)(nw.Provider,{value:d,children:[a&&d.visualElement?(0,k.jsx)(a,{visualElement:d.visualElement,...u}):null,r(i,o,(l=d.visualElement,(0,v.useCallback)(e=>{e&&f.mount&&f.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):r1(s)&&(s.current=e))},[l])),f,c,d.visualElement)]})});return o[nC]=i,o}(e(t,r))}if("undefined"==typeof Proxy)return t;let r=new Map;return new Proxy(t,{get:(e,n)=>(r.has(n)||r.set(n,t(n)),r.get(n))})}(function(e,{forwardMotionProps:t=!1},r,n){let i=nv(e)?nj:nD;return{...i,preloadedFeatures:r,useRender:function(e=!1){return(t,r,n,{latestValues:i},o)=>{let s=nv(t)?nO:nF,l=s(r,i,o,t),a=function(e,t,r){let n={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(nL(i)||!0===r&&nV(i)||!t&&!nV(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}(r,"string"==typeof t,e),u=t!==v.Fragment?{...a,...l,ref:n}:{},{children:c}=r,d=(0,v.useMemo)(()=>rv(c)?c.get():c,[c]);return(0,v.createElement)(t,{...u,children:d})}}(t),createVisualElement:n,Component:e}});function nz(){let e=(0,v.useRef)(!1);return nS(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function n$(){let e=nz(),[t,r]=(0,v.useState)(0),n=(0,v.useCallback)(()=>{e.current&&r(t+1)},[t]),i=(0,v.useCallback)(()=>H.postRender(n),[n]);return[i,t]}class nW extends v.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 nH({children:e,isPresent:t}){let r=(0,v.useId)(),n=(0,v.useRef)(null),i=(0,v.useRef)({width:0,height:0,top:0,left:0}),{nonce:o}=(0,v.useContext)(nb);return(0,v.useInsertionEffect)(()=>{let{width:e,height:s,top:l,left:a}=i.current;if(t||!n.current||!e||!s)return;n.current.dataset.motionPopId=r;let u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${r}"] { position: absolute !important; width: ${e}px !important; height: ${s}px !important; top: ${l}px !important; left: ${a}px !important; } `),()=>{document.head.removeChild(u)}},[t]),(0,k.jsx)(nW,{isPresent:t,childRef:n,sizeRef:i,children:v.cloneElement(e,{ref:n})})}let nU=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:o,mode:s})=>{let l=N(nG),a=(0,v.useId)(),u=(0,v.useMemo)(()=>({id:a,initial:t,isPresent:r,custom:i,onExitComplete:e=>{for(let t of(l.set(e,!0),l.values()))if(!t)return;n&&n()},register:e=>(l.set(e,!1),()=>l.delete(e))}),o?[Math.random()]:[r]);return(0,v.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[r]),v.useEffect(()=>{r||l.size||!n||n()},[r]),"popLayout"===s&&(e=(0,k.jsx)(nH,{isPresent:r,children:e})),(0,k.jsx)(nx.Provider,{value:u,children:e})};function nG(){return new Map}let nY=e=>e.key||"",nq=({children:e,custom:t,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{var l;B(!i,"Replace exitBeforeEnter with mode='wait'");let a=(0,v.useContext)(nk).forceRender||n$()[0],u=nz(),c=function(e){let t=[];return v.Children.forEach(e,e=>{(0,v.isValidElement)(e)&&t.push(e)}),t}(e),d=c,f=(0,v.useRef)(new Map).current,p=(0,v.useRef)(d),h=(0,v.useRef)(new Map).current,m=(0,v.useRef)(!0);if(nS(()=>{m.current=!1,function(e,t){e.forEach(e=>{let r=nY(e);t.set(r,e)})}(c,h),p.current=d}),l=()=>{m.current=!0,h.clear(),f.clear()},(0,v.useEffect)(()=>()=>l(),[]),m.current)return(0,k.jsx)(k.Fragment,{children:d.map(e=>(0,k.jsx)(nU,{isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:o,mode:s,children:e},nY(e)))});d=[...d];let g=p.current.map(nY),y=c.map(nY),b=g.length;for(let e=0;e{if(-1!==y.indexOf(r))return;let i=h.get(r);if(!i)return;let l=g.indexOf(r),m=e;m||(m=(0,k.jsx)(nU,{isPresent:!1,onExitComplete:()=>{f.delete(r);let e=Array.from(h.keys()).filter(e=>!y.includes(e));if(e.forEach(e=>h.delete(e)),p.current=c.filter(t=>{let n=nY(t);return n===r||e.includes(n)}),!f.size){if(!1===u.current)return;a(),n&&n()}},custom:t,presenceAffectsLayout:o,mode:s,children:i},nY(i)),f.set(r,m)),d.splice(l,0,m)}),d=d.map(e=>{let t=e.key;return f.has(t)?e:(0,k.jsx)(nU,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:e},nY(e))}),(0,k.jsx)(k.Fragment,{children:f.size?d:d.map(e=>(0,v.cloneElement)(e))})};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 nX={scaleSpring:{enter:{transform:"scale(1)",opacity:1,transition:{type:"spring",bounce:0,duration:.3}},exit:{transform:"scale(0.6)",opacity:0,transition:{type:"easeOut",duration:.2}}},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}}}},nZ=(0,E.Gp)((e,t)=>{let{Component:r,classNames:n,slots:i,indicator:o,children:s,title:a,subtitle:u,startContent:c,isOpen:E,isDisabled:C,hideIndicator:M,keepContentMounted:A,disableAnimation:F,motionProps:I,getBaseProps:V,getHeadingProps:L,getButtonProps:R,getTitleProps:O,getSubtitleProps:j,getContentProps:D,getIndicatorProps:B}=function(e){var t;let{ref:r,as:n,item:i,onFocusChange:o}=e,{state:s,className:a,indicator:u,children:c,title:E,subtitle:k,startContent:K,motionProps:C,focusedKey:M,isCompact:A=!1,classNames:F={},isDisabled:I=!1,hideIndicator:V=!1,disableAnimation:L=!1,keepContentMounted:R=!1,disableIndicatorAnimation:O=!1,onPress:N,onPressStart:j,onPressEnd:D,onPressChange:B,onPressUp:z,onClick:$,...W}=e,H=n||"div",U="string"==typeof H,G=(0,m.gy)(r),Y=s.disabledKeys.has(i.key)||I,q=s.selectionManager.isSelected(i.key),{buttonProps:_,regionProps:X}=function(e,t,r){let{item:n,isDisabled:i}=e,o=n.key,s=t.selectionManager,l=(0,v.useId)(),a=(0,v.useId)(),u=t.disabledKeys.has(n.key)||i;(0,v.useEffect)(()=>{o===t.focusedKey&&document.activeElement!==r.current&&r.current&&(0,y.e)(r.current)},[r,o,t.focusedKey]);let c=(0,v.useCallback)(e=>{s.canSelectItem(o)&&(s.select(o,e),t.toggleKey(o))},[o,s]),d=(0,v.useCallback)(e=>{"replace"===s.selectionBehavior&&s.extendSelection(e),s.setFocusedKey(e)},[s]),f=(0,v.useCallback)(e=>{let r={ArrowDown:()=>{let e=t.collection.getKeyAfter(o);if(e&&t.disabledKeys.has(e)){let r=t.collection.getKeyAfter(e);r&&d(r)}else e&&d(e)},ArrowUp:()=>{let e=t.collection.getKeyBefore(o);if(e&&t.disabledKeys.has(e)){let r=t.collection.getKeyBefore(e);r&&d(r)}else e&&d(e)},Home:()=>{let e=t.collection.getFirstKey();e&&d(e)},End:()=>{let e=t.collection.getLastKey();e&&d(e)}}[e.key];r&&(e.preventDefault(),s.canSelectItem(o)&&r(e))},[o,s]),{buttonProps:p}=function(e,t){let r,{elementType:n="button",isDisabled:i,onPress:o,onPressStart:s,onPressEnd:l,onPressUp:a,onPressChange:u,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:h,rel:m,type:g="button"}=e;r="button"===n?{type:g,disabled:i}:{role:"button",tabIndex:i?void 0:0,href:"a"===n&&i?void 0:p,target:"a"===n?h:void 0,type:"input"===n?g:void 0,disabled:"input"===n?i:void 0,"aria-disabled":i&&"input"!==n?i:void 0,rel:"a"===n?m:void 0};let{pressProps:v,isPressed:y}=(0,S.r)({onPressStart:s,onPressEnd:l,onPressChange:u,onPress:o,onPressUp:a,isDisabled:i,preventFocusOnPress:c,ref:t}),{focusableProps:T}=(0,x.k)(e,t);d&&(T.tabIndex=i?-1:T.tabIndex);let P=(0,b.d)(T,v,(0,w.z)(e,{labelable:!0}));return{isPressed:y,buttonProps:(0,b.d)(r,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:e=>{f&&(f(e),console.warn("onClick is deprecated, please use onPress"))}})}}({id:l,elementType:"button",isDisabled:u,onKeyDown:f,onPress:c},r),h=t.selectionManager.isSelected(n.key);return{buttonProps:{...p,"aria-expanded":h,"aria-controls":h?a:void 0},regionProps:{id:a,role:"region","aria-labelledby":l}}}({item:i,isDisabled:Y},{...s,focusedKey:M},G),{onFocus:Z,onBlur:J,...Q}=_,{isFocused:ee,isFocusVisible:et,focusProps:er}=(0,l.F)({autoFocus:null==(t=i.props)?void 0:t.autoFocus}),{isHovered:en,hoverProps:ei}=(0,P.X)({isDisabled:Y}),{pressProps:eo,isPressed:es}=(0,S.r)({ref:G,isDisabled:Y,onPress:N,onPressStart:j,onPressEnd:D,onPressChange:B,onPressUp:z}),el=(0,v.useCallback)(()=>{null==o||o(!0,i.key)},[]),ea=(0,v.useCallback)(()=>{null==o||o(!1,i.key)},[]),eu=(0,v.useMemo)(()=>({...F}),[(0,f.Xx)(F)]),ec=(0,v.useMemo)(()=>d({isCompact:A,isDisabled:Y,hideIndicator:V,disableAnimation:L,disableIndicatorAnimation:O}),[A,Y,V,L,O]),ed=(0,p.W)(null==eu?void 0:eu.base,a),ef=(0,v.useCallback)((e={})=>({"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.base({class:ed}),...(0,b.d)((0,g.z)(W,{enabled:U}),e)}),[ed,U,W,ec,i.props,q,Y]),ep=(0,v.useCallback)((e={})=>({"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.content({class:null==eu?void 0:eu.content}),...(0,b.d)(X,e)}),[ec,eu,X,q,Y,null==eu?void 0:eu.content]),eh=(0,v.useCallback)((e={})=>({"aria-hidden":(0,h.PB)(!0),"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.indicator({class:null==eu?void 0:eu.indicator}),...e}),[ec,null==eu?void 0:eu.indicator,q,Y,null==eu?void 0:eu.indicator]),em=(0,v.useCallback)((e={})=>({"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.heading({class:null==eu?void 0:eu.heading}),...e}),[ec,null==eu?void 0:eu.heading,q,Y,null==eu?void 0:eu.heading]),eg=(0,v.useCallback)((e={})=>({"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.title({class:null==eu?void 0:eu.title}),...e}),[ec,null==eu?void 0:eu.title,q,Y,null==eu?void 0:eu.title]),ev=(0,v.useCallback)((e={})=>({"data-open":(0,h.PB)(q),"data-disabled":(0,h.PB)(Y),className:ec.subtitle({class:null==eu?void 0:eu.subtitle}),...e}),[ec,eu,q,Y,null==eu?void 0:eu.subtitle]);return{Component:H,item:i,slots:ec,classNames:eu,domRef:G,indicator:u,children:c,title:E,subtitle:k,startContent:K,isOpen:q,isDisabled:Y,hideIndicator:V,keepContentMounted:R,disableAnimation:L,motionProps:C,getBaseProps:ef,getHeadingProps:em,getButtonProps:(e={})=>{var t,r;return{ref:G,"data-open":(0,h.PB)(q),"data-focus":(0,h.PB)(ee),"data-focus-visible":(0,h.PB)(et),"data-disabled":(0,h.PB)(Y),"data-hover":(0,h.PB)(en),"data-pressed":(0,h.PB)(es),className:ec.trigger({class:null==eu?void 0:eu.trigger}),onFocus:(0,f.v0)(el,Z,er.onFocus,W.onFocus,null==(t=i.props)?void 0:t.onFocus),onBlur:(0,f.v0)(ea,J,er.onBlur,W.onBlur,null==(r=i.props)?void 0:r.onBlur),...(0,b.d)(Q,ei,eo,e),onClick:(0,T.t)(eo.onClick,$)}},getContentProps:ep,getIndicatorProps:eh,getTitleProps:eg,getSubtitleProps:ev}}({...e,ref:t}),z=N(()=>new et("auto")),$=(0,v.useMemo)(()=>"function"==typeof o?o({indicator:(0,k.jsx)(K,{}),isOpen:E,isDisabled:C}):o||null,[o,E,C]),W=$||(0,k.jsx)(K,{}),H=(0,v.useMemo)(()=>F?(0,k.jsx)("div",{...D(),children:s}):A?(0,k.jsx)(es,{features:ny,children:(0,k.jsx)(nB.section,{animate:E?"enter":"exit",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:z},variants:nX.collapse,...I,children:(0,k.jsx)("div",{...D(),children:s})},"accordion-content")}):(0,k.jsx)(nq,{initial:!1,children:E&&(0,k.jsx)(es,{features:ny,children:(0,k.jsx)(nB.section,{animate:"enter",exit:"exit",initial:"exit",style:{overflowY:"hidden",willChange:z},variants:nX.collapse,...I,children:(0,k.jsx)("div",{...D(),children:s})},"accordion-content")})}),[E,F,A,s,I]);return(0,k.jsxs)(r,{...V(),children:[(0,k.jsx)("h2",{...L(),children:(0,k.jsxs)("button",{...R(),children:[c&&(0,k.jsx)("div",{className:i.startContent({class:null==n?void 0:n.startContent}),children:c}),(0,k.jsxs)("div",{className:i.titleWrapper({class:null==n?void 0:n.titleWrapper}),children:[a&&(0,k.jsx)("span",{...O(),children:a}),u&&(0,k.jsx)("span",{...j(),children:u})]}),!M&&W&&(0,k.jsx)("span",{...B(),children:W})]})}),H]})});nZ.displayName="NextUI.AccordionItem";class nJ{*[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){return this.getItem([...this.getKeys()][e])}constructor(e,{expandedKeys:t}={}){let r;this.keyMap=new Map,this.iterable=e,t=t||new Set;let n=e=>{if(this.keyMap.set(e.key,e),e.childNodes&&("section"===e.type||t.has(e.key)))for(let t of e.childNodes)n(t)};for(let t of e)n(t);let i=0;for(let[e,t]of this.keyMap)r?(r.nextKey=e,t.prevKey=r.key):(this.firstKey=e,t.prevKey=void 0),"item"===t.type&&(t.index=i++),(r=t).nextKey=void 0;this.lastKey=null==r?void 0:r.key}}var nQ=r(4155),n0=r(4212),n1=r(9825),n2=r(9373),n5=r(7127),n3=r(6791);class n9{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null===(t=e.props)||void 0===t?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}getNextKey(e){for(e=this.collection.getKeyAfter(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getPreviousKey(e){for(e=this.collection.getKeyBefore(e);null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}findKey(e,t,r){let n=this.getItem(e);if(!n)return null;let i=n.getBoundingClientRect();do e=t(e),n=this.getItem(e);while(n&&r(i,n.getBoundingClientRect()));return e}isSameRow(e,t){return e.top===t.top||e.left!==t.left}isSameColumn(e,t){return e.left===t.left||e.top!==t.top}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){return"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){return"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();for(;null!=e;){let t=this.collection.getItem(e);if((null==t?void 0:t.type)==="item"&&!this.isDisabled(t))return e;e=this.collection.getKeyAfter(e)}return null}getLastKey(){let e=this.collection.getLastKey();for(;null!=e;){let t=this.collection.getItem(e);if("item"===t.type&&!this.isDisabled(t))return e;e=this.collection.getKeyBefore(e)}return null}getItem(e){return null!==e?this.ref.current.querySelector(`[data-key="${CSS.escape(e.toString())}"]`):null}getKeyPageAbove(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;if(!(0,n3.a)(t))return this.getFirstKey();let n=t.getBoundingClientRect(),i=r.getBoundingClientRect();if("horizontal"===this.orientation){let o=n.x-t.scrollLeft,s=Math.max(0,i.x-o+i.width-n.width);for(;r&&i.x-o>s;)i=null==(r=null==(e=this.getKeyAbove(e))?null:this.getItem(e))?void 0:r.getBoundingClientRect()}else{let o=n.y-t.scrollTop,s=Math.max(0,i.y-o+i.height-n.height);for(;r&&i.y-o>s;)i=null==(r=null==(e=this.getKeyAbove(e))?null:this.getItem(e))?void 0:r.getBoundingClientRect()}return null!=e?e:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,r=this.getItem(e);if(!r)return null;if(!(0,n3.a)(t))return this.getLastKey();let n=t.getBoundingClientRect(),i=r.getBoundingClientRect();if("horizontal"===this.orientation){let o=n.x-t.scrollLeft,s=Math.min(t.scrollWidth,i.x-o-i.width+n.width);for(;r&&i.x-o!e.isLayoutDirty&&e.willUpdate(!1),n8=e=>!0===e,ie=e=>n8(!0===e)||"id"===e,it=({children:e,id:t,inherit:r=!0})=>{let n=(0,v.useContext)(nk),i=(0,v.useContext)(n4),[o,s]=n$(),l=(0,v.useRef)(null),a=n.id||i;null===l.current&&(ie(r)&&a&&(t=t?a+"-"+t:a),l.current={id:t,group:n8(r)&&n.group||function(){let e=new Set,t=new WeakMap,r=()=>e.forEach(n6);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,v.useMemo)(()=>({...l.current,forceRender:o}),[s]);return(0,k.jsx)(nk.Provider,{value:u,children:e})};var ir=(0,a.tv)({base:"shrink-0 bg-divider border-none",variants:{orientation:{horizontal:"w-full h-divider",vertical:"h-full w-divider"}},defaultVariants:{orientation:"horizontal"}}),ii=(0,E.Gp)((e,t)=>{let{Component:r,getDividerProps:n}=function(e){var t;let r,n;let{as:i,className:o,orientation:s,...l}=e,a=i||"hr";"hr"===a&&"vertical"===s&&(a="div");let{separatorProps:u}=(t={elementType:"string"==typeof a?a:"hr",orientation:s},n=(0,g.z)(t,{enabled:"string"==typeof t.elementType}),("vertical"===t.orientation&&(r="vertical"),"hr"!==t.elementType)?{separatorProps:{...n,role:"separator","aria-orientation":r}}:{separatorProps:n}),c=(0,v.useMemo)(()=>ir({orientation:s,className:o}),[s,o]),d=(0,v.useCallback)((e={})=>({className:c,role:"separator","data-orientation":s,...u,...l,...e}),[c,s,u,l]);return{Component:a,getDividerProps:d}}({...e});return(0,k.jsx)(r,{ref:t,...n()})});ii.displayName="NextUI.Divider";var io=(0,E.Gp)((e,t)=>{let{Component:r,values:n,state:i,isSplitted:o,showDivider:s,getBaseProps:l,disableAnimation:a,handleFocusChanged:u,itemClasses:d}=function(e){let{ref:t,as:r,className:n,items:i,variant:o,motionProps:s,expandedKeys:l,disabledKeys:a,selectedKeys:u,children:d,defaultExpandedKeys:f,selectionMode:p="single",selectionBehavior:h="toggle",keepContentMounted:y=!1,disallowEmptySelection:w,defaultSelectedKeys:x,onExpandedChange:S,onSelectionChange:T,dividerProps:P={},isCompact:E=!1,isDisabled:k=!1,showDivider:K=!0,hideIndicator:C=!1,disableAnimation:M=!1,disableIndicatorAnimation:A=!1,itemClasses:F,...I}=e,[V,L]=(0,v.useState)(null),R=r||"div",O="string"==typeof R,N=(0,m.gy)(t),j=(0,v.useMemo)(()=>c({variant:o,className:n}),[o,n]),D=(0,v.useMemo)(()=>{let e=[];return v.Children.map(d,t=>{var r;if(v.isValidElement(t)&&"string"!=typeof(null==(r=t.props)?void 0:r.children)){let r=v.cloneElement(t,{hasChildItems:!1});e.push(r)}else e.push(t)}),e},[d]),B={children:D,items:i},z={expandedKeys:l,defaultExpandedKeys:f,onExpandedChange:S},$={disabledKeys:a,selectedKeys:u,selectionMode:p,selectionBehavior:h,disallowEmptySelection:w,defaultSelectedKeys:null!=x?x:f,onSelectionChange:T,...B,...z},W=function(e){let{onExpandedChange:t}=e,[r,n]=(0,n2.z)(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=(0,nQ.q)(e),o=(0,v.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),s=(0,n1.K)(e,(0,v.useCallback)(e=>new nJ(e,{expandedKeys:r}),[r]),null);return(0,v.useEffect)(()=>{null==i.focusedKey||s.getItem(i.focusedKey)||i.setFocusedKey(null)},[s,i.focusedKey]),{collection:s,expandedKeys:r,disabledKeys:o,toggleKey:e=>{let t;n(((t=new Set(r)).has(e)?t.delete(e):t.add(e),t))},setExpandedKeys:n,selectionManager:new n0.Z(s,i)}}($);W.selectionManager.setFocusedKey=e=>{L(e)};let{accordionProps:H}=function(e,t,r){let{listProps:n}=function(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:i,keyboardDelegate:o}=e,s=(0,n7.X)({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,a=(0,v.useMemo)(()=>o||new n9({collection:r,disabledKeys:n,disabledBehavior:l,ref:i,collator:s}),[o,r,n,i,s,l]),{collectionProps:u}=(0,n5.g)({...e,ref:i,selectionManager:t,keyboardDelegate:a});return{listProps:u}}({...e,...t,allowsTabNavigation:!0,disallowSelectAll:!0,ref:r});return delete n.onKeyDownCapture,{accordionProps:{...n,tabIndex:void 0}}}({...B,...z},W,N),U=(0,v.useMemo)(()=>({state:W,focusedKey:V,motionProps:s,isCompact:E,isDisabled:k,hideIndicator:C,disableAnimation:M,keepContentMounted:y,disableIndicatorAnimation:A}),[V,E,k,C,u,M,y,null==W?void 0:W.expandedKeys.values,A,W.expandedKeys.size,W.disabledKeys.size,s]),G=(0,v.useCallback)((e={})=>({ref:N,className:j,"data-orientation":"vertical",...(0,b.d)(H,(0,g.z)(I,{enabled:O}),e)}),[]),Y=(0,v.useCallback)((e,t)=>{e&&L(t)},[]);return{Component:R,values:U,state:W,focusedKey:V,getBaseProps:G,isSplitted:"splitted"===o,classNames:j,showDivider:K,dividerProps:P,disableAnimation:M,handleFocusChanged:Y,itemClasses:F}}({...e,ref:t}),f=(0,v.useCallback)((e,t)=>u(e,t),[u]),p=(0,v.useMemo)(()=>[...i.collection].map((e,t)=>{let r={...d,...e.props.classNames||{}};return(0,k.jsxs)(v.Fragment,{children:[(0,k.jsx)(nZ,{item:e,onFocusChange:f,...n,...e.props,classNames:r}),!e.props.hidden&&!o&&s&&t 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:l,"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(o,t=>{e.push({type:"item",element:t})}),yield*e}}}};var o=i},7963:function(e,t,r){r.d(t,{z:function(){return a}});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"]),o=/^(data-.*)$/,s=/^(aria-.*)$/,l=/^(on[A-Z].*)$/;function a(e,t={}){let{labelable:r=!0,enabled:a=!0,propNames:u,omitPropNames:c,omitEventNames:d,omitDataProps:f,omitEventProps:p}=t,h={};if(!a)return e;for(let t in e)!((null==c?void 0:c.has(t))||(null==d?void 0:d.has(t))&&l.test(t)||l.test(t)&&!i.has(t)||f&&o.test(t)||p&&l.test(t))&&(Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&s.test(t)||(null==u?void 0:u.has(t))||o.test(t))||l.test(t))&&(h[t]=e[t]);return h}},3295:function(e,t,r){r.d(t,{gy:function(){return i}});var n=r(7294);function i(e){let t=(0,n.useRef)(null);return(0,n.useImperativeHandle)(e,()=>t.current),t}"undefined"!=typeof window&&window.document&&window.document.createElement},9869:function(e,t,r){r.d(t,{W:function(){return n}});function n(...e){for(var t,r,i=0,o="";ie?"true":void 0},9037:function(e,t,r){function n(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}function i(e){if(!e||"object"!=typeof e)return"";try{return JSON.stringify(e)}catch(e){return""}}r.d(t,{Xx:function(){return i},v0:function(){return n}})},5015:function(e,t,r){r.d(t,{Gp:function(){return i},oe:function(){return o}});var n=r(7294);function i(e){return(0,n.forwardRef)(e)}var o=(e,t,r=!0)=>{if(!t)return[e,{}];let n=t.reduce((t,r)=>r in e?{...t,[r]:e[r]}:t,{});if(!r)return[e,n];{let r=Object.keys(e).filter(e=>!t.includes(e)).reduce((t,r)=>({...t,[r]:e[r]}),{});return[r,n]}}},1264:function(e,t,r){r.d(t,{tv:function(){return et}});var n=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=e=>!e||"object"!=typeof e||0===Object.keys(e).length,o=(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 l=(...e)=>s(e).filter(Boolean),a=(e,t)=>{let r={},n=Object.keys(e),i=Object.keys(t);for(let o of n)if(i.includes(o)){let n=e[o],i=t[o];"object"==typeof n&&"object"==typeof i?r[o]=a(n,i):Array.isArray(n)||Array.isArray(i)?r[o]=l(i,n):r[o]=i+" "+n}else r[o]=e[o];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,c=/^\[(.+)\]$/;function d(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 f=/\s+/;function p(){for(var e,t,r=0,n="";re&&(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 o,s=[],l=0,a=0,u=0;ua?o-a:void 0}}),...(a=e.theme,u=e.prefix,f={nextPart:new Map,validators:[]},(p=Object.entries(e.classGroups),u?p.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})]}):p).forEach(function(e){var t=e[0];(function e(t,r,n,i){t.forEach(function(t){if("string"==typeof t){(""===t?r:d(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 o=t[0];e(t[1],d(r,o),n,i)})})})(e[1],f,t,a)}),o=e.conflictingClassGroups,l=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),o=i?e(t.slice(1),i):void 0;if(o)return o;if(0!==r.validators.length){var s=t.join("-");return r.validators.find(function(e){return(0,e.validator)(s)})?.classGroupId}}(t,f)||function(e){if(c.test(e)){var t=c.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}}(e)},getConflictingClassGroupIds:function(e,t){var r=o[e]||[];return t&&l[e]?[].concat(r,l[e]):r}})}}(i.slice(1).reduce(function(e,t){return t(e)},o()))).cache.get,r=e.cache.set,s=l,l(n)};function l(n){var i,o,s,l,a,u=t(n);if(u)return u;var c=(o=(i=e).splitModifiers,s=i.getClassGroupId,l=i.getConflictingClassGroupIds,a=new Set,n.trim().split(f).map(function(e){var t=o(e),r=t.modifiers,n=t.hasImportantModifier,i=t.baseClassName,l=t.maybePostfixModifierPosition,a=s(l?i.substring(0,l):i),u=!!l;if(!a){if(!l||!(a=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:a,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!a.has(i)&&(a.add(i),l(r,n).forEach(function(e){return a.add(t+e)}),!0)}).reverse().map(function(e){return e.originalClassName}).join(" "));return r(n,c),c}return function(){return s(p.apply(null,arguments))}}function m(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var g=/^\[(?:([a-z-]+):)?(.+)\]$/i,v=/^\d+\/\d+$/,y=new Set(["px","full","screen"]),b=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,w=/\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$/,x=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function S(e){return C(e)||y.has(e)||v.test(e)||T(e)}function T(e){return R(e,"length",O)}function P(e){return R(e,"size",N)}function E(e){return R(e,"position",N)}function k(e){return R(e,"url",j)}function K(e){return R(e,"number",C)}function C(e){return!Number.isNaN(Number(e))}function M(e){return e.endsWith("%")&&C(e.slice(0,-1))}function A(e){return D(e)||R(e,"number",D)}function F(e){return g.test(e)}function I(){return!0}function V(e){return b.test(e)}function L(e){return R(e,"",B)}function R(e,t,r){var n=g.exec(e);return!!n&&(n[1]?n[1]===t:r(n[2]))}function O(e){return w.test(e)}function N(){return!1}function j(e){return e.startsWith("url(")}function D(e){return Number.isInteger(Number(e))}function B(e){return x.test(e)}function z(){var e=m("colors"),t=m("spacing"),r=m("blur"),n=m("brightness"),i=m("borderColor"),o=m("borderRadius"),s=m("borderSpacing"),l=m("borderWidth"),a=m("contrast"),u=m("grayscale"),c=m("hueRotate"),d=m("invert"),f=m("gap"),p=m("gradientColorStops"),h=m("gradientColorStopPositions"),g=m("inset"),v=m("margin"),y=m("opacity"),b=m("padding"),w=m("saturate"),x=m("scale"),R=m("sepia"),O=m("skew"),N=m("space"),j=m("translate"),D=function(){return["auto","contain","none"]},B=function(){return["auto","hidden","clip","visible","scroll"]},z=function(){return["auto",F,t]},$=function(){return[F,t]},W=function(){return["",S]},H=function(){return["auto",C,F]},U=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},G=function(){return["solid","dashed","dotted","double","none"]},Y=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},q=function(){return["start","end","center","between","around","evenly","stretch"]},_=function(){return["","0",F]},X=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},Z=function(){return[C,K]},J=function(){return[C,F]};return{cacheSize:500,theme:{colors:[I],spacing:[S],blur:["none","",V,F],brightness:Z(),borderColor:[e],borderRadius:["none","","full",V,F],borderSpacing:$(),borderWidth:W(),contrast:Z(),grayscale:_(),hueRotate:J(),invert:_(),gap:$(),gradientColorStops:[e],gradientColorStopPositions:[M,T],inset:z(),margin:z(),opacity:Z(),padding:$(),saturate:Z(),scale:Z(),sepia:_(),skew:J(),space:$(),translate:$()},classGroups:{aspect:[{aspect:["auto","square","video",F]}],container:["container"],columns:[{columns:[V]}],"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(),[F])}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",A]}],basis:[{basis:z()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",F]}],grow:[{grow:_()}],shrink:[{shrink:_()}],order:[{order:["first","last","none",A]}],"grid-cols":[{"grid-cols":[I]}],"col-start-end":[{col:["auto",{span:["full",A]},F]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[I]}],"row-start-end":[{row:["auto",{span:[A]},F]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",F]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",F]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal"].concat(q())}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(q(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(q(),["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:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",F,t]}],"min-w":[{"min-w":["min","max","fit",F,S]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[V]},V,F]}],h:[{h:[F,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",F,S]}],"max-h":[{"max-h":[F,t,"min","max","fit"]}],"font-size":[{text:["base",V,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",K]}],"font-family":[{font:[I]}],"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",F]}],"line-clamp":[{"line-clamp":["none",C,K]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",F,S]}],"list-image":[{"list-image":["none",F]}],"list-style-type":[{list:["none","disc","decimal",F]}],"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",S]}],"underline-offset":[{"underline-offset":["auto",F,S]}],"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",F]}],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",F]}],"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(),[E])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",P]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},k]}],"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:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[].concat(G(),["hidden"])}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"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":[F,S]}],"outline-w":[{outline:[S]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[S]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",V,L]}],"shadow-color":[{shadow:[I]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":Y()}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",V,F]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[R]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"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":[R]}],"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",F]}],duration:[{duration:J()}],ease:[{ease:["linear","in","out","in-out",F]}],delay:[{delay:J()}],animate:[{animate:["none","spin","ping","pulse","bounce",F]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[x]}],"scale-x":[{"scale-x":[x]}],"scale-y":[{"scale-y":[x]}],rotate:[{rotate:[A,F]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",F]}],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",F]}],"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",F]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[S,K]}],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 $=h(z),W=Object.prototype.hasOwnProperty,H=new Set(["string","number","boolean"]),U={twMerge:!0,twMergeConfig:{},responsiveVariants:!1},G=e=>e||void 0,Y=(...e)=>G(s(e).filter(Boolean).join(" ")),q=null,_={},X=!1,Z=(...e)=>t=>t.twMerge?((!q||X)&&(X=!1,q=i(_)?$:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n{for(let r in t)e.hasOwnProperty(r)?e[r]=Y(e[r],t[r]):e[r]=t[r];return e},Q=(e,t)=>{let{extend:r=null,slots:s={},variants:c={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:p={}}=e,h={...U,...t},m=null!=r&&r.base?Y(r.base,null==e?void 0:e.base):null==e?void 0:e.base,g=null!=r&&r.variants&&!i(r.variants)?a(c,r.variants):c,v=null!=r&&r.defaultVariants&&!i(r.defaultVariants)?{...r.defaultVariants,...p}:p;i(h.twMergeConfig)||o(h.twMergeConfig,_)||(X=!0,_=h.twMergeConfig);let y=i(null==r?void 0:r.slots),b=i(s)?{}:{base:Y(null==e?void 0:e.base,y&&(null==r?void 0:r.base)),...s},w=y?b:J({...null==r?void 0:r.slots},i(b)?{base:null==e?void 0:e.base}:b),x=e=>{if(i(g)&&i(s)&&y)return Z(m,null==e?void 0:e.class,null==e?void 0:e.className)(h);if(d&&!Array.isArray(d))throw TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof d}`);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 o=t[r];if(o&&"string"==typeof o){let t=u(o);i[n]?i[n]=i[n].concat(t.split(" ").map(t=>`${e}:${t}`)):i[n]=t.split(" ").map(t=>`${e}:${t}`)}else Array.isArray(o)&&o.length>0&&(i[n]=o.reduce((t,r)=>t.concat(`${e}:${r}`),[]))}}return i},o=(r,o=g,s=null,l=null)=>{var a;let u=o[r];if(!u||i(u))return null;let c=null!=(a=null==l?void 0:l[r])?a: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[d]||u[n(p)];return"object"==typeof m&&"string"==typeof s&&m[s]?J(m,y):m.length>0?(m.push(y),m):y},a=(e,t)=>{if(!g||"object"!=typeof g)return null;let r=[];for(let n in g){let i=o(n,g,e,t),s="base"===e&&"string"==typeof i?i:i&&i[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,...o}of e){let e=!0;for(let[r,n]of Object.entries(o)){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(d,e);return l(b(null==r?void 0:r.compoundVariants,e),t)},S=e=>{let t=x(e);if(!Array.isArray(t))return t;let r={};for(let e of t)if("string"==typeof e&&(r.base=Z(r.base,e)(h)),"object"==typeof e)for(let[t,n]of Object.entries(e))r[t]=Z(r[t],n)(h);return r},T=e=>{if(f.length<1)return null;let t={};for(let{slots:r=[],class:n,className:o,...s}of f){if(!i(s)){let t=!0;for(let r of Object.keys(s)){let n=p(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,o])}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 Z(w[t],a(t,e),(null!=(r=S(e))?r:[])[t],(null!=(n=T(e))?n:[])[t],null==e?void 0:e.class,null==e?void 0:e.className)(h)};return e}return Z(m,g?Object.keys(g).map(e=>o(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=d,x},ee=["small","medium","large"],et=(e,t)=>{var r,n,i;return Q(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,opacity:["disabled"],spacing:["divider"],borderWidth:ee,borderRadius:ee},classGroups:{...null==(i=null==t?void 0:t.twMergeConfig)?void 0:i.classGroups,shadow:[{shadow:ee}],"font-size":[{text:["tiny",...ee]}],"bg-image":["bg-stripe-gradient"]}}})}},5512:function(e,t,r){r.d(t,{Dh:function(){return n},ID:function(){return i}});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"]},7873:function(e,t,r){r.d(t,{QL:function(){return a}});var n=r(8837);r(7294);let i=["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]"],o=i.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";i.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let s=i.join(':not([hidden]):not([tabindex="-1"]),');function l(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function a(e,t,r){let i=(null==t?void 0:t.tabbable)?s:o,a=(0,n.r)(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var o;return(null==t?void 0:null===(o=t.from)||void 0===o?void 0:o.contains(e))?NodeFilter.FILTER_REJECT:e.matches(i)&&function e(t,r){return"#comment"!==t.nodeName&&function(e){let t=(0,n.k)(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:r,visibility:i}=e.style,o="none"!==r&&"hidden"!==i&&"collapse"!==i;if(o){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n}=t(e);o="none"!==r&&"hidden"!==n&&"collapse"!==n}return o}(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||l(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 u{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 c({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&&l(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 u;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 c({scopeRef:null}),this.fastMap.set(null,this.root)}}class c{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 u},6590:function(e,t,r){r.d(t,{e:function(){return l}});var n=r(8837),i=r(5007),o=r(7604),s=r(9975);function l(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,o.A)(e)})}else(0,o.A)(e)}},2459:function(e,t,r){r.d(t,{F:function(){return l}});var n=r(9975),i=r(7234),o=r(4971),s=r(7294);function l(e={}){let{autoFocus:t=!1,isTextInput:r,within:l}=e,a=(0,s.useRef)({isFocused:!1,isFocusVisible:t||(0,n.E)()}),[u,c]=(0,s.useState)(!1),[d,f]=(0,s.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),p=(0,s.useCallback)(()=>f(a.current.isFocused&&a.current.isFocusVisible),[]),h=(0,s.useCallback)(e=>{a.current.isFocused=e,c(e),p()},[p]);(0,n.mG)(e=>{a.current.isFocusVisible=e,p()},[],{isTextInput:r});let{focusProps:m}=(0,i.K)({isDisabled:l,onFocusChange:h}),{focusWithinProps:g}=(0,o.L)({isDisabled:!l,onFocusWithinChange:h});return{isFocused:u,isFocusVisible:d,focusProps:l?g:m}}},1080:function(e,t,r){r.d(t,{k:function(){return c}});var n=r(6590),i=r(2970),o=r(2009),s=r(7294),l=r(7234);function a(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,l.K)(e),{keyboardProps:c}={keyboardProps:e.isDisabled?{}:{onKeyDown:a(e.onKeyDown),onKeyUp:a(e.onKeyUp)}},d=(0,o.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,o.d)({...d,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},p)}}},3394:function(e,t,r){r.d(t,{X:function(){return o}});var n=r(4792);let i=new Map;function o(e){let{locale:t}=(0,n.j)(),r=t+(e?Object.entries(e).sort((e,t)=>e[0]{if(e.target===e.currentTarget)return s&&s(e),l&&l(!1),!0},[s,l]),u=(0,n.d)(a),c=(0,i.useCallback)(e=>{let t=(0,o.r)(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(r&&r(e),l&&l(!0),u(e))},[l,r,u]);return{focusProps:{onFocus:!t&&(r||l||s)?c:void 0,onBlur:!t&&(s||l)?a:void 0}}}},9975:function(e,t,r){r.d(t,{E:function(){return S},Jz:function(){return T},Kf:function(){return E},_w:function(){return P},mG:function(){return K}});var n=r(8806),i=r(6301),o=r(8837),s=r(7294),l=r(7385);let a=null,u=new Set,c=new Map,d=!1,f=!1,p={Tab:!0,Escape:!0};function h(e,t){for(let r of u)r(e,t)}function m(e){d=!0,e.metaKey||!(0,n.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(a="keyboard",h("keyboard",e))}function g(e){a="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(d=!0,h("pointer",e))}function v(e){(0,i.Z)(e)&&(d=!0,a="virtual")}function y(e){e.target!==window&&e.target!==document&&(d||f||(a="virtual",h("virtual",e)),d=!1,f=!1)}function b(){d=!1,f=!0}function w(e){if("undefined"==typeof window||c.get((0,o.k)(e)))return;let t=(0,o.k)(e),r=(0,o.r)(e),n=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){d=!0,n.apply(this,arguments)},r.addEventListener("keydown",m,!0),r.addEventListener("keyup",m,!0),r.addEventListener("click",v,!0),t.addEventListener("focus",y,!0),t.addEventListener("blur",b,!1),"undefined"!=typeof PointerEvent?(r.addEventListener("pointerdown",g,!0),r.addEventListener("pointermove",g,!0),r.addEventListener("pointerup",g,!0)):(r.addEventListener("mousedown",g,!0),r.addEventListener("mousemove",g,!0),r.addEventListener("mouseup",g,!0)),t.addEventListener("beforeunload",()=>{x(e)},{once:!0}),c.set(t,{focus:n})}let x=(e,t)=>{let r=(0,o.k)(e),n=(0,o.r)(e);t&&n.removeEventListener("DOMContentLoaded",t),c.has(r)&&(r.HTMLElement.prototype.focus=c.get(r).focus,n.removeEventListener("keydown",m,!0),n.removeEventListener("keyup",m,!0),n.removeEventListener("click",v,!0),r.removeEventListener("focus",y,!0),r.removeEventListener("blur",b,!1),"undefined"!=typeof PointerEvent?(n.removeEventListener("pointerdown",g,!0),n.removeEventListener("pointermove",g,!0),n.removeEventListener("pointerup",g,!0)):(n.removeEventListener("mousedown",g,!0),n.removeEventListener("mousemove",g,!0),n.removeEventListener("mouseup",g,!0)),c.delete(r))};function S(){return"pointer"!==a}function T(){return a}function P(e){a=e,h(e,null)}function E(){w();let[e,t]=(0,s.useState)(a);return(0,s.useEffect)(()=>{let e=()=>{t(a)};return u.add(e),()=>{u.delete(e)}},[]),(0,l.Av)()?null:e}"undefined"!=typeof document&&function(e){let t;let r=(0,o.r)(e);"loading"!==r.readyState?w(e):(t=()=>{w(e)},r.addEventListener("DOMContentLoaded",t)),()=>x(e,t)}();let k=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function K(e,t,r){w(),(0,s.useEffect)(()=>{let t=(t,n)=>{(function(e,t,r){var n;let i="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLInputElement:HTMLInputElement,s="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,o.k)(null==r?void 0:r.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?(0,o.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 l&&(null==r?void 0:r.target.isContentEditable))&&"keyboard"===t&&r instanceof a&&!p[r.key])})(!!(null==r?void 0:r.isTextInput),t,n)&&e(S())};return u.add(t),()=>{u.delete(t)}},t)}},4971:function(e,t,r){r.d(t,{L:function(){return o}});var n=r(4247),i=r(7294);function o(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:o,onFocusWithinChange:s}=e,l=(0,i.useRef)({isFocusWithin:!1}),a=(0,i.useCallback)(e=>{l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,r&&r(e),s&&s(!1))},[r,s,l]),u=(0,n.d)(a),c=(0,i.useCallback)(e=>{l.current.isFocusWithin||document.activeElement!==e.target||(o&&o(e),s&&s(!0),l.current.isFocusWithin=!0,u(e))},[o,s,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:a}}}},8419:function(e,t,r){r.d(t,{X:function(){return u}});var n=r(7294);let i=!1,o=0;function s(){i=!0,setTimeout(()=>{i=!1},50)}function l(e){"touch"===e.pointerType&&s()}function a(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",l):document.addEventListener("touchend",s),o++,()=>{--o>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",l):document.removeEventListener("touchend",s))}}function u(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:o,isDisabled:s}=e,[l,u]=(0,n.useState)(!1),c=(0,n.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,n.useEffect)(a,[]);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;o&&o({type:"hoverend",target:n,pointerType:t}),r&&r(!1),u(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{i&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,e.pointerType)}):(l.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||i||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!s&&e.currentTarget.contains(e.target)&&n(e,"mouse")}),{hoverProps:l,triggerHoverEnd:n}},[t,r,o,s,c]);return(0,n.useEffect)(()=>{s&&f({currentTarget:c.target},c.pointerType)},[s]),{hoverProps:d,isHovered:l}}},9314:function(e,t,r){r.d(t,{r:function(){return K}});var n=r(8806),i=r(8837),o=r(5007);let s="default",l="",a=new WeakMap;function u(e){if((0,n.gn)()){if("default"===s){let t=(0,i.r)(e);l=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}s="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(a.set(e,e.style.userSelect),e.style.userSelect="none")}function c(e){if((0,n.gn)())"disabled"===s&&(s="restoring",setTimeout(()=>{(0,o.Q)(()=>{if("restoring"===s){let t=(0,i.r)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=l||""),l="",s="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&a.has(e)){let t=a.get(e);"none"===e.style.userSelect&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),a.delete(e)}}var d=r(7294);let f=d.createContext({register:()=>{}});function p(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}f.displayName="PressResponderContext";var h=r(7321);function m(e,t,r){var n=p(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,n,r),r}var g=r(2009),v=r(2970),y=r(6116),b=r(5279),w=r(1086),x=r(2433),S=r(6301),T=r(7604),P=new WeakMap;class E{continuePropagation(){m(this,P,!1)}get shouldStopPropagation(){var e;return(e=p(this,P,"get")).get?e.get.call(this):e.value}constructor(e,t,r){(0,h._)(this,P,{writable:!0,value:void 0}),m(this,P,!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 k=Symbol("linkClicked");function K(e){let{onPress:t,onPressChange:r,onPressStart:o,onPressEnd:s,onPressUp:l,isDisabled:a,isPressed:p,preventFocusOnPress:h,shouldCancelOnPointerExit:m,allowTextSelectionOnPress:P,ref:K,...R}=function(e){let t=(0,d.useContext)(f);if(t){let{register:r,...n}=t;e=(0,g.d)(n,e),r()}return(0,v.l)(t,e.ref),e}(e),[O,N]=(0,d.useState)(!1),j=(0,d.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:D,removeAllGlobalListeners:B}=(0,y.x)(),z=(0,b.i)((e,t)=>{let n=j.current;if(a||n.didFirePressStart)return!1;let i=!0;if(n.isTriggeringEvent=!0,o){let r=new E("pressstart",t,e);o(r),i=r.shouldStopPropagation}return r&&r(!0),n.isTriggeringEvent=!1,n.didFirePressStart=!0,N(!0),i}),$=(0,b.i)((e,n,i=!0)=>{let o=j.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let l=!0;if(s){let t=new E("pressend",n,e);s(t),l=t.shouldStopPropagation}if(r&&r(!1),N(!1),t&&i&&!a){let r=new E("press",n,e);t(r),l&&(l=r.shouldStopPropagation)}return o.isTriggeringEvent=!1,l}),W=(0,b.i)((e,t)=>{let r=j.current;if(a)return!1;if(l){r.isTriggeringEvent=!0;let n=new E("pressup",t,e);return l(n),r.isTriggeringEvent=!1,n.shouldStopPropagation}return!0}),H=(0,b.i)(e=>{let t=j.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&$(F(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,B(),P||c(t.target))}),U=(0,b.i)(e=>{m&&H(e)}),G=(0,d.useMemo)(()=>{let e=j.current,t={onKeyDown(t){if(M(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var o;L(t.target,t.key)&&t.preventDefault();let s=!0;if(!e.isPressed&&!t.repeat){e.target=t.currentTarget,e.isPressed=!0,s=z(t,"keyboard");let n=t.currentTarget;D((0,i.r)(t.currentTarget),"keyup",(0,w.t)(t=>{M(t,n)&&!t.repeat&&n.contains(t.target)&&e.target&&W(F(e.target,t),"keyboard")},r),!0)}s&&t.stopPropagation(),t.metaKey&&(0,n.V5)()&&(null===(o=e.metaKeyEvents)||void 0===o||o.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&&!x.nG.isOpening){let r=!0;if(a&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,S.Z)(t.nativeEvent))){a||h||(0,T.A)(t.currentTarget);let e=z(t,"virtual"),n=W(t,"virtual"),i=$(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)){L(t.target,t.key)&&t.preventDefault();let r=t.target;$(F(e.target,t),"keyboard",e.target.contains(r)),B(),"Enter"!==t.key&&C(e.target)&&e.target.contains(r)&&!t[k]&&(t[k]=!0,(0,x.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,S.c)(t.nativeEvent)){e.pointerType="virtual";return}V(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,a||h||(0,T.A)(t.currentTarget),P||u(e.target),s=z(t,e.pointerType),D((0,i.r)(t.currentTarget),"pointermove",r,!1),D((0,i.r)(t.currentTarget),"pointerup",n,!1),D((0,i.r)(t.currentTarget),"pointercancel",o,!1)),s&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&(V(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&I(t,t.currentTarget)&&W(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,z(F(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,$(F(e.target,t),e.pointerType,!1),U(t)))},n=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&(I(t,e.target)&&null!=e.pointerType?$(F(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&$(F(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,B(),P||c(e.target))},o=e=>{H(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&H(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if(V(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,S.Z)(t.nativeEvent)?"virtual":"mouse",a||h||(0,T.A)(t.currentTarget),z(t,e.pointerType)&&t.stopPropagation(),D((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=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=$(t,e.pointerType,!1),U(t)),r&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&W(t,e.pointerType||"mouse")};let r=t=>{if(0===t.button){if(e.isPressed=!1,B(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&I(t,e.target)&&null!=e.pointerType?$(F(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&$(F(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",a||h||(0,T.A)(t.currentTarget),P||u(e.target),z(t,e.pointerType)&&t.stopPropagation(),D((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=A(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,n=z(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,n=$(t,e.pointerType,!1),U(t)),n&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let r=A(t.nativeEvent,e.activePointerId),n=!0;r&&I(r,t.currentTarget)&&null!=e.pointerType?(W(t,e.pointerType),n=$(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(n=$(t,e.pointerType,!1)),n&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!P&&c(e.target),B()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&H(t))};let n=t=>{e.isPressed&&t.target.contains(e.target)&&H({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&H(e)}}return t},[D,a,h,B,P,H,U,$,z,W]);return(0,d.useEffect)(()=>()=>{var e;P||c(null!==(e=j.current.target)&&void 0!==e?e:void 0)},[P]),{isPressed:p||O,pressProps:(0,g.d)(R,G)}}function C(e){return"A"===e.tagName&&e.hasAttribute("href")}function M(e,t){let{key:r,code:n}=e,o=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"===o||!o&&C(t))&&"Enter"!==r)}function A(e,t){let r=e.changedTouches;for(let e=0;eo.right)&&!(o.left>i.right)&&!(i.top>o.bottom)&&!(o.top>i.bottom)}function V(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function L(e,t){return e instanceof HTMLInputElement?!O(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!C(e)}let R=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function O(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:R.has(e.type)}},4247:function(e,t,r){r.d(t,{d:function(){return l}});var n=r(7294),i=r(9786),o=r(5279);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 l(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,o.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])}},7127:function(e,t,r){r.d(t,{g:function(){return m}});var n=r(608),i=r(7294),o=r(3935),s=r(7873),l=r(6590),a=r(2433),u=r(7604),c=r(5279),d=r(4369),f=r(2009),p=r(9975),h=r(4792);function m(e){var t,r,m;let g,v,y,{selectionManager:b,keyboardDelegate:w,ref:x,autoFocus:S=!1,shouldFocusWrap:T=!1,disallowEmptySelection:P=!1,disallowSelectAll:E=!1,selectOnFocus:k="replace"===b.selectionBehavior,disallowTypeAhead:K=!1,shouldUseVirtualFocus:C,allowsTabNavigation:M=!1,isVirtualized:A,scrollRef:F=x,linkBehavior:I="action"}=e,{direction:V}=(0,h.j)(),L=(0,a.tv)(),R=(0,i.useRef)({top:0,left:0});t="scroll",r=A?null:()=>{R.current={top:F.current.scrollTop,left:F.current.scrollLeft}},g=(0,c.i)(r),v=null==r,(0,i.useEffect)(()=>{if(v||!F.current)return;let e=F.current;return e.addEventListener(t,g,m),()=>{e.removeEventListener(t,g,m)}},[F,t,m,v,g]);let O=(0,i.useRef)(S);(0,i.useEffect)(()=>{if(O.current){let e=null;"first"===S&&(e=w.getFirstKey()),"last"===S&&(e=w.getLastKey());let t=b.selectedKeys;if(t.size){for(let r of t)if(b.canSelectItem(r)){e=r;break}}b.setFocused(!0),b.setFocusedKey(e),null!=e||C||(0,l.e)(x.current)}},[]);let N=(0,i.useRef)(b.focusedKey);(0,i.useEffect)(()=>{let e=(0,p.Jz)();if(b.isFocused&&null!=b.focusedKey&&(null==F?void 0:F.current)){let t=F.current.querySelector(`[data-key="${CSS.escape(b.focusedKey.toString())}"]`);t&&("keyboard"===e||O.current)&&(A||(0,d.z)(F.current,t),"virtual"!==e&&(0,d.G)(t,{containingElement:x.current}))}b.isFocused&&null==b.focusedKey&&null!=N.current&&(0,l.e)(x.current),N.current=b.focusedKey,O.current=!1},[A,F,b.focusedKey,b.isFocused,x]);let j={onKeyDown:e=>{var t,r,i,l,a,c,d,f;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!x.current.contains(e.target))return;let p=(t,r)=>{if(null!=t){if(b.isLink(t)&&"selection"===I&&k&&!(0,n.F)(e)){(0,o.flushSync)(()=>{b.setFocusedKey(t,r)});let n=F.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`),i=b.getItemProps(t);L.open(n,e,i.href,i.routerOptions);return}b.setFocusedKey(t,r),b.isLink(t)&&"override"===I||(e.shiftKey&&"multiple"===b.selectionMode?b.extendSelection(t):k&&!(0,n.F)(e)&&b.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(w.getKeyBelow){e.preventDefault();let n=null!=b.focusedKey?w.getKeyBelow(b.focusedKey):null===(t=w.getFirstKey)||void 0===t?void 0:t.call(w);null==n&&T&&(n=null===(r=w.getFirstKey)||void 0===r?void 0:r.call(w,b.focusedKey)),p(n)}break;case"ArrowUp":if(w.getKeyAbove){e.preventDefault();let t=null!=b.focusedKey?w.getKeyAbove(b.focusedKey):null===(i=w.getLastKey)||void 0===i?void 0:i.call(w);null==t&&T&&(t=null===(l=w.getLastKey)||void 0===l?void 0:l.call(w,b.focusedKey)),p(t)}break;case"ArrowLeft":if(w.getKeyLeftOf){e.preventDefault();let t=w.getKeyLeftOf(b.focusedKey);null==t&&T&&(t="rtl"===V?null===(a=w.getFirstKey)||void 0===a?void 0:a.call(w,b.focusedKey):null===(c=w.getLastKey)||void 0===c?void 0:c.call(w,b.focusedKey)),p(t,"rtl"===V?"first":"last")}break;case"ArrowRight":if(w.getKeyRightOf){e.preventDefault();let t=w.getKeyRightOf(b.focusedKey);null==t&&T&&(t="rtl"===V?null===(d=w.getLastKey)||void 0===d?void 0:d.call(w,b.focusedKey):null===(f=w.getFirstKey)||void 0===f?void 0:f.call(w,b.focusedKey)),p(t,"rtl"===V?"last":"first")}break;case"Home":if(w.getFirstKey){e.preventDefault();let t=w.getFirstKey(b.focusedKey,(0,n.y)(e));b.setFocusedKey(t),(0,n.y)(e)&&e.shiftKey&&"multiple"===b.selectionMode?b.extendSelection(t):k&&b.replaceSelection(t)}break;case"End":if(w.getLastKey){e.preventDefault();let t=w.getLastKey(b.focusedKey,(0,n.y)(e));b.setFocusedKey(t),(0,n.y)(e)&&e.shiftKey&&"multiple"===b.selectionMode?b.extendSelection(t):k&&b.replaceSelection(t)}break;case"PageDown":w.getKeyPageBelow&&(e.preventDefault(),p(w.getKeyPageBelow(b.focusedKey)));break;case"PageUp":w.getKeyPageAbove&&(e.preventDefault(),p(w.getKeyPageAbove(b.focusedKey)));break;case"a":(0,n.y)(e)&&"multiple"===b.selectionMode&&!0!==E&&(e.preventDefault(),b.selectAll());break;case"Escape":P||0===b.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),b.clearSelection());break;case"Tab":if(!M){if(e.shiftKey)x.current.focus();else{let e,t,r=(0,s.QL)(x.current,{tabbable:!0});do(t=r.lastChild())&&(e=t);while(t);e&&!e.contains(document.activeElement)&&(0,u.A)(e)}}}},onFocus:e=>{if(b.isFocused){e.currentTarget.contains(e.target)||b.setFocused(!1);return}if(e.currentTarget.contains(e.target)){if(b.setFocused(!0),null==b.focusedKey){var t,r,n;let i=e.relatedTarget;null!=(n=i&&e.currentTarget.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?null!==(t=b.lastSelectedKey)&&void 0!==t?t:w.getLastKey():null!==(r=b.firstSelectedKey)&&void 0!==r?r:w.getFirstKey())&&(b.setFocusedKey(n),k&&b.replaceSelection(n))}else A||(F.current.scrollTop=R.current.top,F.current.scrollLeft=R.current.left);if(!A&&null!=b.focusedKey){let e=F.current.querySelector(`[data-key="${CSS.escape(b.focusedKey.toString())}"]`);e&&(e.contains(document.activeElement)||(0,u.A)(e),"keyboard"===(0,p.Jz)()&&(0,d.G)(e,{containingElement:x.current}))}}},onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||b.setFocused(!1)},onMouseDown(e){F.current===e.target&&e.preventDefault()}},{typeSelectProps:D}=function(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,o=(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||!(o.search.trim().length>0)||(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),o.search+=s;let l=t.getKeyForSearch(o.search,r.focusedKey);null==l&&(l=t.getKeyForSearch(o.search)),null!=l&&(r.setFocusedKey(l),n&&n(l)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},1e3)}:null}}}({keyboardDelegate:w,selectionManager:b});return K||(j=(0,f.d)(D,j)),C||(y=null==b.focusedKey?0:-1),{collectionProps:{...j,tabIndex:y}}}},608:function(e,t,r){r.d(t,{F:function(){return i},y:function(){return o}});var n=r(8806);function i(e){return(0,n.ad)()?e.altKey:e.ctrlKey}function o(e){return(0,n.V5)()?e.metaKey:e.ctrlKey}},1086: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)}}},8837: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=>{if(e&&"window"in e&&e.window===e)return e;let t=n(e);return t.defaultView||window}},3136:function(e,t,r){r.d(t,{z:function(){return l}});let n=new Set(["id"]),i=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),o=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),s=/^(data-.*)$/;function l(e,t={}){let{labelable:r,isLink:l,propNames:a}=t,u={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n.has(t)||r&&i.has(t)||l&&o.has(t)||(null==a?void 0:a.has(t))||s.test(t))&&(u[t]=e[t]);return u}},6791: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}},6301:function(e,t,r){r.d(t,{Z:function(){return i},c:function(){return o}});var n=r(8806);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 o(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}},2009:function(e,t,r){r.d(t,{d:function(){return s}});var n=r(1086),i=r(9527),o=function(){for(var e,t,r=0,n="",i=arguments.length;r=65&&90>=e.charCodeAt(2)?t[e]=(0,n.t)(r,l):("className"===e||"UNSAFE_className"===e)&&"string"==typeof r&&"string"==typeof l?t[e]=o(r,l):"id"===e&&r&&l?t.id=(0,i.ur)(r,l):t[e]=void 0!==l?l:r}}return t}},5007:function(e,t,r){r.d(t,{Q:function(){return s}});let n=new Map,i=new Set;function o(){if("undefined"==typeof window)return;function e(e){return"propertyName"in e}let t=r=>{if(!e(r)||!r.target)return;let o=n.get(r.target);if(o&&(o.delete(r.propertyName),0===o.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?o():document.addEventListener("DOMContentLoaded",o))},4369:function(e,t,r){r.d(t,{z:function(){return i},G:function(){return s}});var n=r(6791);function i(e,t){let r=o(e,t,"left"),n=o(e,t,"top"),i=t.offsetWidth,s=t.offsetHeight,l=e.scrollLeft,a=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),f=e.scrollTop+parseInt(u,10),p=d+e.clientWidth,h=f+e.clientHeight;r<=l?l=r-parseInt(c,10):r+i>p&&(l+=r+i-p),n<=f?a=n-parseInt(u,10):n+s>h&&(a+=n+s-h),e.scrollLeft=l,e.scrollTop=a}function o(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 s(e,t){if(document.contains(e)){let a=document.scrollingElement||document.documentElement;if("hidden"===window.getComputedStyle(a).overflow)for(let t of function(e,t){let r=[];for(;e&&e!==document.documentElement;)(0,n.a)(e,void 0)&&r.push(e),e=e.parentElement;return r}(e))i(t,e);else{var r,o,s,l;let{left:n,top:i}=e.getBoundingClientRect();null==e||null===(r=e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest"});let{left:a,top:u}=e.getBoundingClientRect();(Math.abs(n-a)>1||Math.abs(i-u)>1)&&(null==t||null===(s=t.containingElement)||void 0===s||null===(o=s.scrollIntoView)||void 0===o||o.call(s,{block:"center",inline:"center"}),null===(l=e.scrollIntoView)||void 0===l||l.call(e,{block:"nearest"}))}}}},5279:function(e,t,r){r.d(t,{i:function(){return o}});var n=r(9786),i=r(7294);function o(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)},[])}},6116:function(e,t,r){r.d(t,{x:function(){return i}});var n=r(7294);function i(){let e=(0,n.useRef)(new Map),t=(0,n.useCallback)((t,r,n,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,n,i)},[]),r=(0,n.useCallback)((t,r,n,i)=>{var o;let s=(null===(o=e.current.get(n))||void 0===o?void 0:o.fn)||n;t.removeEventListener(r,s,i),e.current.delete(n)},[]),i=(0,n.useCallback)(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return(0,n.useEffect)(()=>i,[i]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:i}}},9527:function(e,t,r){r.d(t,{Me:function(){return a},ur:function(){return u}});var n=r(9786),i=r(7294),o=r(7385);let s=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new Map;function a(e){let[t,r]=(0,i.useState)(e),a=(0,i.useRef)(null),u=(0,o.gP)(t),c=(0,i.useCallback)(e=>{a.current=e},[]);return s&&l.set(u,c),(0,n.b)(()=>()=>{l.delete(u)},[u]),(0,i.useEffect)(()=>{let e=a.current;e&&(a.current=null,r(e))}),u}function u(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}},9786:function(e,t,r){r.d(t,{b:function(){return i}});var n=r(7294);let i="undefined"!=typeof document?n.useLayoutEffect:()=>{}},2970:function(e,t,r){r.d(t,{l:function(){return i}});var n=r(9786);function i(e,t){(0,n.b)(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}},6685:function(e,t,r){function n(e,t){return"function"==typeof t.getChildren?t.getChildren(e.key):e.childNodes}function i(e){return o(e,0)}function o(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function s(e){let t;for(let r of e)t=r;return t}function l(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...a(e,t),t],i=[...a(e,r),r],o=n.slice(0,i.length).findIndex((e,t)=>e!==i[t]);return -1!==o?(t=n[o],r=i[o],t.index-r.index):n.findIndex(e=>e===r)>=0?1:(i.findIndex(e=>e===t),-1)}function a(e,t){let r=[];for(;(null==t?void 0:t.parentKey)!=null;)r.unshift(t=e.getItem(t.parentKey));return r}r.d(t,{Em:function(){return o},_P:function(){return n},eg:function(){return l},l8:function(){return i},s:function(){return s}})},9825:function(e,t,r){r.d(t,{K:function(){return l}});var n=r(7294);class i{build(e,t){return this.context=t,o(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:r}=e;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 o;let e=null!==(o=i.key)&&void 0!==o?o: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){let l=e.element;if(!l&&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}l=t.renderer(e.value)}if(n.isValidElement(l)){let n=l.type;if("function"!=typeof n&&"function"!=typeof n.getCollectionNode)throw Error(`Unknown element <${"function"==typeof l.type?l.type.name:l.type}> in collection.`);let o=n.getCollectionNode(l.props,this.context),a=e.index,u=o.next();for(;!u.done&&u.value;){let n=u.value;e.index=a;let c=n.key;c||(c=n.element?null:this.getKey(l,e,t,r));let d=[...this.getFullNode({...n,key:c,index:a,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}${l.key}`:l.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.`);a++,yield t}u=o.next(d)}return}if(null==e.key)return;let a=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:o(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,a.getFullNode(n,a.getChildState(t,n),u.key,u)))r++,yield e})};yield u}constructor(){this.cache=new WeakMap}}function o(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 l(e,t,r){let o=(0,n.useMemo)(()=>new i,[]),{children:s,items:l,collection:a}=e;return(0,n.useMemo)(()=>a||t(o.build({children:s,items:l},r)),[o,s,l,a,r,t])}},1823: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=t||e.anchorKey,this.currentKey=r||e.currentKey):(this.anchorKey=t,this.currentKey=r)}}},4212:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(1823),i=r(6685);class o{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{let r=this.state.selectedKeys,i=r.anchorKey||e;for(let o of(t=new n.Y(r,i,e),this.getKeyRange(i,r.currentKey||e)))t.delete(o);for(let r of this.getKeyRange(e,i))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){let r=[],n=e;for(;n;){let e=this.collection.getItem(n);if((e&&"item"===e.type||"cell"===e.type&&this.allowsCellSelection)&&r.push(n),n===t)return r;n=this.collection.getKeyAfter(n)}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(;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}}},4155:function(e,t,r){r.d(t,{q:function(){return s}});var n=r(1823),i=r(9373),o=r(7294);function s(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:s,selectionBehavior:a="toggle",disabledBehavior:u="all"}=e,c=(0,o.useRef)(!1),[,d]=(0,o.useState)(!1),f=(0,o.useRef)(null),p=(0,o.useRef)(null),[,h]=(0,o.useState)(null),m=(0,o.useMemo)(()=>l(e.selectedKeys),[e.selectedKeys]),g=(0,o.useMemo)(()=>l(e.defaultSelectedKeys,new n.Y),[e.defaultSelectedKeys]),[v,y]=(0,i.z)(m,g,e.onSelectionChange),b=(0,o.useMemo)(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,x]=(0,o.useState)(a);"replace"===a&&"toggle"===w&&"object"==typeof v&&0===v.size&&x("replace");let S=(0,o.useRef)(a);return(0,o.useEffect)(()=>{a!==S.current&&(x(a),S.current=a)},[a]),{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 l(e,t){return e?"all"===e?"all":new n.Y(e):t}},9373:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(7294);function i(e,t,r){let[i,o]=(0,n.useState)(e||t),s=(0,n.useRef)(void 0!==e),l=void 0!==e;(0,n.useEffect)(()=>{let e=s.current;e!==l&&console.warn(`WARN: A component changed from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),s.current=l},[l]);let a=l?e:i,u=(0,n.useCallback)((e,...t)=>{let n=(e,...t)=>{r&&!Object.is(a,e)&&r(e,...t),l||(a=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"),o((r,...i)=>{let o=e(l?a:r,...i);return(n(o,...t),l)?r:o})):(l||o(e),n(e,...t))},[l,a,r]);return[a,u]}}}]);