import{a as bu,b as Le,c as L}from"./chunk-ELYU6EKT.mjs";var Et={};bu(Et,{Children:()=>Rn,Component:()=>be,Fragment:()=>Uo,Profiler:()=>Nk,PureComponent:()=>Hk,StrictMode:()=>jk,Suspense:()=>Xo,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Wk,cloneElement:()=>mn,createContext:()=>Se,createElement:()=>Tu,createFactory:()=>Uk,createRef:()=>Im,default:()=>b,forwardRef:()=>Ue,isValidElement:()=>Jt,lazy:()=>Xk,memo:()=>Yk,startTransition:()=>Vi,unstable_act:()=>Gk,useCallback:()=>ye,useContext:()=>D,useDebugValue:()=>Kk,useDeferredValue:()=>qk,useEffect:()=>W,useId:()=>ei,useImperativeHandle:()=>Qk,useInsertionEffect:()=>at,useLayoutEffect:()=>Pn,useMemo:()=>me,useReducer:()=>Zk,useRef:()=>A,useState:()=>Tt,useSyncExternalStore:()=>Jk,useTransition:()=>eC,version:()=>tC});var b={},Wo=Symbol.for("react.element"),Ek=Symbol.for("react.portal"),Rk=Symbol.for("react.fragment"),Pk=Symbol.for("react.strict_mode"),_k=Symbol.for("react.profiler"),Fk=Symbol.for("react.provider"),Ik=Symbol.for("react.context"),Lk=Symbol.for("react.forward_ref"),Mk=Symbol.for("react.suspense"),Ok=Symbol.for("react.memo"),Dk=Symbol.for("react.lazy"),Sm=Symbol.iterator;function Ak(e){return e===null||typeof e!="object"?null:(e=Sm&&e[Sm]||e["@@iterator"],typeof e=="function"?e:null)}var Cm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Tm=Object.assign,Em={};function Ai(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Cm}Ai.prototype.isReactComponent={};Ai.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ai.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Rm(){}Rm.prototype=Ai.prototype;function Su(e,t,n){this.props=e,this.context=t,this.refs=Em,this.updater=n||Cm}var wu=Su.prototype=new Rm;wu.constructor=Su;Tm(wu,Ai.prototype);wu.isPureReactComponent=!0;var wm=Array.isArray,Pm=Object.prototype.hasOwnProperty,ku={current:null},_m={key:!0,ref:!0,__self:!0,__source:!0};function Fm(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Pm.call(t,r)&&!_m.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nn=(e,t)=>function(){return t||(0,e[Qv(e)[0]])((t={exports:{}}).exports,t),t.exports},pC=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Qv(t))!dC.call(e,i)&&i!==n&&rf(e,i,{get:()=>t[i],enumerable:!(r=uC(t,i))||r.enumerable});return e},On=(e,t,n)=>(n=e!=null?cC(fC(e)):{},pC(t||!e||!e.__esModule?rf(n,"default",{value:e,enumerable:!0}):n,e)),R=(e,t,n)=>(hC(e,typeof t!="symbol"?t+"":t,n),n),of=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},li=(e,t,n)=>(of(e,t,"read from private field"),n?n.call(e):t.get(e)),Ui=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sf=(e,t,n,r)=>(of(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),_t=(e,t,n)=>(of(e,t,"access private method"),n),mC=nn({"../../../node_modules/@emotion/memoize/dist/memoize.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(n){var r={};return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}e.default=t}}),vC=nn({"../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var n=t(mC()),r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=n(function(o){return r.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91});e.default=i}}),Zn=Se({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),as=Se({}),Xi=Se(null),qa=typeof document<"u",Sr=qa?Pn:W,af=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gC="udaypsAppearId",Qa="data-"+af(gC),Za={skipAnimations:!1,useManualTiming:!1},rs=Se({}),Ja=Se({}),Zv=Se({strict:!1}),Mm=class{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);t!==-1&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};function yC(e){let t=new Mm,n=new Mm,r=0,i=!1,o=!1,s=new WeakSet,a={schedule:(l,c=!1,u=!1)=>{let f=u&&i,d=f?t:n;return c&&s.add(l),d.add(l)&&f&&i&&(r=t.order.length),l},cancel:l=>{n.remove(l),s.delete(l)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let c=0;c(f[d]=yC(()=>n=!0),f),{}),s=f=>{o[f].process(i)},a=()=>{let f=Za.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(f-i.timestamp,bC),1),i.timestamp=f,i.isProcessing=!0,Ko.forEach(s),i.isProcessing=!1,n&&t&&(r=!1,e(a))},l=()=>{n=!0,r=!0,i.isProcessing||e(a)};return{schedule:Ko.reduce((f,d)=>{let m=o[d];return f[d]=(y,v=!1,S=!1)=>(n||l(),m.schedule(y,v,S)),f},{}),cancel:f=>Ko.forEach(d=>o[d].cancel(f)),state:i,steps:o}}var{schedule:lf,cancel:e5}=Jv(queueMicrotask,!1);function xC(e,t,n,r){let{visualElement:i}=D(as),o=D(Zv),s=D(Xi),a=D(Zn).reducedMotion,l=A();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:a}));let c=l.current;at(()=>{c&&c.update(n,s)});let u=A(!!(n[Qa]&&!L.HandoffComplete));return Sr(()=>{c&&(lf.render(c.render),u.current&&c.animationState&&c.animationState.animateChanges())}),W(()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),u.current&&(u.current=!1,L.HandoffComplete=!0))}),c}function zi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function SC(e,t,n){return ye(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):zi(n)&&(n.current=r))},[t])}function is(e){return typeof e=="string"||Array.isArray(e)}function el(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}var cf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],uf=["initial",...cf];function tl(e){return el(e.animate)||uf.some(t=>is(e[t]))}function eg(e){return!!(tl(e)||e.variants)}function wC(e,t){if(tl(e)){let{initial:n,animate:r}=e;return{initial:n===!1||is(n)?n:void 0,animate:is(r)?r:void 0}}return e.inherit!==!1?t:{}}function kC(e){let{initial:t,animate:n}=wC(e,D(as));return me(()=>({initial:t,animate:n}),[Om(t),Om(n)])}function Om(e){return Array.isArray(e)?e.join(" "):e}var Dm={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"]},os={};for(let e in Dm)os[e]={isEnabled:t=>Dm[e].some(n=>!!t[n])};function CC(e){for(let t in e)os[t]={...os[t],...e[t]}}var ff=Symbol.for("motionComponentSymbol");function tg({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&CC(e);function o(a,l){let c,u={...D(Zn),...a,layoutId:TC(a)},{isStatic:f}=u,d=kC(a),m=r(a,f);if(!f&&qa){d.visualElement=xC(i,m,u,t);let y=D(Ja),v=D(Zv).strict;d.visualElement&&(c=d.visualElement.loadFeatures(u,v,e,y))}return le(as.Provider,{value:d,children:[c&&d.visualElement?C(c,{visualElement:d.visualElement,...u}):null,n(i,a,SC(m,d.visualElement,l),m,f,d.visualElement)]})}let s=Ue(o);return s[ff]=i,s}function TC({layoutId:e}){let t=D(rs).id;return t&&e!==void 0?t+"-"+e:e}var Ha={};function df(e){Object.assign(Ha,e)}var Te=e=>!!(e&&e.getVelocity),ls=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ci=new Set(ls),EC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},RC=ls.length;function ng(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,i){let o="";for(let s=0;sn>t?t:nMath.round(e*1e5)/1e5,hf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,PC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_C=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function cs(e){return typeof e=="string"}var us=e=>({test:t=>cs(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vr=us("deg"),_n=us("%"),U=us("px"),FC=us("vh"),IC=us("vw"),Am={..._n,parse:e=>_n.parse(e)/100,transform:e=>_n.transform(e*100)},LC=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 ji(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LC.has(e)}var rg=e=>!ji(e);function ig(e){e&&(rg=t=>t.startsWith("on")?!ji(t):e(t))}try{ig(vC().default)}catch{}function og(e,t,n){let r={};for(let i in e)i==="values"&&typeof e.values=="object"||(rg(i)||n===!0&&ji(i)||!t&&!ji(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}var zu=e=>Array.isArray(e),MC=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),OC=e=>zu(e)?e[e.length-1]||0:e;function lt(e){let t=Te(e)?e.get():e;return MC(t)?t.toValue():t}function Vm(e){let t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function pf(e,t,n,r){if(typeof t=="function"){let[i,o]=Vm(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,o]=Vm(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function nr(e){let t=A(null);return t.current===null&&(t.current=e()),t.current}function DC({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let s={latestValues:AC(r,i,o,e),renderState:t()};return n&&(s.mount=a=>n(r,a,s)),s}var nl=e=>(t,n)=>{let r=D(as),i=D(Xi),o=()=>DC(e,t,r,i);return n?o():nr(o)};function AC(e,t,n,r){let i={},o=r(e,{});for(let d in o)i[d]=lt(o[d]);let{initial:s,animate:a}=e,l=tl(e),c=eg(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||s===!1;let f=u?a:s;return f&&typeof f!="boolean"&&!el(f)&&(Array.isArray(f)?f:[f]).forEach(m=>{let y=pf(e,m);if(!y)return;let{transitionEnd:v,transition:S,...p}=y;for(let h in p){let g=p[h];if(Array.isArray(g)){let x=u?g.length-1:0;g=g[x]}g!==null&&(i[h]=g)}for(let h in v)i[h]=v[h]}),i}var nt=e=>e,{schedule:Q,cancel:Rt,state:De,steps:Va}=Jv(typeof requestAnimationFrame<"u"?requestAnimationFrame:nt,!0),sg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function rl(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var ag=e=>t=>sg(t)&&e(t,rl(t));function Qn(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Fn(e,t,n,r){return Qn(e,t,ag(n),r)}var VC=(e,t)=>n=>t(e(n)),In=(...e)=>e.reduce(VC);function lg(e){let t=null;return()=>{let n=()=>{t=null};return t===null?(t=e,n):!1}}var Bm=lg("dragHorizontal"),zm=lg("dragVertical");function cg(e){let t=!1;if(e==="y")t=zm();else if(e==="x")t=Bm();else{let n=Bm(),r=zm();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function mf(){let e=cg(!0);return e?(e(),!1):!0}var Yi=nt,zt=nt,Gi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Zo={...Gi,transform:e=>Jn(0,1,e)},Da={...Gi,default:1},vf=(e,t)=>n=>!!(cs(n)&&_C.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),ug=(e,t,n)=>r=>{if(!cs(r))return r;let[i,o,s,a]=r.match(hf);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},BC=e=>Jn(0,255,e),Eu={...Gi,transform:e=>Math.round(BC(e))},oi={test:vf("rgb","red"),parse:ug("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Eu.transform(e)+", "+Eu.transform(t)+", "+Eu.transform(n)+", "+Qo(Zo.transform(r))+")"};function zC(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $u={test:vf("#"),parse:zC,transform:oi.transform},$i={test:vf("hsl","hue"),parse:ug("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+_n.transform(Qo(t))+", "+_n.transform(Qo(n))+", "+Qo(Zo.transform(r))+")"},tt={test:e=>oi.test(e)||$u.test(e)||$i.test(e),parse:e=>oi.test(e)?oi.parse(e):$i.test(e)?$i.parse(e):$u.parse(e),transform:e=>cs(e)?e:e.hasOwnProperty("red")?oi.transform(e):$i.transform(e)};function $C(e){var t,n;return isNaN(e)&&cs(e)&&(((t=e.match(hf))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(PC))===null||n===void 0?void 0:n.length)||0)>0}var fg="number",dg="color",NC="var",HC="var(",$m="${}",jC=/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 ss(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(jC,l=>(tt.test(l)?(r.color.push(o),i.push(dg),n.push(tt.parse(l))):l.startsWith(HC)?(r.var.push(o),i.push(NC),n.push(l)):(r.number.push(o),i.push(fg),n.push(parseFloat(l))),++o,$m)).split($m);return{values:n,split:a,indexes:r,types:i}}function hg(e){return ss(e).values}function pg(e){let{split:t,types:n}=ss(e),r=t.length;return i=>{let o="";for(let s=0;stypeof e=="number"?0:e;function UC(e){let t=hg(e);return pg(e)(t.map(WC))}var er={test:$C,parse:hg,createTransformer:pg,getAnimatableNone:UC},Ln=e=>e*1e3,Mn=e=>e/1e3;function gf(e,t){return t?e*(1e3/t):0}var XC=5;function mg(e,t,n){let r=Math.max(t-XC,0);return gf(n-e(r),t-r)}var Ru=.001,YC=.01,Nm=10,GC=.05,KC=1;function qC({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Yi(e<=Ln(Nm),"Spring duration must be 10 seconds or less");let s=1-t;s=Jn(GC,KC,s),e=Jn(YC,Nm,Mn(e)),s<1?(i=c=>{let u=c*s,f=u*e,d=u-n,m=Nu(c,s),y=Math.exp(-f);return Ru-d/m*y},o=c=>{let f=c*s*e,d=f*n+n,m=Math.pow(s,2)*Math.pow(c,2)*e,y=Math.exp(-f),v=Nu(Math.pow(c,2),s);return(-i(c)+Ru>0?-1:1)*((d-m)*y)/v}):(i=c=>{let u=Math.exp(-c*e),f=(c-n)*e+1;return-Ru+u*f},o=c=>{let u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});let a=5/e,l=ZC(i,o,a);if(e=Ln(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}var QC=12;function ZC(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function tT(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Hm(e,eT)&&Hm(e,JC)){let n=qC(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function fs({keyframes:e,restDelta:t,restSpeed:n,...r}){let i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=tT({...r,velocity:-Mn(r.velocity||0)}),m=f||0,y=l/(2*Math.sqrt(a*c)),v=o-i,S=Mn(Math.sqrt(a/c)),p=Math.abs(v)<5;n||(n=p?.01:2),t||(t=p?.005:.5);let h;if(y<1){let g=Nu(S,y);h=x=>{let k=Math.exp(-y*S*x);return o-k*((m+y*S*v)/g*Math.sin(g*x)+v*Math.cos(g*x))}}else if(y===1)h=g=>o-Math.exp(-S*g)*(v+(m+S*v)*g);else{let g=S*Math.sqrt(y*y-1);h=x=>{let k=Math.exp(-y*S*x),w=Math.min(g*x,300);return o-k*((m+y*S*v)*Math.sinh(w)+g*v*Math.cosh(w))/g}}return{calculatedDuration:d&&u||null,next:g=>{let x=h(g);if(d)s.done=g>=u;else{let k=m;g!==0&&(y<1?k=mg(h,g,x):k=0);let w=Math.abs(k)<=n,T=Math.abs(o-x)<=t;s.done=w&&T}return s.value=s.done?o:x,s}}}var vg=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,nT=1e-7,rT=12;function iT(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=vg(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>nT&&++aiT(o,0,1,e,n);return o=>o===0||o===1?o:vg(i(o),t,r)}var gg=Ki(.42,0,1,1),yg=Ki(0,0,.58,1),yf=Ki(.42,0,.58,1),bf=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xf=e=>t=>1-e(1-t),il=e=>1-Math.sin(Math.acos(e)),Sf=xf(il),bg=bf(il),wf=Ki(.33,1.53,.69,.99),ol=xf(wf),xg=bf(ol),Sg=e=>(e*=2)<1?.5*ol(e):.5*(2-Math.pow(2,-10*(e-1))),xr=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},we=(e,t,n)=>e+(t-e)*n;function Pu(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function oT({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Pu(l,a,e+1/3),o=Pu(l,a,e),s=Pu(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function ja(e,t){return n=>n>0?t:e}var _u=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},sT=[$u,oi,$i],aT=e=>sT.find(t=>t.test(e));function jm(e){let t=aT(e);if(Yi(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===$i&&(n=oT(n)),n}var Wm=(e,t)=>{let n=jm(e),r=jm(t);if(!n||!r)return ja(e,t);let i={...n};return o=>(i.red=_u(n.red,r.red,o),i.green=_u(n.green,r.green,o),i.blue=_u(n.blue,r.blue,o),i.alpha=we(n.alpha,r.alpha,o),oi.transform(i))},wg=e=>t=>typeof t=="string"&&t.startsWith(e),kg=wg("--"),lT=wg("var(--"),kf=e=>lT(e)?cT.test(e.split("/*")[0].trim()):!1,cT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hu=new Set(["none","hidden"]);function uT(e,t){return Hu.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function fT(e,t){return n=>we(e,t,n)}function Cf(e){return typeof e=="number"?fT:typeof e=="string"?kf(e)?ja:tt.test(e)?Wm:pT:Array.isArray(e)?Cg:typeof e=="object"?tt.test(e)?Wm:dT:ja}function Cg(e,t){let n=[...e],r=n.length,i=e.map((o,s)=>Cf(o)(o,t[s]));return o=>{for(let s=0;s{for(let o in r)n[o]=r[o](i);return n}}function hT(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o{let n=er.createTransformer(t),r=ss(e),i=ss(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Hu.has(e)&&!i.values.length||Hu.has(t)&&!r.values.length?uT(e,t):In(Cg(hT(r,i),i.values),n):(Yi(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),ja(e,t))};function Tf(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?we(e,t,n):Cf(e)(e,t)}function mT(e,t,n){let r=[],i=n||Tf,o=e.length-1;for(let s=0;st[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=mT(t,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;ul(Jn(e[0],e[o-1],c)):l}var vT=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Um=e=>e===Gi||e===U,Xm=(e,t)=>parseFloat(e.split(", ")[t]),Ym=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Xm(i[1],t);{let o=r.match(/^matrix\((.+)\)$/u);return o?Xm(o[1],e):0}},gT=new Set(["x","y","z"]),yT=ls.filter(e=>!gT.has(e));function bT(e){let t=[];return yT.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}var Wi={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),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:Ym(4,13),y:Ym(5,14)};Wi.translateX=Wi.x;Wi.translateY=Wi.y;var si=new Set,ju=!1,Wu=!1;function Tg(){if(Wu){let e=Array.from(si).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{let i=bT(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&L.scrollTo(0,r.suspendedScrollY)})}Wu=!1,ju=!1,si.forEach(e=>e.complete()),si.clear()}function Eg(){si.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Wu=!0)})}function xT(){Eg(),Tg()}var Ef=class{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(si.add(this),ju||(ju=!0,Q.read(Eg),Q.resolveKeyframes(Tg))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;ia!==void 0&&El,y=E=>a===void 0?l:l===void 0||Math.abs(a-E)-v*Math.exp(-E/r),g=E=>p+h(E),x=E=>{let I=h(E),F=g(E);d.done=Math.abs(I)<=c,d.value=d.done?p:F},k,w,T=E=>{m(d.value)&&(k=E,w=fs({keyframes:[d.value,y(d.value)],velocity:mg(g,E,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return T(0),{calculatedDuration:null,next:E=>{let I=!1;return!w&&k===void 0&&(I=!0,x(E),T(E)),k!==void 0&&E>=k?w.next(E-k):(!I&&x(E),d)}}}var Rg=e=>Array.isArray(e)&&typeof e[0]!="number",Km={linear:nt,easeIn:gg,easeInOut:yf,easeOut:yg,circIn:il,circInOut:bg,circOut:Sf,backIn:ol,backInOut:xg,backOut:wf,anticipate:Sg},qm=e=>{if(Array.isArray(e)){zt(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return Ki(t,n,r,i)}else if(typeof e=="string")return zt(Km[e]!==void 0,`Invalid easing type '${e}'`),Km[e];return e};function Pg(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=xr(0,t,r);e.push(we(n,1,i))}}function Rf(e){let t=[0];return Pg(t,e.length-1),t}function ST(e,t){return e.map(n=>n*t)}function wT(e,t){return e.map(()=>t||yf).splice(0,e.length-1)}function Wa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=Rg(r)?r.map(qm):qm(r),o={done:!1,value:t[0]},s=ST(n&&n.length===t.length?n:Rf(t),e),a=qi(s,t,{ease:Array.isArray(i)?i:wT(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}var Ua={current:!1},Qm=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(er.test(e)||e==="0")&&!e.startsWith("url("));function kT(e){let t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function sl(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(TT),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}var _g=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&xT(),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!CT(e,n,r,i))if(Ua.current||!o){a?.(sl(e,this.options,t)),s?.(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(e,t);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}},Uu=2e4;function Fg(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t=Uu?1/0:t}var Ba;function ET(){Ba=void 0}var br={now:()=>(Ba===void 0&&br.set(De.isProcessing||Za.useManualTiming?De.timestamp:performance.now()),Ba),set:e=>{Ba=e,queueMicrotask(ET)}},RT=e=>{let t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Rt(t),now:()=>De.isProcessing?De.timestamp:br.now()}},PT={decay:Gm,inertia:Gm,tween:Wa,keyframes:Wa,spring:fs},_T=e=>e/100,al=class extends _g{constructor({Keyudaypsesolver:e=Ef,...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,this.state==="idle")return;this.teardown();let{onStop:s}=this.options;s&&s()};let{name:n,motionValue:r,keyframes:i}=this.options,o=(s,a)=>this.onKeyframesResolved(s,a);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(i,o,n,r):this.resolver=new e(i,o,n,r),this.resolver.scheduleResolve()}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,s=PT[t]||Wa,a,l;s!==Wa&&typeof e[0]!="number"&&(a=In(_T,Tf(e[0],e[1])),e=[0,100]);let c=s({...this.options,keyframes:e});i==="mirror"&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=Fg(c));let{calculatedDuration:u}=c,f=u+r,d=f*(n+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:f,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:T}=this.options;return{done:!0,value:T[T.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:f,repeat:d,repeatType:m,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let S=this.currentTime-f*(this.speed>=0?1:-1),p=this.speed>=0?S<0:S>c;this.currentTime=Math.max(S,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let h=this.currentTime,g=i;if(d){let T=Math.min(this.currentTime,c)/u,E=Math.floor(T),I=T%1;!I&&T>=1&&(I=1),I===1&&E--,E=Math.min(E,d+1),!!(E%2)&&(m==="reverse"?(I=1-I,y&&(I-=y/u)):m==="mirror"&&(g=o)),h=Jn(0,1,I)*u}let x=p?{done:!1,value:a[0]}:g.next(h);s&&(x.value=s(x.value));let{done:k}=x;!p&&l!==null&&(k=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return w&&r!==void 0&&(x.value=sl(a,this.options,r)),v&&v(x.value),w&&this.finish(),x}get duration(){let{resolved:e}=this;return e?Mn(e.calculatedDuration):0}get time(){return Mn(this.currentTime)}set time(e){e=Ln(e),this.currentTime=e,this.holdTime!==null||this.speed===0?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=Mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=RT,onPlay:t}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),t&&t();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&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=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&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)}};function Pf(e){return new al(e)}var Ig=e=>/^0[^.\s]+$/u.test(e);function FT(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ig(e):!0}var Lg=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),IT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function LT(e){let t=IT.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var MT=4;function Mg(e,t,n=1){zt(n<=MT,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=LT(e);if(!r)return;let o=L.getComputedStyle(t).getPropertyValue(r);if(o){let s=o.trim();return Lg(s)?parseFloat(s):s}return kf(i)?Mg(i,t,n+1):i}var Og=e=>t=>t.test(e),OT={test:e=>e==="auto",parse:e=>e},Dg=[Gi,U,_n,vr,IC,FC,OT],Zm=e=>Dg.find(Og(e)),DT=new Set(["brightness","contrast","saturate","opacity"]);function AT(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=n.match(hf)||[];if(!r)return e;let i=n.replace(r,""),o=DT.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}var VT=/\b([a-z-]*)\(.*?\)/gu,Xu={...er,getAnimatableNone:e=>{let t=e.match(VT);return t?t.map(AT).join(" "):e}},Jm={...Gi,transform:Math.round},Ag={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,radius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,size:U,top:U,right:U,bottom:U,left:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,rotate:vr,rotateX:vr,rotateY:vr,rotateZ:vr,scale:Da,scaleX:Da,scaleY:Da,scaleZ:Da,skew:vr,skewX:vr,skewY:vr,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:Zo,originX:Am,originY:Am,originZ:U,zIndex:Jm,backgroundPositionX:U,backgroundPositionY:U,fillOpacity:Zo,strokeOpacity:Zo,numOctaves:Jm},BT={...Ag,color:tt,backgroundColor:tt,outlineColor:tt,fill:tt,stroke:tt,borderColor:tt,borderTopColor:tt,borderRightColor:tt,borderBottomColor:tt,borderLeftColor:tt,filter:Xu,WebkitFilter:Xu},_f=e=>BT[e];function Vg(e,t){let n=_f(e);return n!==Xu&&(n=er),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var zT=new Set(["auto","none","0"]);function $T(e,t,n){let r=0,i;for(;r{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}};function zg(e){let t;return()=>(t===void 0&&(t=e()),t)}var $g=e=>Array.isArray(e)&&typeof e[0]=="number";function Ng(e){return!!(!e||typeof e=="string"&&e in Ff||$g(e)||Array.isArray(e)&&e.every(Ng))}var qo=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ff={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qo([0,.65,.55,1]),circOut:qo([.55,0,1,.45]),backIn:qo([.31,.01,.66,-.59]),backOut:qo([.33,1.53,.69,.99])};function NT(e){return Hg(e)||Ff.easeOut}function Hg(e){if(e)return $g(e)?qo(e):Array.isArray(e)?e.map(NT):Ff[e]}function HT(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let c={[t]:n};l&&(c.offset=l);let u=Hg(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}var jT=zg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),WT=new Set(["opacity","clipPath","filter","transform"]),Xa=10,UT=2e4;function XT(e){return e.type==="spring"||e.name==="backgroundColor"||!Ng(e.ease)}function YT(e,t){let n=new al({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&othis.onKeyframesResolved(i,o),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(XT(this.options)){let{onComplete:u,onUpdate:f,motionValue:d,...m}=this.options,y=YT(e,m);e=y.keyframes,e.length===1&&(e[1]=e[0]),r=y.duration,i=y.times,o=y.ease,s="keyframes"}let c=HT(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return c.startTime=br.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:u}=this.options;a.set(sl(e,this.options,t)),u&&u(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return Mn(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return Mn(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=Ln(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:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return nt;let{animation:n}=t;n.timeline=e,n.onfinish=null}return nt}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&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,this.state==="idle")return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:s}=e;if(!(t.playState==="idle"||t.playState==="finished")){if(this.time){let{motionValue:a,onUpdate:l,onComplete:c,...u}=this.options,f=new al({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),d=Ln(this.time);a.setWithVelocity(f.sample(d-Xa).value,f.sample(d).value,Xa)}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:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;return jT()&&n&&WT.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}};function If(e,t){e.indexOf(t)===-1&&e.push(t)}function ll(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function GT([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&rll(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i!isNaN(parseFloat(e)),Jo={current:void 0},cl=class{constructor(e,t={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,r=!0)=>{let i=br.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=br.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=KT(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Lf);let n=this.events[e].add(t);return e==="change"?()=>{n(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:n}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.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}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 Jo.current&&Jo.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=br.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ev)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ev);return gf(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ae(e,t){return new cl(e,t)}function ul(e,t,n){let r=e.getProps();return pf(r,t,n!==void 0?n:r.custom,e)}var qT={type:"spring",stiffness:500,damping:25,restSpeed:10},QT=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZT={type:"keyframes",duration:.8},JT={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eE=(e,{keyframes:t})=>t.length>2?ZT:ci.has(e)?e.startsWith("scale")?QT(t[1]):qT:JT;function tE({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}function Mf(e,t){return e[t]||e.default||e}function nE(e,t){let n,r=()=>{let{currentTime:i}=t,s=(i===null?0:i.value)/100;n!==s&&e(s),n=s};return Q.update(r,!0),()=>Rt(r)}var rE=zg(()=>L.ScrollTimeline!==void 0),Of=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n{if(rE()&&n.attachTimeline)n.attachTimeline(e);else return n.pause(),nE(r=>{n.time=n.duration*r},e)});return()=>{t.forEach((n,r)=>{n&&n(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;tt[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},Df=(e,t,n,r={},i,o)=>s=>{let a=Mf(r,e)||{},l=a.delay||r.delay||0,{elapsed:c=0}=r;c=c-Ln(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};tE(a)||(u={...u,...eE(e,u)}),u.duration&&(u.duration=Ln(u.duration)),u.repeatDelay&&(u.repeatDelay=Ln(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),(Ua.current||Za.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),f&&!o&&t.get()!==void 0){let d=sl(u.keyframes,a);if(d!==void 0)return Q.update(()=>{u.onUpdate(d),u.onComplete()}),new Of([])}return!o&&Yu.supports(u)?new Yu(u):new al(u)};function Ya(e){return!!(Te(e)&&e.add)}function iE(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ae(n))}function Af(e,t){let n=ul(e,t),{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(let s in o){let a=OC(o[s]);iE(e,s,a)}}function jg(e){return e.getProps()[Qa]}function oE({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vf(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t,c=e.getValue("willChange");r&&(s=r);let u=[],f=i&&e.animationState&&e.animationState.getState()[i];for(let d in l){let m=e.getValue(d,(o=e.latestValues[d])!==null&&o!==void 0?o:null),y=l[d];if(y===void 0||f&&oE(f,d))continue;let v={delay:n,elapsed:0,...Mf(s||{},d)},S=!1;if(L.HandoffAppearAnimations){let h=jg(e);if(h){let g=L.HandoffAppearAnimations(h,d,m,Q);g!==null&&(v.elapsed=g,S=!0)}}m.start(Df(d,m,y,e.shouldReduceMotion&&ci.has(d)?{type:!1}:v,e,S));let p=m.animation;p&&(Ya(c)&&(c.add(d),p.then(()=>c.remove(d))),u.push(p))}return a&&Promise.all(u).then(()=>{Q.update(()=>{a&&Af(e,a)})}),u}function Gu(e,t,n={}){var r;let i=ul(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(Vf(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return sE(e,t,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){let[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function sE(e,t,n=0,r=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(aE).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Gu(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function aE(e,t){return e.sortNodePosition(t)}function Bf(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let i=t.map(o=>Gu(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Gu(e,t,n);else{let i=typeof t=="function"?ul(e,t,n.custom):t;r=Promise.all(Vf(e,i,n))}return r.then(()=>{Q.postRender(()=>{e.notify("AnimationComplete",t)})})}function Wg(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;rPromise.all(t.map(({animation:n,options:r})=>Bf(e,n,r)))}function fE(e){let t=uE(e),n=hE(),r=!0,i=l=>(c,u)=>{var f;let d=ul(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){let{transition:m,transitionEnd:y,...v}=d;c={...c,...v,...y}}return c};function o(l){t=l(e)}function s(l){let c=e.getProps(),u=e.getVariantContext(!0)||{},f=[],d=new Set,m={},y=1/0;for(let S=0;Sy&&x,I=!1,F=Array.isArray(g)?g:[g],z=F.reduce(i(p),{});k===!1&&(z={});let{prevResolvedValues:B={}}=h,J={...B,...z},ne=j=>{E=!0,d.has(j)&&(I=!0,d.delete(j)),h.needsAnimating[j]=!0;let oe=e.getValue(j);oe&&(oe.liveStyle=!1)};for(let j in J){let oe=z[j],X=B[j];if(m.hasOwnProperty(j))continue;let Y=!1;zu(oe)&&zu(X)?Y=!Wg(oe,X):Y=oe!==X,Y?oe!=null?ne(j):d.add(j):oe!==void 0&&d.has(j)?ne(j):h.protectedKeys[j]=!0}h.prevProp=g,h.prevResolvedValues=z,h.isActive&&(m={...m,...z}),r&&e.blockInitialAnimation&&(E=!1),E&&(!w||I)&&f.push(...F.map(j=>({animation:j,options:{type:p}})))}if(d.size){let S={};d.forEach(p=>{let h=e.getBaseTarget(p),g=e.getValue(p);g&&(g.liveStyle=!0),S[p]=h??null}),f.push({animation:S})}let v=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(d=>{var m;return(m=d.animationState)===null||m===void 0?void 0:m.setActive(l,c)}),n[l].isActive=c;let f=s(l);for(let d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n}}function dE(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wg(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function hE(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}var wr=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},pE=class extends wr{constructor(e){super(e),e.animationState||(e.animationState=fE(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),el(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(){}},mE=0,vE=class extends wr{constructor(){super(...arguments),this.id=mE++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}},zf={animation:{Feature:pE},exit:{Feature:vE}},Ku=(e,t)=>Math.abs(e-t);function Ug(e,t){let n=Ku(e.x,t.x),r=Ku(e.y,t.y);return Math.sqrt(n**2+r**2)}function Pt(e){return e.max-e.min}function qu(e,t=0,n=.01){return Math.abs(e-t)<=n}function tv(e,t,n,r=.5){e.origin=r,e.originPoint=we(t.min,t.max,e.origin),e.scale=Pt(n)/Pt(t),(qu(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=we(n.min,n.max,e.origin)-e.originPoint,(qu(e.translate)||isNaN(e.translate))&&(e.translate=0)}function es(e,t,n,r){tv(e.x,t.x,n.x,r?r.originX:void 0),tv(e.y,t.y,n.y,r?r.originY:void 0)}function nv(e,t,n){e.min=n.min+t.min,e.max=e.min+Pt(t)}function gE(e,t,n){nv(e.x,t.x,n.x),nv(e.y,t.y,n.y)}function rv(e,t,n){e.min=t.min-n.min,e.max=e.min+Pt(t)}function ts(e,t,n){rv(e.x,t.x,n.x),rv(e.y,t.y,n.y)}var iv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ni=()=>({x:iv(),y:iv()}),ov=()=>({min:0,max:0}),Oe=()=>({x:ov(),y:ov()});function $f(){let e=D(Xi);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=ei();return W(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}var yE=(e,t)=>e.depth-t.depth,Xg=class{constructor(){this.children=[],this.isDirty=!1}add(e){If(this.children,e),this.isDirty=!0}remove(e){ll(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(yE),this.isDirty=!1,this.children.forEach(e)}};function Yg(e,t){let n=br.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(Rt(r),e(o-t))};return Q.read(r,!0),()=>Rt(r)}var tr=new WeakMap,Ga={current:null},Nf={current:!1};function Gg(){if(Nf.current=!0,!!qa)if(L.matchMedia){let e=L.matchMedia("(prefers-reduced-motion)"),t=()=>Ga.current=e.matches;e.addListener(t),t()}else Ga.current=!1}function bE(e,t,n){let{willChange:r}=t;for(let i in t){let o=t[i],s=n[i];if(Te(o))e.addValue(i,o),Ya(r)&&r.add(i);else if(Te(s))e.addValue(i,Ae(o,{owner:e})),Ya(r)&&r.remove(i);else if(s!==o)if(e.hasValue(i)){let a=e.getValue(i);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{let a=e.getStaticValue(i);e.addValue(i,Ae(a!==void 0?a:o,{owner:e}))}}for(let i in n)t[i]===void 0&&e.removeValue(i);return t}var xE=[...Dg,tt,er],SE=e=>xE.find(Og(e)),Kg=Object.keys(os),wE=Kg.length,sv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],kE=uf.length;function qg(e){if(e)return e.options.allowProjection!==!1?e.projection:qg(e.parent)}var Qg=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.resolveKeyframes=(f,d,m,y)=>new this.Keyudaypsesolver(f,d,m,y,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.Keyudaypsesolver=Ef,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=()=>Q.render(this.render,!1,!0);let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=tl(t),this.isVariantNode=eg(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let f in u){let d=u[f];a[f]!==void 0&&Te(d)&&(d.set(a[f],!1),Ya(c)&&c.add(f))}}mount(e){this.current=e,tr.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((t,n)=>this.bindToMotionValue(n,t)),Nf.current||Gg(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ga.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;tr.delete(this.current),this.projection&&this.projection.unmount(),Rt(this.notifyUpdate),Rt(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features)(e=this.features[t])===null||e===void 0||e.unmount();this.current=null}bindToMotionValue(e,t){let n=ci.has(e),r=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Q.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...t},n,r,i){let o,s;for(let a=0;athis.scheduleRender(),animationType:typeof l=="string"?l:"both",initialPromotionConfig:i,layoutScroll:f,layoutRoot:d})}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):Oe()}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 n=0;nt.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&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 n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ae(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(Lg(r)||Ig(r))?r=parseFloat(r):!SE(r)&&er.test(t)&&(r=Vg(e,t)),this.setBaseTarget(e,Te(r)?r.get():r)),Te(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r;if(typeof n=="string"||typeof n=="object"){let o=pf(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Te(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Lf),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};function Zg(e){function t(r,i={}){return tg(e(r,i))}if(typeof Proxy>"u")return t;let n=new Map;return new Proxy(t,{get:(r,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}var CE=["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 Hf(e){return typeof e!="string"||e.includes("-")?!1:!!(CE.indexOf(e)>-1||/[A-Z]/u.test(e))}function Jg(e,{layout:t,layoutId:n}){return ci.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ha[e]||e==="opacity")}var TE=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function jf(e,t,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=e,l=!1,c=!1,u=!0;for(let f in t){let d=t[f];if(kg(f)){o[f]=d;continue}let m=Ag[f],y=TE(d,m);if(ci.has(f)){if(l=!0,s[f]=y,!u)continue;d!==(m.default||0)&&(u=!1)}else f.startsWith("origin")?(c=!0,a[f]=y):i[f]=y}if(t.transform||(l||r?i.transform=ng(e.transform,n,u,r):i.transform&&(i.transform="none")),c){let{originX:f="50%",originY:d="50%",originZ:m=0}=a;i.transformOrigin=`${f} ${d} ${m}`}}var Wf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ey(e,t,n){for(let r in t)!Te(t[r])&&!Jg(r,n)&&(e[r]=t[r])}function EE({transformTemplate:e},t,n){return me(()=>{let r=Wf();return jf(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}function RE(e,t,n){let r=e.style||{},i={};return ey(i,r,e),Object.assign(i,EE(e,t,n)),i}function PE(e,t,n){let r={},i=RE(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}function av(e,t,n){return typeof e=="string"?e:U.transform(t+n*e)}function _E(e,t,n){let r=av(t,e.x,e.width),i=av(n,e.y,e.height);return`${r} ${i}`}var FE={offset:"stroke-dashoffset",array:"stroke-dasharray"},IE={offset:"strokeDashoffset",array:"strokeDasharray"};function LE(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?FE:IE;e[o.offset]=U.transform(-r);let s=U.transform(t),a=U.transform(n);e[o.array]=`${s} ${a}`}function Uf(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f,d){if(jf(e,c,u,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:y,dimensions:v}=e;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||y.transform)&&(y.transformOrigin=_E(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),s!==void 0&&LE(m,s,a,l,!1)}var ty=()=>({...Wf(),attrs:{}}),Xf=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ME(e,t,n,r){let i=me(()=>{let o=ty();return Uf(o,t,{enableHardwareAcceleration:!1},Xf(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};ey(o,e.style,e),i.style={...o,...i.style}}return i}function OE(e=!1){return(n,r,i,{latestValues:o},s)=>{let l=(Hf(n)?ME:PE)(r,o,s,n),c=og(r,typeof n=="string",e),u=n!==Uo?{...c,...l,ref:i}:{},{children:f}=r,d=me(()=>Te(f)?f.get():f,[f]);return Tu(n,{...u,children:d})}}function ny(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(let o in n)e.style.setProperty(o,n[o])}var ry=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 iy(e,t,n,r){ny(e,t,void 0,r);for(let i in t.attrs)e.setAttribute(ry.has(i)?i:af(i),t.attrs[i])}function Yf(e,t,n){var r;let{style:i}=e,o={};for(let s in i)(Te(i[s])||t.style&&Te(t.style[s])||Jg(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function oy(e,t,n){let r=Yf(e,t,n);for(let i in e)if(Te(e[i])||Te(t[i])){let o=ls.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}var DE={useVisualState:nl({scrapeMotionValuesFromProps:oy,createRenderState:ty,onMount:(e,t,{renderState:n,latestValues:r})=>{Q.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Q.render(()=>{Uf(n,r,{enableHardwareAcceleration:!1},Xf(t.tagName),e.transformTemplate),iy(t,n)})}})},AE={useVisualState:nl({scrapeMotionValuesFromProps:Yf,createRenderState:Wf})};function sy(e,{forwardMotionProps:t=!1},n,r){return{...Hf(e)?DE:AE,preloadedFeatures:n,useRender:OE(t),createVisualElement:r,Component:e}}function lv(e,t){let n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||mf())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let l=a[r];l&&Q.postRender(()=>l(o,s))};return Fn(e.current,n,i,{passive:!e.getProps()[r]})}var VE=class extends wr{mount(){this.unmount=In(lv(this.node,!0),lv(this.node,!1))}unmount(){}},BE=class extends wr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=In(Qn(this.node.current,"focus",()=>this.onFocus()),Qn(this.node.current,"blur",()=>this.onBlur()))}unmount(){}},ay=(e,t)=>t?e===t?!0:ay(e,t.parentElement):!1;function Fu(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,rl(n))}var zE=class extends wr{constructor(){super(...arguments),this.removeStartListeners=nt,this.removeEndListeners=nt,this.removeAccessibleListeners=nt,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=Fn(L,"pointerup",(s,a)=>{if(!this.checkPressEnd())return;let{onTap:l,onTapCancel:c,globalTapTarget:u}=this.node.getProps(),f=!u&&!ay(this.node.current,s.target)?c:l;f&&Q.update(()=>f(s,a))},{passive:!(n.onTap||n.onPointerUp)}),o=Fn(L,"pointercancel",(s,a)=>this.cancelPress(s,a),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=In(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=i=>{if(i.key!=="Enter"||this.isPressing)return;let o=s=>{s.key!=="Enter"||!this.checkPressEnd()||Fu("up",(a,l)=>{let{onTap:c}=this.node.getProps();c&&Q.postRender(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=Qn(this.node.current,"keyup",o),Fu("down",(s,a)=>{this.startPress(s,a)})},t=Qn(this.node.current,"keydown",e),n=()=>{this.isPressing&&Fu("cancel",(i,o)=>this.cancelPress(i,o))},r=Qn(this.node.current,"blur",n);this.removeAccessibleListeners=In(t,r)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Q.postRender(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!mf()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&Q.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=Fn(e.globalTapTarget?L:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Qn(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=In(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}},Qu=new WeakMap,Iu=new WeakMap,$E=e=>{let t=Qu.get(e.target);t&&t(e)},NE=e=>{e.forEach($E)};function HE({root:e,...t}){let n=e||document;Iu.has(n)||Iu.set(n,{});let r=Iu.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(NE,{root:e,...t})),r[i]}function jE(e,t,n){let r=HE(t);return Qu.set(e,n),r.observe(e),()=>{Qu.delete(e),r.unobserve(e)}}var WE={some:0,all:1},UE=class extends wr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:WE[r]},s=a=>{let{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);let{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),f=l?c:u;f&&f(a)};return jE(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(XE(e,t))&&this.startObserver()}unmount(){}};function XE({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var ly={inView:{Feature:UE},tap:{Feature:zE},focus:{Feature:BE},hover:{Feature:VE}},cy=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=L,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let u=Mu(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=Ug(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;let{point:m}=u,{timestamp:y}=De;this.history.push({...m,timestamp:y});let{onStart:v,onMove:S}=this.handlers;f||(v&&v(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=Lu(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{this.end();let{onEnd:d,onSessionEnd:m,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let v=Mu(u.type==="pointercancel"?this.lastMoveEventInfo:Lu(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,v),m&&m(u,v)},!sg(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||L;let o=rl(e),s=Lu(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=De;this.history=[{...a,timestamp:l}];let{onSessionStart:c}=t;c&&c(e,Mu(s,this.history)),this.removeListeners=In(Fn(this.contextWindow,"pointermove",this.handlePointerMove),Fn(this.contextWindow,"pointerup",this.handlePointerUp),Fn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Rt(this.updatePoint)}};function Lu(e,t){return t?{point:t(e.point)}:e}function cv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mu({point:e},t){return{point:e,delta:cv(e,uy(t)),offset:cv(e,YE(t)),velocity:GE(t,.1)}}function YE(e){return e[0]}function uy(e){return e[e.length-1]}function GE(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=uy(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ln(t)));)n--;if(!r)return{x:0,y:0};let o=Mn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function KE(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?we(n,e,r.max):Math.min(e,n)),e}function uv(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function qE(e,{top:t,left:n,bottom:r,right:i}){return{x:uv(e.x,n,i),y:uv(e.y,t,r)}}function fv(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=xr(t.min,t.max-r,e.min):r>i&&(n=xr(e.min,e.max-i,t.min)),Jn(0,1,n)}function JE(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Zu=.35;function eR(e=Zu){return e===!1?e=0:e===!0&&(e=Zu),{x:dv(e,"left","right"),y:dv(e,"top","bottom")}}function dv(e,t,n){return{min:hv(e,t),max:hv(e,n)}}function hv(e,t){return typeof e=="number"?e:e[t]||0}function tn(e){return[e("x"),e("y")]}function fy({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function nR(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ou(e){return e===void 0||e===1}function Ju({scale:e,scaleX:t,scaleY:n}){return!Ou(e)||!Ou(t)||!Ou(n)}function ni(e){return Ju(e)||dy(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dy(e){return pv(e.x)||pv(e.y)}function pv(e){return e&&e!=="0%"}function Ka(e,t,n){let r=e-n,i=t*r;return n+i}function mv(e,t,n,r,i){return i!==void 0&&(e=Ka(e,i,r)),Ka(e,n,r)+t}function ef(e,t=0,n=1,r,i){e.min=mv(e.min,t,n,r,i),e.max=mv(e.max,t,n,r,i)}function hy(e,{x:t,y:n}){ef(e.x,t.translate,t.scale,t.originPoint),ef(e.y,n.translate,n.scale,n.originPoint)}function rR(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a1.0000000000001||e<.999999999999?e:1}function yr(e,t){e.min=e.min+t,e.max=e.max+t}function gv(e,t,[n,r,i]){let o=t[i]!==void 0?t[i]:.5,s=we(e.min,e.max,o);ef(e,t[n],t[r],s,t.scale)}var iR=["x","scaleX","originX"],oR=["y","scaleY","originY"];function Hi(e,t){gv(e.x,t,iR),gv(e.y,t,oR)}function py(e,t){return fy(nR(e.getBoundingClientRect(),t))}function sR(e,t,n){let r=py(e,n),{scroll:i}=t;return i&&(yr(r.x,i.offset.x),yr(r.y,i.offset.y)),r}var my=({current:e})=>e?e.ownerDocument.defaultView:null,aR=new WeakMap,lR=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Oe(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=c=>{let{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rl(c,"page").point)},i=(c,u)=>{let{drag:f,dragPropagation:d,onDragStart:m}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=cg(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tn(v=>{let S=this.getAxisMotionValue(v).get()||0;if(_n.test(S)){let{projection:p}=this.visualElement;if(p&&p.layout){let h=p.layout.layoutBox[v];h&&(S=Pt(h)*(parseFloat(S)/100))}}this.originPoint[v]=S}),m&&Q.postRender(()=>m(c,u));let{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,u)=>{let{dragPropagation:f,dragDirectionLock:d,onDirectionLock:m,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;let{offset:v}=u;if(d&&this.currentDirection===null){this.currentDirection=cR(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",u.point,v),this.updateAxis("y",u.point,v),this.visualElement.render(),y&&y(c,u)},s=(c,u)=>this.stop(c,u),a=()=>tn(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new cy(e,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:my(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&Q.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Aa(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=KE(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,i=this.constraints;t&&zi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=qE(r.layoutBox,t):this.constraints=!1,this.elastic=eR(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&tn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=JE(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!zi(e))return!1;let n=e.current;zt(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=sR(n,r.root,this.visualElement.getTransformPagePoint()),o=QE(r.layout.layoutBox,i);if(t){let s=t(tR(o));this.hasMutatedConstraints=!!s,s&&(o=fy(s))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=tn(c=>{if(!Aa(c,t,this.currentDirection))return;let u=a&&a[c]||{};o&&(u={min:0,max:0});let f=r?200:1e6,d=r?40:1e7,m={type:"inertia",velocity:n?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(c,m)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(Df(e,n,0,t,this.visualElement))}stopAnimation(){tn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tn(e=>{var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){tn(t=>{let{drag:n}=this.getProps();if(!Aa(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:o,max:s}=r.layout.layoutBox[t];i.set(e[t]-we(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!zi(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tn(o=>{let s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){let a=s.get();r[o]=ZE({min:a,max:a},this.constraints[o])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tn(o=>{if(!Aa(o,e,null))return;let s=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];s.set(we(a,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;aR.set(this.visualElement,this);let e=this.visualElement.current,t=Fn(e,"pointerdown",a=>{let{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),n=()=>{let{dragConstraints:a}=this.getProps();zi(a)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();let o=Qn(L,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(tn(c=>{let u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=a[c].translate,u.set(u.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=Zu,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}};function Aa(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function cR(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var uR=class extends wr{constructor(e){super(e),this.removeGroupControls=nt,this.removeListeners=nt,this.controls=new lR(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nt}unmount(){this.removeGroupControls(),this.removeListeners()}},yv=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))},fR=class extends wr{constructor(){super(...arguments),this.removePointerDownListener=nt}onPointerDown(e){this.session=new cy(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:my(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:yv(e),onStart:yv(t),onMove:n,onEnd:(i,o)=>{delete this.session,r&&Q.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Fn(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},za={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function bv(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Yo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(U.test(e))e=parseFloat(e);else return e;let n=bv(e,t.target.x),r=bv(e,t.target.y);return`${n}% ${r}%`}},dR={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=er.parse(e);if(i.length>5)return r;let o=er.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;let c=we(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}},hR=class extends be{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;df(pR),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),za.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||t===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Q.postRender(()=>{let s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),lf.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function vy(e){let[t,n]=$f(),r=D(rs);return C(hR,{...e,layoutGroup:r,switchLayoutGroup:D(Ja),isPresent:t,safeToRemove:n})}var pR={borderRadius:{...Yo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Yo,borderTopRightRadius:Yo,borderBottomLeftRadius:Yo,borderBottomRightRadius:Yo,boxShadow:dR},gy=["TopLeft","TopRight","BottomLeft","BottomRight"],mR=gy.length,xv=e=>typeof e=="string"?parseFloat(e):e,Sv=e=>typeof e=="number"||U.test(e);function vR(e,t,n,r,i,o){i?(e.opacity=we(0,n.opacity!==void 0?n.opacity:1,gR(r)),e.opacityExit=we(t.opacity!==void 0?t.opacity:1,0,yR(r))):o&&(e.opacity=we(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;srt?1:n(xr(e,t,r))}function kv(e,t){e.min=t.min,e.max=t.max}function en(e,t){kv(e.x,t.x),kv(e.y,t.y)}function Cv(e,t,n,r,i){return e-=t,e=Ka(e,1/n,r),i!==void 0&&(e=Ka(e,1/i,r)),e}function bR(e,t=0,n=1,r=.5,i,o=e,s=e){if(_n.test(t)&&(t=parseFloat(t),t=we(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=we(o.min,o.max,r);e===o&&(a-=t),e.min=Cv(e.min,t,n,a,i),e.max=Cv(e.max,t,n,a,i)}function Tv(e,t,[n,r,i],o,s){bR(e,t[n],t[r],t[i],t.scale,o,s)}var xR=["x","scaleX","originX"],SR=["y","scaleY","originY"];function Ev(e,t,n,r){Tv(e.x,t,xR,n?n.x:void 0,r?r.x:void 0),Tv(e.y,t,SR,n?n.y:void 0,r?r.y:void 0)}function Rv(e){return e.translate===0&&e.scale===1}function by(e){return Rv(e.x)&&Rv(e.y)}function wR(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function xy(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Pv(e){return Pt(e.x)/Pt(e.y)}var kR=class{constructor(){this.members=[]}add(e){If(this.members,e),e.scheduleRender()}remove(e){if(ll(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){let t=this.members.findIndex(r=>e===r);if(t===0)return!1;let n;for(let r=t;r>=0;r--){let i=this.members[r];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;r===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function _v(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:m,skewY:y}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),m&&(r+=`skewX(${m}deg) `),y&&(r+=`skewY(${y}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}function CR(e){L.MotionDebug&&L.MotionDebug.record(e)}function Sy(e){return e instanceof SVGElement&&e.tagName!=="svg"}function Gf(e,t,n){let r=Te(e)?e:Ae(e);return r.start(Df("",r,t,n)),r.animation}var Du=["","X","Y","Z"],TR={visibility:"hidden"},Fv=1e3,ER=0,ri={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Au(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wy(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:t}=e.options;return t?jg(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?wy(e.parent):!1:!1}function ky({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=ER++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ri.totalNodes=ri.resolvedTargetDeltas=ri.recalculatedProjection=0,this.nodes.forEach(_R),this.nodes.forEach(OR),this.nodes.forEach(DR),this.nodes.forEach(FR),CR(ri)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=Yg(d,250),za.hasAnimatedSinceResize&&(za.hasAnimatedSinceResize=!1,this.nodes.forEach(Lv))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:m,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let v=this.options.transition||u.getDefaultTransition()||$R,{onLayoutAnimationStart:S,onLayoutAnimationComplete:p}=u.getProps(),h=!this.targetLayout||!xy(this.targetLayout,y)||m,g=!d&&m;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||g||d&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,g);let x={...Mf(v,"layout"),onPlay:S,onComplete:p};(u.shouldReduceMotion||this.options.layoutRoot)&&(x.delay=0,x.type=!1),this.startAnimation(x)}else d||Lv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Rt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(AR),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(L.HandoffCancelAllAnimations&&wy(this)&&L.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;uthis.update()))}clearAllSnapshots(){this.nodes.forEach(IR),this.sharedNodes.forEach(VR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{let k=x/1e3;Mv(f.x,s.x,k),Mv(f.y,s.y,k),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ts(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BR(this.relativeTarget,this.relativeTargetOrigin,d,k),g&&wR(this.relativeTarget,g)&&(this.isProjectionDirty=!1),g||(g=Oe()),en(g,this.relativeTarget)),v&&(this.animationValues=u,vR(u,c,this.latestValues,k,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Rt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{za.hasAnimatedSinceResize=!0,this.currentAnimation=Gf(0,Fv,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Fv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&Cy(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Oe();let f=Pt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;let d=Pt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}en(a,l),Hi(a,u),es(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new kR),this.sharedNodes.get(s).add(a);let c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let c={};l.z&&Au("z",s,c,this.animationValues);for(let u=0;u{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Iv),this.root.sharedNodes.clear()}}}function RR(e){e.updateLayout()}function PR(e){var t;let n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?tn(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],m=Pt(d);d.min=r[f].min,d.max=d.min+m}):Cy(o,n.layoutBox,r)&&tn(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],m=Pt(r[f]);d.max=d.min+m,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+m)});let a=Ni();es(a,r,n.layoutBox);let l=Ni();s?es(l,e.applyTransform(i,!0),n.measuredBox):es(l,r,n.layoutBox);let c=!by(a),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:d,layout:m}=f;if(d&&m){let y=Oe();ts(y,n.layoutBox,d.layoutBox);let v=Oe();ts(v,r,m.layoutBox),xy(y,v)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=y,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function _R(e){ri.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function FR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function IR(e){e.clearSnapshot()}function Iv(e){e.clearMeasurements()}function LR(e){e.isLayoutDirty=!1}function MR(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Lv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function OR(e){e.resolveTargetDelta()}function DR(e){e.calcProjection()}function AR(e){e.resetSkewAndRotation()}function VR(e){e.removeLeadSnapshot()}function Mv(e,t,n){e.translate=we(t.translate,0,n),e.scale=we(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ov(e,t,n,r){e.min=we(t.min,n.min,r),e.max=we(t.max,n.max,r)}function BR(e,t,n,r){Ov(e.x,t.x,n.x,r),Ov(e.y,t.y,n.y,r)}function zR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var $R={duration:.45,ease:[.4,0,.1,1]},Dv=e=>typeof Le<"u"&&Le.userAgent&&Le.userAgent.toLowerCase().includes(e),Av=Dv("applewebkit/")&&!Dv("chrome/")?Math.round:nt;function Vv(e){e.min=Av(e.min),e.max=Av(e.max)}function NR(e){Vv(e.x),Vv(e.y)}function Cy(e,t,n){return e==="position"||e==="preserve-aspect"&&!qu(Pv(t),Pv(n),.2)}var HR=ky({attachResizeListener:(e,t)=>Qn(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ai={current:void 0},Ty=ky({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ai.current){let e=new HR({});e.mount(L),e.setOptions({layoutScroll:!0}),ai.current=e}return ai.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>L.getComputedStyle(e).position==="fixed"}),Ey={pan:{Feature:fR},drag:{Feature:uR,ProjectionNode:Ty,MeasureLayout:vy}},Ry=class extends Qg{constructor(){super(...arguments),this.Keyudaypsesolver=Bg}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}};function jR(e){return L.getComputedStyle(e)}var Py=class extends Ry{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(ci.has(t)){let n=_f(t);return n&&n.default||0}else{let n=jR(e),r=(kg(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return py(e,t)}build(e,t,n,r){jf(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Yf(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Te(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(e,t,n,r){ny(e,t,n,r)}},_y=class extends Ry{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ci.has(t)){let n=_f(t);return n&&n.default||0}return t=ry.has(t)?t:af(t),e.getAttribute(t)}measureInstanceViewportBox(){return Oe()}scrapeMotionValuesFromProps(e,t,n){return oy(e,t,n)}build(e,t,n,r){Uf(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){iy(e,t,n,r)}mount(e){this.isSVGTag=Xf(e.tagName),super.mount(e)}},Fy=(e,t)=>Hf(e)?new _y(t,{enableHardwareAcceleration:!1}):new Py(t,{allowProjection:e!==Uo,enableHardwareAcceleration:!0}),Iy={layout:{ProjectionNode:Ty,MeasureLayout:vy}},WR={...zf,...ly,...Ey,...Iy},$t=Zg((e,t)=>sy(e,t,WR,Fy));var UR=Zg(sy);function Ly(){let e=A(!1);return Sr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function fl(){let e=Ly(),[t,n]=Tt(0),r=ye(()=>{e.current&&n(t+1)},[t]);return[ye(()=>Q.postRender(r),[r]),t]}function My(e){return W(()=>()=>e(),[])}var XR=class extends be{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function YR({children:e,isPresent:t}){let n=ei(),r=A(null),i=A({width:0,height:0,top:0,left:0}),{nonce:o}=D(Zn);return at(()=>{let{width:s,height:a,top:l,left:c}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;let u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${s}px !important; height: ${a}px !important; top: ${l}px !important; left: ${c}px !important; } `),()=>{document.head.removeChild(u)}},[t]),C(XR,{isPresent:t,childRef:r,sizeRef:i,children:mn(e,{ref:r})})}var Vu=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=nr(GR),l=ei(),c=me(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u=>{a.set(u,!0);for(let f of a.values())if(!f)return;r&&r()},register:u=>(a.set(u,!1),()=>a.delete(u))}),o?[Math.random()]:[n]);return me(()=>{a.forEach((u,f)=>a.set(f,!1))},[n]),W(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=C(YR,{isPresent:n,children:e})),C(Xi.Provider,{value:c,children:e})};function GR(){return new Map}var ii=e=>e.key||"";function KR(e,t){e.forEach(n=>{let r=ii(n);t.set(r,n)})}function qR(e){let t=[];return Rn.forEach(e,n=>{Jt(n)&&t.push(n)}),t}var Kf=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{zt(!i,"Replace exitBeforeEnter with mode='wait'");let a=D(rs).forceRender||fl()[0],l=Ly(),c=qR(e),u=c,f=A(new Map).current,d=A(u),m=A(new Map).current,y=A(!0);if(Sr(()=>{y.current=!1,KR(c,m),d.current=u}),My(()=>{y.current=!0,m.clear(),f.clear()}),y.current)return C(Me,{children:u.map(h=>C(Vu,{isPresent:!0,initial:n?void 0:!1,presenceAffectsLayout:o,mode:s,children:h},ii(h)))});u=[...u];let v=d.current.map(ii),S=c.map(ii),p=v.length;for(let h=0;h{if(S.indexOf(g)!==-1)return;let x=m.get(g);if(!x)return;let k=v.indexOf(g),w=h;w||(w=C(Vu,{isPresent:!1,onExitComplete:()=>{f.delete(g);let E=Array.from(m.keys()).filter(I=>!S.includes(I));if(E.forEach(I=>m.delete(I)),d.current=c.filter(I=>{let F=ii(I);return F===g||E.includes(F)}),!f.size){if(l.current===!1)return;a(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:s,children:x},ii(x)),f.set(g,w)),u.splice(k,0,w)}),u=u.map(h=>{let g=h.key;return f.has(g)?h:C(Vu,{isPresent:!0,presenceAffectsLayout:o,mode:s,children:h},ii(h))}),C(Me,{children:f.size?u:u.map(h=>mn(h))})};function Oy({children:e,isValidProp:t,...n}){t&&ig(t),n={...D(Zn),...n},n.isStatic=nr(()=>n.isStatic);let r=me(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return C(Zn.Provider,{value:r,children:e})}var Dy=Se(null),QR=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Bv(){let e=new Set,t=new WeakMap,n=()=>e.forEach(QR);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var Ay=e=>e===!0,ZR=e=>Ay(e===!0)||e==="id",Vy=({children:e,id:t,inherit:n=!0})=>{let r=D(rs),i=D(Dy),[o,s]=fl(),a=A(null),l=r.id||i;a.current===null&&(ZR(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:Ay(n)&&r.group||Bv()});let c=me(()=>({...a.current,forceRender:o}),[s]);return C(rs.Provider,{value:c,children:e})};function Dn(e){let t=nr(()=>Ae(e)),{isStatic:n}=D(Zn);if(n){let[,r]=Tt(e);W(()=>t.on("change",r),[])}return t}var JR=e=>e&&typeof e=="object"&&e.mix,eP=e=>JR(e)?e.mix:void 0;function ds(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=qi(i,o,{mixer:eP(o[0]),...s});return t?a(r):a}function By(e,t){let n=Dn(t()),r=()=>n.set(t());return r(),Sr(()=>{let i=()=>Q.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),Rt(r)}}),n}function tP(e){Jo.current=[],e();let t=By(Jo.current,e);return Jo.current=void 0,t}function vt(e,t,n,r){if(typeof e=="function")return tP(e);let i=typeof t=="function"?t:ds(t,n,r);return Array.isArray(e)?zv(e,i):zv([e],([o])=>i(o))}function zv(e,t){let n=nr(()=>[]);return By(e,()=>{n.length=0;let r=e.length;for(let i=0;iu.value===t);if(i===-1)return e;let o=r>0?1:-1,s=e[i+o];if(!s)return e;let a=e[i],l=s.layout,c=we(l.min,l.max,.5);return o===1&&a.layout.max+n>c||o===-1&&a.layout.min+n$t(t)),l=[],c=A(!1);zt(!!i,"Reorder.Group must be provided a values prop");let u={axis:n,registerItem:(f,d)=>{let m=l.findIndex(y=>f===y.value);m!==-1?l[m].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(oP)},updateOrder:(f,d,m)=>{if(c.current)return;let y=nP(l,f,d,m);l!==y&&(c.current=!0,r(y.map(iP).filter(v=>i.indexOf(v)!==-1)))}};return W(()=>{c.current=!1}),C(a,{...o,ref:s,ignoreStrict:!0,children:C(zy.Provider,{value:u,children:e})})}var M5=Ue(rP);function iP(e){return e.value}function oP(e,t){return e.layout.min-t.layout.min}function $v(e,t=0){return Te(e)?e:Dn(t)}function sP({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},a){let l=nr(()=>$t(r)),c=D(zy),u={x:$v(t.x),y:$v(t.y)},f=vt([u.x,u.y],([v,S])=>v||S?1:"unset");zt(!!c,"Reorder.Item must be a child of Reorder.Group");let{axis:d,registerItem:m,updateOrder:y}=c;return C(l,{drag:d,...s,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:f},layout:o,onDrag:(v,S)=>{let{velocity:p}=S;p[d]&&y(n,u[d].get(),p[d]),i&&i(v,S)},onLayoutMeasure:v=>m(n,v),ref:a,ignoreStrict:!0,children:e})}var A5=Ue(sP);var $y={renderer:Fy,...zf,...ly},aP={...$y,...Ey,...Iy};function qf(e,t={}){let{isStatic:n}=D(Zn),r=A(null),i=Dn(Te(e)?e.get():e),o=A(i.get()),s=A(()=>{}),a=()=>{let c=r.current;c&&c.time===0&&c.sample(De.delta),l(),r.current=Pf({keyframes:[i.get(),o.current],velocity:i.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:s.current})},l=()=>{r.current&&r.current.stop()};return at(()=>i.attach((c,u)=>n?u(c):(o.current=c,s.current=u,Q.update(a),i.get()),l),[JSON.stringify(t)]),Sr(()=>{if(Te(e))return e.on("change",c=>i.set(parseFloat(c)))},[i]),i}function Qf(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(zt(!!t.current,"Scope provided, but no element detected."),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}var $a=new WeakMap,gr;function lP(e,t){if(t){let{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function cP({target:e,contentRect:t,borderBoxSize:n}){var r;(r=$a.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return lP(e,n)}})})}function uP(e){e.forEach(cP)}function fP(){typeof ResizeObserver>"u"||(gr=new ResizeObserver(uP))}function dP(e,t){gr||fP();let n=Qf(e);return n.forEach(r=>{let i=$a.get(r);i||(i=new Set,$a.set(r,i)),i.add(t),gr?.observe(r)}),()=>{n.forEach(r=>{let i=$a.get(r);i?.delete(t),i?.size||gr?.unobserve(r)})}}var Na=new Set,ns;function hP(){ns=()=>{let e={width:L.innerWidth,height:L.innerHeight},t={target:L,size:e,contentSize:e};Na.forEach(n=>n(t))},L.addEventListener("resize",ns)}function pP(e){return Na.add(e),ns||hP(),()=>{Na.delete(e),!Na.size&&ns&&(ns=void 0)}}function mP(e,t){return typeof e=="function"?pP(e):dP(e,t)}var vP=50,Nv=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),gP=()=>({time:0,x:Nv(),y:Nv()}),yP={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Hv(e,t,n,r){let i=n[t],{length:o,position:s}=yP[t],a=i.current,l=n.time;i.current=e[`scroll${s}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=xr(0,i.scrollLength,i.current);let c=r-l;i.velocity=c>vP?0:gf(i.current-a,c)}function bP(e,t,n){Hv(e,"x",t,n),Hv(e,"y",t,n),t.time=n}function xP(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){let i=r.getBoundingClientRect();r=r.parentElement;let o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){let{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}var SP={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},tf={start:0,center:.5,end:1};function jv(e,t,n=0){let r=0;if(e in tf&&(e=tf[e]),typeof e=="string"){let i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}var wP=[0,0];function kP(e,t,n,r){let i=Array.isArray(e)?e:wP,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,tf[e]?e:"0"]),o=jv(i[0],n,r),s=jv(i[1],t),o-s}var CP={x:0,y:0};function TP(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function EP(e,t,n){let{offset:r=SP.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?xP(i,e):CP,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:TP(i),c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate,f=r.length;for(let d=0;dRP(e,r.target,n),update:i=>{bP(e,n,i),(r.offset||r.target)&&EP(e,n,r)},notify:()=>t(n)}}var Go=new WeakMap,Wv=new WeakMap,Bu=new WeakMap,Uv=e=>e===document.documentElement?L:e;function Qi(e,{container:t=document.documentElement,...n}={}){let r=Bu.get(t);r||(r=new Set,Bu.set(t,r));let i=gP(),o=PP(t,e,i,n);if(r.add(o),!Go.has(t)){let a=()=>{for(let d of r)d.measure()},l=()=>{for(let d of r)d.update(De.timestamp)},c=()=>{for(let d of r)d.notify()},u=()=>{Q.read(a,!1,!0),Q.read(l,!1,!0),Q.update(c,!1,!0)};Go.set(t,u);let f=Uv(t);L.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&Wv.set(t,mP(t,u)),f.addEventListener("scroll",u,{passive:!0})}let s=Go.get(t);return Q.read(s,!1,!0),()=>{var a;Rt(s);let l=Bu.get(t);if(!l||(l.delete(o),l.size))return;let c=Go.get(t);Go.delete(t),c&&(Uv(t).removeEventListener("scroll",c),(a=Wv.get(t))===null||a===void 0||a(),L.removeEventListener("resize",c))}}function Xv(e,t){Yi(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}var _P=()=>({scrollX:Ae(0),scrollY:Ae(0),scrollXProgress:Ae(0),scrollYProgress:Ae(0)});function Ny({container:e,target:t,layoutEffect:n=!0,...r}={}){let i=nr(_P);return(n?Sr:W)(()=>(Xv("target",t),Xv("container",e),Qi(({x:s,y:a})=>{i.scrollX.set(s.current),i.scrollXProgress.set(s.progress),i.scrollY.set(a.current),i.scrollYProgress.set(a.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0})),[e,t,JSON.stringify(r.offset)]),i}function Hy(){!Nf.current&&Gg();let[e]=Tt(Ga.current);return e}function ui(){let e=Hy(),{reducedMotion:t}=D(Zn);return t==="never"?!1:t==="always"?!0:e}function FP(e){e.values.forEach(t=>t.stop())}function nf(e,t){[...t].reverse().forEach(r=>{let i=e.getVariant(r);i&&Af(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{nf(o,t)})})}function IP(e,t){if(Array.isArray(t))return nf(e,t);if(typeof t=="string")return nf(e,[t]);Af(e,t)}function jy(){let e=!1,t=new Set,n={subscribe(r){return t.add(r),()=>void t.delete(r)},start(r,i){zt(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return t.forEach(s=>{o.push(Bf(s,r,{transitionOverride:i}))}),Promise.all(o)},set(r){return zt(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(i=>{IP(i,r)})},stop(){t.forEach(r=>{FP(r)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}var Wy=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function LP(e){return typeof e=="object"&&!Array.isArray(e)}function MP(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=Sy(e)?new _y(t,{enableHardwareAcceleration:!1}):new Py(t,{enableHardwareAcceleration:!0});n.mount(e),tr.set(e,n)}function OP(e,t=100){let n=fs({keyframes:[0,t],...e}),r=Math.min(Fg(n),Uu);return{type:"keyframes",ease:i=>n.next(r*i).value/t,duration:Mn(r)}}function Yv(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(i=r.get(t))!==null&&i!==void 0?i:e}function DP(e,t){return Rg(e)?e[Wy(0,e.length,t)]:e}function AP(e,t,n){for(let r=0;rt&&i.at{let E=NP(g),{delay:I=0,times:F=Rf(E),type:z="keyframes",...B}=x,{ease:J=t.ease||"easeOut",duration:ne}=x,j=typeof I=="function"?I(w,T):I,oe=E.length;if(oe<=2&&z==="spring"){let ee=100;if(oe===2&&WP(E)){let re=E[1]-E[0];ee=Math.abs(re)}let he={...B};ne!==void 0&&(he.duration=Ln(ne));let fe=OP(he,ee);J=fe.ease,ne=fe.duration}ne??(ne=i);let X=u+j,Y=X+ne;F.length===1&&F[0]===0&&(F[1]=1);let N=F.length-E.length;N>0&&Pg(F,N),E.length===1&&E.unshift(null),VP(k,E,J,F,X,Y),p=Math.max(j+ne,p),f=Math.max(Y,f)};if(Te(y)){let g=Gv(y,s);h(v,S,Kv("default",g))}else{let g=Qf(y,r,a),x=g.length;for(let k=0;k{for(let y in d){let v=d[y];v.sort(BP);let S=[],p=[],h=[];for(let x=0;xtypeof e=="number",WP=e=>e.every(jP);function Uy(e,t,n,r){let i=Qf(e,r),o=i.length;zt(!!o,"No valid element provided.");let s=[];for(let a=0;aArray.isArray(e)&&Array.isArray(e[0]);function XP(e,t,n){let r=[];return $P(e,t,n).forEach(({keyframes:o,transition:s},a)=>{let l;Te(a)?l=Gf(a,o.default,s.default):l=Uy(a,o,s),r.push(l)}),new Of(r)}var Xy=e=>{function t(n,r,i){let o;return UP(n)?o=XP(n,r,e):LP(r)?o=Uy(n,r,i,e):o=Gf(n,r,i),e&&e.animations.push(o),o}return t},Zi=Xy();function Yy(){let e=nr(jy);return Sr(e.mount,[]),e}var Gy=Yy;function Zf(e){return e!==null&&typeof e=="object"&&ff in e}function Ky(e){if(Zf(e))return e[ff]}function Jf(){return YP}function YP(e){ai.current&&(ai.current.isUpdating=!1,ai.current.blockUpdate(),e&&e())}function qy(){let[e,t]=fl(),n=Jf(),r=A();return W(()=>{Q.postRender(()=>Q.postRender(()=>{t===r.current&&(Ua.current=!1)}))},[t]),i=>{n(()=>{Ua.current=!0,e(),i(),r.current=t+1})}}function Qy(){return ye(()=>{let t=ai.current;t&&t.resetTree()},[])}var qv=()=>({});var K5=nl({scrapeMotionValuesFromProps:qv,createRenderState:qv});var GP=Ko.reduce((e,t)=>(e[t]=n=>Rt(n),e),{});var _F={};bu(_F,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>gF,createPortal:()=>yF,createRoot:()=>bF,default:()=>p1,findDOMNode:()=>xF,flushSync:()=>SF,hydrate:()=>wF,hydrateRoot:()=>kF,render:()=>CF,unmountComponentAtNode:()=>TF,unstable_batchedUpdates:()=>EF,unstable_renderSubtreeIntoContainer:()=>RF,version:()=>PF});var gl={};bu(gl,{default:()=>G,unstable_IdlePriority:()=>QP,unstable_ImmediatePriority:()=>ZP,unstable_LowPriority:()=>JP,unstable_NormalPriority:()=>e_,unstable_Profiling:()=>t_,unstable_UserBlockingPriority:()=>n_,unstable_cancelCallback:()=>r_,unstable_continueExecution:()=>i_,unstable_forceudaypsate:()=>o_,unstable_getCurrentPriorityLevel:()=>s_,unstable_getFirstCallbackNode:()=>a_,unstable_next:()=>l_,unstable_now:()=>qP,unstable_pauseExecution:()=>c_,unstable_requestPaint:()=>u_,unstable_runWithPriority:()=>f_,unstable_scheduleCallback:()=>d_,unstable_shouldYield:()=>h_,unstable_wrapCallback:()=>p_});var G={};function rd(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(!(0>>1;rdl(a,n))ldl(c,a)?(e[r]=c,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else{if(!(ldl(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function dl(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Zy=performance,G.unstable_now=function(){return Zy.now()}):(ed=Date,Jy=ed.now(),G.unstable_now=function(){return ed.now()-Jy});var Zy,ed,Jy,An=[],kr=[],KP=1,rn=null,ct=3,ml=!1,fi=!1,ps=!1,n0=typeof setTimeout=="function"?setTimeout:null,r0=typeof clearTimeout=="function"?clearTimeout:null,e0=typeof setImmediate<"u"?setImmediate:null;typeof Le<"u"&&Le.scheduling!==void 0&&Le.scheduling.isInputPending!==void 0&&Le.scheduling.isInputPending.bind(Le.scheduling);function id(e){for(var t=vn(kr);t!==null;){if(t.callback===null)pl(kr);else{if(!(t.startTime<=e))break;pl(kr),t.sortIndex=t.expirationTime,rd(An,t)}t=vn(kr)}}function od(e){if(ps=!1,id(e),!fi)if(vn(An)!==null)fi=!0,ad(sd);else{var t=vn(kr);t!==null&&ld(od,t.startTime-e)}}function sd(e,t){fi=!1,ps&&(ps=!1,r0(ms),ms=-1),ml=!0;var n=ct;try{for(id(t),rn=vn(An);rn!==null&&(!(rn.expirationTime>t)||e&&!s0());){var r=rn.callback;if(typeof r=="function"){rn.callback=null,ct=rn.priorityLevel;var i=r(rn.expirationTime<=t);t=G.unstable_now(),typeof i=="function"?rn.callback=i:rn===vn(An)&&pl(An),id(t)}else pl(An);rn=vn(An)}if(rn!==null)var o=!0;else{var s=vn(kr);s!==null&&ld(od,s.startTime-t),o=!1}return o}finally{rn=null,ct=n,ml=!1}}var vl=!1,hl=null,ms=-1,i0=5,o0=-1;function s0(){return!(G.unstable_now()-o0e||125r?(e.sortIndex=n,rd(kr,e),vn(An)===null&&e===vn(kr)&&(ps?(r0(ms),ms=-1):ps=!0,ld(od,n-r))):(e.sortIndex=i,rd(An,e),fi||ml||(fi=!0,ad(sd))),e};G.unstable_shouldYield=s0;G.unstable_wrapCallback=function(e){var t=ct;return function(){var n=ct;ct=t;try{return e.apply(this,arguments)}finally{ct=n}}};var qP=G.unstable_now,QP=G.unstable_IdlePriority,ZP=G.unstable_ImmediatePriority,JP=G.unstable_LowPriority,e_=G.unstable_NormalPriority,t_=G.unstable_Profiling,n_=G.unstable_UserBlockingPriority,r_=G.unstable_cancelCallback,i_=G.unstable_continueExecution,o_=G.unstable_forceudaypsate,s_=G.unstable_getCurrentPriorityLevel,a_=G.unstable_getFirstCallbackNode,l_=G.unstable_next,c_=G.unstable_pauseExecution,u_=G.unstable_requestPaint,f_=G.unstable_runWithPriority,d_=G.unstable_scheduleCallback,h_=G.unstable_shouldYield,p_=G.unstable_wrapCallback;var m_="default"in Et?b:Et,v_="default"in gl?G:gl,Ut={},hb=m_,Wt=v_;function M(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof L.document>"u"||typeof L.document.createElement>"u"),Id=Object.prototype.hasOwnProperty,g_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,a0={},l0={};function y_(e){return Id.call(l0,e)?!0:Id.call(a0,e)?!1:g_.test(e)?l0[e]=!0:(a0[e]=!0,!1)}function b_(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function x_(e,t,n,r){if(t===null||typeof t>"u"||b_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function bt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new bt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new bt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new bt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new bt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new bt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new bt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new bt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new bt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new bt(e,5,!1,e.toLowerCase(),null,!1,!1)});var wh=/[\-:]([a-z])/g;function kh(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(wh,kh);ot[t]=new bt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wh,kh);ot[t]=new bt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wh,kh);ot[t]=new bt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new bt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ch(e,t,n,r){var i=ot.hasOwnProperty(t)?ot[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var l=` `+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{ud=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cs(e):""}function S_(e){switch(e.tag){case 5:return Cs(e.type);case 16:return Cs("Lazy");case 13:return Cs("Suspense");case 19:return Cs("SuspenseList");case 0:case 2:case 15:return e=fd(e.type,!1),e;case 11:return e=fd(e.type.render,!1),e;case 1:return e=fd(e.type,!0),e;default:return""}}function Dd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case no:return"Fragment";case to:return"Portal";case Ld:return"Profiler";case Th:return"StrictMode";case Md:return"Suspense";case Od:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vb:return(e.displayName||"Context")+".Consumer";case mb:return(e._context.displayName||"Context")+".Provider";case Eh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rh:return t=e.displayName||null,t!==null?t:Dd(e.type)||"Memo";case Tr:t=e._payload,e=e._init;try{return Dd(e(t))}catch{}}return null}function w_(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Dd(t);case 8:return t===Th?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function k_(e){var t=yb(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bl(e){e._valueTracker||(e._valueTracker=k_(e))}function bb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=yb(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function Yl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ad(e,t){var n=t.checked;return Fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function u0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zr(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xb(e,t){t=t.checked,t!=null&&Ch(e,"checked",t,!1)}function Vd(e,t){xb(e,t);var n=zr(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Bd(e,t.type,n):t.hasOwnProperty("defaultValue")&&Bd(e,t.type,zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function f0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Bd(e,t,n){t==="number"&&Yl(e.ownerDocument)===e||(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ts=Array.isArray;function po(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=xl.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Bs(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ps={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},C_=["Webkit","ms","Moz","O"];Object.keys(Ps).forEach(function(e){C_.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ps[t]=Ps[e]})});function Cb(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ps.hasOwnProperty(e)&&Ps[e]?(""+t).trim():t+"px"}function Tb(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Cb(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var T_=Fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nd(e,t){if(t){if(T_[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(M(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(M(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(M(61))}if(t.style!=null&&typeof t.style!="object")throw Error(M(62))}}function Hd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jd=null;function Ph(e){return e=e.target||e.srcElement||L,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wd=null,mo=null,vo=null;function p0(e){if(e=na(e)){if(typeof Wd!="function")throw Error(M(280));var t=e.stateNode;t&&(t=Sc(t),Wd(e.stateNode,e.type,t))}}function Eb(e){mo?vo?vo.push(e):vo=[e]:mo=e}function Rb(){if(mo){var e=mo,t=vo;if(vo=mo=null,p0(e),t)for(e=0;e>>=0,e===0?32:31-(A_(e)/V_|0)|0}var Sl=64,wl=4194304;function Es(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ql(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(s!==0){var a=s&~i;a!==0?r=Es(a):(o&=s,o!==0&&(r=Es(o)))}else s=n&~i,s!==0?r=Es(s):o!==0&&(r=Es(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(4194240&o)!==0))return t;if(4&r&&(r|=16&n),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ea(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sn(t),e[t]=n}function N_(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Fs),k0=String.fromCharCode(32),C0=!1;function Yb(e,t){switch(e){case"keyup":return m2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gb(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ro=!1;function g2(e,t){switch(e){case"compositionend":return Gb(t);case"keypress":return t.which!==32?null:(C0=!0,k0);case"textInput":return e=t.data,e===k0&&C0?null:e;default:return null}}function y2(e,t){if(ro)return e==="compositionend"||!Ah&&Yb(e,t)?(e=Ub(),Bl=Mh=_r=null,ro=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=R0(n)}}function Zb(e,t){return!(!e||!t)&&(e===t||(!e||e.nodeType!==3)&&(t&&t.nodeType===3?Zb(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Jb(){for(var e=L,t=Yl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(!n)break;e=t.contentWindow,t=Yl(e.document)}return t}function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function R2(e){var t=Jb(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Zb(n.ownerDocument.documentElement,n)){if(r!==null&&Vh(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||L,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=P0(n,o);var s=P0(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,io=null,qd=null,Ls=null,Qd=!1;function _0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qd||io==null||io!==Yl(r)||(r=io,"selectionStart"in r&&Vh(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||L).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ls&&Ws(Ls,r)||(Ls=r,r=ec(qd,"onSelect"),0ao||(e.current=rh[ao],rh[ao]=null,ao--)}function xe(e,t){ao++,rh[ao]=e.current,e.current=t}var $r={},ht=Hr($r),Lt=Hr(!1),bi=$r;function So(e,t){var n=e.type.contextTypes;if(!n)return $r;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Mt(e){return e=e.childContextTypes,e!=null}function nc(){Ce(Lt),Ce(ht)}function B0(e,t,n){if(ht.current!==$r)throw Error(M(168));xe(ht,t),xe(Lt,n)}function lx(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(M(108,w_(e)||"Unknown",i));return Fe({},n,r)}function rc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$r,bi=ht.current,xe(ht,e),xe(Lt,Lt.current),!0}function z0(e,t,n){var r=e.stateNode;if(!r)throw Error(M(169));n?(e=lx(e,t,bi),r.__reactInternalMemoizedMergedChildContext=e,Ce(Lt),Ce(ht),xe(ht,e)):Ce(Lt),xe(Lt,n)}var ir=null,wc=!1,wd=!1;function cx(e){ir===null?ir=[e]:ir.push(e)}function V2(e){wc=!0,cx(e)}function jr(){if(!wd&&ir!==null){wd=!0;var e=0,t=ve;try{var n=ir;for(ve=1;e>=s,i-=s,or=1<<32-Sn(t)+i|n<E?(I=T,T=null):I=T.sibling;var F=d(p,T,g[E],x);if(F===null){T===null&&(T=I);break}e&&T&&F.alternate===null&&t(p,T),h=o(F,h,E),w===null?k=F:w.sibling=F,w=F,T=I}if(E===g.length)return n(p,T),Ee&&di(p,E),k;if(T===null){for(;EE?(I=T,T=null):I=T.sibling;var z=d(p,T,F.value,x);if(z===null){T===null&&(T=I);break}e&&T&&z.alternate===null&&t(p,T),h=o(z,h,E),w===null?k=z:w.sibling=z,w=z,T=I}if(F.done)return n(p,T),Ee&&di(p,E),k;if(T===null){for(;!F.done;E++,F=g.next())F=f(p,F.value,x),F!==null&&(h=o(F,h,E),w===null?k=F:w.sibling=F,w=F);return Ee&&di(p,E),k}for(T=r(p,T);!F.done;E++,F=g.next())F=m(T,p,E,F.value,x),F!==null&&(e&&F.alternate!==null&&T.delete(F.key===null?E:F.key),h=o(F,h,E),w===null?k=F:w.sibling=F,w=F);return e&&T.forEach(function(B){return t(p,B)}),Ee&&di(p,E),k}function S(p,h,g,x){if(typeof g=="object"&&g!==null&&g.type===no&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case yl:e:{for(var k=g.key,w=h;w!==null;){if(w.key===k){if(k=g.type,k===no){if(w.tag===7){n(p,w.sibling),h=i(w,g.props.children),h.return=p,p=h;break e}}else if(w.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Tr&&X0(k)===w.type){n(p,w.sibling),h=i(w,g.props),h.ref=xs(p,w,g),h.return=p,p=h;break e}n(p,w);break}t(p,w),w=w.sibling}g.type===no?(h=yi(g.props.children,p.mode,x,g.key),h.return=p,p=h):(x=Xl(g.type,g.key,g.props,null,p.mode,x),x.ref=xs(p,h,g),x.return=p,p=x)}return s(p);case to:e:{for(w=g.key;h!==null;){if(h.key===w){if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(p,h.sibling),h=i(h,g.children||[]),h.return=p,p=h;break e}n(p,h);break}t(p,h),h=h.sibling}h=Fd(g,p.mode,x),h.return=p,p=h}return s(p);case Tr:return w=g._init,S(p,h,w(g._payload),x)}if(Ts(g))return y(p,h,g,x);if(vs(g))return v(p,h,g,x);Ml(p,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,g),h.return=p,p=h):(n(p,h),h=_d(g,p.mode,x),h.return=p,p=h),s(p)):n(p,h)}return S}var ko=gx(!0),yx=gx(!1),ra={},Nn=Hr(ra),Gs=Hr(ra),Ks=Hr(ra);function vi(e){if(e===ra)throw Error(M(174));return e}function Xh(e,t){switch(xe(Ks,t),xe(Gs,e),xe(Nn,ra),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$d(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$d(t,e)}Ce(Nn),xe(Nn,t)}function Co(){Ce(Nn),Ce(Gs),Ce(Ks)}function bx(e){vi(Ks.current);var t=vi(Nn.current),n=$d(t,e.type);t!==n&&(xe(Gs,e),xe(Nn,n))}function Yh(e){Gs.current===e&&(Ce(Nn),Ce(Gs))}var Pe=Hr(0);function cc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(128&t.flags)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kd=[];function Gh(){for(var e=0;en?n:4,e(!0);var r=Cd.transition;Cd.transition={};try{e(!1),t()}finally{ve=n,Cd.transition=r}}function Dx(){return un().memoizedState}function N2(e,t,n){var r=Vr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ax(e))Vx(t,n);else if(n=hx(e,t,n,r),n!==null){var i=yt();wn(n,e,r,i),Bx(n,t,r)}}function H2(e,t,n){var r=Vr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ax(e))Vx(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,kn(a,s)){var l=t.interleaved;l===null?(i.next=i,Wh(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}n=hx(e,t,i,r),n!==null&&(i=yt(),wn(n,e,r,i),Bx(n,t,r))}}function Ax(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Vx(e,t){Ms=uc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Bx(e,t,n){if(4194240&n){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fh(e,n)}}var fc={readContext:cn,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useInsertionEffect:ut,useLayoutEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useMutableSource:ut,useSyncExternalStore:ut,useId:ut,unstable_isNewReconciler:!1},j2={readContext:cn,useCallback:function(e,t){return Bn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:G0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hl(4194308,4,Fx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hl(4,2,e,t)},useMemo:function(e,t){var n=Bn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=N2.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=Bn();return e={current:e},t.memoizedState=e},useState:Y0,useDebugValue:Jh,useDeferredValue:function(e){return Bn().memoizedState=e},useTransition:function(){var e=Y0(!1),t=e[0];return e=$2.bind(null,e[1]),Bn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,i=Bn();if(Ee){if(n===void 0)throw Error(M(407));n=n()}else{if(n=t(),Qe===null)throw Error(M(349));30&Si||wx(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,G0(Cx.bind(null,r,o,e),[e]),r.flags|=2048,Zs(9,kx.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Bn(),t=Qe.identifierPrefix;if(Ee){var n=sr,r=or;n=(r&~(1<<32-Sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qs++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[zn]=t,e[Ys]=r,Yx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Hd(n,r),n){case"dialog":ke("cancel",e),ke("close",e),i=r;break;case"iframe":case"object":case"embed":ke("load",e),i=r;break;case"video":case"audio":for(i=0;iEo&&(t.flags|=128,r=!0,Ss(o,!1),t.lanes=4194304)}else{if(!r)if(e=cc(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ss(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ee)return ft(t),null}else 2*Ne()-o.renderingStartTime>Eo&&n!==1073741824&&(t.flags|=128,r=!0,Ss(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ne(),t.sibling=null,n=Pe.current,xe(Pe,r?1&n|2:1&n),t):(ft(t),null);case 22:case 23:return op(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&1&t.mode?1073741824&Nt&&(ft(t),6&t.subtreeFlags&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(M(156,t.tag))}function Q2(e,t){switch(zh(t),t.tag){case 1:return Mt(t.type)&&nc(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return Co(),Ce(Lt),Ce(ht),Gh(),e=t.flags,65536&e&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Yh(t),null;case 13:if(Ce(Pe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(M(340));wo()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return Ce(Pe),null;case 4:return Co(),null;case 10:return jh(t.type._context),null;case 22:case 23:return op(),null;case 24:return null;default:return null}}var Dl=!1,dt=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,V=null;function fo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ve(e,t,r)}else n.current=null}function qx(e,t,n){try{n()}catch(r){Ve(e,t,r)}}var rb=!1;function J2(e,t){if(Zd=Zl,e=Jb(),Vh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||L;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)d=f,f=m;for(;;){if(f===e)break t;if(d===n&&++c===i&&(a=s),d===o&&++u===r&&(l=s),(m=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=m}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},Zl=!1,V=t;V!==null;)if(t=V,e=t.child,(1028&t.subtreeFlags)!==0&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var y=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,S=y.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:yn(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(M(163))}}catch(x){Ve(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return y=rb,rb=!1,y}function Os(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&qx(t,n,o)}i=i.next}while(i!==r)}}function Tc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function mh(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Qx(e){var t=e.alternate;t!==null&&(e.alternate=null,Qx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zn],delete t[Ys],delete t[nh],delete t[D2],delete t[A2])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Zx(e){return e.tag===5||e.tag===3||e.tag===4}function ib(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Zx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(2&e.flags||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function vh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tc));else if(r!==4&&(e=e.child,e!==null))for(vh(e,t,n),e=e.sibling;e!==null;)vh(e,t,n),e=e.sibling}function gh(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(gh(e,t,n),e=e.sibling;e!==null;)gh(e,t,n),e=e.sibling}var rt=null,bn=!1;function Cr(e,t,n){for(n=n.child;n!==null;)Jx(e,t,n),n=n.sibling}function Jx(e,t,n){if($n&&typeof $n.onCommitFiberUnmount=="function")try{$n.onCommitFiberUnmount(gc,n)}catch{}switch(n.tag){case 5:dt||fo(n,t);case 6:var r=rt,i=bn;rt=null,Cr(e,t,n),rt=r,bn=i,rt!==null&&(bn?(e=rt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):rt.removeChild(n.stateNode));break;case 18:rt!==null&&(bn?(e=rt,n=n.stateNode,e.nodeType===8?Sd(e.parentNode,n):e.nodeType===1&&Sd(e,n),Hs(e)):Sd(rt,n.stateNode));break;case 4:r=rt,i=bn,rt=n.stateNode.containerInfo,bn=!0,Cr(e,t,n),rt=r,bn=i;break;case 0:case 11:case 14:case 15:if(!dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(2&o||4&o)&&qx(n,t,s),i=i.next}while(i!==r)}Cr(e,t,n);break;case 1:if(!dt&&(fo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ve(n,t,a)}Cr(e,t,n);break;case 21:Cr(e,t,n);break;case 22:1&n.mode?(dt=(r=dt)||n.memoizedState!==null,Cr(e,t,n),dt=r):Cr(e,t,n);break;default:Cr(e,t,n)}}function ob(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Z2),t.forEach(function(r){var i=lF.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function gn(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*tF(r/1960))-r,10e?16:e,Fr===null)var r=!1;else{if(e=Fr,Fr=null,pc=0,6&ce)throw Error(M(331));var i=ce;for(ce|=4,V=e.current;V!==null;){var o=V,s=o.child;if(16&V.flags){var a=o.deletions;if(a!==null){for(var l=0;lNe()-rp?gi(e,0):np|=n),Ot(e,t)}function a1(e,t){t===0&&(1&e.mode?(t=wl,wl<<=1,!(130023424&wl)&&(wl=4194304)):t=1);var n=yt();e=ur(e,t),e!==null&&(ea(e,t,n),Ot(e,n))}function aF(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),a1(e,n)}function lF(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(M(314))}r!==null&&r.delete(t),a1(e,n)}var l1;l1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)It=!0;else{if(!(e.lanes&n)&&!(128&t.flags))return It=!1,K2(e,t,n);It=(131072&e.flags)!==0}else It=!1,Ee&&1048576&t.flags&&ux(t,oc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;jl(e,t),e=t.pendingProps;var i=So(t,ht.current);yo(t,n),i=qh(null,t,r,e,i,n);var o=Qh();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mt(r)?(o=!0,rc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Uh(t),i.updater=kc,t.stateNode=i,i._reactInternals=t,lh(t,r,e,n),t=fh(null,t,r,!0,o,n)):(t.tag=0,Ee&&o&&Bh(t),gt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(jl(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=uF(r),e=yn(r,e),i){case 0:t=uh(null,t,r,e,n);break e;case 1:t=eb(null,t,r,e,n);break e;case 11:t=Z0(null,t,r,e,n);break e;case 14:t=J0(null,t,r,yn(r.type,e),n);break e}throw Error(M(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),uh(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),eb(e,t,r,i,n);case 3:e:{if(Wx(t),e===null)throw Error(M(387));r=t.pendingProps,o=t.memoizedState,i=o.element,px(e,t),lc(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){i=To(Error(M(423)),t),t=tb(e,t,r,n,i);break e}if(r!==i){i=To(Error(M(424)),t),t=tb(e,t,r,n,i);break e}for(Ht=Or(t.stateNode.containerInfo.firstChild),jt=t,Ee=!0,xn=null,n=yx(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(wo(),r===i){t=fr(e,t,n);break e}gt(e,t,r,n)}t=t.child}return t;case 5:return bx(t),e===null&&oh(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,eh(r,i)?s=null:o!==null&&eh(r,o)&&(t.flags|=32),jx(e,t),gt(e,t,s,n),t.child;case 6:return e===null&&oh(t),null;case 13:return Ux(e,t,n);case 4:return Xh(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ko(t,null,r,n):gt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),Z0(e,t,r,i,n);case 7:return gt(e,t,t.pendingProps,n),t.child;case 8:return gt(e,t,t.pendingProps.children,n),t.child;case 12:return gt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,xe(sc,r._currentValue),r._currentValue=s,o!==null)if(kn(o.value,s)){if(o.children===i.children&&!Lt.current){t=fr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=ar(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),sh(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(M(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),sh(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}gt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yo(t,n),i=cn(i),r=r(i),t.flags|=1,gt(e,t,r,n),t.child;case 14:return r=t.type,i=yn(r,t.pendingProps),i=yn(r.type,i),J0(e,t,r,i,n);case 15:return Nx(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),jl(e,t),t.tag=1,Mt(r)?(e=!0,rc(t)):e=!1,yo(t,n),vx(t,r,i),lh(t,r,i,n),fh(null,t,r,!0,e,n);case 19:return Xx(e,t,n);case 22:return Hx(e,t,n)}throw Error(M(156,t.tag))};function c1(e,t){return Ob(e,t)}function cF(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,n,r){return new cF(e,t,n,r)}function ap(e){return e=e.prototype,!(!e||!e.isReactComponent)}function uF(e){if(typeof e=="function")return ap(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Eh)return 11;if(e===Rh)return 14}return 2}function Br(e,t){var n=e.alternate;return n===null?(n=an(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xl(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ap(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case no:return yi(n.children,i,o,t);case Th:s=8,i|=8;break;case Ld:return e=an(12,n,t,2|i),e.elementType=Ld,e.lanes=o,e;case Md:return e=an(13,n,t,i),e.elementType=Md,e.lanes=o,e;case Od:return e=an(19,n,t,i),e.elementType=Od,e.lanes=o,e;case gb:return Rc(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mb:s=10;break e;case vb:s=9;break e;case Eh:s=11;break e;case Rh:s=14;break e;case Tr:s=16,r=null;break e}throw Error(M(130,e==null?e:typeof e,""))}return t=an(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function yi(e,t,n,r){return e=an(7,e,r,t),e.lanes=n,e}function Rc(e,t,n,r){return e=an(22,e,r,t),e.elementType=gb,e.lanes=n,e.stateNode={isHidden:!1},e}function _d(e,t,n){return e=an(6,e,null,t),e.lanes=n,e}function Fd(e,t,n){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fF(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=hd(0),this.expirationTimes=hd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=hd(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function lp(e,t,n,r,i,o,s,a,l){return e=new fF(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=an(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Uh(o),e}function dF(e,t,n){var r=3.04045?Math.pow((n+.055)/1.055,2.4):n/12.92}static yToL(n){return n<=t.epsilon?n/t.refY*t.kappa:116*Math.pow(n/t.refY,1/3)-16}static lToY(n){return n<=8?t.refY*n/t.kappa:t.refY*Math.pow((n+16)/116,3)}static rgbChannelToHex(n){let r=Math.round(n*255),i=r%16,o=(r-i)/16|0;return t.hexChars.charAt(o)+t.hexChars.charAt(i)}static hexToRgbChannel(n,r){let i=t.hexChars.indexOf(n.charAt(r)),o=t.hexChars.indexOf(n.charAt(r+1));return(i*16+o)/255}static distanceFromOriginAngle(n,r,i){let o=r/(Math.sin(i)-n*Math.cos(i));return o<0?1/0:o}static distanceFromOrigin(n,r){return Math.abs(r)/Math.sqrt(Math.pow(n,2)+1)}static min6(n,r,i,o,s,a){return Math.min(n,Math.min(r,Math.min(i,Math.min(o,Math.min(s,a)))))}rgbToHex(){this.hex="#",this.hex+=t.rgbChannelToHex(this.rgb_r),this.hex+=t.rgbChannelToHex(this.rgb_g),this.hex+=t.rgbChannelToHex(this.rgb_b)}hexToRgb(){this.hex=this.hex.toLowerCase(),this.rgb_r=t.hexToRgbChannel(this.hex,1),this.rgb_g=t.hexToRgbChannel(this.hex,3),this.rgb_b=t.hexToRgbChannel(this.hex,5)}xyzToRgb(){this.rgb_r=t.fromLinear(t.m_r0*this.xyz_x+t.m_r1*this.xyz_y+t.m_r2*this.xyz_z),this.rgb_g=t.fromLinear(t.m_g0*this.xyz_x+t.m_g1*this.xyz_y+t.m_g2*this.xyz_z),this.rgb_b=t.fromLinear(t.m_b0*this.xyz_x+t.m_b1*this.xyz_y+t.m_b2*this.xyz_z)}rgbToXyz(){let n=t.toLinear(this.rgb_r),r=t.toLinear(this.rgb_g),i=t.toLinear(this.rgb_b);this.xyz_x=.41239079926595*n+.35758433938387*r+.18048078840183*i,this.xyz_y=.21263900587151*n+.71516867876775*r+.072192315360733*i,this.xyz_z=.019330818715591*n+.11919477979462*r+.95053215224966*i}xyzToLuv(){let n=this.xyz_x+15*this.xyz_y+3*this.xyz_z,r=4*this.xyz_x,i=9*this.xyz_y;n!==0?(r/=n,i/=n):(r=NaN,i=NaN),this.luv_l=t.yToL(this.xyz_y),this.luv_l===0?(this.luv_u=0,this.luv_v=0):(this.luv_u=13*this.luv_l*(r-t.refU),this.luv_v=13*this.luv_l*(i-t.refV))}luvToXyz(){if(this.luv_l===0){this.xyz_x=0,this.xyz_y=0,this.xyz_z=0;return}let n=this.luv_u/(13*this.luv_l)+t.refU,r=this.luv_v/(13*this.luv_l)+t.refV;this.xyz_y=t.lToY(this.luv_l),this.xyz_x=0-9*this.xyz_y*n/((n-4)*r-n*r),this.xyz_z=(9*this.xyz_y-15*r*this.xyz_y-r*this.xyz_x)/(3*r)}luvToLch(){if(this.lch_l=this.luv_l,this.lch_c=Math.sqrt(this.luv_u*this.luv_u+this.luv_v*this.luv_v),this.lch_c<1e-8)this.lch_h=0;else{let n=Math.atan2(this.luv_v,this.luv_u);this.lch_h=n*180/Math.PI,this.lch_h<0&&(this.lch_h=360+this.lch_h)}}lchToLuv(){let n=this.lch_h/180*Math.PI;this.luv_l=this.lch_l,this.luv_u=Math.cos(n)*this.lch_c,this.luv_v=Math.sin(n)*this.lch_c}calculateBoundingLines(n){let r=Math.pow(n+16,3)/1560896,i=r>t.epsilon?r:n/t.kappa,o=i*(284517*t.m_r0-94839*t.m_r2),s=i*(838422*t.m_r2+769860*t.m_r1+731718*t.m_r0),a=i*(632260*t.m_r2-126452*t.m_r1),l=i*(284517*t.m_g0-94839*t.m_g2),c=i*(838422*t.m_g2+769860*t.m_g1+731718*t.m_g0),u=i*(632260*t.m_g2-126452*t.m_g1),f=i*(284517*t.m_b0-94839*t.m_b2),d=i*(838422*t.m_b2+769860*t.m_b1+731718*t.m_b0),m=i*(632260*t.m_b2-126452*t.m_b1);this.r0s=o/a,this.r0i=s*n/a,this.r1s=o/(a+126452),this.r1i=(s-769860)*n/(a+126452),this.g0s=l/u,this.g0i=c*n/u,this.g1s=l/(u+126452),this.g1i=(c-769860)*n/(u+126452),this.b0s=f/m,this.b0i=d*n/m,this.b1s=f/(m+126452),this.b1i=(d-769860)*n/(m+126452)}calcMaxChromaHpluv(){let n=t.distanceFromOrigin(this.r0s,this.r0i),r=t.distanceFromOrigin(this.r1s,this.r1i),i=t.distanceFromOrigin(this.g0s,this.g0i),o=t.distanceFromOrigin(this.g1s,this.g1i),s=t.distanceFromOrigin(this.b0s,this.b0i),a=t.distanceFromOrigin(this.b1s,this.b1i);return t.min6(n,r,i,o,s,a)}calcMaxChromaHsluv(n){let r=n/360*Math.PI*2,i=t.distanceFromOriginAngle(this.r0s,this.r0i,r),o=t.distanceFromOriginAngle(this.r1s,this.r1i,r),s=t.distanceFromOriginAngle(this.g0s,this.g0i,r),a=t.distanceFromOriginAngle(this.g1s,this.g1i,r),l=t.distanceFromOriginAngle(this.b0s,this.b0i,r),c=t.distanceFromOriginAngle(this.b1s,this.b1i,r);return t.min6(i,o,s,a,l,c)}hsluvToLch(){if(this.hsluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hsluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hsluv_l,this.calculateBoundingLines(this.hsluv_l);let n=this.calcMaxChromaHsluv(this.hsluv_h);this.lch_c=n/100*this.hsluv_s}this.lch_h=this.hsluv_h}lchToHsluv(){if(this.lch_l>99.9999999)this.hsluv_s=0,this.hsluv_l=100;else if(this.lch_l<1e-8)this.hsluv_s=0,this.hsluv_l=0;else{this.calculateBoundingLines(this.lch_l);let n=this.calcMaxChromaHsluv(this.lch_h);this.hsluv_s=this.lch_c/n*100,this.hsluv_l=this.lch_l}this.hsluv_h=this.lch_h}hpluvToLch(){if(this.hpluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hpluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hpluv_l,this.calculateBoundingLines(this.hpluv_l);let n=this.calcMaxChromaHpluv();this.lch_c=n/100*this.hpluv_p}this.lch_h=this.hpluv_h}lchToHpluv(){if(this.lch_l>99.9999999)this.hpluv_p=0,this.hpluv_l=100;else if(this.lch_l<1e-8)this.hpluv_p=0,this.hpluv_l=0;else{this.calculateBoundingLines(this.lch_l);let n=this.calcMaxChromaHpluv();this.hpluv_p=this.lch_c/n*100,this.hpluv_l=this.lch_l}this.hpluv_h=this.lch_h}hsluvToRgb(){this.hsluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hpluvToRgb(){this.hpluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hsluvToHex(){this.hsluvToRgb(),this.rgbToHex()}hpluvToHex(){this.hpluvToRgb(),this.rgbToHex()}rgbToHsluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHsluv()}rgbToHpluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHpluv()}hexToHsluv(){this.hexToRgb(),this.rgbToHsluv()}hexToHpluv(){this.hexToRgb(),this.rgbToHpluv()}};e.Hsluv=t,t.hexChars="0123456789abcdef",t.refY=1,t.refU=.19783000664283,t.refV=.46831999493879,t.kappa=903.2962962,t.epsilon=.0088564516,t.m_r0=3.240969941904521,t.m_r1=-1.537383177570093,t.m_r2=-.498610760293,t.m_g0=-.96924363628087,t.m_g1=1.87596750150772,t.m_g2=.041555057407175,t.m_b0=.055630079696993,t.m_b1=-.20397695888897,t.m_b2=1.056971514242878}}),IF=nn({"../../../node_modules/eventemitter3/index.js"(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function o(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function s(c,u,f,d,m){if(typeof f!="function")throw new TypeError("The listener must be a function");var y=new o(f,d||c,m),v=r?r+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],y]:c._events[v].push(y):(c._events[v]=y,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new i:delete c._events[u]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)n.call(f,d)&&u.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=r?r+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var m=0,y=d.length,v=new Array(y);m1)for(var g=1;g0})},o=function(){return r.some(function(P){return P.skippedTargets.length>0})},s="ResizeObserver loop completed with undelivered notifications.",a=function(){var P;typeof ErrorEvent=="function"?P=new ErrorEvent("error",{message:s}):(P=document.createEvent("Event"),P.initEvent("error",!1,!1),P.message=s),L.dispatchEvent(P)},l;(function(P){P.BORDER_BOX="border-box",P.CONTENT_BOX="content-box",P.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(l||(l={}));var c=function(P){return Object.freeze(P)},u=function(){function P(_,O){this.inlineSize=_,this.blockSize=O,c(this)}return P}(),f=function(){function P(_,O,$,ae){return this.x=_,this.y=O,this.width=$,this.height=ae,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,c(this)}return P.prototype.toJSON=function(){var _=this,O=_.x,$=_.y,ae=_.top,pt=_.right,et=_.bottom,$e=_.left,qn=_.width,Bt=_.height;return{x:O,y:$,top:ae,right:pt,bottom:et,left:$e,width:qn,height:Bt}},P.fromRect=function(_){return new P(_.x,_.y,_.width,_.height)},P}(),d=function(P){return P instanceof SVGElement&&"getBBox"in P},m=function(P){if(d(P)){var _=P.getBBox(),O=_.width,$=_.height;return!O&&!$}var ae=P,pt=ae.offsetWidth,et=ae.offsetHeight;return!(pt||et||P.getClientRects().length)},y=function(P){var _,O;if(P instanceof Element)return!0;var $=(O=(_=P)===null||_===void 0?void 0:_.ownerDocument)===null||O===void 0?void 0:O.defaultView;return!!($&&P instanceof $.Element)},v=function(P){switch(P.tagName){case"INPUT":if(P.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},S=typeof L<"u"?L:{},p=new WeakMap,h=/auto|scroll/,g=/^tb|vertical/,x=/msie|trident/i.test(S.navigator&&S.navigator.userAgent),k=function(P){return parseFloat(P||"0")},w=function(P,_,O){return P===void 0&&(P=0),_===void 0&&(_=0),O===void 0&&(O=!1),new u((O?_:P)||0,(O?P:_)||0)},T=c({devicePixelContentBoxSize:w(),borderBoxSize:w(),contentBoxSize:w(),contentRect:new f(0,0,0,0)}),E=function(P,_){if(_===void 0&&(_=!1),p.has(P)&&!_)return p.get(P);if(m(P))return p.set(P,T),T;var O=getComputedStyle(P),$=d(P)&&P.ownerSVGElement&&P.getBBox(),ae=!x&&O.boxSizing==="border-box",pt=g.test(O.writingMode||""),et=!$&&h.test(O.overflowY||""),$e=!$&&h.test(O.overflowX||""),qn=$?0:k(O.paddingTop),Bt=$?0:k(O.paddingRight),Jr=$?0:k(O.paddingBottom),Di=$?0:k(O.paddingLeft),yk=$?0:k(O.borderTopWidth),bk=$?0:k(O.borderRightWidth),xk=$?0:k(O.borderBottomWidth),Sk=$?0:k(O.borderLeftWidth),vm=Di+Bt,gm=qn+Jr,gu=Sk+bk,yu=yk+xk,ym=$e?P.offsetHeight-yu-P.clientHeight:0,bm=et?P.offsetWidth-gu-P.clientWidth:0,wk=ae?vm+gu:0,kk=ae?gm+yu:0,Fa=$?$.width:k(O.width)-wk-bm,Ia=$?$.height:k(O.height)-kk-ym,Ck=Fa+vm+bm+gu,Tk=Ia+gm+ym+yu,xm=c({devicePixelContentBoxSize:w(Math.round(Fa*devicePixelRatio),Math.round(Ia*devicePixelRatio),pt),borderBoxSize:w(Ck,Tk,pt),contentBoxSize:w(Fa,Ia,pt),contentRect:new f(Di,qn,Fa,Ia)});return p.set(P,xm),xm},I=function(P,_,O){var $=E(P,O),ae=$.borderBoxSize,pt=$.contentBoxSize,et=$.devicePixelContentBoxSize;switch(_){case l.DEVICE_PIXEL_CONTENT_BOX:return et;case l.BORDER_BOX:return ae;default:return pt}},F=function(){function P(_){var O=E(_);this.target=_,this.contentRect=O.contentRect,this.borderBoxSize=c([O.borderBoxSize]),this.contentBoxSize=c([O.contentBoxSize]),this.devicePixelContentBoxSize=c([O.devicePixelContentBoxSize])}return P}(),z=function(P){if(m(P))return 1/0;for(var _=0,O=P.parentNode;O;)_+=1,O=O.parentNode;return _},B=function(){var P=1/0,_=[];r.forEach(function(et){if(et.activeTargets.length!==0){var $e=[];et.activeTargets.forEach(function(Bt){var Jr=new F(Bt.target),Di=z(Bt.target);$e.push(Jr),Bt.lastReportedSize=I(Bt.target,Bt.observedBox),DiP?O.activeTargets.push(ae):O.skippedTargets.push(ae))})})},ne=function(){var P=0;for(J(P);i();)P=B(),J(P);return o()&&a(),P>0},j,oe=[],X=function(){return oe.splice(0).forEach(function(P){return P()})},Y=function(P){if(!j){var _=0,O=document.createTextNode(""),$={characterData:!0};new MutationObserver(function(){return X()}).observe(O,$),j=function(){O.textContent=""+(_?_--:_++)}}oe.push(P),j()},N=function(P){Y(function(){requestAnimationFrame(P)})},ee=0,he=function(){return!!ee},fe=250,re={attributes:!0,characterData:!0,childList:!0,subtree:!0},ie=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Qt=function(P){return P===void 0&&(P=0),Date.now()+P},de=!1,Ct=function(){function P(){var _=this;this.stopped=!0,this.listener=function(){return _.schedule()}}return P.prototype.run=function(_){var O=this;if(_===void 0&&(_=fe),!de){de=!0;var $=Qt(_);N(function(){var ae=!1;try{ae=ne()}finally{if(de=!1,_=$-Qt(),!he())return;ae?O.run(1e3):_>0?O.run(_):O.start()}})}},P.prototype.schedule=function(){this.stop(),this.run()},P.prototype.observe=function(){var _=this,O=function(){return _.observer&&_.observer.observe(document.body,re)};document.body?O():S.addEventListener("DOMContentLoaded",O)},P.prototype.start=function(){var _=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ie.forEach(function(O){return S.addEventListener(O,_.listener,!0)}))},P.prototype.stop=function(){var _=this;this.stopped||(this.observer&&this.observer.disconnect(),ie.forEach(function(O){return S.removeEventListener(O,_.listener,!0)}),this.stopped=!0)},P}(),Z=new Ct,Zt=function(P){!ee&&P>0&&Z.start(),ee+=P,!ee&&Z.stop()},hn=function(P){return!d(P)&&!v(P)&&getComputedStyle(P).display==="inline"},Gn=function(){function P(_,O){this.target=_,this.observedBox=O||l.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return P.prototype.isActive=function(){var _=I(this.target,this.observedBox,!0);return hn(this.target)&&(this.lastReportedSize=_),this.lastReportedSize.inlineSize!==_.inlineSize||this.lastReportedSize.blockSize!==_.blockSize},P}(),Oi=function(){function P(_,O){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=O}return P}(),pn=new WeakMap,Vt=function(P,_){for(var O=0;O=0&&(pt&&r.splice(r.indexOf($),1),$.observationTargets.splice(ae,1),Zt(-1))},P.disconnect=function(_){var O=this,$=pn.get(_);$.observationTargets.slice().forEach(function(ae){return O.unobserve(_,ae.target)}),$.activeTargets.splice(0,$.activeTargets.length)},P}(),vu=function(){function P(_){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof _!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Kn.connect(this,_)}return P.prototype.observe=function(_,O){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!y(_))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Kn.observe(this,_,O)},P.prototype.unobserve=function(_){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!y(_))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Kn.unobserve(this,_)},P.prototype.disconnect=function(){Kn.disconnect(this)},P.toString=function(){return"function ResizeObserver () { [polyfill code] }"},P}();n.ResizeObserver=vu,n.ResizeObserverEntry=F,n.ResizeObserverSize=u,Object.defineProperty(n,"__esModule",{value:!0})})}}),MF=nn({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(e){"use strict";var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,m=t?Symbol.for("react.suspense_list"):60120,y=t?Symbol.for("react.memo"):60115,v=t?Symbol.for("react.lazy"):60116,S=t?Symbol.for("react.block"):60121,p=t?Symbol.for("react.fundamental"):60117,h=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function x(w){if(typeof w=="object"&&w!==null){var T=w.$$typeof;switch(T){case n:switch(w=w.type,w){case c:case u:case i:case s:case o:case d:return w;default:switch(w=w&&w.$$typeof,w){case l:case f:case v:case y:case a:return w;default:return T}}case r:return T}}}function k(w){return x(w)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=a,e.Element=n,e.ForwardRef=f,e.Fragment=i,e.Lazy=v,e.Memo=y,e.Portal=r,e.Profiler=s,e.StrictMode=o,e.Suspense=d,e.isAsyncMode=function(w){return k(w)||x(w)===c},e.isConcurrentMode=k,e.isContextConsumer=function(w){return x(w)===l},e.isContextProvider=function(w){return x(w)===a},e.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===n},e.isForwardRef=function(w){return x(w)===f},e.isFragment=function(w){return x(w)===i},e.isLazy=function(w){return x(w)===v},e.isMemo=function(w){return x(w)===y},e.isPortal=function(w){return x(w)===r},e.isProfiler=function(w){return x(w)===s},e.isStrictMode=function(w){return x(w)===o},e.isSuspense=function(w){return x(w)===d},e.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===i||w===u||w===s||w===o||w===d||w===m||typeof w=="object"&&w!==null&&(w.$$typeof===v||w.$$typeof===y||w.$$typeof===a||w.$$typeof===l||w.$$typeof===f||w.$$typeof===p||w.$$typeof===h||w.$$typeof===g||w.$$typeof===S)},e.typeOf=x}}),OF=nn({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(e,t){"use strict";t.exports=MF()}}),iu=nn({"../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){"use strict";var n=OF(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[n.ForwardRef]=o,a[n.Memo]=s;function l(S){return n.isMemo(S)?s:a[S.$$typeof]||r}var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,y=Object.prototype;function v(S,p,h){if(typeof p!="string"){if(y){var g=m(p);g&&g!==y&&v(S,g,h)}var x=u(p);f&&(x=x.concat(f(p)));for(var k=l(S),w=l(p),T=0;TparseInt(p[1],10)}else u=!1;return u}function y(){return d===null&&(d=!!document.fonts),d}function v(){if(f===null){var p=document.createElement("div");try{p.style.font="condensed 100px sans-serif"}catch{}f=p.style.font!==""}return f}function S(p,h){return[p.style,p.weight,v()?p.stretch:"","100px",h].join(" ")}l.prototype.load=function(p,h){var g=this,x=p||"BESbswy",k=0,w=h||3e3,T=new Date().getTime();return new Promise(function(E,I){if(y()&&!m()){var F=new Promise(function(B,J){function ne(){new Date().getTime()-T>=w?J(Error(""+w+"ms timeout exceeded")):document.fonts.load(S(g,'"'+g.family+'"'),x).then(function(j){1<=j.length?B():setTimeout(ne,25)},J)}ne()}),z=new Promise(function(B,J){k=setTimeout(function(){J(Error(""+w+"ms timeout exceeded"))},w)});Promise.race([z,F]).then(function(){clearTimeout(k),E(g)},I)}else r(function(){function B(){var ie;(ie=X!=-1&&Y!=-1||X!=-1&&N!=-1||Y!=-1&&N!=-1)&&((ie=X!=Y&&X!=N&&Y!=N)||(c===null&&(ie=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(L.navigator.userAgent),c=!!ie&&(536>parseInt(ie[1],10)||parseInt(ie[1],10)===536&&11>=parseInt(ie[2],10))),ie=c&&(X==ee&&Y==ee&&N==ee||X==he&&Y==he&&N==he||X==fe&&Y==fe&&N==fe)),ie=!ie),ie&&(re.parentNode&&re.parentNode.removeChild(re),clearTimeout(k),E(g))}function J(){if(new Date().getTime()-T>=w)re.parentNode&&re.parentNode.removeChild(re),I(Error(""+w+"ms timeout exceeded"));else{var ie=document.hidden;(ie===!0||ie===void 0)&&(X=ne.a.offsetWidth,Y=j.a.offsetWidth,N=oe.a.offsetWidth,B()),k=setTimeout(J,50)}}var ne=new i(x),j=new i(x),oe=new i(x),X=-1,Y=-1,N=-1,ee=-1,he=-1,fe=-1,re=document.createElement("div");re.dir="ltr",o(ne,S(g,"sans-serif")),o(j,S(g,"serif")),o(oe,S(g,"monospace")),re.appendChild(ne.a),re.appendChild(j.a),re.appendChild(oe.a),document.body.appendChild(re),ee=ne.a.offsetWidth,he=j.a.offsetWidth,fe=oe.a.offsetWidth,J(),a(ne,function(ie){X=ie,B()}),o(ne,S(g,'"'+g.family+'",sans-serif')),a(j,function(ie){Y=ie,B()}),o(j,S(g,'"'+g.family+'",serif')),a(oe,function(ie){N=ie,B()}),o(oe,S(g,'"'+g.family+'",monospace'))})})},typeof t=="object"?t.exports=l:(L.FontFaceObserver=l,L.FontFaceObserver.prototype.load=l.prototype.load)})()}});function Ip(e,t){let n={style:t};return b.isValidElement(e)?b.cloneElement(e,n):b.createElement(e,n)}var VF=class extends Error{},DS=class extends Error{},BF=class extends be{constructor(e){super(e),this.state={error:void 0,forceUpdateKey:e.forceUpdateKey}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){if(e.forceUpdateKey!==t.forceUpdateKey){let n={forceUpdateKey:e.forceUpdateKey};return t.error&&(n.error=void 0),n}return null}render(){if(this.state.error===void 0)return this.props.children;if(!(this.state.error instanceof VF)){let n=new DS;throw n.cause=this.state.error,n}let{notFoundPage:e,defaultPageStyle:t}=this.props;if(!e)throw this.state.error;return Ip(e,t)}},zF=":([a-z]\\w*)",_i=new RegExp(zF,"gi");function AS(e,t){return e.replace(_i,(n,r)=>{let i=t[r];return typeof i!="string"||i.length===0?n:encodeURIComponent(i)})}function VS(e,t){if(!e.startsWith("/")||!t.startsWith("/"))throw new Error("from/to paths are expected to be absolute");let[n]=m1(e),[r,i]=m1(t),o=$F(n,r);return o===""&&(o="."),!o.startsWith(".")&&!o.startsWith("/")&&(o="./"+o),o+"/"+i}function m1(e){let t=e.lastIndexOf("/");return[e.substring(0,t+1),e.substring(t+1)]}var dp=46,Mo=47,qr=(e,t)=>e.charCodeAt(t),v1=(e,t)=>e.lastIndexOf(t),Do=(e,t,n)=>e.slice(t,n);function $F(e,t){if(e===t||(e="/"+y1(e),t="/"+y1(t),e===t))return"";let n=1,r=e.length,i=r-n,o=1,s=t.length-o,a=ia){if(qr(t,o+c)===Mo)return Do(t,o+c+1);if(c===0)return Do(t,o+c)}else i>a&&(qr(e,n+c)===Mo?l=c:c===0&&(l=0));let u="";for(c=n+l+1;c<=r;++c)(c===r||qr(e,c)===Mo)&&(u+=u.length===0?"..":"/..");return`${u}${Do(t,o+l)}`}var NF=!1,Lc="/",g1=e=>e===Mo;function y1(e){let t="",n=0,r=-1,i=0,o=0;for(let s=0;s<=e.length;++s){if(s2){let a=v1(t,Lc);a===-1?(t="",n=0):(t=Do(t,0,a),n=t.length-1-v1(t,Lc)),r=s,i=0;continue}else if(t.length!==0){t="",n=0,r=s,i=0;continue}}NF&&(t+=t.length>0?`${Lc}..`:"..",n=2)}else t.length>0?t+=`${Lc}${Do(e,r+1,s)}`:t=Do(e,r+1,s),n=s-r-1;r=s,i=0}else o===dp&&i!==-1?++i:i=-1}return t}function BS(e){let t=typeof L<"u"?L.location.search:"";return t?HF(t,e):e}function HF(e,t){let n=t.indexOf("#"),r=n===-1?t:t.substring(0,n),i=n===-1?"":t.substring(n),o=r.indexOf("?");if(o===-1)return r+e+i;let s=new URLSearchParams(e),a=r.substring(o+1),l=new URLSearchParams(a);for(let[c,u]of s)l.has(c)||l.append(c,u);return r.substring(0,o+1)+l.toString()+i}function qc(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function aa(e){return typeof e=="string"}var jF="preload";function zS(e){return typeof e=="object"&&e!==null&&!b.isValidElement(e)&&jF in e}function cz(e){let t=b.lazy(e),n,r,i=b.forwardRef(function(s,a){return b.createElement(r??t,a?{ref:a,...s}:s)});return i.preload=()=>(n||(n=e().then(o=>(r=o.default,r))),n),i}function ou(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function WF(e){return/bot|Mediapartners-Google|Google-PageRenderer|yandex|ia_archiver/iu.test(e)}function UF(e){if("scheduler"in L){let t={priority:e?"user-blocking":"user-visible"};if("yield"in scheduler)return scheduler.yield(t);if("postTask"in scheduler)return scheduler.postTask(()=>{},t)}return e?Promise.resolve():new Promise(t=>{setTimeout(t,0)})}async function XF(e,t,n,r,i,o,s){var a,l,c;let u=e,f=!1,d={...o},m=Array.from(u.matchAll(_i)),y=await Promise.all(m.map(async h=>{var g;let x=h?.[0],k=h?.[1];if(!x||!k)throw new Error("Failed to replace path variables: unexpected regex match group");let w=o[k];if(!w||!aa(w))throw new Error(`No slug found for path variable ${k}`);let T=await((g=s?.[i])===null||g===void 0?void 0:g.call(s));if(!T||!t)return w;let E=await T.getRecordIdBySlug(w,t);if(!E)return w;let I=await T.getSlugByRecordId(E,n);if(!I){f=!0;let F=await T.getSlugByRecordId(E,r);return F&&(d[k]=F),F??w}return d[k]=I,I})),v=0,S="",p=!1;for(let h=0;h`--view-transition-${e}`;function Lp(e){return[parseFloat(e),e.endsWith("px")?"px":"%"]}function NS(e){let{innerWidth:t,innerHeight:n}=L,[r,i]=Lp(e.x),[o,s]=Lp(e.y);return{x:i==="px"?r:t*(r/100),y:s==="px"?o:n*(o/100)}}var JF={makeKeyframe:(e,t,n)=>{let r=0;return(n==="exit"&&e.angularDirection==="clockwise"&&t==="start"||n==="exit"&&e.angularDirection==="counter-clockwise"&&t==="end"||n==="enter"&&e.angularDirection==="counter-clockwise"&&t==="start"||n==="enter"&&e.angularDirection==="clockwise"&&t==="end")&&(r=e.sweepAngle/360*100),`${mr("conic-offset")}: ${r}%;`},makeStyles:(e,t)=>{let n=`var(${mr("conic-offset")})`,r=t==="exit"&&e.angularDirection==="clockwise"||t==="enter"&&e.angularDirection==="counter-clockwise",i=r?"transparent":"black",o=r?"black":"transparent",s="conic-gradient(from ";return s+=`${e.angle}deg at ${e.x} ${e.y}, `,s+=`${i} 0%, ${i} ${n}, `,s+=`${o} ${n}, ${o} 100%)`,`mask-image: ${s}; -webkit-mask-image: ${s};`},makePropertyRules:()=>` @property ${mr("conic-offset")} { syntax: ''; initial-value: 0%; inherits: false; } `},eI={makeKeyframe:(e,t)=>{let{x:n,y:r}=NS(e);return t==="start"?`clip-path: circle(0 at ${n}px ${r}px);`:`clip-path: circle(${Math.hypot(Math.max(n,L.innerWidth-n),Math.max(r,L.innerHeight-r))}px at ${n}px ${r}px);`}},tI={makeKeyframe:(e,t)=>{let{x:n,y:r}=NS(e),i=L.innerHeight-r,o=L.innerWidth-n;return t==="start"?`clip-path: inset(${r}px ${o}px ${i}px ${n}px round ${e.round}px);`:"clip-path: inset(0 round 0);"}},nI={makeKeyframe:(e,t,n)=>{let[,r]=Lp(e.width),i=`0${r}`;return(t==="start"&&n==="exit"||t==="end"&&n==="enter")&&(i=e.width),`${mr("blinds-width")}: ${i};`},makeStyles:(e,t)=>{let n=`var(${mr("blinds-width")})`,r=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="repeating-linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${r} 0px, ${r} ${n}, `,o+=`${i} ${n}, ${i} ${e.width})`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>` @property ${mr("blinds-width")} { syntax: ''; initial-value: 0px; inherits: false; } `},rI={makeKeyframe:(e,t,n)=>{let r=t==="start"&&n==="exit"||t==="end"&&n==="enter"?1:0;return`${mr("wipe-offset")}: ${r};`},makeStyles:(e,t)=>{let n=`var(${mr("wipe-offset")})`,r=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${r} calc(calc(0% - ${e.width}) + calc(calc(100% + ${e.width}) * ${n})), `,o+=`${i} calc(calc(100% + ${e.width}) * ${n}))`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>` @property ${mr("wipe-offset")} { syntax: ''; initial-value: 0; inherits: false; } `},iI={circle:eI,conic:JF,inset:tI,blinds:nI,wipe:rI},oI={opacity:1,x:"0px",y:"0px",scale:1,rotate:0,rotateX:0,rotateY:0,mask:void 0};function b1(e,t,n,r){var i;let o=` opacity: ${e.opacity}; transform: translate(${e.x}, ${e.y}) scale(${e.scale}) rotateX(${e.rotateX}deg) rotateY(${e.rotateY}deg) rotateZ(${e.rotate}deg); `;return e.mask&&(o+=((i=r?.makeKeyframe)===null||i===void 0?void 0:i.call(r,e.mask,t,n))||""),o}function sI(e){return e?iI[e]:void 0}function x1(e,{transition:t,...n}){var r;let i="view-transition-"+e,o={duration:"0s",easing:"linear"};if(t.type==="tween")o.duration=t.duration+"s",o.easing=`cubic-bezier(${t.ease.join(",")})`;else if(t.type==="spring"){let{easing:c,duration:u}=ZF(fs({keyframes:[0,1],stiffness:t.stiffness,damping:t.damping,mass:t.mass,restDelta:.001,restSpeed:1e-4}));o.duration=u+"ms",o.easing=c}let s=sI((r=n?.mask)===null||r===void 0?void 0:r.type),a=b1(n,"start",e,s),l=b1({...oI,mask:n.mask},"end",e,s);return e==="exit"&&([a,l]=[l,a]),` ${n.mask&&s?.makePropertyRules?s.makePropertyRules(n.mask):""} @keyframes ${i} { 0% { ${a} } 100% { ${l} } } ::view-transition-${e==="enter"?"new":"old"}(root) { animation-name: ${i}; animation-duration: ${o.duration}; animation-delay: ${t.delay}s; animation-timing-function: ${o.easing}; animation-fill-mode: both; ${n.mask&&s?.makeStyles?s.makeStyles(n.mask,e):""} } `}var HS="view-transition-styles",aI={x:"0px",y:"0px",scale:1,opacity:1,rotate3d:!1,rotate:0,rotateX:0,rotateY:0,mask:void 0,transition:{type:"tween",delay:0,duration:.2,ease:[.27,0,.51,1],stiffness:400,damping:30,mass:1}};function lI({exit:e=aI,enter:t}){let n=document.createElement("style");n.id=HS;let r=` @media (prefers-reduced-motion) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } } `;(e.mask||t.mask||e.opacity||t.opacity||e.transition.delay||t.transition.delay)&&(r+=` ::view-transition-old(*), ::view-transition-new(*) { mix-blend-mode: normal; } `),r+=` ::view-transition-old(*), ::view-transition-new(*) { backface-visibility: hidden; } `,r+=x1("exit",e),r+=x1("enter",t),n.textContent=r,document.head.appendChild(n)}function cI(){Q.render(()=>{let e=document.getElementById(HS);e&&document.head.removeChild(e)})}function uI(){return!!document.startViewTransition}function fI(e,t){if(!uI())return void e();lI(t);let n=document.startViewTransition(e);return Promise.all([n.ready,n.finished]).then(cI).catch(()=>{}),n}function jS(){let e=qF(),t=A(void 0);return W(()=>{t.current&&(t.current(),t.current=void 0)}),ye((n,r,i)=>{let o=GF(n,r,e);if(o){let s=new Promise(l=>{t.current=l});return fI(async()=>{i(),await s},o)}else return i()},[e])}function S1(e,t,{currentRoutePath:n,currentPathVariables:r,hash:i,pathVariables:o,localeId:s,preserveQueryParams:a}){let{path:l}=t;if(l)try{let c=Up(t,{currentRoutePath:n,currentPathVariables:r,hash:i,pathVariables:o,preserveQueryParams:a});WS({routeId:e,hash:i,pathVariables:o,localeId:s},c)}catch{}}function dI(e,t){L.history.replaceState(e,"",t)}function WS(e,t){L.history.pushState(e,"",t)}function hI({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){b.useLayoutEffect(()=>{e||dI({routeId:t,pathVariables:n,localeId:r})},[])}function pI(e,t){let n=jS(),r=b.useRef(void 0),i=b.useCallback(({state:s})=>{var a,l,c;if(!qc(s))return;let{routeId:u,hash:f,pathVariables:d,localeId:m}=s;if(!aa(u))return;let y=()=>{t(u,aa(m)?m:void 0,aa(f)?f:void 0,qc(d)?d:void 0,!1,!0)},v=n(e.current,u,y);v?v.updateCallbackDone.then((a=r.current)===null||a===void 0?void 0:a.resolve).catch((l=r.current)===null||l===void 0?void 0:l.reject):(c=r.current)===null||c===void 0||c.resolve()},[e,t,n]),o=ye(s=>{s.navigationType==="traverse"&&s.intercept({async handler(){await new Promise((a,l)=>{r.current={resolve:a,reject:l}})},scroll:"after-transition"})},[]);b.useEffect(()=>{var s;return L.addEventListener("popstate",i),(s=L.navigation)===null||s===void 0||s.addEventListener("navigate",o),()=>{var a;L.removeEventListener("popstate",i),(a=L.navigation)===null||a===void 0||a.removeEventListener("navigate",o)}},[i,o])}function mI(e,t,n){let r=ou(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(_i,(o,s)=>{var a;return String((a=i[s])!==null&&a!==void 0?a:o)})}function Up(e,{currentRoutePath:t,currentPathVariables:n,hash:r,pathVariables:i,hashVariables:o,relative:s=!0,preserveQueryParams:a}){var l;let c=t??"/";n&&(c=c.replace(_i,(y,v)=>String(n[v]||y)));let f=(l=e?.path)!==null&&l!==void 0?l:"/";i&&(f=f.replace(_i,(y,v)=>String(i[v]||y)));let d=mI(r,e,o),m=c===f&&d;return s&&(f=VS(c,f)),(a||m)&&(f=BS(f)),d&&(f=`${f}#${d}`),f}async function vI(e,t,n){if(!e.path||!t)return!1;let i=`${n.slug?`/${n.slug}`:""}${AS(e.path,t)}`;return(await fetch(i,{method:"HEAD",redirect:"manual"})).type==="opaqueredirect"?(L.location.href=L.location.origin+i,!0):!1}async function gI(e){let t=await YF(e);if(t){try{localStorage.setItem("preferredLocale",e.nextLocale.code)}catch{}try{if(typeof t.path!="string")throw new Error("Expected result.path to be a string");if(t.isMissingInLocale&&await vI(e.route,t.pathVariables,e.nextLocale))return;WS({routeId:e.routeId,pathVariables:t.pathVariables,localeId:e.nextLocale.id,paginationInfo:L.history.state.paginationInfo},t.path)}catch{}return t}}function yI(e,t){if(e.routeId!==t.routeId)return!1;if(e.pathVariables===t.pathVariables)return!0;let n=e.pathVariables||{},r=t.pathVariables||{};return n.length===r.length&&Object.keys(n).every(i=>n[i]===r[i])}var la=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset"],US=e=>{var t,n;!((n=(t=e.target)===null||t===void 0?void 0:t.closest)===null||n===void 0)&&n.call(t,"#main")&&(e.stopPropagation(),performance.mark("udayps-react-event-handling-prevented"))};typeof L<"u"&&(L.__udayps_TURN_OFF_REACT_EVENT_HANDLING__=function(){if(!la)return;let e={capture:!0};la.forEach(t=>document.body.addEventListener(t,US,e)),L.__udayps_TURN_OFF_REACT_EVENT_HANDLING__=void 0});function w1(){if(!la)return;let e={capture:!0};la.forEach(t=>document.body.removeEventListener(t,US,e)),la=void 0}function _o(e,t,n){try{performance.measure(e,t,n)}catch(r){console.warn(`Could not measure ${e}`,r)}}var k1=!1,C1=!1,T1=!1;function bI({addHydrationMarkers:e,turnOffEventHandlerHack:t}){let n="udayps-hydration-",r=`${n}start`,i=`${n}render-end`,o=`${n}layout-effects-end`,s=`${n}effects-end`,a=`${n}first-paint`;return at(()=>{C1||(C1=!0,e&&(performance.mark(i),_o(`${n}render`,r,i)))},[]),Pn(()=>{T1||(T1=!0,e&&(performance.mark(o),_o(`${n}layout-effects`,i,o)),requestAnimationFrame(()=>{var l,c,u;let f=`${n}browser-render-start`;e&&(performance.mark(f),_o(`${n}uho`,(c=(l=performance.getEntriesByName(s)[0])===null||l===void 0?void 0:l.name)!==null&&c!==void 0?c:(u=performance.getEntriesByName(o)[0])===null||u===void 0?void 0:u.name,f)),setTimeout(()=>{t&&w1(),e&&(performance.mark(a),_o(`${n}time-to-first-paint`,r,a),_o(`${n}browser-render`,f,a))},0)}))},[]),W(()=>{var l,c,u;k1||(k1=!0,t&&w1(),e&&(performance.mark(s),_o(`${n}effects`,(c=(l=performance.getEntriesByName(a)[0])===null||l===void 0?void 0:l.name)!==null&&c!==void 0?c:(u=performance.getEntriesByName(o)[0])===null||u===void 0?void 0:u.name,s)))},[]),null}function XS(e){return b.useCallback(t=>e[t],[e])}var Xp=(()=>b.createContext({}))();function xI({api:e,children:t}){return C(Xp.Provider,{value:e,children:t})}function wa(){return b.useContext(Xp)}function SI({routes:e,children:t}){let n=XS(e);return C(Xp.Provider,{value:{getRoute:n},children:t})}var wI=class extends be{constructor(){super(...arguments),this.state={error:void 0}}static getDerivedStateFromError(e){return console.error("Derived error in SuspenseErrorBoundary",e),{error:e}}componentDidCatch(e,t){var n;console.error("Caught error in SuspenseErrorBoundary",e,t),(n=L.__udayps_events)===null||n===void 0||n.push(["published_site_load_recoverable_error",{message:String(e),componentStack:t?.componentStack}])}render(){if(this.state.error===void 0)return this.props.children;if(this.state.error instanceof DS)throw this.state.error.cause;return C(Xo,{children:this.props.fallbackChildren})}},kI=(()=>typeof L<"u"?new Promise(()=>{}):null)();function CI(){if(typeof L>"u")return null;throw kI}function TI({children:e}){return C(wI,{fallbackChildren:e,children:C(Xo,{fallback:C(CI,{}),children:e})})}var E1="default";function EI(){let[e,t]=b.useState(0);return[e,b.useCallback(()=>t(n=>n+1),[])]}var RI=async()=>{},PI={activeLocale:null,locales:[],setLocale:RI},YS=b.createContext(PI);function _I(){return b.useContext(YS)}function FI(e){let t=`start-${e}`,n=`end-${e}`,r=A(void 0);return W(()=>{r.current&&(r.current(),r.current=void 0)}),ye(()=>{let i=new Promise(o=>{r.current=o});performance.mark(t),i.then(()=>{performance.mark(n),performance.measure(e,t,n)}).catch(()=>{})},[e,t,n])}function R1(e,t,n){let r=e&&document.getElementById(e);if(r){MI(r,t);return}n||L.scrollTo(0,0)}function II(e){let t=b.useRef([]);return b.useLayoutEffect(()=>{var n;!((n=t.current)===null||n===void 0)&&n.length&&(t.current.forEach(r=>r()),t.current=[])},[e]),b.useCallback(n=>{t.current.push(n)},[])}function LI({defaultPageStyle:e,disableHistory:t,initialPathVariables:n,initialRoute:r,notFoundPage:i,collectionUtils:o,routes:s,initialLocaleId:a,locales:l=[],preserveQueryParams:c=!1,enableImproveInpDuringHydration:u=!1,addHydrationMarkers:f=!1}){hI({disabled:t,routeId:r,initialPathVariables:n,initialLocaleId:a});let d=jS(),m=FI("route-change"),y=b.useRef(r),v=b.useRef(n),S=b.useRef(a),p=S.current,h=b.useMemo(()=>{var X;return(X=l.find(({id:Y})=>p?Y===p:Y===E1))!==null&&X!==void 0?X:null},[p,l]),[g,x]=EI(),k=b.useMemo(()=>({activeLocale:h,locales:l,setLocale:async X=>{let Y;aa(X)?Y=X:qc(X)&&(Y=X.id);let N=l.find(({id:re})=>re===E1),ee=l.find(({id:re})=>re===Y);if(!ee)return;let he=y.current,fe=s[he];if(fe)try{let re=await gI({currentLocale:h,nextLocale:ee,route:fe,routeId:he,defaultLocale:N,pathVariables:v.current,collectionUtils:o,preserveQueryParams:c});if(!re)return;v.current=re.pathVariables,S.current=ee.id,d(y.current,he,()=>Vi(x)),m()}catch{}}}),[h,o,x,l,m,c,s,d]),w=II(g),T=b.useCallback((X,Y,N,ee,he=!1,fe=!1)=>{y.current=X,v.current=ee,S.current=Y,w(()=>{R1(N,he,fe)}),Vi(x),m()},[x,m,w]);pI(y,T);let E=b.useCallback((X,Y,N,ee)=>{var he,fe;let re=s[X];if(N){let de=new Set,Ct=(he=re?.path)!==null&&he!==void 0?he:"/";for(let Z of Ct.matchAll(_i)){let Zt=Z[1];if(Zt===void 0)throw new Error("A matching path variable should not be undefined");de.add(Zt)}N=Object.fromEntries(Object.entries(N).filter(([Z])=>de.has(Z)))}let ie=ou(re,Y);if(yI({routeId:y.current,pathVariables:v.current},{routeId:X,pathVariables:N})){if(((fe=L.history.state)===null||fe===void 0?void 0:fe.hash)!==Y&&!t){let de=s[X];de&&S1(X,de,{currentRoutePath:de.path,currentPathVariables:v.current,pathVariables:N,hash:Y,localeId:S.current,preserveQueryParams:c})}R1(ie,ee,!1);return}if(!re)return;if(!t){let de=s[y.current];S1(X,re,{currentRoutePath:de?.path,currentPathVariables:v.current,hash:Y,pathVariables:N,localeId:S.current,preserveQueryParams:c})}let Qt=()=>T(X,S.current,ie,N,ee,!1);d(y.current,X,Qt)},[s,t,T,d,c]),I=XS(s),F=y.current,z=v.current,B=b.useMemo(()=>({navigate:E,getRoute:I,currentRouteId:F,currentPathVariables:z,routes:s,collectionUtils:o,preserveQueryParams:c}),[E,I,F,z,s,o,c]),J=s[y.current];if(!J)throw new Error(`Router cannot find route for ${y.current}`);let ne=!h||!J.includedLocales||J.includedLocales.includes(h.id),j=J.path&&z?AS(J.path,z):J.path,oe=String(p)+j;return C(xI,{api:B,children:C(YS.Provider,{value:k,children:le(TI,{children:[C(BF,{notFoundPage:i,defaultPageStyle:e,forceUpdateKey:g,children:C(b.Fragment,{children:ne?Ip(J.page,e):i&&Ip(i,e)},oe)}),C(bI,{addHydrationMarkers:f,turnOffEventHandlerHack:u})]})})})}function MI(e,t){let n=t?{behavior:"smooth",block:"start",inline:"nearest"}:void 0;e.scrollIntoView(n)}var Mc,pp,P1;function OI(e){if(P1!==e){Mc={};for(let[t,{path:n}]of Object.entries(e))n&&(Mc[n]={path:n,depth:DI(n),routeId:t});pp=Object.values(Mc),pp.sort(({depth:t},{depth:n})=>n-t),P1=e}return[Mc,pp]}function GS(e,t,n=!0,r=[]){let[i,o]=OI(e),s,a,l=t;if(r.length>0){let d=l.split("/").find(Boolean);if(d&&(s=r.find(({slug:m})=>m===d),s&&(a=s.id,l=l.substring(s.slug.length+1))),!a){let m=r.find(({slug:y})=>y==="");m&&(a=m.id)}}let c=i[l];if(c){let d=_1(l,c.path);if(d.isMatch)return{routeId:c.routeId,localeId:a,pathVariables:d.pathVariables}}for(let{path:d,routeId:m}of o){let y=_1(l,d);if(y.isMatch)return{routeId:m,localeId:a,pathVariables:y.pathVariables}}if(!n)throw new Error("No exact match found for path");let u=i["/"];if(u)return{routeId:u.routeId,localeId:a};let f=Object.keys(e)[0];if(!f)throw new Error("Router should not have undefined routes");return{routeId:f,localeId:a}}function DI(e){let t=e.replace(/^\/|\/$/gu,"");return t===""?0:t.split("/").length}function _1(e,t){let n=[],i=AI(t).replace(_i,(c,u)=>(n.push(u),"([^/]+)")),o=new RegExp(i+"$"),s=e.match(o);if(!s)return{isMatch:!1};if(s.length===1)return{isMatch:!0};let a={},l=s.slice(1);for(let c=0;cb.createContext(void 0))();function su(){var e;let t=wa(),n=D(BI),r=n??t.currentRouteId;if(!r)return;let i=(e=t.getRoute)===null||e===void 0?void 0:e.call(t,r);if(i)return{...i,id:r,pathVariables:n?void 0:t.currentPathVariables}}function zI(e){var t;let n=wa();if(e)return(t=n.getRoute)===null||t===void 0?void 0:t.call(n,e)}var Yp=(()=>typeof L<"u"&&!WF(Le.userAgent))();function $I(e,t=!0){let{getRoute:n}=wa();W(()=>{if(!(!n||!t||!Yp))for(let r of e)KS(n(r))},[e,n,t])}async function KS(e){if(!Yp||!e)return;let t=e.page;if(!(!t||!zS(t))){await UF();try{await t.preload()}catch{}}}function Iz(e,t){var n;let r=su(),i=(n=zI(t))!==null&&n!==void 0?n:r;return b.useMemo(()=>i?ou(i,e):e,[e,i])}var I1=new Set;function ua(e,...t){I1.has(e)||(I1.add(e),console.warn(e,...t))}function NI(e,t,n){let r=n?`, use ${n} instead`:"",i=`Deprecation warning: ${e} will be removed in version ${t}${r}.`;ua(i)}var qS=class{constructor(){R(this,"observers",new Set),R(this,"transactions",{})}add(e){this.observers.add(e);let t=!1;return()=>{t||(t=!0,this.remove(e))}}remove(e){this.observers.delete(e)}notify(e,t){if(t){let n=this.transactions[t]||e;n.value=e.value,this.transactions[t]=n}else this.callObservers(e)}finishTransaction(e){let t=this.transactions[e];return delete this.transactions[e],this.callObservers(t,e)}callObservers(e,t){let n=[];return new Set(this.observers).forEach(r=>{typeof r=="function"?r(e,t):(r.update(e,t),n.push(r.finish))}),n}},Ke=(()=>{function e(t){return NI("Animatable()","2.0.0","the new animation API (https://www.udayps.com/api/animation/)"),Cn(t)?t:new jI(t)}return e.transaction=t=>{let n=Math.random(),r=new Set;t((s,a)=>{s.set(a,n),r.add(s)},n);let o=[];r.forEach(s=>{o.push(...s.finishTransaction(n))}),o.forEach(s=>{s(n)})},e.getNumber=(t,n=0)=>e.get(t,n),e.get=(t,n)=>t==null?n:Cn(t)?t.get():t,e.objectToValues=t=>{if(!t)return t;let n={};for(let r in t){let i=t[r];Cn(i)?n[r]=i.get():n[r]=i}return n},e})(),L1="onUpdate",M1="finishTransaction";function Cn(e){return e!==null&&typeof e=="object"&&L1 in e&&e[L1]instanceof Function&&M1 in e&&e[M1]instanceof Function}function HI(e,t){return{interpolate(n,r){let i=n.get(),o=r.get(),s=Ke(i);return a=>{let l=t.interpolate(i,o)(a);return s.set(l),s}},difference(n,r){let i=n.get();return t.difference(i,r.get())}}}var jI=class{constructor(e){this.value=e,R(this,"observers",new qS)}static interpolationFor(e,t){if(Cn(e))return HI(e,t)}get(){return this.value}set(e,t){let n=this.value;Cn(e)&&(e=e.get()),this.value=e;let r={value:e,oldValue:n};this.observers.notify(r,t)}finishTransaction(e){return this.observers.finishTransaction(e)}onUpdate(e){return this.observers.add(e)}};function Oc(e,t){let r=10**Math.round(Math.abs(t));return Math.round(e*r)/r}function O1(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function Kt(e,t){return{x:e,y:t}}(e=>{e.add=(...i)=>i.reduce((o,s)=>({x:o.x+s.x,y:o.y+s.y}),{x:0,y:0}),e.subtract=(i,o)=>({x:i.x-o.x,y:i.y-o.y}),e.multiply=(i,o)=>({x:i.x*o,y:i.y*o}),e.divide=(i,o)=>({x:i.x/o,y:i.y/o}),e.absolute=i=>({x:Math.abs(i.x),y:Math.abs(i.y)}),e.reverse=i=>({x:i.x*-1,y:i.y*-1}),e.pixelAligned=(i,o={x:0,y:0})=>({x:O1(i.x,o.x),y:O1(i.y,o.y)}),e.distance=(i,o)=>{let s=Math.abs(i.x-o.x),a=Math.abs(i.y-o.y);return Math.sqrt(s*s+a*a)},e.angle=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI-90,e.angleFromX=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI,e.isEqual=(i,o)=>i.x===o.x&&i.y===o.y,e.rotationNormalizer=()=>{let i;return o=>{typeof i!="number"&&(i=o);let s=i-o,a=Math.abs(s)+180,l=Math.floor(a/360);return s<180&&(o-=l*360),s>180&&(o+=l*360),i=o,o}};function t(i,o){return{x:(i.x+o.x)/2,y:(i.y+o.y)/2}}e.center=t;function n(i){let o=0,s=0;i.forEach(c=>{o+=c.x,s+=c.y});let a=o/i.length,l=s/i.length;return{x:a,y:l}}e.centroid=n;function r(i){let o=e.centroid(i),s=new Map;for(let a=0;as.get(a)-s.get(l))}e.sortClockwise=r})(Kt||(Kt={}));var Mp={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Wr(e,t,n,r=!1){let[i,o]=t,[s,a]=n,l=o-i;if(l===0)return(a+s)/2;let c=a-s;if(c===0)return s;let u=s+(e-i)/l*c;if(r===!0)if(sa)return a}else{if(u>s)return s;if(uFF().Hsluv)(),Dt=new WI;function UI(e,t,n){return Dt.rgb_r=e/255,Dt.rgb_g=t/255,Dt.rgb_b=n/255,Dt.rgbToHsluv(),{h:Dt.hsluv_h,s:Dt.hsluv_s,l:Dt.hsluv_l}}function XI(e,t,n,r=1){return Dt.hsluv_h=e,Dt.hsluv_s=t,Dt.hsluv_l=n,Dt.hsluvToRgb(),{r:Dt.rgb_r*255,g:Dt.rgb_g*255,b:Dt.rgb_b*255,a:r}}function Dc(e,t,n,r){let i=Math.round(e),o=Math.round(t*100),s=Math.round(n*100);return r===void 0||r===1?"hsv("+i+", "+o+"%, "+s+"%)":"hsva("+i+", "+o+"%, "+s+"%, "+r+")"}function YI(e,t,n){return{r:Ao(e)?wt(e,255)*255:0,g:Ao(t)?wt(t,255)*255:0,b:Ao(n)?wt(n,255)*255:0}}function D1(e,t,n,r){let i=[vp(Math.round(e).toString(16)),vp(Math.round(t).toString(16)),vp(Math.round(n).toString(16))];return r&&i[0].charAt(0)===i[0].charAt(1)&&i[1].charAt(0)===i[1].charAt(1)&&i[2].charAt(0)===i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Gp(e,t,n){let r,i,o=wt(e,255),s=wt(t,255),a=wt(n,255),l=Math.max(o,s,a),c=Math.min(o,s,a),u=i=r=(l+c)/2;if(l===c)u=i=0;else{let f=l-c;switch(i=r>.5?f/(2-l-c):f/(l+c),l){case o:u=(s-a)/f+(s1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function GI(e,t,n){let r,i,o;if(e=wt(e,360),t=wt(t*100,100),n=wt(n*100,100),t===0)r=i=o=n;else{let s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=mp(a,s,e+1/3),i=mp(a,s,e),o=mp(a,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function A1(e,t,n){e=wt(e,255),t=wt(t,255),n=wt(n,255);let r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i,s,a=r===0?0:o/r,l=r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/o+(t{let e="[-\\+]?\\d+%?",n="(?:"+"[-\\+]?\\d*\\.\\d+%?"+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^([\da-f])([\da-f])([\da-f])$/iu,hex6:/^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu,hex4:/^#?([\da-f])([\da-f])([\da-f])([\da-f])$/iu,hex8:/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu}})();function Kp(e){if(e.includes("gradient(")||e.includes("var("))return!1;let t=/^[\s,#]+/u,n=e.replace(t,"").trimEnd().toLowerCase(),r=Mp[n];if(r&&(n=r),n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i;return(i=Hn.rgb.exec(n))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:1,format:"rgb"}:(i=Hn.rgba.exec(n))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:parseFloat(i[4]??""),format:"rgb"}:(i=Hn.hsl.exec(n))?{h:parseInt(i[1]??""),s:Ur(i[2]??""),l:Ur(i[3]??""),a:1,format:"hsl"}:(i=Hn.hsla.exec(n))?{h:parseInt(i[1]??""),s:Ur(i[2]??""),l:Ur(i[3]??""),a:parseFloat(i[4]??""),format:"hsl"}:(i=Hn.hsv.exec(n))?{h:parseInt(i[1]??""),s:Ur(i[2]??""),v:Ur(i[3]??""),a:1,format:"hsv"}:(i=Hn.hsva.exec(n))?{h:parseInt(i[1]??""),s:Ur(i[2]??""),v:Ur(i[3]??""),a:parseFloat(i[4]??""),format:"hsv"}:(i=Hn.hex8.exec(n))?{r:Gt(i[1]??""),g:Gt(i[2]??""),b:Gt(i[3]??""),a:V1(i[4]??""),format:r?"name":"hex"}:(i=Hn.hex6.exec(n))?{r:Gt(i[1]??""),g:Gt(i[2]??""),b:Gt(i[3]??""),a:1,format:r?"name":"hex"}:(i=Hn.hex4.exec(n))?{r:Gt(`${i[1]}${i[1]}`),g:Gt(`${i[2]}${i[2]}`),b:Gt(`${i[3]}${i[3]}`),a:V1(i[4]+""+i[4]),format:r?"name":"hex"}:(i=Hn.hex3.exec(n))?{r:Gt(`${i[1]}${i[1]}`),g:Gt(`${i[2]}${i[2]}`),b:Gt(`${i[3]}${i[3]}`),a:1,format:r?"name":"hex"}:!1}function Gt(e){return parseInt(e,16)}function V1(e){return Gt(e)/255}var B1=new Map,H=(()=>{function e(o,s,a,l){if(typeof o=="string"){let u=B1.get(o);return u||(u=t(o),u===void 0?{...e("black"),isValid:!1}:(B1.set(o,u),u))}let c=t(o,s,a,l);return c!==void 0?c:{...e("black"),isValid:!1}}function t(o,s,a,l){if(o==="")return;let c=ZI(o,s,a,l);if(c){let u={r:c.r,g:c.g,b:c.b,a:c.a,h:c.h,s:c.s,l:c.l,initialValue:typeof o=="string"&&c.format!=="hsv"?o:void 0,roundA:Math.round(100*c.a)/100,format:c.format,mix:e.mix,toValue:()=>e.toRgbString(u)};return u}else return}let n={isRGB(o){return o==="rgb"||o==="rgba"},isHSL(o){return o==="hsl"||o==="hsla"}};e.inspect=(o,s)=>o.format==="hsl"?`<${o.constructor.name} h:${o.h} s:${o.s} l:${o.l} a:${o.a}>`:o.format==="hex"||o.format==="name"?`<${o.constructor.name} "${s}">`:`<${o.constructor.name} r:${o.r} g:${o.g} b:${o.b} a:${o.a}>`,e.isColor=o=>typeof o=="string"?e.isColorString(o):e.isColorObject(o),e.isColorString=o=>typeof o=="string"?Kp(o)!==!1:!1,e.isColorObject=o=>o&&typeof o!="string"&&typeof o.r=="number"&&typeof o.g=="number"&&typeof o.b=="number"&&typeof o.h=="number"&&typeof o.s=="number"&&typeof o.l=="number"&&typeof o.a=="number"&&typeof o.roundA=="number"&&typeof o.format=="string",e.toString=o=>e.toRgbString(o),e.toHex=(o,s=!1)=>D1(o.r,o.g,o.b,s),e.toHexString=(o,s=!1)=>`#${e.toHex(o,s)}`,e.toRgbString=o=>o.a===1?"rgb("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+")":"rgba("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+", "+o.roundA+")",e.toHusl=o=>({...UI(o.r,o.g,o.b),a:o.roundA}),e.toHslString=o=>{let s=e.toHsl(o),a=Math.round(s.h),l=Math.round(s.s*100),c=Math.round(s.l*100);return o.a===1?"hsl("+a+", "+l+"%, "+c+"%)":"hsla("+a+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toHsv=o=>{let s=A1(o.r,o.g,o.b);return{h:s.h*360,s:s.s,v:s.v,a:o.a}},e.toHsvString=o=>{let s=A1(o.r,o.g,o.b),a=Math.round(s.h*360),l=Math.round(s.s*100),c=Math.round(s.v*100);return o.a===1?"hsv("+a+", "+l+"%, "+c+"%)":"hsva("+a+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toName=o=>{if(o.a===0)return"transparent";if(o.a<1)return!1;let s=D1(o.r,o.g,o.b,!0);for(let a of Object.keys(Mp))if(Mp[a]===s)return a;return!1},e.toHsl=o=>({h:Math.round(o.h),s:o.s,l:o.l,a:o.a}),e.toRgb=o=>({r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b),a:o.a}),e.brighten=(o,s=10)=>{let a=e.toRgb(o);return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(s/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(s/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(s/100)))),e(a)},e.lighten=(o,s=10)=>{let a=e.toHsl(o);return a.l+=s/100,a.l=Math.min(1,Math.max(0,a.l)),e(a)},e.darken=(o,s=10)=>{let a=e.toHsl(o);return a.l-=s/100,a.l=Math.min(1,Math.max(0,a.l)),e(a)},e.saturate=(o,s=10)=>{let a=e.toHsl(o);return a.s+=s/100,a.s=Math.min(1,Math.max(0,a.s)),e(a)},e.desaturate=(o,s=10)=>{let a=e.toHsl(o);return a.s-=s/100,a.s=Math.min(1,Math.max(0,a.s)),e(a)},e.grayscale=o=>e.desaturate(o,100),e.hueRotate=(o,s)=>{let a=e.toHsl(o);return a.h+=s,a.h=a.h>360?a.h-360:a.h,e(a)},e.alpha=(o,s=1)=>e({r:o.r,g:o.g,b:o.b,a:s}),e.transparent=o=>e.alpha(o,0),e.multiplyAlpha=(o,s=1)=>e({r:o.r,g:o.g,b:o.b,a:o.a*s}),e.interpolate=(o,s,a="rgb")=>{if(!e.isColorObject(o)||!e.isColorObject(s))throw new TypeError("Both arguments for Color.interpolate must be Color objects");return l=>e.mixAsColor(o,s,l,!1,a)},e.mix=(o,s,{model:a="rgb"}={})=>{let l=typeof o=="string"?e(o):o,c=e.interpolate(l,s,a);return u=>e.toRgbString(c(u))},e.mixAsColor=(o,s,a=.5,l=!1,c="rgb")=>{let u=null;if(n.isRGB(c))u=e({r:Wr(a,[0,1],[o.r,s.r],l),g:Wr(a,[0,1],[o.g,s.g],l),b:Wr(a,[0,1],[o.b,s.b],l),a:Wr(a,[0,1],[o.a,s.a],l)});else{let f,d;n.isHSL(c)?(f=e.toHsl(o),d=e.toHsl(s)):(f=e.toHusl(o),d=e.toHusl(s)),f.s===0?f.h=d.h:d.s===0&&(d.h=f.h);let m=f.h,y=d.h,v=y-m;v>180?v=y-360-m:v<-180&&(v=y+360-m);let S={h:Wr(a,[0,1],[m,m+v],l),s:Wr(a,[0,1],[f.s,d.s],l),l:Wr(a,[0,1],[f.l,d.l],l),a:Wr(a,[0,1],[o.a,s.a],l)};n.isHSL(c)?u=e(S):u=e(XI(S.h,S.s,S.l,S.a))}return u},e.random=(o=1)=>{function s(){return Math.floor(Math.random()*255)}return e("rgba("+s()+", "+s()+", "+s()+", "+o+")")},e.grey=(o=.5,s=1)=>(o=Math.floor(o*255),e("rgba("+o+", "+o+", "+o+", "+s+")")),e.gray=e.grey,e.rgbToHsl=(o,s,a)=>Gp(o,s,a),e.isValidColorProperty=(o,s)=>!!((o.toLowerCase().slice(-5)==="color"||o==="fill"||o==="stroke")&&typeof s=="string"&&e.isColorString(s)),e.difference=(o,s)=>{let a=(o.r+s.r)/2,l=o.r-s.r,c=o.g-s.g,u=o.b-s.b,f=Math.pow(l,2),d=Math.pow(c,2),m=Math.pow(u,2);return Math.sqrt(2*f+4*d+3*m+a*(f-m)/256)},e.equal=(o,s,a=.1)=>!(Math.abs(o.r-s.r)>=a||Math.abs(o.g-s.g)>=a||Math.abs(o.b-s.b)>=a||Math.abs(o.a-s.a)*256>=a);let r=qi([0,255],[0,1]);function i(o){o=r(o);let s=Math.abs(o);return s<.04045?o/12.92:(Math.sign(o)||1)*Math.pow((s+.055)/1.055,2.4)}return e.luminance=o=>{let{r:s,g:a,b:l}=e.toRgb(o);return .2126*i(s)+.7152*i(a)+.0722*i(l)},e.contrast=(o,s)=>{let a=e.luminance(o),l=e.luminance(s);return(Math.max(a,l)+.05)/(Math.min(a,l)+.05)},e})();function ZI(e,t,n,r=1){let i;return typeof e=="number"&&!Number.isNaN(e)&&typeof t=="number"&&!Number.isNaN(t)&&typeof n=="number"&&!Number.isNaN(n)?i=Dp({r:e,g:t,b:n,a:r}):typeof e=="string"?i=JI(e):typeof e=="object"&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?i=Dp(e):i=QS(e)),i}function JI(e){let t=Kp(e);if(t)return t.format==="hsl"?QS(t):t.format==="hsv"?eL(t):Dp(t)}function eL(e){let t=KI(e.h,e.s,e.v);return{...Gp(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?ZS(e.a):1}}function Dp(e){let t=YI(e.r,e.g,e.b);return{...Gp(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?ZS(e.a):1}}function QS(e){let t,n,r,i={r:0,g:0,b:0},o={h:0,s:0,l:0};return t=Ao(e.h)?e.h:0,t=(t+360)%360,n=Ao(e.s)?e.s:1,typeof e.s=="string"&&(n=Op(e.s)),r=Ao(e.l)?e.l:.5,typeof e.l=="string"&&(r=Op(e.l)),i=GI(t,n,r),o={h:t,s:n,l:r},{...i,...o,a:e.a===void 0?1:e.a,format:"hsl"}}function ZS(e){return e=parseFloat(e),e<0&&(e=0),(isNaN(e)||e>1)&&(e=1),e}var z1=e=>e instanceof cl;var tL=(()=>IF().EventEmitter)(),nL=class{constructor(){R(this,"_emitter",new tL)}eventNames(){return this._emitter.eventNames()}eventListeners(){let e={};for(let t of this._emitter.eventNames())e[t]=this._emitter.listeners(t);return e}on(e,t){this.addEventListener(e,t,!1,!1,this)}off(e,t){this.removeEventListeners(e,t)}once(e,t){this.addEventListener(e,t,!0,!1,this)}unique(e,t){this.addEventListener(e,t,!1,!0,this)}addEventListener(e,t,n,r,i){if(r){for(let o of this._emitter.eventNames())if(t===this._emitter.listeners(o))return}n===!0?this._emitter.once(e,t,i):this._emitter.addListener(e,t,i)}removeEventListeners(e,t){e?this._emitter.removeListener(e,t):this.removeAllEventListeners()}removeAllEventListeners(){this._emitter.removeAllListeners()}countEventListeners(e,t){if(e)return this._emitter.listeners(e).length;{let n=0;for(let r of this._emitter.eventNames())n+=this._emitter.listeners(r).length;return n}}emit(e,...t){this._emitter.emit(e,...t)}},rL={addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1,ResizeObserver:void 0,onpointerdown:!1,onpointermove:!1,onpointerup:!1,ontouchstart:!1,ontouchmove:!1,ontouchend:!1,onmousedown:!1,onmousemove:!1,onmouseup:!1,devicePixelRatio:1,scrollX:0,scrollY:0,location:{href:""},setTimeout:()=>0,clearTimeout:()=>{},setInterval:()=>0,clearInterval:()=>{},requestAnimationFrame:()=>0,cancelAnimationFrame:()=>{},getSelection:()=>null,matchMedia:e=>({matches:!1,media:e,onchange:()=>{},addEventListener:()=>{},removeEventListener:()=>{},addListener:()=>{},removeListener:()=>{},dispatchEvent:()=>!1}),innerHeight:0,innerWidth:0,SVGSVGElement:{},open:function(e,t,n){}},At=typeof L>"u"?rL:L,iL=e=>{setTimeout(e,1/60)},oL=(()=>At.requestAnimationFrame||iL)(),$1=e=>oL(e),ia=(()=>1/60)(),sL=class extends nL{constructor(e=!1){super(),R(this,"_started",!1),R(this,"_frame",0),R(this,"_frameTasks",[]),R(this,"tick",()=>{this._started&&($1(this.tick),this.emit("update",this._frame,ia),this.emit("render",this._frame,ia),this._processFrameTasks(),this._frame++)}),e&&this.start()}addFrameTask(e){this._frameTasks.push(e)}_processFrameTasks(){var e;let t=this._frameTasks,n=t.length;if(n!==0){for(let r=0;rQc.target,hasRestrictions:()=>{let e=Qc.target;return e==="CANVAS"||e==="EXPORT"}};var Ac=e=>({correct:(t,{delta:n,treeScale:r})=>{if(typeof t=="string"&&(t=parseFloat(t)),t===0)return"0px";let i=t;return n&&r&&(i=Math.round(t/n[e].scale/r[e]),i=Math.max(i,1)),i+"px"}});df({borderTopWidth:Ac("y"),borderLeftWidth:Ac("x"),borderRightWidth:Ac("x"),borderBottomWidth:Ac("y")});function pe(e,...t){var n,r;if(e)return;let i=Error("Assertion Error"+(t.length>0?": "+t.join(" "):""));if(i.stack)try{let o=i.stack.split(` `);(n=o[1])!=null&&n.includes("assert")?(o.splice(1,1),i.stack=o.join(` `)):(r=o[0])!=null&&r.includes("assert")&&(o.splice(0,1),i.stack=o.join(` `))}catch{}throw i}function St(e,t){throw t||new Error(e?`Unexpected value: ${e}`:"Application entered invalid state")}var Vo=b.createContext({getLayoutId:e=>null,persistLayoutIdCache:()=>{},top:!1,enabled:!0});function aL({children:e}){if(D(Vo).top)return C(Me,{children:e});let n=A({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=A({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=A(new Set).current,o=ye(({id:l,name:c,duplicatedFrom:u})=>{if(!l)return null;let f=c?"byName":"byId",d=n.current[f][l];if(d)return d;let m=c||l;if(!u&&!i.has(m)&&(!n.current.byLayoutId[m]||n.current.byLayoutId[m]===m))return n.current.count[f][m]===void 0&&(n.current.count[f][m]=0,n.current.byLayoutId[m]=m,r.current[f][l]=m),i.add(m),m;let y;if(u?.length)for(let w=u.length-1;w>=0;w--){let T=u[w];pe(!!T,"duplicatedId must be defined");let E=n.current[f][T],I=n.current.byLastId[T];if(I&&!y){let B=n.current.byLayoutId[I],J=!B||B===c;I&&!i.has(I)&&(!c||J)&&(y=[I,T])}let F=E?n.current.byLayoutId[E]:void 0,z=!F||F===c;if(E&&!i.has(E)&&(!c||z))return r.current[f][l]=E,r.current.byLastId[T]=E,i.add(E),E}let v=n.current.byLastId[l];if(v&&!i.has(v))return i.add(v),r.current.byId[l]=v,v;if(y){let[w,T]=y;return r.current[f][l]=w,r.current.byLastId[T]=w,i.add(w),w}let S=n.current.byPossibleId[l];if(S&&!i.has(S))return i.add(S),r.current.byId[l]=S,S;let p=u?.[0],h=c||p||l,g=(n.current.count[f][h]??-1)+1,{layoutId:x,value:k}=lL(h,g,i);if(n.current.count[f][h]=k,r.current[f][l]=x,u?.length&&!c){let w=u[u.length-1];if(w&&(r.current.byLastId[w]=x),u.length>1)for(let T=0;T{n.current={byId:{...n.current.byId,...r.current.byId},byLastId:{...n.current.byLastId,...r.current.byLastId},byPossibleId:{...n.current.byPossibleId,...r.current.byPossibleId},byName:{...n.current.byName,...r.current.byName},byLastName:{...n.current.byLastName,...r.current.byLastName},byLayoutId:{...n.current.byLayoutId,...r.current.byLayoutId},count:{...n.current.count,byName:{}}},r.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),a=A({getLayoutId:o,persistLayoutIdCache:s,top:!0,enabled:!0}).current;return C(Vo.Provider,{value:a,children:e})}function lL(e,t,n){let r=t,i=r?`${e}-${r}`:e;for(;n.has(i);)r++,i=`${e}-${r}`;return{layoutId:i,value:r}}function cL({enabled:e=!0,...t}){let n=D(Vo),r=me(()=>({...n,enabled:e}),[e]);return C(Vo.Provider,{...t,value:r})}function En(e){let t=A(null);return t.current===null&&(t.current=e()),t.current}var uL={background:void 0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",lineHeight:"1.4em",textOverflow:"ellipsis",overflow:"hidden",minHeight:0,width:"100%",height:"100%"},fL=(()=>({...uL,border:"1px solid rgba(149, 149, 149, 0.15)",borderRadius:6,fontSize:"12px",backgroundColor:"rgba(149, 149, 149, 0.1)",color:"#a5a5a5"}))(),ew={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",flexShrink:0,padding:"0 10px"},dL=(()=>({...ew,fontWeight:500}))(),hL=(()=>({...ew,whiteSpace:"pre",maxHeight:"calc(50% - calc(20px * var(--udaypsInternalCanvas-canvasPlaceholderContentScaleFactor, 1)))",WebkitMaskImage:"linear-gradient(to bottom, black 80%, transparent 100%)"}))();function zz(e){let{error:t,file:n}=e,r=n?`Error in ${pL(n)}`:"Error",i=t instanceof Error?t.message:""+t;return le("div",{style:fL,children:[C("div",{className:"text",style:dL,children:r}),i&&C("div",{className:"text",style:hL,children:i})]})}function pL(e){return e.startsWith("./")?e.replace("./",""):e}function q(e){return typeof e=="number"&&isFinite(e)}function mL(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Hc(e){return typeof e!="string"&&typeof e!="number"}function jc(e){return e!==null&&typeof e<"u"&&typeof e!="boolean"&&!mL(e)}function vL(e){return e*(Math.PI/180)}var fn=(()=>{function e(t,n){return{a:t,b:n}}return e.offset=(t,n)=>{let r=Kt.angleFromX(t.a,t.b),i=vL(r),o=n*Math.sin(i),s=n*Math.cos(i);return e({x:t.a.x+o,y:t.a.y-s},{x:t.b.x+o,y:t.b.y-s})},e.intersection=(t,n,r)=>{let i=t.a.x,o=t.a.y,s=t.b.x,a=t.b.y,l=n.a.x,c=n.a.y,u=n.b.x,f=n.b.y,d=(u-l)*(c-o)-(f-c)*(l-i),m=(u-l)*(a-o)-(f-c)*(s-i),y=(s-i)*(c-o)-(a-o)*(l-i);if(d===0&&m===0||m===0)return null;let v=d/m,S=y/m;return r&&(v<0||v>1||S<0||S>1)?null:{x:i+v*(s-i),y:o+v*(a-o)}},e.intersectionAngle=(t,n)=>{let r=t.b.x-t.a.x,i=t.b.y-t.a.y,o=n.b.x-n.a.x,s=n.b.y-n.a.y;return Math.atan2(r*s-i*o,r*o+i*s)*(180/Math.PI)},e.isOrthogonal=t=>t.a.x===t.b.x||t.a.y===t.b.y,e.perpendicular=(t,n)=>{let r=t.a.x-t.b.x,i=t.a.y-t.b.y,o=Kt(n.x-i,n.y+r);return e(o,n)},e.projectPoint=(t,n)=>{let r=e.perpendicular(t,n);return e.intersection(t,r)},e.pointAtPercentDistance=(t,n)=>{let r=e.distance(t),i=n*r/r;return{x:i*t.b.x+(1-i)*t.a.x,y:i*t.b.y+(1-i)*t.a.y}},e.distance=t=>Kt.distance(t.a,t.b),e})(),K={equals:function(e,t){return e===t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},atOrigin:e=>({...e,x:0,y:0}),fromTwoPoints:(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}),fromRect:e=>({x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}),multiply:(e,t)=>({x:e.x*t,y:e.y*t,width:e.width*t,height:e.height*t}),divide:(e,t)=>K.multiply(e,1/t),offset:(e,t)=>{let n=typeof t.x=="number"?t.x:0,r=typeof t.y=="number"?t.y:0;return{...e,x:e.x+n,y:e.y+r}},inflate:(e,t)=>{if(t===0)return e;let n=2*t;return{x:e.x-t,y:e.y-t,width:e.width+n,height:e.height+n}},pixelAligned:e=>{let t=Math.round(e.x),n=Math.round(e.y),r=Math.round(e.x+e.width),i=Math.round(e.y+e.height),o=Math.max(r-t,0),s=Math.max(i-n,0);return{x:t,y:n,width:o,height:s}},halfPixelAligned:e=>{let t=Math.round(e.x*2)/2,n=Math.round(e.y*2)/2,r=Math.round((e.x+e.width)*2)/2,i=Math.round((e.y+e.height)*2)/2,o=Math.max(r-t,1),s=Math.max(i-n,1);return{x:t,y:n,width:o,height:s}},round:(e,t=0)=>{let n=Oc(e.x,t),r=Oc(e.y,t),i=Oc(e.width,t),o=Oc(e.height,t);return{x:n,y:r,width:i,height:o}},roundToOutside:e=>{let t=Math.floor(e.x),n=Math.floor(e.y),r=Math.ceil(e.x+e.width),i=Math.ceil(e.y+e.height),o=Math.max(r-t,0),s=Math.max(i-n,0);return{x:t,y:n,width:o,height:s}},minX:e=>e.x,maxX:e=>e.x+e.width,minY:e=>e.y,maxY:e=>e.y+e.height,positions:e=>({minX:e.x,midX:e.x+e.width/2,maxX:K.maxX(e),minY:e.y,midY:e.y+e.height/2,maxY:K.maxY(e)}),center:e=>({x:e.x+e.width/2,y:e.y+e.height/2}),boundingRectFromPoints:e=>{let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let o=0;o{let[t,n,r,i]=e,{x:o,y:s}=t,a=Kt.distance(t,n),l=Kt.distance(t,i);return{x:o,y:s,width:a,height:l}},merge:(...e)=>{let t={x:Math.min(...e.map(K.minX)),y:Math.min(...e.map(K.minY))},n={x:Math.max(...e.map(K.maxX)),y:Math.max(...e.map(K.maxY))};return K.fromTwoPoints(t,n)},intersection:(e,t)=>{let n=Math.max(e.x,t.x),r=Math.min(e.x+e.width,t.x+t.width),i=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);return{x:n,y:i,width:r-n,height:o-i}},points:e=>[{x:K.minX(e),y:K.minY(e)},{x:K.minX(e),y:K.maxY(e)},{x:K.maxX(e),y:K.minY(e)},{x:K.maxX(e),y:K.maxY(e)}],pointsAtOrigin:e=>[{x:0,y:0},{x:e.width,y:0},{x:e.width,y:e.height},{x:0,y:e.height}],transform:(e,t)=>{let{x:n,y:r}=t.transformPoint({x:e.x,y:e.y}),{x:i,y:o}=t.transformPoint({x:e.x+e.width,y:e.y}),{x:s,y:a}=t.transformPoint({x:e.x+e.width,y:e.y+e.height}),{x:l,y:c}=t.transformPoint({x:e.x,y:e.y+e.height}),u=Math.min(n,i,s,l),f=Math.max(n,i,s,l)-u,d=Math.min(r,o,a,c),m=Math.max(r,o,a,c)-d;return{x:u,y:d,width:f,height:m}},containsPoint:(e,t)=>!(t.xK.maxX(e)||t.yK.maxY(e)||isNaN(e.x)||isNaN(e.y)),containsRect:(e,t)=>{for(let n of K.points(t))if(!K.containsPoint(e,n))return!1;return!0},toCSS:e=>({display:"block",transform:`translate(${e.x}px, ${e.y}px)`,width:`${e.width}px`,height:`${e.height}px`}),inset:(e,t)=>({x:e.x+t,y:e.y+t,width:Math.max(0,e.width-2*t),height:Math.max(0,e.height-2*t)}),intersects:(e,t)=>!(t.x>=K.maxX(e)||K.maxX(t)<=e.x||t.y>=K.maxY(e)||K.maxY(t)<=e.y),overlapHorizontally:(e,t)=>{let n=K.maxX(e),r=K.maxX(t);return n>t.x&&r>e.x},overlapVertically:(e,t)=>{let n=K.maxY(e),r=K.maxY(t);return n>t.y&&r>e.y},doesNotIntersect:(e,t)=>t.find(n=>K.intersects(n,e))===void 0,isEqual:(e,t)=>K.equals(e,t),cornerPoints:e=>{let t=e.x,n=e.x+e.width,r=e.y,i=e.y+e.height;return[{x:t,y:r},{x:n,y:r},{x:n,y:i},{x:t,y:i}]},midPoints:e=>{let t=e.x,n=e.x+e.width/2,r=e.x+e.width,i=e.y,o=e.y+e.height/2,s=e.y+e.height;return[{x:n,y:i},{x:r,y:o},{x:n,y:s},{x:t,y:o}]},pointDistance:(e,t)=>{let n=0,r=0;return t.xK.maxX(e)&&(n=t.x-K.maxX(e)),t.yK.maxY(e)&&(r=t.y-K.maxY(e)),Kt.distance({x:n,y:r},{x:0,y:0})},fromAny:(e,t={x:0,y:0,width:0,height:0})=>({x:e.x||t.x,y:e.y||t.y,width:e.width||t.width,height:e.height||t.height}),delta:(e,t)=>{let n={x:K.minX(e),y:K.minY(e)},r={x:K.minX(t),y:K.minY(t)};return{x:n.x-r.x,y:n.y-r.y}},withMinSize:(e,t)=>{let{width:n,height:r}=t,i=e.width-n,o=e.height-r;return{width:Math.max(e.width,n),height:Math.max(e.height,r),x:e.width{let n=K.minX(e),r=K.minY(e),i=K.maxX(e),o=K.maxY(e);for(let s of t)if(s.xi||s.yo)return!0;return!1},edges:e=>{let[t,n,r,i]=K.cornerPoints(e);return[fn(t,n),fn(n,r),fn(r,i),fn(i,t)]},rebaseRectOnto:(e,t,n,r)=>{let i={...e};switch(n){case"bottom":case"top":switch(r){case"start":i.x=t.x;break;case"center":i.x=t.x+t.width/2-e.width/2;break;case"end":i.x=t.x+t.width-e.width;break;default:St(r)}break;case"left":i.x=t.x-e.width;break;case"right":i.x=t.x+t.width;break;default:St(n)}switch(n){case"left":case"right":switch(r){case"start":i.y=t.y;break;case"center":i.y=t.y+t.height/2-e.height/2;break;case"end":i.y=t.y+t.height-e.height;break;default:St(r)}break;case"top":i.y=t.y-e.height;break;case"bottom":i.y=t.y+t.height;break;default:St(n)}return i}};var tw={quickfix:e=>((e.widthType===2||e.heightType===2)&&(e.aspectRatio=null),q(e.aspectRatio)&&(e.left&&e.right&&(e.widthType=0),e.top&&e.bottom&&(e.heightType=0),e.left&&e.right&&e.top&&e.bottom&&(e.bottom=!1),e.widthType!==0&&e.heightType!==0&&(e.heightType=0)),e.left&&e.right&&((e.fixedSize||e.widthType===2||q(e.maxWidth))&&(e.right=!1),e.widthType=0),e.top&&e.bottom&&((e.fixedSize||e.heightType===2||q(e.maxHeight))&&(e.bottom=!1),e.heightType=0),e)};function Zc(e){if(typeof e=="string"){let t=e.trim();if(t==="auto")return 2;if(t.endsWith("fr"))return 3;if(t.endsWith("%"))return 1;if(t.endsWith("vw")||t.endsWith("vh"))return 4}return 0}var nw={fromProperties:e=>{let{left:t,right:n,top:r,bottom:i,width:o,height:s,centerX:a,centerY:l,aspectRatio:c,autoSize:u}=e,f=tw.quickfix({left:q(t)||Cn(t),right:q(n)||Cn(n),top:q(r)||Cn(r),bottom:q(i)||Cn(i),widthType:Zc(o),heightType:Zc(s),aspectRatio:c||null,fixedSize:u===!0}),d=null,m=null,y=0,v=0;if(f.widthType!==0&&typeof o=="string"){let h=parseFloat(o);o.endsWith("fr")?(y=3,d=h):o==="auto"?y=2:(y=1,d=h/100)}else o!==void 0&&typeof o!="string"&&(d=Ke.getNumber(o));if(f.heightType!==0&&typeof s=="string"){let h=parseFloat(s);s.endsWith("fr")?(v=3,m=h):s==="auto"?v=2:(v=1,m=parseFloat(s)/100)}else s!==void 0&&typeof s!="string"&&(m=Ke.getNumber(s));let S=.5,p=.5;return a&&(S=parseFloat(a)/100),l&&(p=parseFloat(l)/100),{left:f.left?Ke.getNumber(t):null,right:f.right?Ke.getNumber(n):null,top:f.top?Ke.getNumber(r):null,bottom:f.bottom?Ke.getNumber(i):null,widthType:y,heightType:v,width:d,height:m,aspectRatio:f.aspectRatio||null,centerAnchorX:S,centerAnchorY:p}},toSize:(e,t,n,r)=>{let i=null,o=null,s=t?.sizing?Ke.getNumber(t?.sizing.width):null,a=t?.sizing?Ke.getNumber(t?.sizing.height):null,l=N1(e.left,e.right);if(s&&q(l))i=s-l;else if(n&&e.widthType===2)i=n.width;else if(q(e.width))switch(e.widthType){case 0:i=e.width;break;case 3:i=r?r.freeSpaceInParent.width/r.freeSpaceUnitDivisor.width*e.width:null;break;case 1:case 4:s&&(i=s*e.width);break;case 2:break;default:St(e.widthType)}let c=N1(e.top,e.bottom);if(a&&q(c))o=a-c;else if(n&&e.heightType===2)o=n.height;else if(q(e.height))switch(e.heightType){case 0:o=e.height;break;case 3:o=r?r.freeSpaceInParent.height/r.freeSpaceUnitDivisor.height*e.height:null;break;case 1:case 4:a&&(o=a*e.height);break;case 2:break;default:St(e.heightType)}return SL(i,o,e,{height:a??0,width:s??0},t?.viewport)},toRect:(e,t=null,n=null,r=!1,i=null)=>{let o=e.left||0,s=e.top||0,{width:a,height:l}=nw.toSize(e,t,n,i),c=t?.positioning??null,u=c?Ke.getNumber(c.width):null,f=c?Ke.getNumber(c.height):null;e.left!==null?o=e.left:u&&e.right!==null?o=u-e.right-a:u&&(o=e.centerAnchorX*u-a/2),e.top!==null?s=e.top:f&&e.bottom!==null?s=f-e.bottom-l:f&&(s=e.centerAnchorY*f-l/2);let d={x:o,y:s,width:a,height:l};return r?K.pixelAligned(d):d}},gL=200,yL=200;function Jc(e,t,n,r){if(typeof t=="string"){if(t.endsWith("%")&&n)switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*n.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*n.height;default:break}if(t.endsWith("vh")&&r)switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*r.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*r.height;default:break}return parseFloat(t)}return t}function bL(e,t,n,r){return t.minHeight&&(e=Math.max(Jc("minHeight",t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(Jc("maxHeight",t.maxHeight,n,r),e)),e}function xL(e,t,n,r){return t.minWidth&&(e=Math.max(Jc("minWidth",t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(Jc("maxWidth",t.maxWidth,n,r),e)),e}function SL(e,t,n,r,i){let o=xL(q(e)?e:gL,n,r,i),s=bL(q(t)?t:yL,n,r,i);return q(n.aspectRatio)&&n.aspectRatio>0&&(q(n.left)&&q(n.right)?s=o/n.aspectRatio:q(n.top)&&q(n.bottom)?o=s*n.aspectRatio:n.widthType!==0?s=o/n.aspectRatio:o=s*n.aspectRatio),{width:o,height:s}}function N1(e,t){return!q(e)||!q(t)?null:e+t}function wL(e){return typeof e.right=="string"||typeof e.bottom=="string"||typeof e.left=="string"&&(!e.center||e.center==="y")||typeof e.top=="string"&&(!e.center||e.center==="x")}function ka(e){return!e._constraints||wL(e)?!1:e._constraints.enabled}function kL(e){let{size:t}=e,{width:n,height:r}=e;return q(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),q(n)&&q(r)?{width:n,height:r}:null}function CL(e){let t=kL(e);if(t===null)return null;let{left:n,top:r}=e;return q(n)&&q(r)?{x:n,y:r,...t}:null}function fa(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!ka(e)||r)return CL(e);let i=TL(e),o=EL(t),s=o?{sizing:o,positioning:o,viewport:null}:null;return nw.toRect(i,s,null,n,null)}function TL(e){let{left:t,right:n,top:r,bottom:i,center:o,_constraints:s,size:a}=e,{width:l,height:c}=e;l===void 0&&(l=a),c===void 0&&(c=a);let{aspectRatio:u,autoSize:f}=s,d=tw.quickfix({left:q(t),right:q(n),top:q(r),bottom:q(i),widthType:Zc(l),heightType:Zc(c),aspectRatio:u||null,fixedSize:f===!0}),m=null,y=null,v=0,S=0;if(d.widthType!==0&&typeof l=="string"){let g=parseFloat(l);l.endsWith("fr")?(v=3,m=g):l==="auto"?v=2:(v=1,m=g/100)}else l!==void 0&&typeof l!="string"&&(m=l);if(d.heightType!==0&&typeof c=="string"){let g=parseFloat(c);c.endsWith("fr")?(S=3,y=g):c==="auto"?S=2:(S=1,y=parseFloat(c)/100)}else c!==void 0&&typeof c!="string"&&(y=c);let p=.5,h=.5;return(o===!0||o==="x")&&(d.left=!1,typeof t=="string"&&(p=parseFloat(t)/100)),(o===!0||o==="y")&&(d.top=!1,typeof r=="string"&&(h=parseFloat(r)/100)),{left:d.left?t:null,right:d.right?n:null,top:d.top?r:null,bottom:d.bottom?i:null,widthType:v,heightType:S,width:m,height:y,aspectRatio:d.aspectRatio||null,centerAnchorX:p,centerAnchorY:h,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}var rw=b.createContext({parentSize:0});function EL(e){return e===0||e===1||e===2?null:e}function Ca(){return b.useContext(rw).parentSize}function iw(e){return typeof e=="object"}var RL=e=>{let t=Ca(),{parentSize:n,children:r}=e,i=b.useMemo(()=>({parentSize:n}),[PL(n),_L(n)]);return t===1?r?C(Me,{children:r}):null:C(rw.Provider,{value:i,children:r})};function PL(e){return iw(e)?e.width:e}function _L(e){return iw(e)?e.height:e}function FL(e,t){return C(RL,{parentSize:t,children:e})}function IL(e){let t=Ca();return fa(e,t,!0)}var LL=(e=>(e.Boolean="boolean",e.Number="number",e.String="string",e.RichText="richtext",e.FusedNumber="fusednumber",e.Enum="enum",e.SegmentedEnum="segmentedenum",e.Color="color",e.Image="image",e.ResponsiveImage="responsiveimage",e.File="file",e.ComponentInstance="componentinstance",e.Array="array",e.EventHandler="eventhandler",e.Transition="transition",e.BoxShadow="boxshadow",e.Link="link",e.Date="date",e.Object="object",e.Font="font",e.PageScope="pagescope",e.ScrollSectionRef="scrollsectionref",e.CustomCursor="customcursor",e.Border="border",e.Cursor="cursor",e.Padding="padding",e.BorderRadius="borderradius",e))(LL||{}),gp;function ML(){if(gp!==void 0)return gp;let e=document.createElement("div");Object.assign(e.style,{position:"absolute",display:"flex",flexDirection:"column",rowGap:"1px"}),e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);let t=e.scrollHeight===1;return e.parentNode&&e.parentNode.removeChild(e),gp=t,t}var Fi="flexbox-gap-not-supported",H1=!1;function Wz(){H1||(H1=!0,!ML()&&document.body.classList.add(Fi))}var OL=` [data-udayps-component-type="DeprecatedRichText"] p, [data-udayps-component-type="DeprecatedRichText"] div, [data-udayps-component-type="DeprecatedRichText"] h1, [data-udayps-component-type="DeprecatedRichText"] h2, [data-udayps-component-type="DeprecatedRichText"] h3, [data-udayps-component-type="DeprecatedRichText"] h4, [data-udayps-component-type="DeprecatedRichText"] h5, [data-udayps-component-type="DeprecatedRichText"] h6, [data-udayps-component-type="DeprecatedRichText"] li, [data-udayps-component-type="DeprecatedRichText"] ol, [data-udayps-component-type="DeprecatedRichText"] ul, [data-udayps-component-type="DeprecatedRichText"] span:not([data-text-fill]) { font-family: var(--udayps-font-family, Inter, Inter Placeholder, sans-serif); font-style: var(--udayps-font-style, normal); font-weight: var(--udayps-font-weight, 400); color: var(--udayps-text-color, #000); font-size: var(--udayps-font-size, 16px); letter-spacing: var(--udayps-letter-spacing, 0); text-transform: var(--udayps-text-transform, none); text-decoration: var(--udayps-text-decoration, none); line-height: var(--udayps-line-height, 1.2em); text-align: var(--udayps-text-alignment, start); } `,DL=` [data-udayps-component-type="DeprecatedRichText"] p:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] div:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h1:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h2:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h3:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h4:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h5:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] h6:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] ol:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] ul:not(:first-child), [data-udayps-component-type="DeprecatedRichText"] .udayps-image:not(:first-child) { margin-top: var(--udayps-paragraph-spacing, 0); } `,AL=` [data-udayps-component-type="DeprecatedRichText"] span[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } `,VL=` [data-udayps-component-type="DeprecatedRichText"] a, [data-udayps-component-type="DeprecatedRichText"] a span:not([data-text-fill]) { font-family: var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-link-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-link-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-text-color, var(--udayps-text-color, #000)); font-size: var(--udayps-link-font-size, var(--udayps-font-size, 16px)); text-transform: var(--udayps-link-text-transform, var(--udayps-text-transform, none)); text-decoration: var(--udayps-link-text-decoration, var(--udayps-text-decoration, none)); } `,BL=` [data-udayps-component-type="DeprecatedRichText"] a:hover, [data-udayps-component-type="DeprecatedRichText"] a:hover span:not([data-text-fill]) { font-family: var(--udayps-link-hover-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--udayps-link-hover-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal))); font-weight: var(--udayps-link-hover-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400))); color: var(--udayps-link-hover-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000))); font-size: var(--udayps-link-hover-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))); text-transform: var(--udayps-link-hover-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none))); text-decoration: var(--udayps-link-hover-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none))); } `,zL=` a[data-udayps-page-link-current], a[data-udayps-page-link-current] span:not([data-text-fill]) { font-family: var(--udayps-link-current-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--udayps-link-current-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal))); font-weight: var(--udayps-link-current-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400))); color: var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000))); font-size: var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))); text-transform: var(--udayps-link-current-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none))); text-decoration: var(--udayps-link-current-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none))); } `,$L=` a[data-udayps-page-link-current]:hover, a[data-udayps-page-link-current]:hover span:not([data-text-fill]) { font-family: var(--udayps-link-hover-font-family, var(--udayps-link-current-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--udayps-link-hover-font-style, var(--udayps-link-current-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal)))); font-weight: var(--udayps-link-hover-font-weight, var(--udayps-link-current-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400)))); color: var(--udayps-link-hover-text-color, var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000)))); font-size: var(--udayps-link-hover-font-size, var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px)))); text-transform: var(--udayps-link-hover-text-transform, var(--udayps-link-current-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none)))); text-decoration: var(--udayps-link-hover-text-decoration, var(--udayps-link-current-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none)))); } `,NL=` [data-udayps-component-type="DeprecatedRichText"] strong { font-weight: bolder; } `,HL=` [data-udayps-component-type="DeprecatedRichText"] em { font-style: italic; } `,jL=` [data-udayps-component-type="DeprecatedRichText"] .udayps-image { display: block; max-width: 100%; height: auto; } `,WL=` [data-udayps-component-type="DeprecatedRichText"] p, [data-udayps-component-type="DeprecatedRichText"] div, [data-udayps-component-type="DeprecatedRichText"] h1, [data-udayps-component-type="DeprecatedRichText"] h2, [data-udayps-component-type="DeprecatedRichText"] h3, [data-udayps-component-type="DeprecatedRichText"] h4, [data-udayps-component-type="DeprecatedRichText"] h5, [data-udayps-component-type="DeprecatedRichText"] h6 { margin: 0; padding: 0; } `,UL=` [data-udayps-component-type="DeprecatedRichText"] .text-styles-preset-reset { --udayps-font-family: Inter, Inter Placeholder, sans-serif; --udayps-font-style: normal; --udayps-font-weight: 500; --udayps-text-color: #000; --udayps-font-size: 16px; --udayps-letter-spacing: 0; --udayps-text-transform: none; --udayps-text-decoration: none; --udayps-line-height: 1.2em; --udayps-text-alignment: start; } `,XL=` [data-udayps-component-type="DeprecatedRichText"] ul, [data-udayps-component-type="DeprecatedRichText"] ol { display: table; width: 100%; padding-left: 0; margin: 0; } `,YL=` [data-udayps-component-type="DeprecatedRichText"] li { display: table-row; counter-increment: list-item; list-style: none; } `,GL=` [data-udayps-component-type="DeprecatedRichText"] ol > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: counter(list-item) "."; white-space: nowrap; } `,KL=` [data-udayps-component-type="DeprecatedRichText"] ul > li::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-right: 0.75ch; content: "\u2022"; } `,qL=['[data-udayps-component-type="DeprecatedRichText"] { cursor: inherit; }',UL,WL,OL,DL,AL,VL,BL,zL,$L,NL,HL,jL,XL,YL,GL,KL],QL=[` p.udayps-text, div.udayps-text, h1.udayps-text, h2.udayps-text, h3.udayps-text, h4.udayps-text, h5.udayps-text, h6.udayps-text, ol.udayps-text, ul.udayps-text { margin: 0; padding: 0; } `,` p.udayps-text, div.udayps-text, h1.udayps-text, h2.udayps-text, h3.udayps-text, h4.udayps-text, h5.udayps-text, h6.udayps-text, li.udayps-text, ol.udayps-text, ul.udayps-text, span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-font-family, Inter, Inter Placeholder, sans-serif); font-style: var(--udayps-font-style, normal); font-weight: var(--udayps-font-weight, 400); color: var(--udayps-text-color, #000); font-size: calc(var(--udayps-font-size, 16px) * var(--udayps-font-size-scale, 1)); letter-spacing: var(--udayps-letter-spacing, 0); text-transform: var(--udayps-text-transform, none); text-decoration: var(--udayps-text-decoration, none); line-height: var(--udayps-line-height, 1.2em); text-align: var(--udayps-text-alignment, start); -webkit-text-stroke-width: var(--udayps-text-stroke-width, initial); -webkit-text-stroke-color: var(--udayps-text-stroke-color, initial); } `,` .udayps-fit-text .udayps-text { white-space: nowrap; white-space-collapse: preserve; } `,` strong.udayps-text { font-family: var(--udayps-font-family-bold); font-style: var(--udayps-font-style-bold); font-weight: var(--udayps-font-weight-bold, bolder); } `,` em.udayps-text { font-family: var(--udayps-font-family-italic); font-style: var(--udayps-font-style-italic, italic); font-weight: var(--udayps-font-weight-italic); } `,` em.udayps-text > strong.udayps-text { font-family: var(--udayps-font-family-bold-italic); font-style: var(--udayps-font-style-bold-italic, italic); font-weight: var(--udayps-font-weight-bold-italic, bolder); } `,` p.udayps-text:not(:first-child), div.udayps-text:not(:first-child), h1.udayps-text:not(:first-child), h2.udayps-text:not(:first-child), h3.udayps-text:not(:first-child), h4.udayps-text:not(:first-child), h5.udayps-text:not(:first-child), h6.udayps-text:not(:first-child), ol.udayps-text:not(:first-child), ul.udayps-text:not(:first-child), .udayps-image.udayps-text:not(:first-child) { margin-top: var(--udayps-paragraph-spacing, 0); } `,` li.udayps-text > ul.udayps-text:nth-child(2), li.udayps-text > ol.udayps-text:nth-child(2) { margin-top: 0; } `,` .udayps-text[data-text-fill] { display: inline-block; background-clip: text; -webkit-background-clip: text; /* make this a transparent color if you want to visualise the clipping */ -webkit-text-fill-color: transparent; padding: max(0em, calc(calc(1.3em - var(--udayps-line-height, 1.3em)) / 2)); margin: min(0em, calc(calc(1.3em - var(--udayps-line-height, 1.3em)) / -2)); } `,` code.udayps-text, code.udayps-text span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-code-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-code-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-code-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-code-text-color, var(--udayps-text-color, #000)); font-size: calc(var(--udayps-font-size, 16px) * var(--udayps-font-size-scale, 1)); letter-spacing: var(--udayps-letter-spacing, 0); line-height: var(--udayps-line-height, 1.2em); } `,` a.udayps-text, a.udayps-text span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-link-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-link-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-text-color, var(--udayps-text-color, #000)); font-size: calc(var(--udayps-link-font-size, var(--udayps-font-size, 16px)) * var(--udayps-font-size-scale, 1)); text-transform: var(--udayps-link-text-transform, var(--udayps-text-transform, none)); text-decoration: var(--udayps-link-text-decoration, var(--udayps-text-decoration, none)); /* Cursor inherit to overwrite the user agent stylesheet on rich text links. */ cursor: var(--udayps-custom-cursors, pointer); } `,` code.udayps-text a.udayps-text, code.udayps-text a.udayps-text span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-code-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-code-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-code-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-text-color, var(--udayps-code-text-color, var(--udayps-text-color, #000))); font-size: calc(var(--udayps-link-font-size, var(--udayps-font-size, 16px)) * var(--udayps-font-size-scale, 1)); } `,` a.udayps-text:hover, a.udayps-text:hover span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-link-hover-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--udayps-link-hover-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal))); font-weight: var(--udayps-link-hover-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400))); color: var(--udayps-link-hover-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000))); font-size: calc(var(--udayps-link-hover-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))) * var(--udayps-font-size-scale, 1)); text-transform: var(--udayps-link-hover-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none))); text-decoration: var(--udayps-link-hover-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none))); } `,` code.udayps-text a.udayps-text:hover, code.udayps-text a.udayps-text:hover span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-code-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-code-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-code-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-hover-text-color, var(--udayps-link-text-color, var(--udayps-code-text-color, var(--udayps-text-color, #000)))); font-size: calc(var(--udayps-link-hover-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))) * var(--udayps-font-size-scale, 1)); } `,` a.udayps-text[data-udayps-page-link-current], a.udayps-text[data-udayps-page-link-current] span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-link-current-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif))); font-style: var(--udayps-link-current-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal))); font-weight: var(--udayps-link-current-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400))); color: var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000))); font-size: calc(var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))) * var(--udayps-font-size-scale, 1)); text-transform: var(--udayps-link-current-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none))); text-decoration: var(--udayps-link-current-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none))); } `,` code.udayps-text a.udayps-text[data-udayps-page-link-current], code.udayps-text a.udayps-text[data-udayps-page-link-current] span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-code-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-code-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-code-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-code-text-color, var(--udayps-text-color, #000)))); font-size: calc(var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px))) * var(--udayps-font-size-scale, 1)); } `,` a.udayps-text[data-udayps-page-link-current]:hover, a.udayps-text[data-udayps-page-link-current]:hover span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-link-hover-font-family, var(--udayps-link-current-font-family, var(--udayps-link-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)))); font-style: var(--udayps-link-hover-font-style, var(--udayps-link-current-font-style, var(--udayps-link-font-style, var(--udayps-font-style, normal)))); font-weight: var(--udayps-link-hover-font-weight, var(--udayps-link-current-font-weight, var(--udayps-link-font-weight, var(--udayps-font-weight, 400)))); color: var(--udayps-link-hover-text-color, var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-text-color, #000)))); font-size: calc(var(--udayps-link-hover-font-size, var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px)))) * var(--udayps-font-size-scale, 1)); text-transform: var(--udayps-link-hover-text-transform, var(--udayps-link-current-text-transform, var(--udayps-link-text-transform, var(--udayps-text-transform, none)))); text-decoration: var(--udayps-link-hover-text-decoration, var(--udayps-link-current-text-decoration, var(--udayps-link-text-decoration, var(--udayps-text-decoration, none)))); } `,` code.udayps-text a.udayps-text[data-udayps-page-link-current]:hover, code.udayps-text a.udayps-text[data-udayps-page-link-current]:hover span.udayps-text:not([data-text-fill]) { font-family: var(--udayps-code-font-family, var(--udayps-font-family, Inter, Inter Placeholder, sans-serif)); font-style: var(--udayps-code-font-style, var(--udayps-font-style, normal)); font-weight: var(--udayps-code-font-weight, var(--udayps-font-weight, 400)); color: var(--udayps-link-hover-text-color, var(--udayps-link-current-text-color, var(--udayps-link-text-color, var(--udayps-code-text-color, var(--udayps-text-color, #000))))); font-size: calc(var(--udayps-link-hover-font-size, var(--udayps-link-current-font-size, var(--udayps-link-font-size, var(--udayps-font-size, 16px)))) * var(--udayps-font-size-scale, 1)); } `,` .udayps-image.udayps-text { display: block; max-width: 100%; height: auto; } `,` .text-styles-preset-reset.udayps-text { --udayps-font-family: Inter, Inter Placeholder, sans-serif; --udayps-font-style: normal; --udayps-font-weight: 500; --udayps-text-color: #000; --udayps-font-size: 16px; --udayps-letter-spacing: 0; --udayps-text-transform: none; --udayps-text-decoration: none; --udayps-line-height: 1.2em; --udayps-text-alignment: start; } `,` ol.udayps-text { --list-style-type: decimal; } `,` ul.udayps-text, ol.udayps-text { display: table; width: 100%; } `,` li.udayps-text { display: table-row; counter-increment: list-item; list-style: none; } `,` ol.udayps-text > li.udayps-text::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-inline-end: 0.75ch; content: counter(list-item, var(--list-style-type)) "."; white-space: nowrap; } `,` ul.udayps-text > li.udayps-text::before { display: table-cell; width: 2.25ch; box-sizing: border-box; padding-inline-end: 0.75ch; content: "\u2022"; } `,` .udayps-text-module[style*="aspect-ratio"] > :first-child { width: 100%; } `,` @supports not (aspect-ratio: 1) { .udayps-text-module[style*="aspect-ratio"] { position: relative; } } `,` @supports not (aspect-ratio: 1) { .udayps-text-module[style*="aspect-ratio"]::before { content: ""; display: block; padding-bottom: calc(100% / calc(var(--aspect-ratio))); } } `,` @supports not (aspect-ratio: 1) { .udayps-text-module[style*="aspect-ratio"] > :first-child { position: absolute; top: 0; left: 0; height: 100%; } } `],ZL=new Set,yp;function ow(e,t,n=ZL){if(!(!e||n.has(e)||typeof document>"u")){if(n.add(e),!t){if(!yp){let r=document.createElement("style");if(r.setAttribute("type","text/css"),r.setAttribute("data-udayps-css","true"),!document.head){console.warn("not injecting CSS: the document is missing a element");return}if(document.head.appendChild(r),r.sheet)yp=r.sheet;else{console.warn("not injecting CSS: injected