(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ra=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld={exports:{}},$s={},ad={exports:{}},U={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var li=Symbol.for("react.element"),ag=Symbol.for("react.portal"),ug=Symbol.for("react.fragment"),cg=Symbol.for("react.strict_mode"),fg=Symbol.for("react.profiler"),dg=Symbol.for("react.provider"),hg=Symbol.for("react.context"),pg=Symbol.for("react.forward_ref"),mg=Symbol.for("react.suspense"),gg=Symbol.for("react.memo"),vg=Symbol.for("react.lazy"),Ru=Symbol.iterator;function yg(e){return e===null||typeof e!="object"?null:(e=Ru&&e[Ru]||e["@@iterator"],typeof e=="function"?e:null)}var ud={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},cd=Object.assign,fd={};function er(e,t,n){this.props=e,this.context=t,this.refs=fd,this.updater=n||ud}er.prototype.isReactComponent={};er.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")};er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function dd(){}dd.prototype=er.prototype;function ia(e,t,n){this.props=e,this.context=t,this.refs=fd,this.updater=n||ud}var sa=ia.prototype=new dd;sa.constructor=ia;cd(sa,er.prototype);sa.isPureReactComponent=!0;var Vu=Array.isArray,hd=Object.prototype.hasOwnProperty,oa={current:null},pd={key:!0,ref:!0,__self:!0,__source:!0};function md(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)hd.call(t,r)&&!pd.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{}}function xd(){return typeof ue.useSyncExternalStore=="function"?ue.useSyncExternalStore(Fg,Og,zg):E.useContext(Vg)}const Pd=Symbol.for("react-aria.i18n.locale");function Td(){let e=typeof window<"u"&&window[Pd]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:yd(e)?"rtl":"ltr"}}let Ko=Td(),gr=new Set;function Nu(){Ko=Td();for(let e of gr)e(Ko)}function Ig(){let e=xd(),[t,n]=E.useState(Ko);return E.useEffect(()=>(gr.size===0&&window.addEventListener("languagechange",Nu),gr.add(n),()=>{gr.delete(n),gr.size===0&&window.removeEventListener("languagechange",Nu)}),[]),e?{locale:typeof window<"u"&&window[Pd]||"en-US",direction:"ltr"}:t}const kd=ue.createContext(null);function Bg(e){let{locale:t,children:n}=e,r=ue.useMemo(()=>({locale:t,direction:yd(t)?"rtl":"ltr"}),[t]);return ue.createElement(kd.Provider,{value:r},n)}function Ug(e){let{children:t}=e,n=Ig();return ue.createElement(kd.Provider,{value:n},t)}function Wg(e){let{locale:t,children:n}=e;return t?ue.createElement(Bg,{locale:t,children:n}):ue.createElement(Ug,{children:n})}function Hg(e){if(Kg())e.focus({preventScroll:!0});else{let t=Yg(e);e.focus(),Gg(t)}}let wi=null;function Kg(){if(wi==null){wi=!1;try{document.createElement("div").focus({get preventScroll(){return wi=!0,!0}})}catch{}}return wi}function Yg(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null)return!1;let n=(t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands;return Array.isArray(n)&&n.some(r=>e.test(r.brand))||e.test(window.navigator.userAgent)}function Cd(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function ai(e){let t=null;return()=>(t==null&&(t=e()),t)}const Yo=ai(function(){return Cd(/^Mac/i)}),Qg=ai(function(){return Cd(/^iPad/i)||Yo()&&navigator.maxTouchPoints>1}),Xg=ai(function(){return aa(/AppleWebKit/i)&&!Zg()}),Zg=ai(function(){return aa(/Chrome/i)}),qg=ai(function(){return aa(/Firefox/i)}),Jg=E.createContext({isNative:!0,open:tv,useHref:e=>e});function bg(e){let{children:t,navigate:n,useHref:r}=e,i=E.useMemo(()=>({isNative:!1,open:(s,o,l,a)=>{Ed(s,u=>{ev(u,o)?n(l,a):Or(u,o)})},useHref:r||(s=>s)}),[n,r]);return ue.createElement(Jg.Provider,{value:i},t)}function ev(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function Or(e,t,n=!0){var r,i;let{metaKey:s,ctrlKey:o,altKey:l,shiftKey:a}=t;qg()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Yo()?s=!0:o=!0);let u=Xg()&&Yo()&&!Qg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:s,ctrlKey:o,altKey:l,shiftKey:a}):new MouseEvent("click",{metaKey:s,ctrlKey:o,altKey:l,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});Or.isOpening=n,Hg(e),e.dispatchEvent(u),Or.isOpening=!1}Or.isOpening=!1;function Ed(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function tv(e,t){Ed(e,n=>Or(n,t))}var Md={exports:{}},Be={},Dd={exports:{}},Ad={};/** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */(function(e){function t(S,M){var A=S.length;S.push(M);e:for(;0>>1,B=S[z];if(0>>1;zi(ge,A))Mei(We,ge)?(S[z]=We,S[Me]=A,z=Me):(S[z]=ge,S[X]=A,z=X);else if(Mei(We,A))S[z]=We,S[Me]=A,z=Me;else break e}}return M}function i(S,M){var A=S.sortIndex-M.sortIndex;return A!==0?A:S.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,d=null,f=3,g=!1,v=!1,y=!1,T=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(S){for(var M=n(u);M!==null;){if(M.callback===null)r(u);else if(M.startTime<=S)r(u),M.sortIndex=M.expirationTime,t(a,M);else break;M=n(u)}}function w(S){if(y=!1,m(S),!v)if(n(a)!==null)v=!0,L(x);else{var M=n(u);M!==null&&_(w,M.startTime-S)}}function x(S,M){v=!1,y&&(y=!1,p(k),k=-1),g=!0;var A=f;try{for(m(M),d=n(a);d!==null&&(!(d.expirationTime>M)||S&&!F());){var z=d.callback;if(typeof z=="function"){d.callback=null,f=d.priorityLevel;var B=z(d.expirationTime<=M);M=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(a)&&r(a),m(M)}else r(a);d=n(a)}if(d!==null)var q=!0;else{var X=n(u);X!==null&&_(w,X.startTime-M),q=!1}return q}finally{d=null,f=A,g=!1}}var P=!1,D=null,k=-1,I=5,R=-1;function F(){return!(e.unstable_now()-RS||125z?(S.sortIndex=A,t(u,S),n(a)===null&&S===n(u)&&(y?(p(k),k=-1):y=!0,_(w,A-z))):(S.sortIndex=B,t(a,S),v||g||(v=!0,L(x))),S},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(S){var M=f;return function(){var A=f;f=M;try{return S.apply(this,arguments)}finally{f=A}}}})(Ad);Dd.exports=Ad;var nv=Dd.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var rv=E,Fe=nv;function C(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Go=Object.prototype.hasOwnProperty,iv=/^[: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]*$/,ju={},Ou={};function sv(e){return Go.call(Ou,e)?!0:Go.call(ju,e)?!1:iv.test(e)?Ou[e]=!0:(ju[e]=!0,!1)}function ov(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 lv(e,t,n,r){if(t===null||typeof t>"u"||ov(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 Ee(e,t,n,r,i,s,o){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=s,this.removeEmptyString=o}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new Ee(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new Ee(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new Ee(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new Ee(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){me[e]=new Ee(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new Ee(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new Ee(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new Ee(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new Ee(e,5,!1,e.toLowerCase(),null,!1,!1)});var ua=/[\-:]([a-z])/g;function ca(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(ua,ca);me[t]=new Ee(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(ua,ca);me[t]=new Ee(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(ua,ca);me[t]=new Ee(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new Ee("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new Ee(e,1,!1,e.toLowerCase(),null,!0,!0)});function fa(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` `+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{oo=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?vr(e):""}function av(e){switch(e.tag){case 5:return vr(e.type);case 16:return vr("Lazy");case 13:return vr("Suspense");case 19:return vr("SuspenseList");case 0:case 2:case 15:return e=lo(e.type,!1),e;case 11:return e=lo(e.type.render,!1),e;case 1:return e=lo(e.type,!0),e;default:return""}}function qo(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 Pn:return"Fragment";case xn:return"Portal";case Qo:return"Profiler";case da:return"StrictMode";case Xo:return"Suspense";case Zo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Rd:return(e.displayName||"Context")+".Consumer";case _d:return(e._context.displayName||"Context")+".Provider";case ha:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case pa:return t=e.displayName||null,t!==null?t:qo(e.type)||"Memo";case Lt:t=e._payload,e=e._init;try{return qo(e(t))}catch{}}return null}function uv(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 qo(t);case 8:return t===da?"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 Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cv(e){var t=$d(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=cv(e))}function Nd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$d(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ns(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 Jo(e,t){var n=t.checked;return te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(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 jd(e,t){t=t.checked,t!=null&&fa(e,"checked",t,!1)}function bo(e,t){jd(e,t);var n=Ht(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")?el(e,t.type,n):t.hasOwnProperty("defaultValue")&&el(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Iu(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 el(e,t,n){(t!=="number"||ns(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var yr=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var kr={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},fv=["Webkit","ms","Moz","O"];Object.keys(kr).forEach(function(e){fv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),kr[t]=kr[e]})});function Id(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||kr.hasOwnProperty(e)&&kr[e]?(""+t).trim():t+"px"}function Bd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Id(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dv=te({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 rl(e,t){if(t){if(dv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(C(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(C(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(C(61))}if(t.style!=null&&typeof t.style!="object")throw Error(C(62))}}function il(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 sl=null;function ma(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ol=null,Fn=null,In=null;function Wu(e){if(e=fi(e)){if(typeof ol!="function")throw Error(C(280));var t=e.stateNode;t&&(t=Fs(t),ol(e.stateNode,e.type,t))}}function Ud(e){Fn?In?In.push(e):In=[e]:Fn=e}function Wd(){if(Fn){var e=Fn,t=In;if(In=Fn=null,Wu(e),t)for(e=0;e>>=0,e===0?32:31-(Tv(e)/kv|0)|0}var Ti=64,ki=4194304;function wr(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function os(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=wr(l):(s&=o,s!==0&&(r=wr(s)))}else o=n&~i,o!==0?r=wr(o):s!==0&&(r=wr(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function Dv(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=Er),Ju=" ",bu=!1;function uh(e,t){switch(e){case"keyup":return ny.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Tn=!1;function iy(e,t){switch(e){case"compositionend":return ch(t);case"keypress":return t.which!==32?null:(bu=!0,Ju);case"textInput":return e=t.data,e===Ju&&bu?null:e;default:return null}}function sy(e,t){if(Tn)return e==="compositionend"||!Ta&&uh(e,t)?(e=lh(),Hi=Sa=$t=null,Tn=!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=rc(n)}}function ph(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ph(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mh(){for(var e=window,t=ns();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ns(e.document)}return t}function ka(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 py(e){var t=mh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ph(n.ownerDocument.documentElement,n)){if(r!==null&&ka(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||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=ic(n,s);var o=ic(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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,kn=null,dl=null,Dr=null,hl=!1;function sc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hl||kn==null||kn!==ns(r)||(r=kn,"selectionStart"in r&&ka(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Dr&&Kr(Dr,r)||(Dr=r,r=us(dl,"onSelect"),0Mn||(e.current=wl[Mn],wl[Mn]=null,Mn--)}function K(e,t){Mn++,wl[Mn]=e.current,e.current=t}var Kt={},Pe=Xt(Kt),_e=Xt(!1),dn=Kt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Kt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function fs(){G(_e),G(Pe)}function dc(e,t,n){if(Pe.current!==Kt)throw Error(C(168));K(Pe,t),K(_e,n)}function kh(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(C(108,uv(e)||"Unknown",i));return te({},n,r)}function ds(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Kt,dn=Pe.current,K(Pe,e),K(_e,_e.current),!0}function hc(e,t,n){var r=e.stateNode;if(!r)throw Error(C(169));n?(e=kh(e,t,dn),r.__reactInternalMemoizedMergedChildContext=e,G(_e),G(Pe),K(Pe,e)):G(_e),K(_e,n)}var mt=null,Is=!1,Po=!1;function Ch(e){mt===null?mt=[e]:mt.push(e)}function Ey(e){Is=!0,Ch(e)}function Zt(){if(!Po&&mt!==null){Po=!0;var e=0,t=H;try{var n=mt;for(H=1;e>=o,i-=o,gt=1<<32-rt(t)+i|n<k?(I=D,D=null):I=D.sibling;var R=f(p,D,m[k],w);if(R===null){D===null&&(D=I);break}e&&D&&R.alternate===null&&t(p,D),h=s(R,h,k),P===null?x=R:P.sibling=R,P=R,D=I}if(k===m.length)return n(p,D),Z&&en(p,k),x;if(D===null){for(;kk?(I=D,D=null):I=D.sibling;var F=f(p,D,R.value,w);if(F===null){D===null&&(D=I);break}e&&D&&F.alternate===null&&t(p,D),h=s(F,h,k),P===null?x=F:P.sibling=F,P=F,D=I}if(R.done)return n(p,D),Z&&en(p,k),x;if(D===null){for(;!R.done;k++,R=m.next())R=d(p,R.value,w),R!==null&&(h=s(R,h,k),P===null?x=R:P.sibling=R,P=R);return Z&&en(p,k),x}for(D=r(p,D);!R.done;k++,R=m.next())R=g(D,p,k,R.value,w),R!==null&&(e&&R.alternate!==null&&D.delete(R.key===null?k:R.key),h=s(R,h,k),P===null?x=R:P.sibling=R,P=R);return e&&D.forEach(function($e){return t(p,$e)}),Z&&en(p,k),x}function T(p,h,m,w){if(typeof m=="object"&&m!==null&&m.type===Pn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Si:e:{for(var x=m.key,P=h;P!==null;){if(P.key===x){if(x=m.type,x===Pn){if(P.tag===7){n(p,P.sibling),h=i(P,m.props.children),h.return=p,p=h;break e}}else if(P.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Lt&&gc(x)===P.type){n(p,P.sibling),h=i(P,m.props),h.ref=dr(p,P,m),h.return=p,p=h;break e}n(p,P);break}else t(p,P);P=P.sibling}m.type===Pn?(h=cn(m.props.children,p.mode,w,m.key),h.return=p,p=h):(w=Ji(m.type,m.key,m.props,null,p.mode,w),w.ref=dr(p,h,m),w.return=p,p=w)}return o(p);case xn:e:{for(P=m.key;h!==null;){if(h.key===P)if(h.tag===4&&h.stateNode.containerInfo===m.containerInfo&&h.stateNode.implementation===m.implementation){n(p,h.sibling),h=i(h,m.children||[]),h.return=p,p=h;break e}else{n(p,h);break}else t(p,h);h=h.sibling}h=Lo(m,p.mode,w),h.return=p,p=h}return o(p);case Lt:return P=m._init,T(p,h,P(m._payload),w)}if(yr(m))return v(p,h,m,w);if(lr(m))return y(p,h,m,w);_i(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,h!==null&&h.tag===6?(n(p,h.sibling),h=i(h,m),h.return=p,p=h):(n(p,h),h=Ao(m,p.mode,w),h.return=p,p=h),o(p)):n(p,h)}return T}var Gn=Ah(!0),Lh=Ah(!1),ms=Xt(null),gs=null,Ln=null,Da=null;function Aa(){Da=Ln=gs=null}function La(e){var t=ms.current;G(ms),e._currentValue=t}function Pl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Un(e,t){gs=e,Da=Ln=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Le=!0),e.firstContext=null)}function Ze(e){var t=e._currentValue;if(Da!==e)if(e={context:e,memoizedValue:t,next:null},Ln===null){if(gs===null)throw Error(C(308));Ln=e,gs.dependencies={lanes:0,firstContext:e}}else Ln=Ln.next=e;return t}var on=null;function _a(e){on===null?on=[e]:on.push(e)}function _h(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,_a(t)):(n.next=i.next,i.next=n),t.interleaved=n,Tt(e,r)}function Tt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var _t=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Rh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function yt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function It(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,W&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Tt(e,n)}return i=r.interleaved,i===null?(t.next=t,_a(r)):(t.next=i.next,i.next=t),r.interleaved=t,Tt(e,n)}function Yi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,va(e,n)}}function vc(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vs(e,t,n,r){var i=e.updateQueue;_t=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var d=i.baseState;o=0,c=u=a=null,l=s;do{var f=l.lane,g=l.eventTime;if((r&f)===f){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(f=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(g,d,f);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(g,d,f):v,f==null)break e;d=te({},d,f);break e;case 2:_t=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=d):c=c.next=g,o|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);mn|=o,e.lanes=o,e.memoizedState=d}}function yc(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{H=n,ko.transition=r}}function Xh(){return qe().memoizedState}function Ly(e,t,n){var r=Ut(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zh(e))qh(t,n);else if(n=_h(e,t,n,r),n!==null){var i=ke();it(n,e,r,i),Jh(n,t,r)}}function _y(e,t,n){var r=Ut(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zh(e))qh(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,st(l,o)){var a=t.interleaved;a===null?(i.next=i,_a(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=_h(e,t,i,r),n!==null&&(i=ke(),it(n,e,r,i),Jh(n,t,r))}}function Zh(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function qh(e,t){Ar=ws=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,va(e,n)}}var Ss={readContext:Ze,useCallback:ve,useContext:ve,useEffect:ve,useImperativeHandle:ve,useInsertionEffect:ve,useLayoutEffect:ve,useMemo:ve,useReducer:ve,useRef:ve,useState:ve,useDebugValue:ve,useDeferredValue:ve,useTransition:ve,useMutableSource:ve,useSyncExternalStore:ve,useId:ve,unstable_isNewReconciler:!1},Ry={readContext:Ze,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Sc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Qi(4194308,4,Hh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Qi(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();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=Ly.bind(null,ee,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:wc,useDebugValue:Ia,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=wc(!1),t=e[0];return e=Ay.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ee,i=at();if(Z){if(n===void 0)throw Error(C(407));n=n()}else{if(n=t(),fe===null)throw Error(C(349));pn&30||jh(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Sc(zh.bind(null,r,s,e),[e]),r.flags|=2048,br(9,Oh.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=at(),t=fe.identifierPrefix;if(Z){var n=vt,r=gt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ut]=t,e[Qr]=r,ap(e,t,!1,!1),t.stateNode=e;e:{switch(o=il(n,r),n){case"dialog":Y("cancel",e),Y("close",e),i=r;break;case"iframe":case"object":case"embed":Y("load",e),i=r;break;case"video":case"audio":for(i=0;iZn&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ys(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Z)return ye(t),null}else 2*se()-s.renderingStartTime>Zn&&n!==1073741824&&(t.flags|=128,r=!0,hr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=se(),t.sibling=null,n=J.current,K(J,r?n&1|2:n&1),t):(ye(t),null);case 22:case 23:return Ya(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ne&1073741824&&(ye(t),t.subtreeFlags&6&&(t.flags|=8192)):ye(t),null;case 24:return null;case 25:return null}throw Error(C(156,t.tag))}function Iy(e,t){switch(Ea(t),t.tag){case 1:return Re(t.type)&&fs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),G(_e),G(Pe),Na(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $a(t),null;case 13:if(G(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(C(340));Yn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(J),null;case 4:return Qn(),null;case 10:return La(t.type._context),null;case 22:case 23:return Ya(),null;case 24:return null;default:return null}}var Vi=!1,Se=!1,By=typeof WeakSet=="function"?WeakSet:Set,$=null;function _n(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){re(e,t,r)}else n.current=null}function _l(e,t,n){try{n()}catch(r){re(e,t,r)}}var _c=!1;function Uy(e,t){if(pl=ls,e=mh(),ka(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)f=d,d=g;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(g=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ml={focusedElem:e,selectionRange:n},ls=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,T=v.memoizedState,p=t.stateNode,h=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:et(t.type,y),T);p.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(C(163))}}catch(w){re(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return v=_c,_c=!1,v}function Lr(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 s=i.destroy;i.destroy=void 0,s!==void 0&&_l(t,n,s)}i=i.next}while(i!==r)}}function Ws(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 Rl(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 fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ut],delete t[Qr],delete t[yl],delete t[ky],delete t[Cy])),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 dp(e){return e.tag===5||e.tag===3||e.tag===4}function Rc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dp(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(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Vl(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=cs));else if(r!==4&&(e=e.child,e!==null))for(Vl(e,t,n),e=e.sibling;e!==null;)Vl(e,t,n),e=e.sibling}function $l(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($l(e,t,n),e=e.sibling;e!==null;)$l(e,t,n),e=e.sibling}var de=null,tt=!1;function Dt(e,t,n){for(n=n.child;n!==null;)hp(e,t,n),n=n.sibling}function hp(e,t,n){if(ct&&typeof ct.onCommitFiberUnmount=="function")try{ct.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:Se||_n(n,t);case 6:var r=de,i=tt;de=null,Dt(e,t,n),de=r,tt=i,de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):de.removeChild(n.stateNode));break;case 18:de!==null&&(tt?(e=de,n=n.stateNode,e.nodeType===8?xo(e.parentNode,n):e.nodeType===1&&xo(e,n),Wr(e)):xo(de,n.stateNode));break;case 4:r=de,i=tt,de=n.stateNode.containerInfo,tt=!0,Dt(e,t,n),de=r,tt=i;break;case 0:case 11:case 14:case 15:if(!Se&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&_l(n,t,o),i=i.next}while(i!==r)}Dt(e,t,n);break;case 1:if(!Se&&(_n(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){re(n,t,l)}Dt(e,t,n);break;case 21:Dt(e,t,n);break;case 22:n.mode&1?(Se=(r=Se)||n.memoizedState!==null,Dt(e,t,n),Se=r):Dt(e,t,n);break;default:Dt(e,t,n)}}function Vc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new By),t.forEach(function(r){var i=qy.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Je(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Hy(r/1960))-r,10e?16:e,Nt===null)var r=!1;else{if(e=Nt,Nt=null,Ts=0,W&6)throw Error(C(331));var i=W;for(W|=4,$=e.current;$!==null;){var s=$,o=s.child;if($.flags&16){var l=s.deletions;if(l!==null){for(var a=0;ase()-Ha?un(e,0):Wa|=n),Ve(e,t)}function xp(e,t){t===0&&(e.mode&1?(t=ki,ki<<=1,!(ki&130023424)&&(ki=4194304)):t=1);var n=ke();e=Tt(e,t),e!==null&&(ui(e,t,n),Ve(e,n))}function Zy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xp(e,n)}function qy(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(C(314))}r!==null&&r.delete(t),xp(e,n)}var Pp;Pp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_e.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,zy(e,t,n);Le=!!(e.flags&131072)}else Le=!1,Z&&t.flags&1048576&&Eh(t,ps,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xi(e,t),e=t.pendingProps;var i=Kn(t,Pe.current);Un(t,n),i=Oa(null,t,r,e,i,n);var s=za();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,Re(r)?(s=!0,ds(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ra(t),i.updater=Us,t.stateNode=i,i._reactInternals=t,kl(t,r,e,n),t=Ml(null,t,r,!0,s,n)):(t.tag=0,Z&&s&&Ca(t),Te(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=by(r),e=et(r,e),i){case 0:t=El(null,t,r,e,n);break e;case 1:t=Dc(null,t,r,e,n);break e;case 11:t=Ec(null,t,r,e,n);break e;case 14:t=Mc(null,t,r,et(r.type,e),n);break e}throw Error(C(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),El(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Dc(e,t,r,i,n);case 3:e:{if(sp(t),e===null)throw Error(C(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Rh(e,t),vs(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Xn(Error(C(423)),t),t=Ac(e,t,r,n,i);break e}else if(r!==i){i=Xn(Error(C(424)),t),t=Ac(e,t,r,n,i);break e}else for(je=Ft(t.stateNode.containerInfo.firstChild),Oe=t,Z=!0,nt=null,n=Lh(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Yn(),r===i){t=kt(e,t,n);break e}Te(e,t,r,n)}t=t.child}return t;case 5:return Vh(t),e===null&&xl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,gl(r,i)?o=null:s!==null&&gl(r,s)&&(t.flags|=32),ip(e,t),Te(e,t,o,n),t.child;case 6:return e===null&&xl(t),null;case 13:return op(e,t,n);case 4:return Va(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Gn(t,null,r,n):Te(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Ec(e,t,r,i,n);case 7:return Te(e,t,t.pendingProps,n),t.child;case 8:return Te(e,t,t.pendingProps.children,n),t.child;case 12:return Te(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,K(ms,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!_e.current){t=kt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=yt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Pl(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(C(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Pl(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Te(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Un(t,n),i=Ze(i),r=r(i),t.flags|=1,Te(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Mc(e,t,r,i,n);case 15:return np(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Xi(e,t),t.tag=1,Re(r)?(e=!0,ds(t)):e=!1,Un(t,n),bh(t,r,i),kl(t,r,i,n),Ml(null,t,r,!0,e,n);case 19:return lp(e,t,n);case 22:return rp(e,t,n)}throw Error(C(156,t.tag))};function Tp(e,t){return Zd(e,t)}function Jy(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 Qe(e,t,n,r){return new Jy(e,t,n,r)}function Qa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function by(e){if(typeof e=="function")return Qa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ha)return 11;if(e===pa)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Qe(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=e.flags&14680064,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 Ji(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")Qa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Pn:return cn(n.children,i,s,t);case da:o=8,i|=8;break;case Qo:return e=Qe(12,n,t,i|2),e.elementType=Qo,e.lanes=s,e;case Xo:return e=Qe(13,n,t,i),e.elementType=Xo,e.lanes=s,e;case Zo:return e=Qe(19,n,t,i),e.elementType=Zo,e.lanes=s,e;case Vd:return Ks(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case _d:o=10;break e;case Rd:o=9;break e;case ha:o=11;break e;case pa:o=14;break e;case Lt:o=16,r=null;break e}throw Error(C(130,e==null?e:typeof e,""))}return t=Qe(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function cn(e,t,n,r){return e=Qe(7,e,r,t),e.lanes=n,e}function Ks(e,t,n,r){return e=Qe(22,e,r,t),e.elementType=Vd,e.lanes=n,e.stateNode={isHidden:!1},e}function Ao(e,t,n){return e=Qe(6,e,null,t),e.lanes=n,e}function Lo(e,t,n){return t=Qe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function e0(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=uo(0),this.expirationTimes=uo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=uo(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Xa(e,t,n,r,i,s,o,l,a){return e=new e0(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Qe(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(s),e}function t0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Mp)}catch(e){console.error(e)}}Mp(),Md.exports=Be;var o0=Md.exports;const ba=E.createContext({});function Zs(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const qs=E.createContext(null),ti=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class l0 extends E.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a0({children:e,isPresent:t}){const n=E.useId(),r=E.useRef(null),i=E.useRef({width:0,height:0,top:0,left:0}),{nonce:s}=E.useContext(ti);return E.useInsertionEffect(()=>{const{width:o,height:l,top:a,left:u}=i.current;if(t||!r.current||!o||!l)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return s&&(c.nonce=s),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${o}px !important; height: ${l}px !important; top: ${a}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(c)}},[t]),N.jsx(l0,{isPresent:t,childRef:r,sizeRef:i,children:E.cloneElement(e,{ref:r})})}const u0=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:s,mode:o})=>{const l=Zs(c0),a=E.useId(),u=E.useCallback(d=>{l.set(d,!0);for(const f of l.values())if(!f)return;r&&r()},[l,r]),c=E.useMemo(()=>({id:a,initial:t,isPresent:n,custom:i,onExitComplete:u,register:d=>(l.set(d,!1),()=>l.delete(d))}),s?[Math.random(),u]:[n,u]);return E.useMemo(()=>{l.forEach((d,f)=>l.set(f,!1))},[n]),E.useEffect(()=>{!n&&!l.size&&r&&r()},[n]),o==="popLayout"&&(e=N.jsx(a0,{isPresent:n,children:e})),N.jsx(qs.Provider,{value:c,children:e})};function c0(){return new Map}function Dp(e=!0){const t=E.useContext(qs);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,s=E.useId();E.useEffect(()=>{e&&i(s)},[e]);const o=E.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const ji=e=>e.key||"";function Bc(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const eu=typeof window<"u",Ap=eu?E.useLayoutEffect:E.useEffect,Uc=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:s="sync",propagate:o=!1})=>{const[l,a]=Dp(o),u=E.useMemo(()=>Bc(e),[e]),c=o&&!l?[]:u.map(ji),d=E.useRef(!0),f=E.useRef(u),g=Zs(()=>new Map),[v,y]=E.useState(u),[T,p]=E.useState(u);Ap(()=>{d.current=!1,f.current=u;for(let w=0;w{const x=ji(w),P=o&&!l?!1:u===T||c.includes(x),D=()=>{if(g.has(x))g.set(x,!0);else return;let k=!0;g.forEach(I=>{I||(k=!1)}),k&&(m==null||m(),p(f.current),o&&(a==null||a()),r&&r())};return N.jsx(u0,{isPresent:P,initial:!d.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:i,mode:s,onExitComplete:P?void 0:D,children:w},x)})})},ze=e=>e;let Lp=ze;function tu(e){let t;return()=>(t===void 0&&(t=e()),t)}const qn=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},wt=e=>e*1e3,St=e=>e/1e3,nu={skipAnimations:!1,useManualTiming:!1};function f0(e){let t=new Set,n=new Set,r=!1,i=!1;const s=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function l(u){s.has(u)&&(a.schedule(u),e()),u(o)}const a={schedule:(u,c=!1,d=!1)=>{const g=d&&r?t:n;return c&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{n.delete(u),s.delete(u)},process:u=>{if(o=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(l),t.clear(),r=!1,i&&(i=!1,a.process(u))}};return a}const Oi=["read","resolveKeyframes","update","preRender","render","postRender"],d0=40;function _p(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Oi.reduce((p,h)=>(p[h]=f0(s),p),{}),{read:l,resolveKeyframes:a,update:u,preRender:c,render:d,postRender:f}=o,g=()=>{const p=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(p-i.timestamp,d0),1),i.timestamp=p,i.isProcessing=!0,l.process(i),a.process(i),u.process(i),c.process(i),d.process(i),f.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:Oi.reduce((p,h)=>{const m=o[h];return p[h]=(w,x=!1,P=!1)=>(n||v(),m.schedule(w,x,P)),p},{}),cancel:p=>{for(let h=0;hWc[e].some(n=>!!t[n])};function h0(e){for(const t in e)Jn[t]={...Jn[t],...e[t]}}const p0=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 Es(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||p0.has(e)}let Vp=e=>!Es(e);function $p(e){e&&(Vp=t=>t.startsWith("on")?!Es(t):e(t))}try{$p(require("@emotion/is-prop-valid").default)}catch{}function m0(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(Vp(i)||n===!0&&Es(i)||!t&&!Es(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function g0({children:e,isValidProp:t,...n}){t&&$p(t),n={...E.useContext(ti),...n},n.isStatic=Zs(()=>n.isStatic);const r=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return N.jsx(ti.Provider,{value:r,children:e})}function v0(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const Js=E.createContext({});function ni(e){return typeof e=="string"||Array.isArray(e)}function bs(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const ru=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iu=["initial",...ru];function eo(e){return bs(e.animate)||iu.some(t=>ni(e[t]))}function Np(e){return!!(eo(e)||e.variants)}function y0(e,t){if(eo(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ni(n)?n:void 0,animate:ni(r)?r:void 0}}return e.inherit!==!1?t:{}}function w0(e){const{initial:t,animate:n}=y0(e,E.useContext(Js));return E.useMemo(()=>({initial:t,animate:n}),[Hc(t),Hc(n)])}function Hc(e){return Array.isArray(e)?e.join(" "):e}const S0=Symbol.for("motionComponentSymbol");function Vn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function x0(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Vn(n)&&(n.current=r))},[t])}const su=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),P0="framerAppearId",jp="data-"+su(P0),{schedule:ou}=_p(queueMicrotask,!1),Op=E.createContext({});function T0(e,t,n,r,i){var s,o;const{visualElement:l}=E.useContext(Js),a=E.useContext(Rp),u=E.useContext(qs),c=E.useContext(ti).reducedMotion,d=E.useRef(null);r=r||a.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:l,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const f=d.current,g=E.useContext(Op);f&&!f.projection&&i&&(f.type==="html"||f.type==="svg")&&k0(d.current,n,i,g);const v=E.useRef(!1);E.useInsertionEffect(()=>{f&&v.current&&f.update(n,u)});const y=n[jp],T=E.useRef(!!y&&!(!((s=window.MotionHandoffIsComplete)===null||s===void 0)&&s.call(window,y))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,y)));return Ap(()=>{f&&(v.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),ou.render(f.render),T.current&&f.animationState&&f.animationState.animateChanges())}),E.useEffect(()=>{f&&(!T.current&&f.animationState&&f.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var p;(p=window.MotionHandoffMarkAsComplete)===null||p===void 0||p.call(window,y)}),T.current=!1))}),f}function k0(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:l,layoutScroll:a,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:zp(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:!!o||l&&Vn(l),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:u})}function zp(e){if(e)return e.options.allowProjection!==!1?e.projection:zp(e.parent)}function C0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var s,o;e&&h0(e);function l(u,c){let d;const f={...E.useContext(ti),...u,layoutId:E0(u)},{isStatic:g}=f,v=w0(u),y=r(u,g);if(!g&&eu){M0();const T=D0(f);d=T.MeasureLayout,v.visualElement=T0(i,y,f,t,T.ProjectionNode)}return N.jsxs(Js.Provider,{value:v,children:[d&&v.visualElement?N.jsx(d,{visualElement:v.visualElement,...f}):null,n(i,u,x0(y,v.visualElement,c),y,g,v.visualElement)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${(o=(s=i.displayName)!==null&&s!==void 0?s:i.name)!==null&&o!==void 0?o:""})`}`;const a=E.forwardRef(l);return a[S0]=i,a}function E0({layoutId:e}){const t=E.useContext(ba).id;return t&&e!==void 0?t+"-"+e:e}function M0(e,t){E.useContext(Rp).strict}function D0(e){const{drag:t,layout:n}=Jn;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const A0=["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 lu(e){return typeof e!="string"||e.includes("-")?!1:!!(A0.indexOf(e)>-1||/[A-Z]/u.test(e))}function Kc(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function au(e,t,n,r){if(typeof t=="function"){const[i,s]=Kc(r);t=t(n!==void 0?n:e.custom,i,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,s]=Kc(r);t=t(n!==void 0?n:e.custom,i,s)}return t}const Fl=e=>Array.isArray(e),L0=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),_0=e=>Fl(e)?e[e.length-1]||0:e,xe=e=>!!(e&&e.getVelocity);function bi(e){const t=xe(e)?e.get():e;return L0(t)?t.toValue():t}function R0({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,s){const o={latestValues:V0(r,i,s,e),renderState:t()};return n&&(o.onMount=l=>n({props:r,current:l,...o}),o.onUpdate=l=>n(l)),o}const Fp=e=>(t,n)=>{const r=E.useContext(Js),i=E.useContext(qs),s=()=>R0(e,t,r,i);return n?s():Zs(s)};function V0(e,t,n,r){const i={},s=r(e,{});for(const f in s)i[f]=bi(s[f]);let{initial:o,animate:l}=e;const a=eo(e),u=Np(e);t&&u&&!a&&e.inherit!==!1&&(o===void 0&&(o=t.initial),l===void 0&&(l=t.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const d=c?l:o;if(d&&typeof d!="boolean"&&!bs(d)){const f=Array.isArray(d)?d:[d];for(let g=0;gt=>typeof t=="string"&&t.startsWith(e),Bp=Ip("--"),$0=Ip("var(--"),uu=e=>$0(e)?N0.test(e.split("/*")[0].trim()):!1,N0=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Up=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ct=(e,t,n)=>n>t?t:ntypeof e=="number",parse:parseFloat,transform:e=>e},ri={...ir,transform:e=>Ct(0,1,e)},zi={...ir,default:1},hi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),At=hi("deg"),dt=hi("%"),O=hi("px"),j0=hi("vh"),O0=hi("vw"),Yc={...dt,parse:e=>dt.parse(e)/100,transform:e=>dt.transform(e*100)},z0={borderWidth:O,borderTopWidth:O,borderRightWidth:O,borderBottomWidth:O,borderLeftWidth:O,borderRadius:O,radius:O,borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,width:O,maxWidth:O,height:O,maxHeight:O,top:O,right:O,bottom:O,left:O,padding:O,paddingTop:O,paddingRight:O,paddingBottom:O,paddingLeft:O,margin:O,marginTop:O,marginRight:O,marginBottom:O,marginLeft:O,backgroundPositionX:O,backgroundPositionY:O},F0={rotate:At,rotateX:At,rotateY:At,rotateZ:At,scale:zi,scaleX:zi,scaleY:zi,scaleZ:zi,skew:At,skewX:At,skewY:At,distance:O,translateX:O,translateY:O,translateZ:O,x:O,y:O,z:O,perspective:O,transformPerspective:O,opacity:ri,originX:Yc,originY:Yc,originZ:O},Gc={...ir,transform:Math.round},cu={...z0,...F0,zIndex:Gc,size:O,fillOpacity:ri,strokeOpacity:ri,numOctaves:Gc},I0={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},B0=rr.length;function U0(e,t,n){let r="",i=!0;for(let s=0;s({style:{},transform:{},transformOrigin:{},vars:{}}),Wp=()=>({...hu(),attrs:{}}),pu=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Hp(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}const Kp=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 Yp(e,t,n,r){Hp(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Kp.has(i)?i:su(i),t.attrs[i])}const Ms={};function G0(e){Object.assign(Ms,e)}function Gp(e,{layout:t,layoutId:n}){return wn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ms[e]||e==="opacity")}function mu(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(xe(i[o])||t.style&&xe(t.style[o])||Gp(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(s[o]=i[o]);return s}function Qp(e,t,n){const r=mu(e,t,n);for(const i in e)if(xe(e[i])||xe(t[i])){const s=rr.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[s]=e[i]}return r}function Q0(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Xc=["x","y","width","height","cx","cy","r"],X0={useVisualState:Fp({scrapeMotionValuesFromProps:Qp,createRenderState:Wp,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let s=!!e.drag;if(!s){for(const l in i)if(wn.has(l)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let l=0;l{Q0(n,r),Q.render(()=>{du(r,i,pu(n.tagName),e.transformTemplate),Yp(n,r)})})}})},Z0={useVisualState:Fp({scrapeMotionValuesFromProps:mu,createRenderState:hu})};function Xp(e,t,n){for(const r in t)!xe(t[r])&&!Gp(r,n)&&(e[r]=t[r])}function q0({transformTemplate:e},t){return E.useMemo(()=>{const n=hu();return fu(n,t,e),Object.assign({},n.vars,n.style)},[t])}function J0(e,t){const n=e.style||{},r={};return Xp(r,n,e),Object.assign(r,q0(e,t)),r}function b0(e,t){const n={},r=J0(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function e1(e,t,n,r){const i=E.useMemo(()=>{const s=Wp();return du(s,t,pu(r),e.transformTemplate),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};Xp(s,e.style,e),i.style={...s,...i.style}}return i}function t1(e=!1){return(n,r,i,{latestValues:s},o)=>{const a=(lu(n)?e1:b0)(r,s,o,n),u=m0(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...a,ref:i}:{},{children:d}=r,f=E.useMemo(()=>xe(d)?d.get():d,[d]);return E.createElement(n,{...c,children:f})}}function n1(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...lu(r)?X0:Z0,preloadedFeatures:e,useRender:t1(i),createVisualElement:t,Component:r};return C0(o)}}function Zp(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;rwindow.ScrollTimeline!==void 0);class i1{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r{if(r1()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,s)=>{i&&i(),this.animations[s].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;nn[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class s1 extends i1{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function gu(e,t){return e?e[t]||e.default||e:void 0}const Il=2e4;function qp(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t=Il?1/0:t}function vu(e){return typeof e=="function"}function Zc(e,t){e.timeline=t,e.onfinish=null}const yu=e=>Array.isArray(e)&&typeof e[0]=="number",o1={linearEasing:void 0};function l1(e,t){const n=tu(e);return()=>{var r;return(r=o1[t])!==null&&r!==void 0?r:n()}}const Ds=l1(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Jp=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Bl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:xr([0,.65,.55,1]),circOut:xr([.55,0,1,.45]),backIn:xr([.31,.01,.66,-.59]),backOut:xr([.33,1.53,.69,.99])};function em(e,t){if(e)return typeof e=="function"&&Ds()?Jp(e,t):yu(e)?xr(e):Array.isArray(e)?e.map(n=>em(n,t)||Bl.easeOut):Bl[e]}const be={x:!1,y:!1};function tm(){return be.x||be.y}function a1(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const s=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}function nm(e,t){const n=a1(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function qc(e){return t=>{t.pointerType==="touch"||tm()||e(t)}}function u1(e,t,n={}){const[r,i,s]=nm(e,n),o=qc(l=>{const{target:a}=l,u=t(l);if(typeof u!="function"||!a)return;const c=qc(d=>{u(d),a.removeEventListener("pointerleave",c)});a.addEventListener("pointerleave",c,i)});return r.forEach(l=>{l.addEventListener("pointerenter",o,i)}),s}const rm=(e,t)=>t?e===t?!0:rm(e,t.parentElement):!1,wu=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,c1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function f1(e){return c1.has(e.tagName)||e.tabIndex!==-1}const Pr=new WeakSet;function Jc(e){return t=>{t.key==="Enter"&&e(t)}}function Ro(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const d1=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Jc(()=>{if(Pr.has(n))return;Ro(n,"down");const i=Jc(()=>{Ro(n,"up")}),s=()=>Ro(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bc(e){return wu(e)&&!tm()}function h1(e,t,n={}){const[r,i,s]=nm(e,n),o=l=>{const a=l.currentTarget;if(!bc(l)||Pr.has(a))return;Pr.add(a);const u=t(l),c=(g,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!bc(g)||!Pr.has(a))&&(Pr.delete(a),typeof u=="function"&&u(g,{success:v}))},d=g=>{c(g,n.useGlobalTarget||rm(a,g.target))},f=g=>{c(g,!1)};window.addEventListener("pointerup",d,i),window.addEventListener("pointercancel",f,i)};return r.forEach(l=>{!f1(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0),(n.useGlobalTarget?window:l).addEventListener("pointerdown",o,i),l.addEventListener("focus",u=>d1(u,i),i)}),s}function p1(e){return e==="x"||e==="y"?be[e]?null:(be[e]=!0,()=>{be[e]=!1}):be.x||be.y?null:(be.x=be.y=!0,()=>{be.x=be.y=!1})}const im=new Set(["width","height","top","left","right","bottom",...rr]);let es;function m1(){es=void 0}const ht={now:()=>(es===void 0&&ht.set(he.isProcessing||nu.useManualTiming?he.timestamp:performance.now()),es),set:e=>{es=e,queueMicrotask(m1)}};function Su(e,t){e.indexOf(t)===-1&&e.push(t)}function xu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Pu{constructor(){this.subscriptions=[]}add(t){return Su(this.subscriptions,t),()=>xu(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let s=0;s!isNaN(parseFloat(e));class v1{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const s=ht.now();this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ht.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=g1(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Pu);const r=this.events[t].add(n);return t==="change"?()=>{r(),Q.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ht.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ef)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ef);return sm(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),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 ii(e,t){return new v1(e,t)}function y1(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ii(n))}function w1(e,t){const n=to(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s){const l=_0(s[o]);y1(e,o,l)}}function S1(e){return!!(xe(e)&&e.add)}function Ul(e,t){const n=e.getValue("willChange");if(S1(n))return n.add(t)}function om(e){return e.props[jp]}const lm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,x1=1e-7,P1=12;function T1(e,t,n,r,i){let s,o,l=0;do o=t+(n-t)/2,s=lm(o,r,i)-e,s>0?n=o:t=o;while(Math.abs(s)>x1&&++lT1(s,0,1,e,n);return s=>s===0||s===1?s:lm(i(s),t,r)}const am=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,um=e=>t=>1-e(1-t),cm=pi(.33,1.53,.69,.99),Tu=um(cm),fm=am(Tu),dm=e=>(e*=2)<1?.5*Tu(e):.5*(2-Math.pow(2,-10*(e-1))),ku=e=>1-Math.sin(Math.acos(e)),hm=um(ku),pm=am(ku),mm=e=>/^0[^.\s]+$/u.test(e);function k1(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||mm(e):!0}const Vr=e=>Math.round(e*1e5)/1e5,Cu=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function C1(e){return e==null}const E1=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Eu=(e,t)=>n=>!!(typeof n=="string"&&E1.test(n)&&n.startsWith(e)||t&&!C1(n)&&Object.prototype.hasOwnProperty.call(n,t)),gm=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,s,o,l]=r.match(Cu);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},M1=e=>Ct(0,255,e),Vo={...ir,transform:e=>Math.round(M1(e))},an={test:Eu("rgb","red"),parse:gm("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vo.transform(e)+", "+Vo.transform(t)+", "+Vo.transform(n)+", "+Vr(ri.transform(r))+")"};function D1(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}}const Wl={test:Eu("#"),parse:D1,transform:an.transform},$n={test:Eu("hsl","hue"),parse:gm("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+dt.transform(Vr(t))+", "+dt.transform(Vr(n))+", "+Vr(ri.transform(r))+")"},we={test:e=>an.test(e)||Wl.test(e)||$n.test(e),parse:e=>an.test(e)?an.parse(e):$n.test(e)?$n.parse(e):Wl.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?an.transform(e):$n.transform(e)},A1=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function L1(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Cu))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(A1))===null||n===void 0?void 0:n.length)||0)>0}const vm="number",ym="color",_1="var",R1="var(",tf="${}",V1=/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 si(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const l=t.replace(V1,a=>(we.test(a)?(r.color.push(s),i.push(ym),n.push(we.parse(a))):a.startsWith(R1)?(r.var.push(s),i.push(_1),n.push(a)):(r.number.push(s),i.push(vm),n.push(parseFloat(a))),++s,tf)).split(tf);return{values:n,split:l,indexes:r,types:i}}function wm(e){return si(e).values}function Sm(e){const{split:t,types:n}=si(e),r=t.length;return i=>{let s="";for(let o=0;otypeof e=="number"?0:e;function N1(e){const t=wm(e);return Sm(e)(t.map($1))}const Gt={test:L1,parse:wm,createTransformer:Sm,getAnimatableNone:N1},j1=new Set(["brightness","contrast","saturate","opacity"]);function O1(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Cu)||[];if(!r)return e;const i=n.replace(r,"");let s=j1.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const z1=/\b([a-z-]*)\(.*?\)/gu,Hl={...Gt,getAnimatableNone:e=>{const t=e.match(z1);return t?t.map(O1).join(" "):e}},F1={...cu,color:we,backgroundColor:we,outlineColor:we,fill:we,stroke:we,borderColor:we,borderTopColor:we,borderRightColor:we,borderBottomColor:we,borderLeftColor:we,filter:Hl,WebkitFilter:Hl},Mu=e=>F1[e];function xm(e,t){let n=Mu(e);return n!==Hl&&(n=Gt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const I1=new Set(["auto","none","0"]);function B1(e,t,n){let r=0,i;for(;re===ir||e===O,rf=(e,t)=>parseFloat(e.split(", ")[t]),sf=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rf(i[1],t);{const s=r.match(/^matrix\((.+)\)$/u);return s?rf(s[1],e):0}},U1=new Set(["x","y","z"]),W1=rr.filter(e=>!U1.has(e));function H1(e){const t=[];return W1.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const bn={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:sf(4,13),y:sf(5,14)};bn.translateX=bn.x;bn.translateY=bn.y;const fn=new Set;let Kl=!1,Yl=!1;function Pm(){if(Yl){const e=Array.from(fn).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=H1(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([s,o])=>{var l;(l=r.getValue(s))===null||l===void 0||l.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Yl=!1,Kl=!1,fn.forEach(e=>e.complete()),fn.clear()}function Tm(){fn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yl=!0)})}function K1(){Tm(),Pm()}class Du{constructor(t,n,r,i,s,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=s,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(fn.add(this),Kl||(Kl=!0,Q.read(Tm),Q.resolveKeyframes(Pm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let s=0;s/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Y1=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function G1(e){const t=Y1.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function Cm(e,t,n=1){const[r,i]=G1(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const o=s.trim();return km(o)?parseFloat(o):o}return uu(i)?Cm(i,t,n+1):i}const Em=e=>t=>t.test(e),Q1={test:e=>e==="auto",parse:e=>e},Mm=[ir,O,dt,At,O0,j0,Q1],of=e=>Mm.find(Em(e));class Dm extends Du{constructor(t,n,r,i,s){super(t,n,r,i,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a{n.getValue(a).set(u)}),this.resolveNoneKeyframes()}}const lf=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gt.test(e)||e==="0")&&!e.startsWith("url("));function X1(e){const t=e[0];if(e.length===1)return!0;for(let n=0;ne!==null;function no(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(q1),s=t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const J1=40;class Am{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ht.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>J1?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&K1(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ht.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:s,delay:o,onComplete:l,onUpdate:a,isGenerator:u}=this.options;if(!u&&!Z1(t,r,i,s))if(o)this.options.duration=0;else{a&&a(no(t,this.options,n)),l&&l(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const b=(e,t,n)=>e+(t-e)*n;function $o(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 b1({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,s=0,o=0;if(!t)i=s=o=n;else{const l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;i=$o(a,l,e+1/3),s=$o(a,l,e),o=$o(a,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:r}}function As(e,t){return n=>n>0?t:e}const No=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ew=[Wl,an,$n],tw=e=>ew.find(t=>t.test(e));function af(e){const t=tw(e);if(!t)return!1;let n=t.parse(e);return t===$n&&(n=b1(n)),n}const uf=(e,t)=>{const n=af(e),r=af(t);if(!n||!r)return As(e,t);const i={...n};return s=>(i.red=No(n.red,r.red,s),i.green=No(n.green,r.green,s),i.blue=No(n.blue,r.blue,s),i.alpha=b(n.alpha,r.alpha,s),an.transform(i))},nw=(e,t)=>n=>t(e(n)),mi=(...e)=>e.reduce(nw),Gl=new Set(["none","hidden"]);function rw(e,t){return Gl.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function iw(e,t){return n=>b(e,t,n)}function Au(e){return typeof e=="number"?iw:typeof e=="string"?uu(e)?As:we.test(e)?uf:lw:Array.isArray(e)?Lm:typeof e=="object"?we.test(e)?uf:sw:As}function Lm(e,t){const n=[...e],r=n.length,i=e.map((s,o)=>Au(s)(s,t[o]));return s=>{for(let o=0;o{for(const s in r)n[s]=r[s](i);return n}}function ow(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s{const n=Gt.createTransformer(t),r=si(e),i=si(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?Gl.has(e)&&!i.values.length||Gl.has(t)&&!r.values.length?rw(e,t):mi(Lm(ow(r,i),i.values),n):As(e,t)};function _m(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?b(e,t,n):Au(e)(e,t)}const aw=5;function Rm(e,t,n){const r=Math.max(t-aw,0);return sm(n-e(r),t-r)}const ne={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jo=.001;function uw({duration:e=ne.duration,bounce:t=ne.bounce,velocity:n=ne.velocity,mass:r=ne.mass}){let i,s,o=1-t;o=Ct(ne.minDamping,ne.maxDamping,o),e=Ct(ne.minDuration,ne.maxDuration,St(e)),o<1?(i=u=>{const c=u*o,d=c*e,f=c-n,g=Ql(u,o),v=Math.exp(-d);return jo-f/g*v},s=u=>{const d=u*o*e,f=d*n+n,g=Math.pow(o,2)*Math.pow(u,2)*e,v=Math.exp(-d),y=Ql(Math.pow(u,2),o);return(-i(u)+jo>0?-1:1)*((f-g)*v)/y}):(i=u=>{const c=Math.exp(-u*e),d=(u-n)*e+1;return-jo+c*d},s=u=>{const c=Math.exp(-u*e),d=(n-u)*(e*e);return c*d});const l=5/e,a=fw(i,s,l);if(e=wt(e),isNaN(a))return{stiffness:ne.stiffness,damping:ne.damping,duration:e};{const u=Math.pow(a,2)*r;return{stiffness:u,damping:o*2*Math.sqrt(r*u),duration:e}}}const cw=12;function fw(e,t,n){let r=n;for(let i=1;ie[n]!==void 0)}function pw(e){let t={velocity:ne.velocity,stiffness:ne.stiffness,damping:ne.damping,mass:ne.mass,isResolvedFromDuration:!1,...e};if(!cf(e,hw)&&cf(e,dw))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,s=2*Ct(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:ne.mass,stiffness:i,damping:s}}else{const n=uw(e);t={...t,...n,mass:ne.mass},t.isResolvedFromDuration=!0}return t}function Vm(e=ne.visualDuration,t=ne.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:a,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:g}=pw({...n,velocity:-St(n.velocity||0)}),v=f||0,y=u/(2*Math.sqrt(a*c)),T=o-s,p=St(Math.sqrt(a/c)),h=Math.abs(T)<5;r||(r=h?ne.restSpeed.granular:ne.restSpeed.default),i||(i=h?ne.restDelta.granular:ne.restDelta.default);let m;if(y<1){const x=Ql(p,y);m=P=>{const D=Math.exp(-y*p*P);return o-D*((v+y*p*T)/x*Math.sin(x*P)+T*Math.cos(x*P))}}else if(y===1)m=x=>o-Math.exp(-p*x)*(T+(v+p*T)*x);else{const x=p*Math.sqrt(y*y-1);m=P=>{const D=Math.exp(-y*p*P),k=Math.min(x*P,300);return o-D*((v+y*p*T)*Math.sinh(k)+x*T*Math.cosh(k))/x}}const w={calculatedDuration:g&&d||null,next:x=>{const P=m(x);if(g)l.done=x>=d;else{let D=0;y<1&&(D=x===0?wt(v):Rm(m,x,P));const k=Math.abs(D)<=r,I=Math.abs(o-P)<=i;l.done=k&&I}return l.value=l.done?o:P,l},toString:()=>{const x=Math.min(qp(w),Il),P=Jp(D=>w.next(x*D).value,x,30);return x+"ms "+P}};return w}function ff({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:l,max:a,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},g=k=>l!==void 0&&ka,v=k=>l===void 0?a:a===void 0||Math.abs(l-k)-y*Math.exp(-k/r),m=k=>p+h(k),w=k=>{const I=h(k),R=m(k);f.done=Math.abs(I)<=u,f.value=f.done?p:R};let x,P;const D=k=>{g(f.value)&&(x=k,P=Vm({keyframes:[f.value,v(f.value)],velocity:Rm(m,k,f.value),damping:i,stiffness:s,restDelta:u,restSpeed:c}))};return D(0),{calculatedDuration:null,next:k=>{let I=!1;return!P&&x===void 0&&(I=!0,w(k),D(k)),x!==void 0&&k>=x?P.next(k-x):(!I&&w(k),f)}}}const mw=pi(.42,0,1,1),gw=pi(0,0,.58,1),$m=pi(.42,0,.58,1),vw=e=>Array.isArray(e)&&typeof e[0]!="number",yw={linear:ze,easeIn:mw,easeInOut:$m,easeOut:gw,circIn:ku,circInOut:pm,circOut:hm,backIn:Tu,backInOut:fm,backOut:cm,anticipate:dm},df=e=>{if(yu(e)){Lp(e.length===4);const[t,n,r,i]=e;return pi(t,n,r,i)}else if(typeof e=="string")return yw[e];return e};function ww(e,t,n){const r=[],i=n||_m,s=e.length-1;for(let o=0;ot[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=ww(t,r,i),a=l.length,u=c=>{if(o&&c1)for(;du(Ct(e[0],e[s-1],c)):u}function xw(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=qn(0,t,r);e.push(b(n,1,i))}}function Pw(e){const t=[0];return xw(t,e.length-1),t}function Tw(e,t){return e.map(n=>n*t)}function kw(e,t){return e.map(()=>t||$m).splice(0,e.length-1)}function Ls({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=vw(r)?r.map(df):df(r),s={done:!1,value:t[0]},o=Tw(n&&n.length===t.length?n:Pw(t),e),l=Sw(o,t,{ease:Array.isArray(i)?i:kw(t,i)});return{calculatedDuration:e,next:a=>(s.value=l(a),s.done=a>=e,s)}}const Cw=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Yt(t),now:()=>he.isProcessing?he.timestamp:ht.now()}},Ew={decay:ff,inertia:ff,tween:Ls,keyframes:Ls,spring:Vm},Mw=e=>e/100;class Lu extends Am{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:a}=this.options;a&&a()};const{name:n,motionValue:r,element:i,keyframes:s}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Du,l=(a,u)=>this.onKeyframesResolved(a,u);this.resolver=new o(s,l,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:s,velocity:o=0}=this.options,l=vu(n)?n:Ew[n]||Ls;let a,u;l!==Ls&&typeof t[0]!="number"&&(a=mi(Mw,_m(t[0],t[1])),t=[0,100]);const c=l({...this.options,keyframes:t});s==="mirror"&&(u=l({...this.options,keyframes:[...t].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=qp(c));const{calculatedDuration:d}=c,f=d+i,g=f*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:a,calculatedDuration:d,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:k}=this.options;return{done:!0,value:k[k.length-1]}}const{finalKeyframe:i,generator:s,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:a,calculatedDuration:u,totalDuration:c,resolvedDuration:d}=r;if(this.startTime===null)return s.next(0);const{delay:f,repeat:g,repeatType:v,repeatDelay:y,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const p=this.currentTime-f*(this.speed>=0?1:-1),h=this.speed>=0?p<0:p>c;this.currentTime=Math.max(p,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let m=this.currentTime,w=s;if(g){const k=Math.min(this.currentTime,c)/d;let I=Math.floor(k),R=k%1;!R&&k>=1&&(R=1),R===1&&I--,I=Math.min(I,g+1),!!(I%2)&&(v==="reverse"?(R=1-R,y&&(R-=y/d)):v==="mirror"&&(w=o)),m=Ct(0,1,R)*d}const x=h?{done:!1,value:a[0]}:w.next(m);l&&(x.value=l(x.value));let{done:P}=x;!h&&u!==null&&(P=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return D&&i!==void 0&&(x.value=no(a,this.options,i)),T&&T(x.value),D&&this.finish(),x}get duration(){const{resolved:t}=this;return t?St(t.calculatedDuration):0}get time(){return St(this.currentTime)}set time(t){t=wt(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=St(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Cw,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(s=>this.tick(s))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const Dw=new Set(["opacity","clipPath","filter","transform"]);function Aw(e,t,n,{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:l="easeInOut",times:a}={}){const u={[t]:n};a&&(u.offset=a);const c=em(l,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const Lw=tu(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_s=10,_w=2e4;function Rw(e){return vu(e.type)||e.type==="spring"||!bp(e.ease)}function Vw(e,t){const n=new Lu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<_w;)r=n.sample(s),i.push(r.value),s+=_s;return{times:void 0,keyframes:i,duration:s-_s,ease:"linear"}}const Nm={anticipate:dm,backInOut:fm,circInOut:pm};function $w(e){return e in Nm}class hf extends Am{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:s}=this.options;this.resolver=new Dm(s,(o,l)=>this.onKeyframesResolved(o,l),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:s,type:o,motionValue:l,name:a,startTime:u}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof s=="string"&&Ds()&&$w(s)&&(s=Nm[s]),Rw(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:v,...y}=this.options,T=Vw(t,y);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,s=T.ease,o="keyframes"}const c=Aw(l.owner.current,a,t,{...this.options,duration:r,times:i,ease:s});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(Zc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:d}=this.options;l.set(no(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:o,ease:s,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return St(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return St(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=wt(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return ze;const{animation:r}=n;Zc(r,t)}return ze}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:s,ease:o,times:l}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:d,element:f,...g}=this.options,v=new Lu({...g,keyframes:r,duration:i,type:s,ease:o,times:l,isGenerator:!0}),y=wt(this.time);u.setWithVelocity(v.sample(y-_s).value,v.sample(y).value,_s)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:s,damping:o,type:l}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:u}=n.owner.getProps();return Lw()&&r&&Dw.has(r)&&!a&&!u&&!i&&s!=="mirror"&&o!==0&&l!=="inertia"}}const Nw={type:"spring",stiffness:500,damping:25,restSpeed:10},jw=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Ow={type:"keyframes",duration:.8},zw={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fw=(e,{keyframes:t})=>t.length>2?Ow:wn.has(e)?e.startsWith("scale")?jw(t[1]):Nw:zw;function Iw({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:l,from:a,elapsed:u,...c}){return!!Object.keys(c).length}const _u=(e,t,n,r={},i,s)=>o=>{const l=gu(r,e)||{},a=l.delay||r.delay||0;let{elapsed:u=0}=r;u=u-wt(a);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:f=>{t.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};Iw(l)||(c={...c,...Fw(e,c)}),c.duration&&(c.duration=wt(c.duration)),c.repeatDelay&&(c.repeatDelay=wt(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let d=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(d=!0)),nu.skipAnimations&&(d=!0,c.duration=0,c.delay=0),d&&!s&&t.get()!==void 0){const f=no(c.keyframes,l);if(f!==void 0)return Q.update(()=>{c.onUpdate(f),c.onComplete()}),new s1([])}return!s&&hf.supports(c)?new hf(c):new Lu(c)};function Bw({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function jm(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:l,...a}=t;r&&(o=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const d in a){const f=e.getValue(d,(s=e.latestValues[d])!==null&&s!==void 0?s:null),g=a[d];if(g===void 0||c&&Bw(c,d))continue;const v={delay:n,...gu(o||{},d)};let y=!1;if(window.MotionHandoffAnimation){const p=om(e);if(p){const h=window.MotionHandoffAnimation(p,d,Q);h!==null&&(v.startTime=h,y=!0)}}Ul(e,d),f.start(_u(d,f,g,e.shouldReduceMotion&&im.has(d)?{type:!1}:v,e,y));const T=f.animation;T&&u.push(T)}return l&&Promise.all(u).then(()=>{Q.update(()=>{l&&w1(e,l)})}),u}function Xl(e,t,n={}){var r;const i=to(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(jm(e,i,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:d,staggerDirection:f}=s;return Uw(e,t,c+u,d,f,n)}:()=>Promise.resolve(),{when:a}=s;if(a){const[u,c]=a==="beforeChildren"?[o,l]:[l,o];return u().then(()=>c())}else return Promise.all([o(),l(n.delay)])}function Uw(e,t,n=0,r=0,i=1,s){const o=[],l=(e.variantChildren.size-1)*r,a=i===1?(u=0)=>u*r:(u=0)=>l-u*r;return Array.from(e.variantChildren).sort(Ww).forEach((u,c)=>{u.notify("AnimationStart",t),o.push(Xl(u,t,{...s,delay:n+a(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(o)}function Ww(e,t){return e.sortNodePosition(t)}function Hw(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(s=>Xl(e,s,n));r=Promise.all(i)}else if(typeof t=="string")r=Xl(e,t,n);else{const i=typeof t=="function"?to(e,t,n.custom):t;r=Promise.all(jm(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Kw=iu.length;function Om(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Om(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;nPromise.all(t.map(({animation:n,options:r})=>Hw(e,n,r)))}function Xw(e){let t=Qw(e),n=pf(),r=!0;const i=a=>(u,c)=>{var d;const f=to(e,c,a==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:v,...y}=f;u={...u,...y,...v}}return u};function s(a){t=a(e)}function o(a){const{props:u}=e,c=Om(e.parent)||{},d=[],f=new Set;let g={},v=1/0;for(let T=0;Tv&&w,I=!1;const R=Array.isArray(m)?m:[m];let F=R.reduce(i(p),{});x===!1&&(F={});const{prevResolvedValues:$e={}}=h,ot={...$e,...F},j=_=>{k=!0,f.has(_)&&(I=!0,f.delete(_)),h.needsAnimating[_]=!0;const S=e.getValue(_);S&&(S.liveStyle=!1)};for(const _ in ot){const S=F[_],M=$e[_];if(g.hasOwnProperty(_))continue;let A=!1;Fl(S)&&Fl(M)?A=!Zp(S,M):A=S!==M,A?S!=null?j(_):f.add(_):S!==void 0&&f.has(_)?j(_):h.protectedKeys[_]=!0}h.prevProp=m,h.prevResolvedValues=F,h.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(k=!1),k&&(!(P&&D)||I)&&d.push(...R.map(_=>({animation:_,options:{type:p}})))}if(f.size){const T={};f.forEach(p=>{const h=e.getBaseTarget(p),m=e.getValue(p);m&&(m.liveStyle=!0),T[p]=h??null}),d.push({animation:T})}let y=!!d.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function l(a,u){var c;if(n[a].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(a,u)}),n[a].isActive=u;const d=o(a);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:s,getState:()=>n,reset:()=>{n=pf(),r=!0}}}function Zw(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zp(t,e):!1}function bt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function pf(){return{animate:bt(!0),whileInView:bt(),whileHover:bt(),whileTap:bt(),whileDrag:bt(),whileFocus:bt(),exit:bt()}}class qt{constructor(t){this.isMounted=!1,this.node=t}update(){}}class qw extends qt{constructor(t){super(t),t.animationState||(t.animationState=Xw(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();bs(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let Jw=0;class bw extends qt{constructor(){super(...arguments),this.id=Jw++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const eS={animation:{Feature:qw},exit:{Feature:bw}};function oi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function gi(e){return{point:{x:e.pageX,y:e.pageY}}}const tS=e=>t=>wu(t)&&e(t,gi(t));function $r(e,t,n,r){return oi(e,t,tS(n),r)}const mf=(e,t)=>Math.abs(e-t);function nS(e,t){const n=mf(e.x,t.x),r=mf(e.y,t.y);return Math.sqrt(n**2+r**2)}class zm{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=zo(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=nS(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:v}=d,{timestamp:y}=he;this.history.push({...v,timestamp:y});const{onStart:T,onMove:p}=this.handlers;f||(T&&T(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Oo(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=zo(d.type==="pointercancel"?this.lastMoveEventInfo:Oo(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,T),v&&v(d,T)},!wu(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=gi(t),l=Oo(o,this.transformPagePoint),{point:a}=l,{timestamp:u}=he;this.history=[{...a,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,zo(l,this.history)),this.removeListeners=mi($r(this.contextWindow,"pointermove",this.handlePointerMove),$r(this.contextWindow,"pointerup",this.handlePointerUp),$r(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Yt(this.updatePoint)}}function Oo(e,t){return t?{point:t(e.point)}:e}function gf(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zo({point:e},t){return{point:e,delta:gf(e,Fm(t)),offset:gf(e,rS(t)),velocity:iS(t,.1)}}function rS(e){return e[0]}function Fm(e){return e[e.length-1]}function iS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=Fm(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wt(t)));)n--;if(!r)return{x:0,y:0};const s=St(i.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const Im=1e-4,sS=1-Im,oS=1+Im,Bm=.01,lS=0-Bm,aS=0+Bm;function Ie(e){return e.max-e.min}function uS(e,t,n){return Math.abs(e-t)<=n}function vf(e,t,n,r=.5){e.origin=r,e.originPoint=b(t.min,t.max,e.origin),e.scale=Ie(n)/Ie(t),e.translate=b(n.min,n.max,e.origin)-e.originPoint,(e.scale>=sS&&e.scale<=oS||isNaN(e.scale))&&(e.scale=1),(e.translate>=lS&&e.translate<=aS||isNaN(e.translate))&&(e.translate=0)}function Nr(e,t,n,r){vf(e.x,t.x,n.x,r?r.originX:void 0),vf(e.y,t.y,n.y,r?r.originY:void 0)}function yf(e,t,n){e.min=n.min+t.min,e.max=e.min+Ie(t)}function cS(e,t,n){yf(e.x,t.x,n.x),yf(e.y,t.y,n.y)}function wf(e,t,n){e.min=t.min-n.min,e.max=e.min+Ie(t)}function jr(e,t,n){wf(e.x,t.x,n.x),wf(e.y,t.y,n.y)}function fS(e,{min:t,max:n},r){return t!==void 0&&en&&(e=r?b(n,e,r.max):Math.min(e,n)),e}function Sf(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 dS(e,{top:t,left:n,bottom:r,right:i}){return{x:Sf(e.x,n,i),y:Sf(e.y,t,r)}}function xf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.minr?n=qn(t.min,t.max-r,e.min):r>i&&(n=qn(e.min,e.max-i,t.min)),Ct(0,1,n)}function mS(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Zl=.35;function gS(e=Zl){return e===!1?e=0:e===!0&&(e=Zl),{x:Pf(e,"left","right"),y:Pf(e,"top","bottom")}}function Pf(e,t,n){return{min:Tf(e,t),max:Tf(e,n)}}function Tf(e,t){return typeof e=="number"?e:e[t]||0}const kf=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nn=()=>({x:kf(),y:kf()}),Cf=()=>({min:0,max:0}),ie=()=>({x:Cf(),y:Cf()});function Ke(e){return[e("x"),e("y")]}function Um({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yS(e,t){if(!t)return e;const 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 Fo(e){return e===void 0||e===1}function ql({scale:e,scaleX:t,scaleY:n}){return!Fo(e)||!Fo(t)||!Fo(n)}function nn(e){return ql(e)||Wm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Wm(e){return Ef(e.x)||Ef(e.y)}function Ef(e){return e&&e!=="0%"}function Rs(e,t,n){const r=e-n,i=t*r;return n+i}function Mf(e,t,n,r,i){return i!==void 0&&(e=Rs(e,i,r)),Rs(e,n,r)+t}function Jl(e,t=0,n=1,r,i){e.min=Mf(e.min,t,n,r,i),e.max=Mf(e.max,t,n,r,i)}function Hm(e,{x:t,y:n}){Jl(e.x,t.translate,t.scale,t.originPoint),Jl(e.y,n.translate,n.scale,n.originPoint)}const Df=.999999999999,Af=1.0000000000001;function wS(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let s,o;for(let l=0;lDf&&(t.x=1),t.yDf&&(t.y=1)}function jn(e,t){e.min=e.min+t,e.max=e.max+t}function Lf(e,t,n,r,i=.5){const s=b(e.min,e.max,i);Jl(e,t,n,s,r)}function On(e,t){Lf(e.x,t.x,t.scaleX,t.scale,t.originX),Lf(e.y,t.y,t.scaleY,t.scale,t.originY)}function Km(e,t){return Um(yS(e.getBoundingClientRect(),t))}function SS(e,t,n){const r=Km(e,n),{scroll:i}=t;return i&&(jn(r.x,i.offset.x),jn(r.y,i.offset.y)),r}const Ym=({current:e})=>e?e.ownerDocument.defaultView:null,xS=new WeakMap;class PS{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ie(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gi(c).point)},s=(c,d)=>{const{drag:f,dragPropagation:g,onDragStart:v}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=p1(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ke(T=>{let p=this.getAxisMotionValue(T).get()||0;if(dt.test(p)){const{projection:h}=this.visualElement;if(h&&h.layout){const m=h.layout.layoutBox[T];m&&(p=Ie(m)*(parseFloat(p)/100))}}this.originPoint[T]=p}),v&&Q.postRender(()=>v(c,d)),Ul(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(c,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:v,onDrag:y}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:T}=d;if(g&&this.currentDirection===null){this.currentDirection=TS(T),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,T),this.updateAxis("y",d.point,T),this.visualElement.render(),y&&y(c,d)},l=(c,d)=>this.stop(c,d),a=()=>Ke(c=>{var d;return this.getAnimationState(c)==="paused"&&((d=this.getAxisMotionValue(c).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new zm(t,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:l,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:Ym(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s&&Q.postRender(()=>s(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Fi(t,i,this.currentDirection))return;const s=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=fS(o,this.constraints[t],this.elastic[t])),s.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,s=this.constraints;n&&Vn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=dS(i.layoutBox,n):this.constraints=!1,this.elastic=gS(r),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ke(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=mS(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Vn(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=SS(r,i.root,this.visualElement.getTransformPagePoint());let o=hS(i.layout.layoutBox,s);if(n){const l=n(vS(o));this.hasMutatedConstraints=!!l,l&&(o=Um(l))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),a=this.constraints||{},u=Ke(c=>{if(!Fi(c,n,this.currentDirection))return;let d=a&&a[c]||{};o&&(d={min:0,max:0});const f=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[c]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...d};return this.startAxisValueAnimation(c,v)});return Promise.all(u).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Ul(this.visualElement,t),r.start(_u(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ke(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ke(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ke(n=>{const{drag:r}=this.getProps();if(!Fi(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[n];s.set(t[n]-b(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Vn(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ke(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const a=l.get();i[o]=pS({min:a,max:a},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ke(o=>{if(!Fi(o,t,null))return;const l=this.getAxisMotionValue(o),{min:a,max:u}=this.constraints[o];l.set(b(a,u,i[o]))})}addListeners(){if(!this.visualElement.current)return;xS.set(this.visualElement,this);const t=this.visualElement.current,n=$r(t,"pointerdown",a=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(a)}),r=()=>{const{dragConstraints:a}=this.getProps();Vn(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Q.read(r);const o=oi(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:a,hasLayoutChanged:u})=>{this.isDragging&&u&&(Ke(c=>{const d=this.getAxisMotionValue(c);d&&(this.originPoint[c]+=a[c].translate,d.set(d.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),n(),s(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Zl,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:l}}}function Fi(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function TS(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class kS extends qt{constructor(t){super(t),this.removeGroupControls=ze,this.removeListeners=ze,this.controls=new PS(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ze}unmount(){this.removeGroupControls(),this.removeListeners()}}const _f=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))};class CS extends qt{constructor(){super(...arguments),this.removePointerDownListener=ze}onPointerDown(t){this.session=new zm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Ym(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:_f(t),onStart:_f(n),onMove:r,onEnd:(s,o)=>{delete this.session,i&&Q.postRender(()=>i(s,o))}}}mount(){this.removePointerDownListener=$r(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const ts={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rf(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const mr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(O.test(e))e=parseFloat(e);else return e;const n=Rf(e,t.target.x),r=Rf(e,t.target.y);return`${n}% ${r}%`}},ES={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Gt.parse(e);if(i.length>5)return r;const s=Gt.createTransformer(e),o=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=l,i[1+o]/=a;const u=b(l,a,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),s(i)}};class MS extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:s}=t;G0(DS),s&&(n.group&&n.group.add(s),r&&r.register&&i&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ts.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:s}=this.props,o=r.projection;return o&&(o.isPresent=s,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?o.promote():o.relegate()||Q.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ou.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gm(e){const[t,n]=Dp(),r=E.useContext(ba);return N.jsx(MS,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(Op),isPresent:t,safeToRemove:n})}const DS={borderRadius:{...mr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:mr,borderTopRightRadius:mr,borderBottomLeftRadius:mr,borderBottomRightRadius:mr,boxShadow:ES};function AS(e,t,n){const r=xe(e)?e:ii(e);return r.start(_u("",r,t,n)),r.animation}function LS(e){return e instanceof SVGElement&&e.tagName!=="svg"}const _S=(e,t)=>e.depth-t.depth;class RS{constructor(){this.children=[],this.isDirty=!1}add(t){Su(this.children,t),this.isDirty=!0}remove(t){xu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_S),this.isDirty=!1,this.children.forEach(t)}}function VS(e,t){const n=ht.now(),r=({timestamp:i})=>{const s=i-n;s>=t&&(Yt(r),e(s-t))};return Q.read(r,!0),()=>Yt(r)}const Qm=["TopLeft","TopRight","BottomLeft","BottomRight"],$S=Qm.length,Vf=e=>typeof e=="string"?parseFloat(e):e,$f=e=>typeof e=="number"||O.test(e);function NS(e,t,n,r,i,s){i?(e.opacity=b(0,n.opacity!==void 0?n.opacity:1,jS(r)),e.opacityExit=b(t.opacity!==void 0?t.opacity:1,0,OS(r))):s&&(e.opacity=b(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<$S;o++){const l=`border${Qm[o]}Radius`;let a=Nf(t,l),u=Nf(n,l);if(a===void 0&&u===void 0)continue;a||(a=0),u||(u=0),a===0||u===0||$f(a)===$f(u)?(e[l]=Math.max(b(Vf(a),Vf(u),r),0),(dt.test(u)||dt.test(a))&&(e[l]+="%")):e[l]=u}(t.rotate||n.rotate)&&(e.rotate=b(t.rotate||0,n.rotate||0,r))}function Nf(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const jS=Xm(0,.5,hm),OS=Xm(.5,.95,ze);function Xm(e,t,n){return r=>rt?1:n(qn(e,t,r))}function jf(e,t){e.min=t.min,e.max=t.max}function He(e,t){jf(e.x,t.x),jf(e.y,t.y)}function Of(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function zf(e,t,n,r,i){return e-=t,e=Rs(e,1/n,r),i!==void 0&&(e=Rs(e,1/i,r)),e}function zS(e,t=0,n=1,r=.5,i,s=e,o=e){if(dt.test(t)&&(t=parseFloat(t),t=b(o.min,o.max,t/100)-o.min),typeof t!="number")return;let l=b(s.min,s.max,r);e===s&&(l-=t),e.min=zf(e.min,t,n,l,i),e.max=zf(e.max,t,n,l,i)}function Ff(e,t,[n,r,i],s,o){zS(e,t[n],t[r],t[i],t.scale,s,o)}const FS=["x","scaleX","originX"],IS=["y","scaleY","originY"];function If(e,t,n,r){Ff(e.x,t,FS,n?n.x:void 0,r?r.x:void 0),Ff(e.y,t,IS,n?n.y:void 0,r?r.y:void 0)}function Bf(e){return e.translate===0&&e.scale===1}function Zm(e){return Bf(e.x)&&Bf(e.y)}function Uf(e,t){return e.min===t.min&&e.max===t.max}function BS(e,t){return Uf(e.x,t.x)&&Uf(e.y,t.y)}function Wf(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qm(e,t){return Wf(e.x,t.x)&&Wf(e.y,t.y)}function Hf(e){return Ie(e.x)/Ie(e.y)}function Kf(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class US{constructor(){this.members=[]}add(t){Su(this.members,t),t.scheduleRender()}remove(t){if(xu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){r=s;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function WS(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:d,rotateY:f,skewX:g,skewY:v}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const l=e.x.scale*t.x,a=e.y.scale*t.y;return(l!==1||a!==1)&&(r+=`scale(${l}, ${a})`),r||"none"}const rn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tr=typeof window<"u"&&window.MotionDebug!==void 0,Io=["","X","Y","Z"],HS={visibility:"hidden"},Yf=1e3;let KS=0;function Bo(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Jm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=om(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Q,!(i||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Jm(r)}function bm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},l=t==null?void 0:t()){this.id=KS++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tr&&(rn.totalNodes=rn.resolvedTargetDeltas=rn.recalculatedProjection=0),this.nodes.forEach(QS),this.nodes.forEach(bS),this.nodes.forEach(ex),this.nodes.forEach(XS),Tr&&window.MotionDebug.record(rn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let a=0;athis.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=VS(f,250),ts.hasAnimatedSinceResize&&(ts.hasAnimatedSinceResize=!1,this.nodes.forEach(Qf))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&c&&(a||u)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||c.getDefaultTransition()||sx,{onLayoutAnimationStart:T,onLayoutAnimationComplete:p}=c.getProps(),h=!this.targetLayout||!qm(this.targetLayout,v)||g,m=!f&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||f&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,m);const w={...gu(y,"layout"),onPlay:T,onComplete:p};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else f||Qf(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Yt(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(tx),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Jm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{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 a=0;a{const x=w/1e3;Xf(d.x,o.x,x),Xf(d.y,o.y,x),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(jr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),rx(this.relativeTarget,this.relativeTargetOrigin,f,x),m&&BS(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m=ie()),He(m,this.relativeTarget)),y&&(this.animationValues=c,NS(c,u,this.latestValues,x,h,p)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{ts.hasAnimatedSinceResize=!0,this.currentAnimation=AS(0,Yf,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Yf),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:a,layout:u,latestValues:c}=o;if(!(!l||!a||!u)){if(this!==o&&this.layout&&u&&eg(this.options.animationType,this.layout.layoutBox,u.layoutBox)){a=this.target||ie();const d=Ie(this.layout.layoutBox.x);a.x.min=o.target.x.min,a.x.max=a.x.min+d;const f=Ie(this.layout.layoutBox.y);a.y.min=o.target.y.min,a.y.max=a.y.min+f}He(l,a),On(l,c),Nr(this.projectionDeltaWithTransform,this.layoutCorrected,l,c)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new US),this.sharedNodes.get(o).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:a}={}){const u=this.getStack();u&&u.promote(this,a),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:a}=o;if((a.z||a.rotate||a.rotateX||a.rotateY||a.rotateZ||a.skewX||a.skewY)&&(l=!0),!l)return;const u={};a.z&&Bo("z",o,u,this.animationValues);for(let c=0;c{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Gf),this.root.sharedNodes.clear()}}}function YS(e){e.updateLayout()}function GS(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;s==="size"?Ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=Ie(f);f.min=r[d].min,f.max=f.min+g}):eg(s,n.layoutBox,r)&&Ke(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=Ie(r[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const l=Nn();Nr(l,r,n.layoutBox);const a=Nn();o?Nr(a,e.applyTransform(i,!0),n.measuredBox):Nr(a,r,n.layoutBox);const u=!Zm(l);let c=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const v=ie();jr(v,n.layoutBox,f.layoutBox);const y=ie();jr(y,r,g.layoutBox),qm(v,y)||(c=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:a,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function QS(e){Tr&&rn.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 XS(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ZS(e){e.clearSnapshot()}function Gf(e){e.clearMeasurements()}function qS(e){e.isLayoutDirty=!1}function JS(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Qf(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bS(e){e.resolveTargetDelta()}function ex(e){e.calcProjection()}function tx(e){e.resetSkewAndRotation()}function nx(e){e.removeLeadSnapshot()}function Xf(e,t,n){e.translate=b(t.translate,0,n),e.scale=b(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zf(e,t,n,r){e.min=b(t.min,n.min,r),e.max=b(t.max,n.max,r)}function rx(e,t,n,r){Zf(e.x,t.x,n.x,r),Zf(e.y,t.y,n.y,r)}function ix(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const sx={duration:.45,ease:[.4,0,.1,1]},qf=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jf=qf("applewebkit/")&&!qf("chrome/")?Math.round:ze;function bf(e){e.min=Jf(e.min),e.max=Jf(e.max)}function ox(e){bf(e.x),bf(e.y)}function eg(e,t,n){return e==="position"||e==="preserve-aspect"&&!uS(Hf(t),Hf(n),.2)}function lx(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const ax=bm({attachResizeListener:(e,t)=>oi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Uo={current:void 0},tg=bm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Uo.current){const e=new ax({});e.mount(window),e.setOptions({layoutScroll:!0}),Uo.current=e}return Uo.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ux={pan:{Feature:CS},drag:{Feature:kS,ProjectionNode:tg,MeasureLayout:Gm}};function ed(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,s=r[i];s&&Q.postRender(()=>s(t,gi(t)))}class cx extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=u1(t,n=>(ed(this.node,n,"Start"),r=>ed(this.node,r,"End"))))}unmount(){}}class fx extends qt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=mi(oi(this.node.current,"focus",()=>this.onFocus()),oi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function td(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),s=r[i];s&&Q.postRender(()=>s(t,gi(t)))}class dx extends qt{mount(){const{current:t}=this.node;t&&(this.unmount=h1(t,n=>(td(this.node,n,"Start"),(r,{success:i})=>td(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const bl=new WeakMap,Wo=new WeakMap,hx=e=>{const t=bl.get(e.target);t&&t(e)},px=e=>{e.forEach(hx)};function mx({root:e,...t}){const n=e||document;Wo.has(n)||Wo.set(n,{});const r=Wo.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(px,{root:e,...t})),r[i]}function gx(e,t,n){const r=mx(t);return bl.set(e,n),r.observe(e),()=>{bl.delete(e),r.unobserve(e)}}const vx={some:0,all:1};class yx extends qt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:s}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:vx[i]},l=a=>{const{isIntersecting:u}=a;if(this.isInView===u||(this.isInView=u,s&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:d}=this.node.getProps(),f=u?c:d;f&&f(a)};return gx(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(wx(t,n))&&this.startObserver()}unmount(){}}function wx({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Sx={inView:{Feature:yx},tap:{Feature:dx},focus:{Feature:fx},hover:{Feature:cx}},xx={layout:{ProjectionNode:tg,MeasureLayout:Gm}},ea={current:null},ng={current:!1};function Px(){if(ng.current=!0,!!eu)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ea.current=e.matches;e.addListener(t),t()}else ea.current=!1}const Tx=[...Mm,we,Gt],kx=e=>Tx.find(Em(e)),nd=new WeakMap;function Cx(e,t,n){for(const r in t){const i=t[r],s=n[r];if(xe(i))e.addValue(r,i);else if(xe(s))e.addValue(r,ii(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,ii(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const rd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Ex{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Du,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=ht.now();this.renderScheduledAtthis.bindToMotionValue(r,n)),ng.current||Px(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ea.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){nd.delete(this.current),this.projection&&this.projection.unmount(),Yt(this.notifyUpdate),Yt(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=wn.has(t),i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&Q.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),s(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Jn){const n=Jn[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;rn.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ii(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(km(i)||mm(i))?i=parseFloat(i):!kx(i)&&Gt.test(n)&&(i=xm(t,n)),this.setBaseTarget(t,xe(i)?i.get():i)),xe(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=au(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,t);return s!==void 0&&!xe(s)?s:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Pu),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class rg extends Ex{constructor(){super(...arguments),this.KeyframeResolver=Dm}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Mx(e){return window.getComputedStyle(e)}class Dx extends rg{constructor(){super(...arguments),this.type="html",this.renderInstance=Hp}readValueFromInstance(t,n){if(wn.has(n)){const r=Mu(n);return r&&r.default||0}else{const r=Mx(t),i=(Bp(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Km(t,n)}build(t,n,r){fu(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return mu(t,n,r)}}class Ax extends rg{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(wn.has(n)){const r=Mu(n);return r&&r.default||0}return n=Kp.has(n)?n:su(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Qp(t,n,r)}build(t,n,r){du(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Yp(t,n,r,i)}mount(t){this.isSVGTag=pu(t.tagName),super.mount(t)}}const Lx=(e,t)=>lu(e)?new Ax(t):new Dx(t,{allowProjection:e!==E.Fragment}),_x=n1({...eS,...Sx,...ux,...xx},Lx),id=v0(_x),ta=ue.createContext(null);function Rx(e){let{children:t}=e,n=E.useContext(ta),[r,i]=E.useState(0),s=E.useMemo(()=>({parent:n,modalCount:r,addModal(){i(o=>o+1),n&&n.addModal()},removeModal(){i(o=>o-1),n&&n.removeModal()}}),[n,r]);return ue.createElement(ta.Provider,{value:s},t)}function Vx(){let e=E.useContext(ta);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:void 0}}}function $x(e){let{modalProviderProps:t}=Vx();return ue.createElement("div",{"data-overlay-container":!0,...e,...t})}function Nx(e){return ue.createElement(Rx,null,ue.createElement($x,e))}var jx=({children:e,navigate:t,disableAnimation:n,useHref:r,disableRipple:i=!1,skipFramerMotionAnimations:s=n,reducedMotion:o="never",validationBehavior:l,locale:a="en-US",labelPlacement:u,defaultDates:c,createCalendar:d,spinnerVariant:f,...g})=>{let v=e;t&&(v=N.jsx(bg,{navigate:t,useHref:r,children:v}));const y=E.useMemo(()=>(n&&s&&(nu.skipAnimations=!0),{createCalendar:d,defaultDates:c,disableAnimation:n,disableRipple:i,validationBehavior:l,labelPlacement:u,spinnerVariant:f}),[d,c==null?void 0:c.maxDate,c==null?void 0:c.minDate,n,i,l,u,f]);return N.jsx(Lg,{value:y,children:N.jsx(Wg,{locale:a,children:N.jsx(g0,{reducedMotion:o,children:N.jsx(Nx,{...g,children:v})})})})},Ho={exports:{}},sd;function ig(){return sd||(sd=1,function(e,t){(function(n,r){e.exports=r()})(ra,function(){var n=1e3,r=6e4,i=36e5,s="millisecond",o="second",l="minute",a="hour",u="day",c="week",d="month",f="quarter",g="year",v="date",y="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var V=["th","st","nd","rd"],L=j%100;return"["+j+(V[(L-20)%10]||V[L]||V[0])+"]"}},m=function(j,V,L){var _=String(j);return!_||_.length>=V?j:""+Array(V+1-_.length).join(L)+j},w={s:m,z:function(j){var V=-j.utcOffset(),L=Math.abs(V),_=Math.floor(L/60),S=L%60;return(V<=0?"+":"-")+m(_,2,"0")+":"+m(S,2,"0")},m:function j(V,L){if(V.date()1)return j(A[0])}else{var z=V.name;P[z]=V,S=z}return!_&&S&&(x=S),S||!_&&x},R=function(j,V){if(k(j))return j.clone();var L=typeof V=="object"?V:{};return L.date=j,L.args=arguments,new $e(L)},F=w;F.l=I,F.i=k,F.w=function(j,V){return R(j,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var $e=function(){function j(L){this.$L=I(L.locale,null,!0),this.parse(L),this.$x=this.$x||L.x||{},this[D]=!0}var V=j.prototype;return V.parse=function(L){this.$d=function(_){var S=_.date,M=_.utc;if(S===null)return new Date(NaN);if(F.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var A=S.match(T);if(A){var z=A[2]-1||0,B=(A[7]||"0").substring(0,3);return M?new Date(Date.UTC(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)):new Date(A[1],z,A[3]||1,A[4]||0,A[5]||0,A[6]||0,B)}}return new Date(S)}(L),this.init()},V.init=function(){var L=this.$d;this.$y=L.getFullYear(),this.$M=L.getMonth(),this.$D=L.getDate(),this.$W=L.getDay(),this.$H=L.getHours(),this.$m=L.getMinutes(),this.$s=L.getSeconds(),this.$ms=L.getMilliseconds()},V.$utils=function(){return F},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(L,_){var S=R(L);return this.startOf(_)<=S&&S<=this.endOf(_)},V.isAfter=function(L,_){return R(L)1&&~~(f/10)%10!=1}function o(f,g,v){var y=f+" ";switch(v){case"m":return g?"minuta":"minutę";case"mm":return y+(s(f)?"minuty":"minut");case"h":return g?"godzina":"godzinę";case"hh":return y+(s(f)?"godziny":"godzin");case"MM":return y+(s(f)?"miesiące":"miesięcy");case"yy":return y+(s(f)?"lata":"lat")}}var l="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),a="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),u=/D MMMM/,c=function(f,g){return u.test(g)?l[f.month()]:a[f.month()]};c.s=a,c.f=l;var d={name:"pl",weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),months:c,monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),ordinal:function(f){return f+"."},weekStart:1,yearStart:4,relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:o,y:"rok",yy:o},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"}};return i.default.locale(d,null,!0),d})})(og);var zx=og.exports;const Fx=Vs(zx);var na={},od=o0;na.createRoot=od.createRoot,na.hydrateRoot=od.hydrateRoot;const Ix=()=>{},Ii=(e,t)=>{const n=E.useRef(Ix);E.useEffect(()=>{n.current=t},[t]),E.useEffect(()=>{const r=i=>{const{action:s,data:o}=i.data;n.current&&s===e&&n.current(o)};return window.addEventListener("message",r),()=>window.removeEventListener("message",r)},[e])},Bx=()=>{const[e,t]=E.useState([]),[n,r]=E.useState({}),[i,s]=E.useState(null),[o,l]=E.useState("center"),[a,u]=E.useState("");Ii("open",f=>{t(f.screws);const g=f.screws.find(v=>v.available);s((g==null?void 0:g.id)||null),l(f.location||"center"),r(f.locales||{})}),Ii("setHint",f=>{u(f)}),Ii("selectScrew",f=>{s(f)}),Ii("close",()=>{t([]),s(null)});const c=()=>{switch(o){case"top-left":return"items-start justify-start";case"top-right":return"items-start justify-end";case"bottom-left":return"items-end justify-start";case"bottom-right":return"items-end justify-end";case"middle-left":return"items-center justify-start";case"middle-right":return"items-center justify-end";case"center":return"items-center justify-center";default:return"items-center justify-center"}},d=()=>{switch(o){case"top-left":case"top-right":return{y:-20};case"bottom-left":case"bottom-right":return{y:20};case"middle-left":return{x:-20};case"middle-right":return{x:20};default:return{scale:.9,y:10}}};return N.jsxs(N.Fragment,{children:[N.jsx(Uc,{children:a&&N.jsx(id.div,{initial:{opacity:0,y:-10,x:"-50%"},animate:{opacity:1,y:0,x:"-50%"},exit:{opacity:0,y:-10,x:"-50%"},transition:{duration:.2},className:"fixed -translate-x-1/2 top-8 left-1/2",children:N.jsxs("div",{className:"relative px-5 py-2.5 bg-zinc-900/95 border border-blue-500/30 rounded-lg",children:[N.jsx("div",{className:"absolute inset-0 rounded-lg bg-gradient-to-r from-transparent via-blue-500/5 to-transparent"}),N.jsx("div",{className:"relative text-sm font-medium text-white",children:a.split(` `).map((f,g)=>N.jsx("p",{className:`${g>0?"mt-1":""} text-center`,children:f},g))})]})})}),N.jsx("div",{className:`flex w-screen h-screen p-8 ${c()}`,children:N.jsx(Uc,{children:e.length>0&&N.jsxs(id.div,{initial:{opacity:0,...d()},animate:{opacity:1,y:0,x:0,scale:1},exit:{opacity:0,...d()},transition:{duration:.3,ease:[.4,0,.2,1]},className:"flex flex-col gap-3 p-4 border shadow-2xl w-fit rounded-xl bg-zinc-900/95 border-zinc-800/50",children:[N.jsx("div",{className:"pb-2 border-b border-zinc-800/50",children:N.jsx("h2",{className:"text-sm font-semibold text-white",children:n.title||"Select screw"})}),N.jsx("div",{className:"flex flex-col gap-1.5",children:e.map(f=>N.jsxs("div",{className:` relative px-3 py-2.5 rounded-lg border transition-all duration-200 ${i===f.id?"bg-gradient-to-r border-transparent from-blue-600 to-blue-500 shadow-md shadow-blue-500/20":f.available?"bg-zinc-800/60 border-zinc-700/40":"bg-zinc-800/30 opacity-40 border-zinc-700/20"} `,children:[i===f.id&&N.jsx("div",{className:"absolute w-0.5 h-6 -translate-y-1/2 bg-white rounded-full left-1 top-1/2"}),N.jsxs("div",{className:"flex items-center justify-between ml-2",children:[N.jsx("div",{className:"flex items-center gap-2",children:N.jsx("span",{className:`text-sm font-medium ${i===f.id?"text-white":"text-zinc-300"}`,children:f.label})}),N.jsx("div",{className:`w-2 h-2 rounded-full ${i===f.id?"bg-white":f.available?"bg-green-400":"bg-zinc-600"}`})]})]},f.id))}),N.jsxs("div",{className:"flex items-center justify-center gap-3 pt-2 mt-1 border-t border-zinc-800/50",children:[N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 text-xs font-semibold text-white bg-blue-600 rounded",children:"E"}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.select||"Select"})]}),N.jsx("div",{className:"w-px h-4 bg-zinc-700/50"}),N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 text-xs font-semibold text-white bg-blue-600 rounded",children:"X"}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.cancel||"Cancel"})]}),N.jsx("div",{className:"w-px h-4 bg-zinc-700/50"}),N.jsxs("div",{className:"flex items-center gap-1.5",children:[N.jsx("div",{className:"flex items-center justify-center w-5 h-5 bg-blue-600 rounded",children:N.jsx("svg",{className:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:N.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 15l5 5 5-5M7 9l5-5 5 5"})})}),N.jsx("span",{className:"text-[11px] text-zinc-400",children:n.change_selection||"Scroll"})]})]})]})})})]})};var lg={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ra,function(){return function(n,r,i){n=n||{};var s=r.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,c,d,f){return s.fromToBase(u,c,d,f)}i.en.relativeTime=o,s.fromToBase=function(u,c,d,f,g){for(var v,y,T,p=d.$locale().relativeTime||o,h=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],m=h.length,w=0;w0,P<=x.r||!x.r){P<=1&&w>0&&(x=h[w-1]);var D=p[x.l];g&&(P=g(""+P)),y=typeof D=="string"?D.replace("%d",P):D(P,c,x.l,T);break}}if(c)return y;var k=T?p.future:p.past;return typeof k=="function"?k(y):k.replace("%s",y)},s.to=function(u,c){return l(u,c,this,!0)},s.from=function(u,c){return l(u,c,this)};var a=function(u){return u.$u?i.utc():i()};s.toNow=function(u){return this.to(a(this),u)},s.fromNow=function(u){return this.from(a(this),u)}}})})(lg);var Ux=lg.exports;const Wx=Vs(Ux);sg.locale(Fx);sg.extend(Wx);na.createRoot(document.getElementById("root")).render(N.jsx(jx,{children:N.jsx(Bx,{})}));