nhfs
Version:
NHFS — A sleek HTTP file server for the web built with Next.js and HeroUI. (Alpha)
1 lines • 62.1 kB
JavaScript
module.exports={31456:[a=>{"use strict";a.s({},31456),a.i(761734),(0,a.i(657229).memo)(()=>void 0!==window.ScrollTimeline),a.i(638463),a.i(498314);a.i(847121),a.s({hover:()=>f},977117),a.s({isDragActive:()=>c,isDragging:()=>b},514832);let b={x:!1,y:!1};function c(){return b.x||b.y}function d(a,b,c){var d;if(a instanceof Element)return[a];if("string"==typeof a){let e=document;b&&(e=b.current);let f=null!=(d=null==c?void 0:c[a])?d:e.querySelectorAll(a);return f?Array.from(f):[]}return Array.from(a)}function e(a){return b=>{"touch"===b.pointerType||c()||a(b)}}function f(a,b,c={}){let[g,h,i]=function(a,b){let c=d(a),e=new AbortController;return[c,{passive:!0,...b,signal:e.signal},()=>e.abort()]}(a,c),j=e(a=>{let{target:c}=a,d=b(a);if("function"!=typeof d||!c)return;let f=e(a=>{d(a),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,h)});return g.forEach(a=>{a.addEventListener("pointerenter",j,h)}),i}function g(a){if("x"===a||"y"===a)if(b[a])return null;else return b[a]=!0,()=>{b[a]=!1};return b.x||b.y?null:(b.x=b.y=!0,()=>{b.x=b.y=!1})}a.s({resolveElements:()=>d},950248),new WeakSet,a.s({setDragLock:()=>g},820904)},[514832,950248,977117,820904]],814340:[a=>{"use strict";let b;a.s({animations:()=>b3},814340);var c=a.i(188221),d=a.i(384376);function e(a,b){if(!Array.isArray(b))return!1;let c=b.length;if(c!==a.length)return!1;for(let d=0;d<c;d++)if(b[d]!==a[d])return!1;return!0}var f=a.i(997226),g=a.i(69840);function h(a,b,c){let d=a.getProps();return(0,g.resolveVariantFromProps)(d,b,void 0!==c?c:d.custom,a)}var i=a.i(21279);a.s({animateVisualElement:()=>bX},65377),a.s({animateTarget:()=>bU},922140);var j=a.i(932925);a.s({animateMotionValue:()=>bG},822839),a.s({millisecondsToSeconds:()=>l,secondsToMilliseconds:()=>k},63082);let k=a=>1e3*a,l=a=>a/1e3,m={type:"spring",stiffness:500,damping:25,restSpeed:10},n={type:"keyframes",duration:.8},o={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function p(a,b){return a?a[b]||a.default||a:void 0}a.s({getValueTransition:()=>p},72174);var q=a.i(201598);a.s({instantAnimationState:()=>r},859769);let r={current:!1};a.s({getFinalKeyframe:()=>t},514728);let s=a=>null!==a;function t(a,{repeat:b,repeatType:c="loop"},d){let e=a.filter(s),f=b&&"loop"!==c&&b%2==1?0:e.length-1;return f&&void 0!==d?d:e[f]}var u=a.i(150050);a.s({AcceleratedAnimation:()=>bD},744224),a.s({anticipate:()=>D},662359),a.s({backIn:()=>B,backInOut:()=>C,backOut:()=>A},309611),a.s({cubicBezier:()=>x},21165),a.i(761734);var v=a.i(498314);let w=(a,b,c)=>(((1-3*c+3*b)*a+(3*c-6*b))*a+3*b)*a;function x(a,b,c,d){return a===b&&c===d?v.noop:e=>0===e||1===e?e:w(function(a,b,c,d,e){let f,g,h=0;do(f=w(g=b+(c-b)/2,d,e)-a)>0?c=g:b=g;while(Math.abs(f)>1e-7&&++h<12)return g}(e,0,1,a,c),b,d)}a.s({mirrorEasing:()=>y},32190);let y=a=>b=>b<=.5?a(2*b)/2:(2-a(2*(1-b)))/2;a.s({reverseEasing:()=>z},139775);let z=a=>b=>1-a(1-b),A=x(.33,1.53,.69,.99),B=z(A),C=y(B),D=a=>(a*=2)<1?.5*B(a):.5*(2-Math.pow(2,-10*(a-1)));a.s({circIn:()=>E,circInOut:()=>G,circOut:()=>F},921106);let E=a=>1-Math.sin(Math.acos(a)),F=z(E),G=y(E);a.s({DOMKeyframesResolver:()=>aF},136256),a.s({isZeroValueString:()=>H},86372);let H=a=>/^0[^.\s]+$/u.test(a);var I=a.i(761310);a.s({isNumericalString:()=>J},572860);let J=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a);var K=a.i(904308);let L=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;var M=a.i(562873),N=a.i(327168);let O=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),P=a=>a===M.number||a===N.px,Q=(a,b)=>parseFloat(a.split(", ")[b]),R=(a,b)=>(c,{transform:d})=>{if("none"===d||!d)return 0;let e=d.match(/^matrix3d\((.+)\)$/u);if(e)return Q(e[1],b);{let b=d.match(/^matrix\((.+)\)$/u);return b?Q(b[1],a):0}},S=new Set(["x","y","z"]),T=j.transformPropOrder.filter(a=>!S.has(a)),U={width:({x:a},{paddingLeft:b="0",paddingRight:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),height:({y:a},{paddingTop:b="0",paddingBottom:c="0"})=>a.max-a.min-parseFloat(b)-parseFloat(c),top:(a,{top:b})=>parseFloat(b),left:(a,{left:b})=>parseFloat(b),bottom:({y:a},{top:b})=>parseFloat(b)+(a.max-a.min),right:({x:a},{left:b})=>parseFloat(b)+(a.max-a.min),x:R(4,13),y:R(5,14)};U.translateX=U.x,U.translateY=U.y,a.s({dimensionValueTypes:()=>W,findDimensionValueType:()=>X},654521),a.s({testValueType:()=>V},377128);let V=a=>b=>b.test(a),W=[M.number,N.px,N.percent,N.degrees,N.vw,N.vh,{test:a=>"auto"===a,parse:a=>a}],X=a=>W.find(V(a));a.s({KeyframeResolver:()=>ac,flushKeyframeResolvers:()=>ab},195025);let Y=new Set,Z=!1,$=!1;function _(){if($){let a=Array.from(Y).filter(a=>a.needsMeasurement),b=new Set(a.map(a=>a.element)),c=new Map;b.forEach(a=>{let b=function(a){let b=[];return T.forEach(c=>{let d=a.getValue(c);void 0!==d&&(b.push([c,d.get()]),d.set(+!!c.startsWith("scale")))}),b}(a);b.length&&(c.set(a,b),a.render())}),a.forEach(a=>a.measureInitialState()),b.forEach(a=>{a.render();let b=c.get(a);b&&b.forEach(([b,c])=>{var d;null==(d=a.getValue(b))||d.set(c)})}),a.forEach(a=>a.measureEndState()),a.forEach(a=>{void 0!==a.suspendedScrollY&&window.scrollTo(0,a.suspendedScrollY)})}$=!1,Z=!1,Y.forEach(a=>a.complete()),Y.clear()}function aa(){Y.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&($=!0)})}function ab(){aa(),_()}class ac{constructor(a,b,c,d,e,f=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...a],this.onComplete=b,this.name=c,this.motionValue=d,this.element=e,this.isAsync=f}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Y.add(this),Z||(Z=!0,u.frame.read(aa),u.frame.resolveKeyframes(_))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:a,name:b,element:c,motionValue:d}=this;for(let e=0;e<a.length;e++)if(null===a[e])if(0===e){let e=null==d?void 0:d.get(),f=a[a.length-1];if(void 0!==e)a[0]=e;else if(c&&b){let d=c.readValue(b,f);null!=d&&(a[0]=d)}void 0===a[0]&&(a[0]=f),d&&void 0===e&&d.set(a[0])}else a[e]=a[e-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Y.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Y.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}a.s({analyseComplexValue:()=>as,complex:()=>aw},189780),a.s({color:()=>an},647863);var ad=a.i(21765);let ae=a=>Math.round(1e5*a)/1e5,af=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,ag=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ah=(a,b)=>c=>!!("string"==typeof c&&ag.test(c)&&c.startsWith(a)||b&&null!=c&&Object.prototype.hasOwnProperty.call(c,b)),ai=(a,b,c)=>d=>{if("string"!=typeof d)return d;let[e,f,g,h]=d.match(af);return{[a]:parseFloat(e),[b]:parseFloat(f),[c]:parseFloat(g),alpha:void 0!==h?parseFloat(h):1}},aj={...M.number,transform:a=>Math.round((0,ad.clamp)(0,255,a))},ak={test:ah("rgb","red"),parse:ai("red","green","blue"),transform:({red:a,green:b,blue:c,alpha:d=1})=>"rgba("+aj.transform(a)+", "+aj.transform(b)+", "+aj.transform(c)+", "+ae(M.alpha.transform(d))+")"},al={test:ah("#"),parse:function(a){let b="",c="",d="",e="";return a.length>5?(b=a.substring(1,3),c=a.substring(3,5),d=a.substring(5,7),e=a.substring(7,9)):(b=a.substring(1,2),c=a.substring(2,3),d=a.substring(3,4),e=a.substring(4,5),b+=b,c+=c,d+=d,e+=e),{red:parseInt(b,16),green:parseInt(c,16),blue:parseInt(d,16),alpha:e?parseInt(e,16)/255:1}},transform:ak.transform},am={test:ah("hsl","hue"),parse:ai("hue","saturation","lightness"),transform:({hue:a,saturation:b,lightness:c,alpha:d=1})=>"hsla("+Math.round(a)+", "+N.percent.transform(ae(b))+", "+N.percent.transform(ae(c))+", "+ae(M.alpha.transform(d))+")"},an={test:a=>ak.test(a)||al.test(a)||am.test(a),parse:a=>ak.test(a)?ak.parse(a):am.test(a)?am.parse(a):al.parse(a),transform:a=>"string"==typeof a?a:a.hasOwnProperty("red")?ak.transform(a):am.transform(a)},ao=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ap="number",aq="color",ar=/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 as(a){let b=a.toString(),c=[],d={color:[],number:[],var:[]},e=[],f=0,g=b.replace(ar,a=>(an.test(a)?(d.color.push(f),e.push(aq),c.push(an.parse(a))):a.startsWith("var(")?(d.var.push(f),e.push("var"),c.push(a)):(d.number.push(f),e.push(ap),c.push(parseFloat(a))),++f,"${}")).split("${}");return{values:c,split:g,indexes:d,types:e}}function at(a){return as(a).values}function au(a){let{split:b,types:c}=as(a),d=b.length;return a=>{let e="";for(let f=0;f<d;f++)if(e+=b[f],void 0!==a[f]){let b=c[f];b===ap?e+=ae(a[f]):b===aq?e+=an.transform(a[f]):e+=a[f]}return e}}let av=a=>"number"==typeof a?0:a,aw={test:function(a){var b,c;return isNaN(a)&&"string"==typeof a&&((null==(b=a.match(af))?void 0:b.length)||0)+((null==(c=a.match(ao))?void 0:c.length)||0)>0},parse:at,createTransformer:au,getAnimatableNone:function(a){let b=at(a);return au(a)(b.map(av))}};a.s({getAnimatableNone:()=>aD},880007);let ax=new Set(["brightness","contrast","saturate","opacity"]);function ay(a){let[b,c]=a.slice(0,-1).split("(");if("drop-shadow"===b)return a;let[d]=c.match(af)||[];if(!d)return a;let e=c.replace(d,""),f=+!!ax.has(b);return d!==c&&(f*=100),b+"("+f+e+")"}let az=/\b([a-z-]*)\(.*?\)/gu,aA={...aw,getAnimatableNone:a=>{let b=a.match(az);return b?b.map(ay).join(" "):a}};a.s({getDefaultValueType:()=>aC},889263);let aB={...a.i(18412).numberValueTypes,color:an,backgroundColor:an,outlineColor:an,fill:an,stroke:an,borderColor:an,borderTopColor:an,borderRightColor:an,borderBottomColor:an,borderLeftColor:an,filter:aA,WebkitFilter:aA},aC=a=>aB[a];function aD(a,b){let c=aC(a);return c!==aA&&(c=aw),c.getAnimatableNone?c.getAnimatableNone(b):void 0}let aE=new Set(["auto","none","0"]);class aF extends ac{constructor(a,b,c,d,e){super(a,b,c,d,e,!0)}readKeyframes(){let{unresolvedKeyframes:a,element:b,name:c}=this;if(!b||!b.current)return;super.readKeyframes();for(let c=0;c<a.length;c++){let d=a[c];if("string"==typeof d&&(d=d.trim(),(0,K.isCSSVariableToken)(d))){let e=function a(b,c,d=1){(0,I.invariant)(d<=4,`Max CSS variable fallback depth detected in property "${b}". This may indicate a circular fallback dependency.`);let[e,f]=function(a){let b=L.exec(a);if(!b)return[,];let[,c,d,e]=b;return[`--${null!=c?c:d}`,e]}(b);if(!e)return;let g=window.getComputedStyle(c).getPropertyValue(e);if(g){let a=g.trim();return J(a)?parseFloat(a):a}return(0,K.isCSSVariableToken)(f)?a(f,c,d+1):f}(d,b.current);void 0!==e&&(a[c]=e),c===a.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!O.has(c)||2!==a.length)return;let[d,e]=a,f=X(d),g=X(e);if(f!==g)if(P(f)&&P(g))for(let b=0;b<a.length;b++){let c=a[b];"string"==typeof c&&(a[b]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:a,name:b}=this,c=[];for(let b=0;b<a.length;b++){var d;("number"==typeof(d=a[b])?0===d:null===d||"none"===d||"0"===d||H(d))&&c.push(b)}c.length&&function(a,b,c){let d,e=0;for(;e<a.length&&!d;){let b=a[e];"string"==typeof b&&!aE.has(b)&&as(b).values.length&&(d=a[e]),e++}if(d&&c)for(let e of b)a[e]=aD(c,d)}(a,c,b)}measureInitialState(){let{element:a,unresolvedKeyframes:b,name:c}=this;if(!a||!a.current)return;"height"===c&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=U[c](a.measureViewportBox(),window.getComputedStyle(a.current)),b[0]=this.measuredOrigin;let d=b[b.length-1];void 0!==d&&a.getValue(c,d).jump(d,!1)}measureEndState(){var a;let{element:b,name:c,unresolvedKeyframes:d}=this;if(!b||!b.current)return;let e=b.getValue(c);e&&e.jump(this.measuredOrigin,!1);let f=d.length-1,g=d[f];d[f]=U[c](b.measureViewportBox(),window.getComputedStyle(b.current)),null!==g&&void 0===this.finalKeyframe&&(this.finalKeyframe=g),(null==(a=this.removedTransforms)?void 0:a.length)&&this.removedTransforms.forEach(([a,c])=>{b.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function aG(a){return"function"==typeof a}function aH(){b=void 0}a.s({isGenerator:()=>aG},911538),a.s({time:()=>aI},223670);let aI={now:()=>(void 0===b&&aI.set(u.frameData.isProcessing||q.MotionGlobalConfig.useManualTiming?u.frameData.timestamp:performance.now()),b),set:a=>{b=a,queueMicrotask(aH)}},aJ=(a,b)=>"zIndex"!==b&&!!("number"==typeof a||Array.isArray(a)||"string"==typeof a&&(aw.test(a)||"0"===a)&&!a.startsWith("url("));class aK{constructor({autoplay:a=!0,delay:b=0,type:c="keyframes",repeat:d=0,repeatDelay:e=0,repeatType:f="loop",...g}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=aI.now(),this.options={autoplay:a,delay:b,type:c,repeat:d,repeatDelay:e,repeatType:f,...g},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||ab(),this._resolved}onKeyframesResolved(a,b){this.resolvedAt=aI.now(),this.hasAttemptedResolve=!0;let{name:c,type:d,velocity:e,delay:f,onComplete:g,onUpdate:h,isGenerator:i}=this.options;if(!i&&!function(a,b,c,d){let e=a[0];if(null===e)return!1;if("display"===b||"visibility"===b)return!0;let f=a[a.length-1],g=aJ(e,b),h=aJ(f,b);return(0,I.warning)(g===h,`You are trying to animate ${b} from "${e}" to "${f}". ${e} is not an animatable value - to enable this animation set ${e} to a value animatable to ${f} via the \`style\` property.`),!!g&&!!h&&(function(a){let b=a[0];if(1===a.length)return!0;for(let c=0;c<a.length;c++)if(a[c]!==b)return!0}(a)||("spring"===c||aG(c))&&d)}(a,c,d,e))if(r.current||!f){null==h||h(t(a,this.options,b)),null==g||g(),this.resolveFinishedPromise();return}else this.options.duration=0;let j=this.initPlayback(a,b);!1!==j&&(this._resolved={keyframes:a,finalKeyframe:b,...j},this.onPostResolved())}onPostResolved(){}then(a,b){return this.currentFinishedPromise.then(a,b)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(a=>{this.resolveFinishedPromise=a})}}a.s({MainThreadAnimation:()=>br,animateValue:()=>bs},707454),a.s({spring:()=>aX},352220),a.s({progress:()=>aL},386386);let aL=(a,b,c)=>{let d=b-a;return 0===d?1:(c-a)/d},aM=(a,b,c=10)=>{let d="",e=Math.max(Math.round(b/c),2);for(let b=0;b<e;b++)d+=a(aL(0,e-1,b))+", ";return`linear(${d.substring(0,d.length-2)})`};function aN(a,b){return b?1e3/b*a:0}function aO(a,b,c){let d=Math.max(b-5,0);return aN(c-a(d),b-d)}a.s({velocityPerSecond:()=>aN},891743),a.s({calcAngularFreq:()=>aR,findSpring:()=>aQ},875674);let aP={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function aQ({duration:a=aP.duration,bounce:b=aP.bounce,velocity:c=aP.velocity,mass:d=aP.mass}){let e,f;(0,I.warning)(a<=k(aP.maxDuration),"Spring duration must be 10 seconds or less");let g=1-b;g=(0,ad.clamp)(aP.minDamping,aP.maxDamping,g),a=(0,ad.clamp)(aP.minDuration,aP.maxDuration,l(a)),g<1?(e=b=>{let d=b*g,e=d*a;return .001-(d-c)/aR(b,g)*Math.exp(-e)},f=b=>{let d=b*g*a,f=Math.pow(g,2)*Math.pow(b,2)*a,h=Math.exp(-d),i=aR(Math.pow(b,2),g);return(d*c+c-f)*h*(-e(b)+.001>0?-1:1)/i}):(e=b=>-.001+Math.exp(-b*a)*((b-c)*a+1),f=b=>a*a*(c-b)*Math.exp(-b*a));let h=function(a,b,c){let d=c;for(let c=1;c<12;c++)d-=a(d)/b(d);return d}(e,f,5/a);if(a=k(a),isNaN(h))return{stiffness:aP.stiffness,damping:aP.damping,duration:a};{let b=Math.pow(h,2)*d;return{stiffness:b,damping:2*g*Math.sqrt(d*b),duration:a}}}function aR(a,b){return a*Math.sqrt(1-b*b)}a.s({calcGeneratorDuration:()=>aT,maxGeneratorDuration:()=>aS},471105);let aS=2e4;function aT(a){let b=0,c=a.next(b);for(;!c.done&&b<aS;)b+=50,c=a.next(b);return b>=aS?1/0:b}let aU=["duration","bounce"],aV=["stiffness","damping","mass"];function aW(a,b){return b.some(b=>void 0!==a[b])}function aX(a=aP.visualDuration,b=aP.bounce){let c,d="object"!=typeof a?{visualDuration:a,keyframes:[0,1],bounce:b}:a,{restSpeed:e,restDelta:f}=d,g=d.keyframes[0],h=d.keyframes[d.keyframes.length-1],i={done:!1,value:g},{stiffness:j,damping:m,mass:n,duration:o,velocity:p,isResolvedFromDuration:q}=function(a){let b={velocity:aP.velocity,stiffness:aP.stiffness,damping:aP.damping,mass:aP.mass,isResolvedFromDuration:!1,...a};if(!aW(a,aV)&&aW(a,aU))if(a.visualDuration){let c=2*Math.PI/(1.2*a.visualDuration),d=c*c,e=2*(0,ad.clamp)(.05,1,1-a.bounce)*Math.sqrt(d);b={...b,mass:aP.mass,stiffness:d,damping:e}}else{let c=aQ(a);(b={...b,...c,mass:aP.mass}).isResolvedFromDuration=!0}return b}({...d,velocity:-l(d.velocity||0)}),r=p||0,s=m/(2*Math.sqrt(j*n)),t=h-g,u=l(Math.sqrt(j/n)),v=5>Math.abs(t);if(e||(e=v?aP.restSpeed.granular:aP.restSpeed.default),f||(f=v?aP.restDelta.granular:aP.restDelta.default),s<1){let a=aR(u,s);c=b=>h-Math.exp(-s*u*b)*((r+s*u*t)/a*Math.sin(a*b)+t*Math.cos(a*b))}else if(1===s)c=a=>h-Math.exp(-u*a)*(t+(r+u*t)*a);else{let a=u*Math.sqrt(s*s-1);c=b=>{let c=Math.exp(-s*u*b),d=Math.min(a*b,300);return h-c*((r+s*u*t)*Math.sinh(d)+a*t*Math.cosh(d))/a}}let w={calculatedDuration:q&&o||null,next:a=>{let b=c(a);if(q)i.done=a>=o;else{let d=0;s<1&&(d=0===a?k(r):aO(c,a,b));let g=Math.abs(h-b)<=f;i.done=Math.abs(d)<=e&&g}return i.value=i.done?h:b,i},toString:()=>{let a=Math.min(aT(w),aS),b=aM(b=>w.next(a*b).value,a,30);return a+"ms "+b}};return w}function aY({keyframes:a,velocity:b=0,power:c=.8,timeConstant:d=325,bounceDamping:e=10,bounceStiffness:f=500,modifyTarget:g,min:h,max:i,restDelta:j=.5,restSpeed:k}){let l,m,n=a[0],o={done:!1,value:n},p=c*b,q=n+p,r=void 0===g?q:g(q);r!==q&&(p=r-n);let s=a=>-p*Math.exp(-a/d),t=a=>r+s(a),u=a=>{let b=s(a),c=t(a);o.done=Math.abs(b)<=j,o.value=o.done?r:c},v=a=>{let b;if(b=o.value,void 0!==h&&b<h||void 0!==i&&b>i){var c;l=a,m=aX({keyframes:[o.value,(c=o.value,void 0===h?i:void 0===i||Math.abs(h-c)<Math.abs(i-c)?h:i)],velocity:aO(t,a,o.value),damping:e,stiffness:f,restDelta:j,restSpeed:k})}};return v(0),{calculatedDuration:null,next:a=>{let b=!1;return(m||void 0!==l||(b=!0,u(a),v(a)),void 0!==l&&a>=l)?m.next(a-l):(b||u(a),o)}}}a.s({inertia:()=>aY},872164),a.s({keyframes:()=>bn},729571),a.s({easeIn:()=>aZ,easeInOut:()=>a_,easeOut:()=>a$},142516);let aZ=x(.42,0,1,1),a$=x(0,0,.58,1),a_=x(.42,0,.58,1);a.s({isEasingArray:()=>a0},772005);let a0=a=>Array.isArray(a)&&"number"!=typeof a[0];a.s({easingDefinitionToFunction:()=>a3},281180);let a1=a=>Array.isArray(a)&&"number"==typeof a[0],a2={linear:v.noop,easeIn:aZ,easeInOut:a_,easeOut:a$,circIn:E,circInOut:G,circOut:F,backIn:B,backInOut:C,backOut:A,anticipate:D},a3=a=>{if(a1(a)){(0,I.invariant)(4===a.length,"Cubic bezier arrays must contain four numerical values.");let[b,c,d,e]=a;return x(b,c,d,e)}return"string"==typeof a?((0,I.invariant)(void 0!==a2[a],`Invalid easing type '${a}'`),a2[a]):a};a.s({interpolate:()=>bk},940188),a.s({pipe:()=>a5},173841);let a4=(a,b)=>c=>b(a(c)),a5=(...a)=>a.reduce(a4);a.s({mix:()=>bj},9645),a.s({mixNumber:()=>a6},572864);let a6=(a,b,c)=>a+(b-a)*c;function a7(a,b,c){return(c<0&&(c+=1),c>1&&(c-=1),c<1/6)?a+(b-a)*6*c:c<.5?b:c<2/3?a+(b-a)*(2/3-c)*6:a}function a8(a,b){return c=>c>0?b:a}let a9=(a,b,c)=>{let d=a*a,e=c*(b*b-d)+d;return e<0?0:Math.sqrt(e)},ba=[al,ak,am];function bb(a){let b=ba.find(b=>b.test(a));if((0,I.warning)(!!b,`'${a}' is not an animatable color. Use the equivalent color code instead.`),!b)return!1;let c=b.parse(a);return b===am&&(c=function({hue:a,saturation:b,lightness:c,alpha:d}){a/=360,c/=100;let e=0,f=0,g=0;if(b/=100){let d=c<.5?c*(1+b):c+b-c*b,h=2*c-d;e=a7(h,d,a+1/3),f=a7(h,d,a),g=a7(h,d,a-1/3)}else e=f=g=c;return{red:Math.round(255*e),green:Math.round(255*f),blue:Math.round(255*g),alpha:d}}(c)),c}let bc=(a,b)=>{let c=bb(a),d=bb(b);if(!c||!d)return a8(a,b);let e={...c};return a=>(e.red=a9(c.red,d.red,a),e.green=a9(c.green,d.green,a),e.blue=a9(c.blue,d.blue,a),e.alpha=a6(c.alpha,d.alpha,a),ak.transform(e))},bd=new Set(["none","hidden"]);function be(a,b){return c=>a6(a,b,c)}function bf(a){return"number"==typeof a?be:"string"==typeof a?(0,K.isCSSVariableToken)(a)?a8:an.test(a)?bc:bi:Array.isArray(a)?bg:"object"==typeof a?an.test(a)?bc:bh:a8}function bg(a,b){let c=[...a],d=c.length,e=a.map((a,c)=>bf(a)(a,b[c]));return a=>{for(let b=0;b<d;b++)c[b]=e[b](a);return c}}function bh(a,b){let c={...a,...b},d={};for(let e in c)void 0!==a[e]&&void 0!==b[e]&&(d[e]=bf(a[e])(a[e],b[e]));return a=>{for(let b in d)c[b]=d[b](a);return c}}let bi=(a,b)=>{let c=aw.createTransformer(b),d=as(a),e=as(b);return d.indexes.var.length===e.indexes.var.length&&d.indexes.color.length===e.indexes.color.length&&d.indexes.number.length>=e.indexes.number.length?bd.has(a)&&!e.values.length||bd.has(b)&&!d.values.length?function(a,b){return bd.has(a)?c=>c<=0?a:b:c=>c>=1?b:a}(a,b):a5(bg(function(a,b){var c;let d=[],e={color:0,var:0,number:0};for(let f=0;f<b.values.length;f++){let g=b.types[f],h=a.indexes[g][e[g]],i=null!=(c=a.values[h])?c:0;d[f]=i,e[g]++}return d}(d,e),e.values),c):((0,I.warning)(!0,`Complex values '${a}' and '${b}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a8(a,b))};function bj(a,b,c){return"number"==typeof a&&"number"==typeof b&&"number"==typeof c?a6(a,b,c):bf(a)(a,b)}function bk(a,b,{clamp:c=!0,ease:d,mixer:e}={}){let f=a.length;if((0,I.invariant)(f===b.length,"Both input and output ranges must be the same length"),1===f)return()=>b[0];if(2===f&&a[0]===a[1])return()=>b[1];a[0]>a[f-1]&&(a=[...a].reverse(),b=[...b].reverse());let g=function(a,b,c){let d=[],e=c||bj,f=a.length-1;for(let c=0;c<f;c++){let f=e(a[c],a[c+1]);b&&(f=a5(Array.isArray(b)?b[c]||v.noop:b,f)),d.push(f)}return d}(b,d,e),h=g.length,i=b=>{let c=0;if(h>1)for(;c<a.length-2&&!(b<a[c+1]);c++);let d=aL(a[c],a[c+1],b);return g[c](d)};return c?b=>i((0,ad.clamp)(a[0],a[f-1],b)):i}function bl(a,b){let c=a[a.length-1];for(let d=1;d<=b;d++){let e=aL(0,b,d);a.push(a6(c,1,e))}}function bm(a){let b=[0];return bl(b,a.length-1),b}function bn({duration:a=300,keyframes:b,times:c,ease:d="easeInOut"}){var e;let f=a0(d)?d.map(a3):a3(d),g={done:!1,value:b[0]},h=bk((e=c&&c.length===b.length?c:bm(b),e.map(b=>b*a)),b,{ease:Array.isArray(f)?f:b.map(()=>f||a_).splice(0,b.length-1)});return{calculatedDuration:a,next:b=>(g.value=h(b),g.done=b>=a,g)}}a.s({defaultOffset:()=>bm},497390),a.s({fillOffset:()=>bl},354263);let bo=a=>{let b=({timestamp:b})=>a(b);return{start:()=>u.frame.update(b,!0),stop:()=>(0,u.cancelFrame)(b),now:()=>u.frameData.isProcessing?u.frameData.timestamp:aI.now()}},bp={decay:aY,inertia:aY,tween:bn,keyframes:bn,spring:aX},bq=a=>a/100;class br extends aK{constructor(a){super(a),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:b,motionValue:c,element:d,keyframes:e}=this.options,f=(null==d?void 0:d.KeyframeResolver)||ac,g=(a,b)=>this.onKeyframesResolved(a,b);this.resolver=new f(e,g,b,c,d),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(a){let b,c,{type:d="keyframes",repeat:e=0,repeatDelay:f=0,repeatType:g,velocity:h=0}=this.options,i=aG(d)?d:bp[d]||bn;i!==bn&&"number"!=typeof a[0]&&(b=a5(bq,bj(a[0],a[1])),a=[0,100]);let j=i({...this.options,keyframes:a});"mirror"===g&&(c=i({...this.options,keyframes:[...a].reverse(),velocity:-h})),null===j.calculatedDuration&&(j.calculatedDuration=aT(j));let{calculatedDuration:k}=j,l=k+f;return{generator:j,mirroredGenerator:c,mapPercentToKeyframes:b,calculatedDuration:k,resolvedDuration:l,totalDuration:l*(e+1)-f}}onPostResolved(){let{autoplay:a=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&a?this.state=this.pendingPlayState:this.pause()}tick(a,b=!1){let{resolved:c}=this;if(!c){let{keyframes:a}=this.options;return{done:!0,value:a[a.length-1]}}let{finalKeyframe:d,generator:e,mirroredGenerator:f,mapPercentToKeyframes:g,keyframes:h,calculatedDuration:i,totalDuration:j,resolvedDuration:k}=c;if(null===this.startTime)return e.next(0);let{delay:l,repeat:m,repeatType:n,repeatDelay:o,onUpdate:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,a):this.speed<0&&(this.startTime=Math.min(a-j/this.speed,this.startTime)),b?this.currentTime=a:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(a-this.startTime)*this.speed;let q=this.currentTime-l*(this.speed>=0?1:-1),r=this.speed>=0?q<0:q>j;this.currentTime=Math.max(q,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=j);let s=this.currentTime,u=e;if(m){let a=Math.min(this.currentTime,j)/k,b=Math.floor(a),c=a%1;!c&&a>=1&&(c=1),1===c&&b--,(b=Math.min(b,m+1))%2&&("reverse"===n?(c=1-c,o&&(c-=o/k)):"mirror"===n&&(u=f)),s=(0,ad.clamp)(0,1,c)*k}let v=r?{done:!1,value:h[0]}:u.next(s);g&&(v.value=g(v.value));let{done:w}=v;r||null===i||(w=this.speed>=0?this.currentTime>=j:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==d&&(v.value=t(h,this.options,d)),p&&p(v.value),x&&this.finish(),v}get duration(){let{resolved:a}=this;return a?l(a.calculatedDuration):0}get time(){return l(this.currentTime)}set time(a){a=k(a),this.currentTime=a,null!==this.holdTime||0===this.speed?this.holdTime=a:this.driver&&(this.startTime=this.driver.now()-a/this.speed)}get speed(){return this.playbackSpeed}set speed(a){let b=this.playbackSpeed!==a;this.playbackSpeed=a,b&&(this.time=l(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:a=bo,onPlay:b,startTime:c}=this.options;this.driver||(this.driver=a(a=>this.tick(a))),b&&b();let d=this.driver.now();null!==this.holdTime?this.startTime=d-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=d):this.startTime=null!=c?c:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var a;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(a=this.currentTime)?a:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:a}=this.options;a&&a()}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(a){return this.startTime=0,this.tick(a,!0)}}function bs(a){return new br(a)}a.s({acceleratedValues:()=>bt},312027);let bt=new Set(["opacity","clipPath","filter","transform"]);function bu(a){let b;return()=>(void 0===b&&(b=a()),b)}a.s({startWaapiAnimation:()=>bz},525225),a.s({supportsLinearEasing:()=>bw},341870),a.s({memo:()=>bu},23961);let bv={linearEasing:void 0},bw=function(a,b){let c=bu(a);return()=>{var a;return null!=(a=bv[b])?a:c()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(a){return!1}return!0},"linearEasing"),bx=([a,b,c,d])=>`cubic-bezier(${a}, ${b}, ${c}, ${d})`,by={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:bx([0,.65,.55,1]),circOut:bx([.55,0,1,.45]),backIn:bx([.31,.01,.66,-.59]),backOut:bx([.33,1.53,.69,.99])};function bz(a,b,c,{delay:d=0,duration:e=300,repeat:f=0,repeatType:g="loop",ease:h="easeInOut",times:i}={}){let j={[b]:c};i&&(j.offset=i);let k=function a(b,c){if(b)return"function"==typeof b&&bw()?aM(b,c):a1(b)?bx(b):Array.isArray(b)?b.map(b=>a(b,c)||by.easeOut):by[b]}(h,e);return Array.isArray(k)&&(j.easing=k),a.animate(j,{delay:d,duration:e,easing:Array.isArray(k)?"linear":k,fill:"both",iterations:f+1,direction:"reverse"===g?"alternate":"normal"})}function bA(a,b){a.timeline=b,a.onfinish=null}a.s({attachTimeline:()=>bA},709954),a.s({supportsWaapi:()=>bB},850408);let bB=bu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),bC={anticipate:D,backInOut:C,circInOut:G};class bD extends aK{constructor(a){super(a);let{name:b,motionValue:c,element:d,keyframes:e}=this.options;this.resolver=new aF(e,(a,b)=>this.onKeyframesResolved(a,b),b,c,d),this.resolver.scheduleResolve()}initPlayback(a,b){var c,d;let{duration:e=300,times:f,ease:g,type:h,motionValue:i,name:j,startTime:k}=this.options;if(!(null==(c=i.owner)?void 0:c.current))return!1;if("string"==typeof g&&bw()&&g in bC&&(g=bC[g]),aG((d=this.options).type)||"spring"===d.type||!function a(b){return!!("function"==typeof b&&bw()||!b||"string"==typeof b&&(b in by||bw())||a1(b)||Array.isArray(b)&&b.every(a))}(d.ease)){let{onComplete:b,onUpdate:c,motionValue:d,element:i,...j}=this.options,k=function(a,b){let c=new br({...b,keyframes:a,repeat:0,delay:0,isGenerator:!0}),d={done:!1,value:a[0]},e=[],f=0;for(;!d.done&&f<2e4;)e.push((d=c.sample(f)).value),f+=10;return{times:void 0,keyframes:e,duration:f-10,ease:"linear"}}(a,j);1===(a=k.keyframes).length&&(a[1]=a[0]),e=k.duration,f=k.times,g=k.ease,h="keyframes"}let l=bz(i.owner.current,j,a,{...this.options,duration:e,times:f,ease:g});return l.startTime=null!=k?k:this.calcStartTime(),this.pendingTimeline?(bA(l,this.pendingTimeline),this.pendingTimeline=void 0):l.onfinish=()=>{let{onComplete:c}=this.options;i.set(t(a,this.options,b)),c&&c(),this.cancel(),this.resolveFinishedPromise()},{animation:l,duration:e,times:f,type:h,ease:g,keyframes:a}}get duration(){let{resolved:a}=this;if(!a)return 0;let{duration:b}=a;return l(b)}get time(){let{resolved:a}=this;if(!a)return 0;let{animation:b}=a;return l(b.currentTime||0)}set time(a){let{resolved:b}=this;if(!b)return;let{animation:c}=b;c.currentTime=k(a)}get speed(){let{resolved:a}=this;if(!a)return 1;let{animation:b}=a;return b.playbackRate}set speed(a){let{resolved:b}=this;if(!b)return;let{animation:c}=b;c.playbackRate=a}get state(){let{resolved:a}=this;if(!a)return"idle";let{animation:b}=a;return b.playState}get startTime(){let{resolved:a}=this;if(!a)return null;let{animation:b}=a;return b.startTime}attachTimeline(a){if(this._resolved){let{resolved:b}=this;if(!b)return v.noop;let{animation:c}=b;bA(c,a)}else this.pendingTimeline=a;return v.noop}play(){if(this.isStopped)return;let{resolved:a}=this;if(!a)return;let{animation:b}=a;"finished"===b.playState&&this.updateFinishedPromise(),b.play()}pause(){let{resolved:a}=this;if(!a)return;let{animation:b}=a;b.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:a}=this;if(!a)return;let{animation:b,keyframes:c,duration:d,type:e,ease:f,times:g}=a;if("idle"===b.playState||"finished"===b.playState)return;if(this.time){let{motionValue:a,onUpdate:b,onComplete:h,element:i,...j}=this.options,l=new br({...j,keyframes:c,duration:d,type:e,ease:f,times:g,isGenerator:!0}),m=k(this.time);a.setWithVelocity(l.sample(m-10).value,l.sample(m).value,10)}let{onStop:h}=this.options;h&&h(),this.cancel()}complete(){let{resolved:a}=this;a&&a.animation.finish()}cancel(){let{resolved:a}=this;a&&a.animation.cancel()}static supports(a){let{motionValue:b,name:c,repeatDelay:d,repeatType:e,damping:f,type:g}=a;return bB()&&c&&bt.has(c)&&b&&b.owner&&b.owner.current instanceof HTMLElement&&!b.owner.getProps().onUpdate&&!d&&"mirror"!==e&&0!==f&&"inertia"!==g}}a.s({GroupPlaybackControls:()=>bF},43489),a.s({supportsScrollTimeline:()=>bE},707807);let bE=bu(()=>void 0!==window.ScrollTimeline);class bF{constructor(a){this.stop=()=>this.runAll("stop"),this.animations=a.filter(Boolean)}then(a,b){return Promise.all(this.animations).then(a).catch(b)}getAll(a){return this.animations[0][a]}setAll(a,b){for(let c=0;c<this.animations.length;c++)this.animations[c][a]=b}attachTimeline(a,b){let c=this.animations.map(c=>bE()&&c.attachTimeline?c.attachTimeline(a):b(c));return()=>{c.forEach((a,b)=>{a&&a(),this.animations[b].stop()})}}get time(){return this.getAll("time")}set time(a){this.setAll("time",a)}get speed(){return this.getAll("speed")}set speed(a){this.setAll("speed",a)}get startTime(){return this.getAll("startTime")}get duration(){let a=0;for(let b=0;b<this.animations.length;b++)a=Math.max(a,this.animations[b].duration);return a}runAll(a){this.animations.forEach(b=>b[a]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let bG=(a,b,c,d={},e,f)=>g=>{let h=p(d,a)||{},i=h.delay||d.delay||0,{elapsed:l=0}=d;l-=k(i);let s={keyframes:Array.isArray(c)?c:[null,c],ease:"easeOut",velocity:b.getVelocity(),...h,delay:-l,onUpdate:a=>{b.set(a),h.onUpdate&&h.onUpdate(a)},onComplete:()=>{g(),h.onComplete&&h.onComplete()},name:a,motionValue:b,element:f?void 0:e};!function({when:a,delay:b,delayChildren:c,staggerChildren:d,staggerDirection:e,repeat:f,repeatType:g,repeatDelay:h,from:i,elapsed:j,...k}){return!!Object.keys(k).length}(h)&&(s={...s,...((a,{keyframes:b})=>b.length>2?n:j.transformProps.has(a)?a.startsWith("scale")?{type:"spring",stiffness:550,damping:0===b[1]?2*Math.sqrt(550):30,restSpeed:10}:m:o)(a,s)}),s.duration&&(s.duration=k(s.duration)),s.repeatDelay&&(s.repeatDelay=k(s.repeatDelay)),void 0!==s.from&&(s.keyframes[0]=s.from);let v=!1;if(!1!==s.type&&(0!==s.duration||s.repeatDelay)||(s.duration=0,0===s.delay&&(v=!0)),(r.current||q.MotionGlobalConfig.skipAnimations)&&(v=!0,s.duration=0,s.delay=0),v&&!f&&void 0!==b.get()){let a=t(s.keyframes,h);if(void 0!==a)return u.frame.update(()=>{s.onUpdate(a),s.onComplete()}),new bF([])}return!f&&bD.supports(s)?new bD(s):new br(s)};a.s({setTarget:()=>bP},774063);var bH=a.i(72056);function bI(a,b){-1===a.indexOf(b)&&a.push(b)}function bJ(a,b){let c=a.indexOf(b);c>-1&&a.splice(c,1)}function bK([...a],b,c){let d=b<0?a.length+b:b;if(d>=0&&d<a.length){let d=c<0?a.length+c:c,[e]=a.splice(b,1);a.splice(d,0,e)}return a}a.s({MotionValue:()=>bN,collectMotionValues:()=>bM,motionValue:()=>bO},625463),a.s({SubscriptionManager:()=>bL},389841),a.s({addUniqueItem:()=>bI,moveItem:()=>bK,removeItem:()=>bJ},313598);class bL{constructor(){this.subscriptions=[]}add(a){return bI(this.subscriptions,a),()=>bJ(this.subscriptions,a)}notify(a,b,c){let d=this.subscriptions.length;if(d)if(1===d)this.subscriptions[0](a,b,c);else for(let e=0;e<d;e++){let d=this.subscriptions[e];d&&d(a,b,c)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let bM={current:void 0};class bN{constructor(a,b={}){this.version="11.13.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(a,b=!0)=>{let c=aI.now();this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),b&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(a),this.owner=b.owner}setCurrent(a){this.current=a,this.updatedAt=aI.now(),null===this.canTrackVelocity&&void 0!==a&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(a=this.current){this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt}onChange(a){return this.on("change",a)}on(a,b){this.events[a]||(this.events[a]=new bL);let c=this.events[a].add(b);return"change"===a?()=>{c(),u.frame.read(()=>{this.events.change.getSize()||this.stop()})}:c}clearListeners(){for(let a in this.events)this.events[a].clear()}attach(a,b){this.passiveEffect=a,this.stopPassiveEffect=b}set(a,b=!0){b&&this.passiveEffect?this.passiveEffect(a,this.updateAndNotify):this.updateAndNotify(a,b)}setWithVelocity(a,b,c){this.set(b),this.prev=void 0,this.prevFrameValue=a,this.prevUpdatedAt=this.updatedAt-c}jump(a,b=!0){this.updateAndNotify(a),this.prev=a,this.prevUpdatedAt=this.prevFrameValue=void 0,b&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return bM.current&&bM.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let a=aI.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||a-this.updatedAt>30)return 0;let b=Math.min(this.updatedAt-this.prevUpdatedAt,30);return aN(parseFloat(this.current)-parseFloat(this.prevFrameValue),b)}start(a){return this.stop(),new Promise(b=>{this.hasAnimated=!0,this.animation=a(b),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 bO(a,b){return new bN(a,b)}function bP(a,b){let{transitionEnd:c={},transition:d={},...e}=h(a,b)||{};for(let b in e={...e,...c}){let c=(0,bH.resolveFinalValueInKeyframes)(e[b]);a.hasValue(b)?a.getValue(b).set(c):a.addValue(b,bO(c))}}a.s({getOptimisedAppearId:()=>bR},953288);var bQ=a.i(198265);function bR(a){return a.props[bQ.optimizedAppearDataAttribute]}a.s({addValueToWillChange:()=>bT},857121);var bS=a.i(60258);function bT(a,b){let c=a.getValue("willChange");if((0,bS.isMotionValue)(c)&&c.add)return c.add(b)}function bU(a,b,{delay:c=0,transitionOverride:d,type:e}={}){var f;let{transition:g=a.getDefaultTransition(),transitionEnd:h,...i}=b;d&&(g=d);let k=[],l=e&&a.animationState&&a.animationState.getState()[e];for(let b in i){let d=a.getValue(b,null!=(f=a.latestValues[b])?f:null),e=i[b];if(void 0===e||l&&function({protectedKeys:a,needsAnimating:b},c){let d=a.hasOwnProperty(c)&&!0!==b[c];return b[c]=!1,d}(l,b))continue;let h={delay:c,...p(g||{},b)},m=!1;if(window.MotionHandoffAnimation){let c=bR(a);if(c){let a=window.MotionHandoffAnimation(c,b,u.frame);null!==a&&(h.startTime=a,m=!0)}}bT(a,b),d.start(bG(b,d,e,a.shouldReduceMotion&&j.transformProps.has(b)?{type:!1}:h,a,m));let n=d.animation;n&&k.push(n)}return h&&Promise.all(k).then(()=>{u.frame.update(()=>{h&&bP(a,h)})}),k}function bV(a,b,c={}){var d;let e=h(a,b,"exit"===c.type?null==(d=a.presenceContext)?void 0:d.custom:void 0),{transition:f=a.getDefaultTransition()||{}}=e||{};c.transitionOverride&&(f=c.transitionOverride);let g=e?()=>Promise.all(bU(a,e,c)):()=>Promise.resolve(),i=a.variantChildren&&a.variantChildren.size?(d=0)=>{let{delayChildren:e=0,staggerChildren:g,staggerDirection:h}=f;return function(a,b,c=0,d=0,e=1,f){let g=[],h=(a.variantChildren.size-1)*d,i=1===e?(a=0)=>a*d:(a=0)=>h-a*d;return Array.from(a.variantChildren).sort(bW).forEach((a,d)=>{a.notify("AnimationStart",b),g.push(bV(a,b,{...f,delay:c+i(d)}).then(()=>a.notify("AnimationComplete",b)))}),Promise.all(g)}(a,b,e+d,g,h,c)}:()=>Promise.resolve(),{when:j}=f;if(!j)return Promise.all([g(),i(c.delay)]);{let[a,b]="beforeChildren"===j?[g,i]:[i,g];return a().then(()=>b())}}function bW(a,b){return a.sortNodePosition(b)}function bX(a,b,c={}){let d;if(a.notify("AnimationStart",b),Array.isArray(b))d=Promise.all(b.map(b=>bV(a,b,c)));else if("string"==typeof b)d=bV(a,b,c);else{let e="function"==typeof b?h(a,b,c.custom):b;d=Promise.all(bU(a,e,c))}return d.then(()=>{a.notify("AnimationComplete",b)})}let bY=i.variantProps.length,bZ=[...i.variantPriorityOrder].reverse(),b$=i.variantPriorityOrder.length;function b_(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function b0(){return{animate:b_(!0),whileInView:b_(),whileHover:b_(),whileTap:b_(),whileDrag:b_(),whileFocus:b_(),exit:b_()}}a.s({Feature:()=>b1},94176);class b1{constructor(a){this.isMounted=!1,this.node=a}update(){}}let b2=0,b3={animation:{Feature:class extends b1{constructor(a){super(a),a.animationState||(a.animationState=function(a){let b=b=>Promise.all(b.map(({animation:b,options:c})=>bX(a,b,c))),g=b0(),j=!0,k=b=>(c,d)=>{var e;let f=h(a,d,"exit"===b?null==(e=a.presenceContext)?void 0:e.custom:void 0);if(f){let{transition:a,transitionEnd:b,...d}=f;c={...c,...d,...b}}return c};function l(h){let{props:l}=a,m=function a(b){if(!b)return;if(!b.isControllingVariants){let c=b.parent&&a(b.parent)||{};return void 0!==b.props.initial&&(c.initial=b.props.initial),c}let c={};for(let a=0;a<bY;a++){let d=i.variantProps[a],e=b.props[d];((0,f.isVariantLabel)(e)||!1===e)&&(c[d]=e)}return c}(a.parent)||{},n=[],o=new Set,p={},q=1/0;for(let b=0;b<b$;b++){var r,s;let i=bZ[b],t=g[i],u=void 0!==l[i]?l[i]:m[i],v=(0,f.isVariantLabel)(u),w=i===h?t.isActive:null;!1===w&&(q=b);let x=u===m[i]&&u!==l[i]&&v;if(x&&j&&a.manuallyAnimateOnMount&&(x=!1),t.protectedKeys={...p},!t.isActive&&null===w||!u&&!t.prevProp||(0,c.isAnimationControls)(u)||"boolean"==typeof u)continue;let y=(r=t.prevProp,"string"==typeof(s=u)?s!==r:!!Array.isArray(s)&&!e(s,r)),z=y||i===h&&t.isActive&&!x&&v||b>q&&v,A=!1,B=Array.isArray(u)?u:[u],C=B.reduce(k(i),{});!1===w&&(C={});let{prevResolvedValues:D={}}=t,E={...D,...C},F=b=>{z=!0,o.has(b)&&(A=!0,o.delete(b)),t.needsAnimating[b]=!0;let c=a.getValue(b);c&&(c.liveStyle=!1)};for(let a in E){let b=C[a],c=D[a];if(!p.hasOwnProperty(a))((0,d.isKeyframesTarget)(b)&&(0,d.isKeyframesTarget)(c)?e(b,c):b===c)?void 0!==b&&o.has(a)?F(a):t.protectedKeys[a]=!0:null!=b?F(a):o.add(a)}t.prevProp=u,t.prevResolvedValues=C,t.isActive&&(p={...p,...C}),j&&a.blockInitialAnimation&&(z=!1);let G=!(x&&y)||A;z&&G&&n.push(...B.map(a=>({animation:a,options:{type:i}})))}if(o.size){let b={};o.forEach(c=>{let d=a.getBaseTarget(c),e=a.getValue(c);e&&(e.liveStyle=!0),b[c]=null!=d?d:null}),n.push({animation:b})}let t=!!n.length;return j&&(!1===l.initial||l.initial===l.animate)&&!a.manuallyAnimateOnMount&&(t=!1),j=!1,t?b(n):Promise.resolve()}return{animateChanges:l,setActive:function(b,c){var d;if(g[b].isActive===c)return Promise.resolve();null==(d=a.variantChildren)||d.forEach(a=>{var d;return null==(d=a.animationState)?void 0:d.setActive(b,c)}),g[b].isActive=c;let e=l(b);for(let a in g)g[a].protectedKeys={};return e},setAnimateFunction:function(c){b=c(a)},getState:()=>g,reset:()=>{g=b0(),j=!0}}}(a))}updateAnimationControlsSubscription(){let{animate:a}=this.node.getProps();(0,c.isAnimationControls)(a)&&(this.unmountControls=a.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:a}=this.node.getProps(),{animate:b}=this.node.prevProps||{};a!==b&&this.updateAnimationControlsSubscription()}unmount(){var a;this.node.animationState.reset(),null==(a=this.unmountControls)||a.call(this)}}},exit:{Feature:class extends b1{constructor(){super(...arguments),this.id=b2++}update(){if(!this.node.presenceContext)return;let{isPresent:a,onExitComplete:b}=this.node.presenceContext,{isPresent:c}=this.node.prevPresenceContext||{};if(!this.node.animationState||a===c)return;let d=this.node.animationState.setActive("exit",!a);b&&!a&&d.then(()=>b(this.id))}mount(){let{register:a}=this.node.presenceContext||{};a&&(this.unmount=a(this.id))}unmount(){}}}}},[63082,72174,859769,514728,21165,32190,139775,309611,662359,921106,86372,572860,377128,654521,195025,647863,189780,889263,880007,136256,911538,223670,386386,891743,875674,471105,352220,872164,142516,772005,281180,173841,572864,9645,940188,354263,497390,729571,707454,312027,23961,341870,525225,709954,850408,744224,707807,43489,822839,313598,389841,625463,774063,953288,857121,922140,65377,94176]],961381:[a=>{"use strict";a.s({addPointerInfo:()=>d,extractEventInfo:()=>c},961381),a.s({isPrimaryPointer:()=>b},595860);let b=a=>"mouse"===a.pointerType?"number"!=typeof a.button||a.button<=0:!1!==a.isPrimary;function c(a){return{point:{x:a.pageX,y:a.pageY}}}let d=a=>d=>b(d)&&a(d,c(d))},[595860]],676407:a=>{"use strict";function b(a,c,d,e={passive:!0}){return a.addEventListener(c,d,e),()=>a.removeEventListener(c,d)}a.s({addDomEvent:()=>b})},257644:a=>{"use strict";a.s({addPointerEvent:()=>d});var b=a.i(676407),c=a.i(961381);function d(a,d,e,f){return(0,b.addDomEvent)(a,d,(0,c.addPointerInfo)(e),f)}},35838:a=>{"use strict";a.s({createBox:()=>e,createDelta:()=>c});let b=()=>({translate:0,scale:1,origin:0,originPoint:0}),c=()=>({x:b(),y:b()}),d=()=>({min:0,max:0}),e=()=>({x:d(),y:d()})},723163:[a=>{"use strict";function b({top:a,left:b,right:c,bottom:d}){return{x:{min:b,max:c},y:{min:a,max:d}}}function c({x:a,y:b}){return{top:b.min,right:a.max,bottom:b.max,left:a.min}}function d(a,b){if(!b)return a;let c=b({x:a.left,y:a.top}),d=b({x:a.right,y:a.bottom});return{top:c.y,left:c.x,bottom:d.y,right:d.x}}a.s({measurePageBox:()=>s,measureViewportBox:()=>r},723163),a.s({convertBoundingBoxToBox:()=>b,convertBoxToBoundingBox:()=>c,transformBoxPoints:()=>d},129627),a.s({applyBoxDelta:()=>m,applyTreeDeltas:()=>n,scalePoint:()=>j,transformBox:()=>q,translateAxis:()=>o},468106);var e=a.i(572864);function f(a){return void 0===a||1===a}function g({scale:a,scaleX:b,scaleY:c}){return!f(a)||!f(b)||!f(c)}function h(a){return g(a)||i(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function i(a){var b,c;return(b=a.x)&&"0%"!==b||(c=a.y)&&"0%"!==c}function j(a,b,c){return c+b*(a-c)}function k(a,b,c,d,e){return void 0!==e&&(a=d+e*(a-d)),d+c*(a-d)+b}function l(a,b=0,c=1,d,e){a.min=k(a.min,b,c,d,e),a.max=k(a.max,b,c,d,e)}function m(a,{x:b,y:c}){l(a.x,b.translate,b.scale,b.originPoint),l(a.y,c.translate,c.scale,c.originPoint)}function n(a,b,c,d=!1){let e,f,g=c.length;if(g){b.x=b.y=1;for(let i=0;i<g;i++){f=(e=c[i]).projectionDelta;let{visualElement:g}=e.options;(!g||!g.props.style||"contents"!==g.props.style.display)&&(d&&e.options.layoutScroll&&e.scroll&&e!==e.root&&q(a,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),f&&(b.x*=f.x.scale,b.y*=f.y.scale,m(a,f)),d&&h(e.latestValues)&&q(a,e.latestValues))}b.x<1.0000000000001&&b.x>.999999999999&&(b.x=1),b.y<1.0000000000001&&b.y>.999999999999&&(b.y=1)}}function o(a,b){a.min=a.min+b,a.max=a.max+b}function p(a,b,c,d,f=.5){let g=(0,e.mixNumber)(a.min,a.max,f);l(a,b,c,g,d)}function q(a,b){p(a.x,b.x,b.scaleX,b.scale,b.originX),p(a.y,b.y,b.scaleY,b.scale,b.originY)}function r(a,c){return b(d(a.getBoundingClientRect(),c))}function s(a,b,c){let d=r(a,c),{scroll:e}=b;return e&&(o(d.x,e.offset.x),o(d.y,e.offset.y)),d}a.s({has2DTranslate:()=>i,hasScale:()=>g,hasTransform:()=>h},525602)},[129627,525602,468106]],799343:a=>{"use strict";a.s({HoverGesture:()=>g});var b=a.i(94176);a.i(31456);var c=a.i(977117),d=a.i(961381),e=a.i(150050);function f(a,b,c){let{props:f}=a;a.animationState&&f.whileHover&&a.animationState.setActive("whileHover",c);let g=f[c?"onHoverStart":"onHoverEnd"];g&&e.frame.postRender(()=>g(b,(0,d.extractEventInfo)(b)))}class g extends b.Feature{mount(){let{current:a,props:b}=this.node;a&&(this.unmount=(0,c.hover)(a,a=>(f(this.node,a,!0),a=>f(this.node,a,!1)),{passive:!b.onHoverStart&&!b.onHoverEnd}))}unmount(){}}},27407:a=>{"use strict";a.s({FocusGesture:()=>e});var b=a.i(676407),c=a.i(94176),d=a.i(173841);class e extends c.Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let a=!1;try{a=this.node.current.matches(":focus-visible")}catch(b){a=!0}a&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=(0,d.pipe)((0,b.addDomEvent)(this.node.current,"focus",()=>this.onFocus()),(0,b.addDomEvent)(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},240172:a=>{"use strict";a.s({gestureAnimations:()=>v},240172);var b=a.i(799343),c=a.i(27407),d=a.i(961381),e=a.i(676407),f=a.i(257644),g=a.i(94176),h=a.i(173841);a.i(31456);var i=a.i(514832);let j=(a,b)=>!!b&&(a===b||j(a,b.parentElement));a.i(761734);var k=a.i(498314),l=a.i(150050);function m(a,b){if(!b)return;let c=new PointerEvent("pointer"+a);b(c,(0,d.extractEventInfo)(c))}class n extends g.Feature{constructor(){super(...arguments),this.removeStartListeners=k.noop,this.removeEndListeners=k.noop,this.removeAccessibleListeners=k.noop,this.startPointerPress=(a,b)=>{if(this.isPressing)return;this.removeEndListeners();let c=this.node.getProps(),d=(a,b)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:d,globalTapTarget:e}=this.node.getProps(),f=e||j(this.node.current,a.target)?c:d;f&&l.frame.update(()=>f(a,b))},e=(0,f.addPointerEvent)(window,"pointerup",d,{passive:!(c.onTap||c.onPointerUp)}),g=(0,f.addPointerEvent)(window,"pointercancel",(a,b)=>this.cancelPress(a,b),{passive:!(c.onTapCancel||c.onPointerCancel)});this.removeEndListeners=(0,h.pipe)(e,g),this.startPress(a,b)},this.startAccessiblePress=()=>{let a=a=>{if("Enter"!==a.key||this.isPressing)return;let b=a=>{"Enter"===a.key&&this.checkPressEnd()&&m("up",(a,b)=>{let{onTap:c}=this.node.getProps();c&&l.frame.postRender(()=>c(a,b))})};this.removeEndListeners(),this.removeEndListeners=(0,e.addDomEvent)(this.node.current,"keyup",b),m("down",(a,b)=>{this.startPress(a,b)})},b=(0,e.addDomEvent)(this.node.current,"keydown",a),c=()=>{this.isPressing&&m("cancel",(a,b)=>this.cancelPress(a,b))},d=(0,e.addDomEvent)(this.node.current,"blur",c);this.removeAccessibleListeners=(0,h.pipe)(b,d)}}startPress(a,b){this.isPressing=!0;let{onTapStart:c,whileTap:d}=this.node.getProps();d&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),c&&l.frame.postRender(()=>c(a,b))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!(0,i.isDragActive)()}cancelPress(a,b){if(!this.checkPressEnd())return;let{onTapCancel:c}=this.node.getProps();c&&l.frame.postRender(()