maxsimcli 3.1.4 → 3.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/CHANGELOG.md +7 -0
- package/dist/assets/dashboard/client/assets/index-BK45VD-x.css +32 -0
- package/dist/assets/dashboard/client/assets/{index-BJj6Lxu-.js → index-BrcyYMEB.js} +1 -1
- package/dist/assets/dashboard/client/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/dashboard/client/assets/index-CvgqgRzX.css +0 -32
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
`+V[p].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),re}while(1<=p&&0<=O);break}}}finally{ln=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?Pe(f):""}function Vh(a,h){switch(a.tag){case 26:case 27:case 5:return Pe(a.type);case 16:return Pe("Lazy");case 13:return a.child!==h&&h!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return Xh(a.type,!1);case 11:return Xh(a.type.render,!1);case 1:return Xh(a.type,!0);case 31:return Pe("Activity");default:return""}}function Zh(a){try{var h="",f=null;do h+=Vh(a,f),f=a,a=a.return;while(a);return h}catch(p){return`
|
|
47
47
|
Error generating stack: `+p.message+`
|
|
48
48
|
`+p.stack}}var el=Object.prototype.hasOwnProperty,jh=i.unstable_scheduleCallback,Tg=i.unstable_cancelCallback,r4=i.unstable_shouldYield,n4=i.unstable_requestPaint,vs=i.unstable_now,o4=i.unstable_getCurrentPriorityLevel,rx=i.unstable_ImmediatePriority,nx=i.unstable_UserBlockingPriority,Qf=i.unstable_NormalPriority,a4=i.unstable_LowPriority,ox=i.unstable_IdlePriority,l4=i.log,h4=i.unstable_setDisableYieldValue,Ih=null,ys=null;function Hn(a){if(typeof l4=="function"&&h4(a),ys&&typeof ys.setStrictMode=="function")try{ys.setStrictMode(Ih,a)}catch{}}var bs=Math.clz32?Math.clz32:f4,c4=Math.log,u4=Math.LN2;function f4(a){return a>>>=0,a===0?32:31-(c4(a)/u4|0)|0}var Rf=256,Lf=262144,$f=4194304;function Jo(a){var h=a&42;if(h!==0)return h;switch(a&-a){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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Bf(a,h,f){var p=a.pendingLanes;if(p===0)return 0;var O=0,v=a.suspendedLanes,S=a.pingedLanes;a=a.warmLanes;var T=p&134217727;return T!==0?(p=T&~v,p!==0?O=Jo(p):(S&=T,S!==0?O=Jo(S):f||(f=T&~a,f!==0&&(O=Jo(f))))):(T=p&~v,T!==0?O=Jo(T):S!==0?O=Jo(S):f||(f=p&~a,f!==0&&(O=Jo(f)))),O===0?0:h!==0&&h!==O&&(h&v)===0&&(v=O&-O,f=h&-h,v>=f||v===32&&(f&4194048)!==0)?h:O}function qh(a,h){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&h)===0}function d4(a,h){switch(a){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32: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 h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ax(){var a=$f;return $f<<=1,($f&62914560)===0&&($f=4194304),a}function Ag(a){for(var h=[],f=0;31>f;f++)h.push(a);return h}function Wh(a,h){a.pendingLanes|=h,h!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function p4(a,h,f,p,O,v){var S=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var T=a.entanglements,V=a.expirationTimes,J=a.hiddenUpdates;for(f=S&~f;0<f;){var re=31-bs(f),ae=1<<re;T[re]=0,V[re]=-1;var ee=J[re];if(ee!==null)for(J[re]=null,re=0;re<ee.length;re++){var te=ee[re];te!==null&&(te.lane&=-536870913)}f&=~ae}p!==0&&lx(a,p,0),v!==0&&O===0&&a.tag!==0&&(a.suspendedLanes|=v&~(S&~h))}function lx(a,h,f){a.pendingLanes|=h,a.suspendedLanes&=~h;var p=31-bs(h);a.entangledLanes|=h,a.entanglements[p]=a.entanglements[p]|1073741824|f&261930}function hx(a,h){var f=a.entangledLanes|=h;for(a=a.entanglements;f;){var p=31-bs(f),O=1<<p;O&h|a[p]&h&&(a[p]|=h),f&=~O}}function cx(a,h){var f=h&-h;return f=(f&42)!==0?1:Mg(f),(f&(a.suspendedLanes|h))!==0?0:f}function Mg(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Eg(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function ux(){var a=X.p;return a!==0?a:(a=window.event,a===void 0?32:Fk(a.type))}function fx(a,h){var f=X.p;try{return X.p=a,h()}finally{X.p=f}}var Fn=Math.random().toString(36).slice(2),wi="__reactFiber$"+Fn,rs="__reactProps$"+Fn,tl="__reactContainer$"+Fn,Pg="__reactEvents$"+Fn,m4="__reactListeners$"+Fn,g4="__reactHandles$"+Fn,dx="__reactResources$"+Fn,Uh="__reactMarker$"+Fn;function Qg(a){delete a[wi],delete a[rs],delete a[Pg],delete a[m4],delete a[g4]}function il(a){var h=a[wi];if(h)return h;for(var f=a.parentNode;f;){if(h=f[tl]||f[wi]){if(f=h.alternate,h.child!==null||f!==null&&f.child!==null)for(a=Lk(a);a!==null;){if(f=a[wi])return f;a=Lk(a)}return h}a=f,f=a.parentNode}return null}function sl(a){if(a=a[wi]||a[tl]){var h=a.tag;if(h===5||h===6||h===13||h===31||h===26||h===27||h===3)return a}return null}function Yh(a){var h=a.tag;if(h===5||h===26||h===27||h===6)return a.stateNode;throw Error(s(33))}function rl(a){var h=a[dx];return h||(h=a[dx]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function ai(a){a[Uh]=!0}var px=new Set,mx={};function ea(a,h){nl(a,h),nl(a+"Capture",h)}function nl(a,h){for(mx[a]=h,a=0;a<h.length;a++)px.add(h[a])}var O4=RegExp("^[: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]*$"),gx={},Ox={};function _4(a){return el.call(Ox,a)?!0:el.call(gx,a)?!1:O4.test(a)?Ox[a]=!0:(gx[a]=!0,!1)}function Df(a,h,f){if(_4(h))if(f===null)a.removeAttribute(h);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(h);return;case"boolean":var p=h.toLowerCase().slice(0,5);if(p!=="data-"&&p!=="aria-"){a.removeAttribute(h);return}}a.setAttribute(h,""+f)}}function zf(a,h,f){if(f===null)a.removeAttribute(h);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(h);return}a.setAttribute(h,""+f)}}function hn(a,h,f,p){if(p===null)a.removeAttribute(f);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(h,f,""+p)}}function Ns(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function _x(a){var h=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function v4(a,h,f){var p=Object.getOwnPropertyDescriptor(a.constructor.prototype,h);if(!a.hasOwnProperty(h)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var O=p.get,v=p.set;return Object.defineProperty(a,h,{configurable:!0,get:function(){return O.call(this)},set:function(S){f=""+S,v.call(this,S)}}),Object.defineProperty(a,h,{enumerable:p.enumerable}),{getValue:function(){return f},setValue:function(S){f=""+S},stopTracking:function(){a._valueTracker=null,delete a[h]}}}}function Rg(a){if(!a._valueTracker){var h=_x(a)?"checked":"value";a._valueTracker=v4(a,h,""+a[h])}}function vx(a){if(!a)return!1;var h=a._valueTracker;if(!h)return!0;var f=h.getValue(),p="";return a&&(p=_x(a)?a.checked?"true":"false":a.value),a=p,a!==f?(h.setValue(a),!0):!1}function Nf(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var y4=/[\n"\\]/g;function Xs(a){return a.replace(y4,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Lg(a,h,f,p,O,v,S,T){a.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?a.type=S:a.removeAttribute("type"),h!=null?S==="number"?(h===0&&a.value===""||a.value!=h)&&(a.value=""+Ns(h)):a.value!==""+Ns(h)&&(a.value=""+Ns(h)):S!=="submit"&&S!=="reset"||a.removeAttribute("value"),h!=null?$g(a,S,Ns(h)):f!=null?$g(a,S,Ns(f)):p!=null&&a.removeAttribute("value"),O==null&&v!=null&&(a.defaultChecked=!!v),O!=null&&(a.checked=O&&typeof O!="function"&&typeof O!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?a.name=""+Ns(T):a.removeAttribute("name")}function yx(a,h,f,p,O,v,S,T){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(a.type=v),h!=null||f!=null){if(!(v!=="submit"&&v!=="reset"||h!=null)){Rg(a);return}f=f!=null?""+Ns(f):"",h=h!=null?""+Ns(h):f,T||h===a.value||(a.value=h),a.defaultValue=h}p=p??O,p=typeof p!="function"&&typeof p!="symbol"&&!!p,a.checked=T?a.checked:!!p,a.defaultChecked=!!p,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(a.name=S),Rg(a)}function $g(a,h,f){h==="number"&&Nf(a.ownerDocument)===a||a.defaultValue===""+f||(a.defaultValue=""+f)}function ol(a,h,f,p){if(a=a.options,h){h={};for(var O=0;O<f.length;O++)h["$"+f[O]]=!0;for(f=0;f<a.length;f++)O=h.hasOwnProperty("$"+a[f].value),a[f].selected!==O&&(a[f].selected=O),O&&p&&(a[f].defaultSelected=!0)}else{for(f=""+Ns(f),h=null,O=0;O<a.length;O++){if(a[O].value===f){a[O].selected=!0,p&&(a[O].defaultSelected=!0);return}h!==null||a[O].disabled||(h=a[O])}h!==null&&(h.selected=!0)}}function bx(a,h,f){if(h!=null&&(h=""+Ns(h),h!==a.value&&(a.value=h),f==null)){a.defaultValue!==h&&(a.defaultValue=h);return}a.defaultValue=f!=null?""+Ns(f):""}function Sx(a,h,f,p){if(h==null){if(p!=null){if(f!=null)throw Error(s(92));if(Z(p)){if(1<p.length)throw Error(s(93));p=p[0]}f=p}f==null&&(f=""),h=f}f=Ns(h),a.defaultValue=f,p=a.textContent,p===f&&p!==""&&p!==null&&(a.value=p),Rg(a)}function al(a,h){if(h){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=h;return}}a.textContent=h}var b4=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xx(a,h,f){var p=h.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?p?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="":p?a.setProperty(h,f):typeof f!="number"||f===0||b4.has(h)?h==="float"?a.cssFloat=f:a[h]=(""+f).trim():a[h]=f+"px"}function wx(a,h,f){if(h!=null&&typeof h!="object")throw Error(s(62));if(a=a.style,f!=null){for(var p in f)!f.hasOwnProperty(p)||h!=null&&h.hasOwnProperty(p)||(p.indexOf("--")===0?a.setProperty(p,""):p==="float"?a.cssFloat="":a[p]="");for(var O in h)p=h[O],h.hasOwnProperty(O)&&f[O]!==p&&xx(a,O,p)}else for(var v in h)h.hasOwnProperty(v)&&xx(a,v,h[v])}function Bg(a){if(a.indexOf("-")===-1)return!1;switch(a){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 S4=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),x4=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xf(a){return x4.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function cn(){}var Dg=null;function zg(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var ll=null,hl=null;function Cx(a){var h=sl(a);if(h&&(a=h.stateNode)){var f=a[rs]||null;e:switch(a=h.stateNode,h.type){case"input":if(Lg(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),h=f.name,f.type==="radio"&&h!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+Xs(""+h)+'"][type="radio"]'),h=0;h<f.length;h++){var p=f[h];if(p!==a&&p.form===a.form){var O=p[rs]||null;if(!O)throw Error(s(90));Lg(p,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(h=0;h<f.length;h++)p=f[h],p.form===a.form&&vx(p)}break e;case"textarea":bx(a,f.value,f.defaultValue);break e;case"select":h=f.value,h!=null&&ol(a,!!f.multiple,h,!1)}}}var Ng=!1;function kx(a,h,f){if(Ng)return a(h,f);Ng=!0;try{var p=a(h);return p}finally{if(Ng=!1,(ll!==null||hl!==null)&&(Td(),ll&&(h=ll,a=hl,hl=ll=null,Cx(h),a)))for(h=0;h<a.length;h++)Cx(a[h])}}function Hh(a,h){var f=a.stateNode;if(f===null)return null;var p=f[rs]||null;if(p===null)return null;f=p[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(p=!p.disabled)||(a=a.type,p=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!p;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(s(231,h,typeof f));return f}var un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xg=!1;if(un)try{var Fh={};Object.defineProperty(Fh,"passive",{get:function(){Xg=!0}}),window.addEventListener("test",Fh,Fh),window.removeEventListener("test",Fh,Fh)}catch{Xg=!1}var Gn=null,Vg=null,Vf=null;function Tx(){if(Vf)return Vf;var a,h=Vg,f=h.length,p,O="value"in Gn?Gn.value:Gn.textContent,v=O.length;for(a=0;a<f&&h[a]===O[a];a++);var S=f-a;for(p=1;p<=S&&h[f-p]===O[v-p];p++);return Vf=O.slice(a,1<p?1-p:void 0)}function Zf(a){var h=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&h===13&&(a=13)):a=h,a===10&&(a=13),32<=a||a===13?a:0}function jf(){return!0}function Ax(){return!1}function ns(a){function h(f,p,O,v,S){this._reactName=f,this._targetInst=O,this.type=p,this.nativeEvent=v,this.target=S,this.currentTarget=null;for(var T in a)a.hasOwnProperty(T)&&(f=a[T],this[T]=f?f(v):v[T]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?jf:Ax,this.isPropagationStopped=Ax,this}return m(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=jf)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=jf)},persist:function(){},isPersistent:jf}),h}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=ns(ta),Gh=m({},ta,{view:0,detail:0}),w4=ns(Gh),Zg,jg,Kh,qf=m({},Gh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qg,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Kh&&(Kh&&a.type==="mousemove"?(Zg=a.screenX-Kh.screenX,jg=a.screenY-Kh.screenY):jg=Zg=0,Kh=a),Zg)},movementY:function(a){return"movementY"in a?a.movementY:jg}}),Mx=ns(qf),C4=m({},qf,{dataTransfer:0}),k4=ns(C4),T4=m({},Gh,{relatedTarget:0}),Ig=ns(T4),A4=m({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),M4=ns(A4),E4=m({},ta,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),P4=ns(E4),Q4=m({},ta,{data:0}),Ex=ns(Q4),R4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},L4={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B4(a){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(a):(a=$4[a])?!!h[a]:!1}function qg(){return B4}var D4=m({},Gh,{key:function(a){if(a.key){var h=R4[a.key]||a.key;if(h!=="Unidentified")return h}return a.type==="keypress"?(a=Zf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?L4[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qg,charCode:function(a){return a.type==="keypress"?Zf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Zf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),z4=ns(D4),N4=m({},qf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Px=ns(N4),X4=m({},Gh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qg}),V4=ns(X4),Z4=m({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),j4=ns(Z4),I4=m({},qf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),q4=ns(I4),W4=m({},ta,{newState:0,oldState:0}),U4=ns(W4),Y4=[9,13,27,32],Wg=un&&"CompositionEvent"in window,Jh=null;un&&"documentMode"in document&&(Jh=document.documentMode);var H4=un&&"TextEvent"in window&&!Jh,Qx=un&&(!Wg||Jh&&8<Jh&&11>=Jh),Rx=" ",Lx=!1;function $x(a,h){switch(a){case"keyup":return Y4.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var cl=!1;function F4(a,h){switch(a){case"compositionend":return Bx(h);case"keypress":return h.which!==32?null:(Lx=!0,Rx);case"textInput":return a=h.data,a===Rx&&Lx?null:a;default:return null}}function G4(a,h){if(cl)return a==="compositionend"||!Wg&&$x(a,h)?(a=Tx(),Vf=Vg=Gn=null,cl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Qx&&h.locale!=="ko"?null:h.data;default:return null}}var K4={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dx(a){var h=a&&a.nodeName&&a.nodeName.toLowerCase();return h==="input"?!!K4[a.type]:h==="textarea"}function zx(a,h,f,p){ll?hl?hl.push(p):hl=[p]:ll=p,h=Ld(h,"onChange"),0<h.length&&(f=new If("onChange","change",null,f,p),a.push({event:f,listeners:h}))}var ec=null,tc=null;function J4(a){yk(a,0)}function Wf(a){var h=Yh(a);if(vx(h))return a}function Nx(a,h){if(a==="change")return h}var Xx=!1;if(un){var Ug;if(un){var Yg="oninput"in document;if(!Yg){var Vx=document.createElement("div");Vx.setAttribute("oninput","return;"),Yg=typeof Vx.oninput=="function"}Ug=Yg}else Ug=!1;Xx=Ug&&(!document.documentMode||9<document.documentMode)}function Zx(){ec&&(ec.detachEvent("onpropertychange",jx),tc=ec=null)}function jx(a){if(a.propertyName==="value"&&Wf(tc)){var h=[];zx(h,tc,a,zg(a)),kx(J4,h)}}function e6(a,h,f){a==="focusin"?(Zx(),ec=h,tc=f,ec.attachEvent("onpropertychange",jx)):a==="focusout"&&Zx()}function t6(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Wf(tc)}function i6(a,h){if(a==="click")return Wf(h)}function s6(a,h){if(a==="input"||a==="change")return Wf(h)}function r6(a,h){return a===h&&(a!==0||1/a===1/h)||a!==a&&h!==h}var Ss=typeof Object.is=="function"?Object.is:r6;function ic(a,h){if(Ss(a,h))return!0;if(typeof a!="object"||a===null||typeof h!="object"||h===null)return!1;var f=Object.keys(a),p=Object.keys(h);if(f.length!==p.length)return!1;for(p=0;p<f.length;p++){var O=f[p];if(!el.call(h,O)||!Ss(a[O],h[O]))return!1}return!0}function Ix(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qx(a,h){var f=Ix(a);a=0;for(var p;f;){if(f.nodeType===3){if(p=a+f.textContent.length,a<=h&&p>=h)return{node:f,offset:h-a};a=p}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Ix(f)}}function Wx(a,h){return a&&h?a===h?!0:a&&a.nodeType===3?!1:h&&h.nodeType===3?Wx(a,h.parentNode):"contains"in a?a.contains(h):a.compareDocumentPosition?!!(a.compareDocumentPosition(h)&16):!1:!1}function Ux(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var h=Nf(a.document);h instanceof a.HTMLIFrameElement;){try{var f=typeof h.contentWindow.location.href=="string"}catch{f=!1}if(f)a=h.contentWindow;else break;h=Nf(a.document)}return h}function Hg(a){var h=a&&a.nodeName&&a.nodeName.toLowerCase();return h&&(h==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||h==="textarea"||a.contentEditable==="true")}var n6=un&&"documentMode"in document&&11>=document.documentMode,ul=null,Fg=null,sc=null,Gg=!1;function Yx(a,h,f){var p=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Gg||ul==null||ul!==Nf(p)||(p=ul,"selectionStart"in p&&Hg(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),sc&&ic(sc,p)||(sc=p,p=Ld(Fg,"onSelect"),0<p.length&&(h=new If("onSelect","select",null,h,f),a.push({event:h,listeners:p}),h.target=ul)))}function ia(a,h){var f={};return f[a.toLowerCase()]=h.toLowerCase(),f["Webkit"+a]="webkit"+h,f["Moz"+a]="moz"+h,f}var fl={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Kg={},Hx={};un&&(Hx=document.createElement("div").style,"AnimationEvent"in window||(delete fl.animationend.animation,delete fl.animationiteration.animation,delete fl.animationstart.animation),"TransitionEvent"in window||delete fl.transitionend.transition);function sa(a){if(Kg[a])return Kg[a];if(!fl[a])return a;var h=fl[a],f;for(f in h)if(h.hasOwnProperty(f)&&f in Hx)return Kg[a]=h[f];return a}var Fx=sa("animationend"),Gx=sa("animationiteration"),Kx=sa("animationstart"),o6=sa("transitionrun"),a6=sa("transitionstart"),l6=sa("transitioncancel"),Jx=sa("transitionend"),ew=new Map,Jg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jg.push("scrollEnd");function fr(a,h){ew.set(a,h),ea(h,[a])}var Uf=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Vs=[],dl=0,eO=0;function Yf(){for(var a=dl,h=eO=dl=0;h<a;){var f=Vs[h];Vs[h++]=null;var p=Vs[h];Vs[h++]=null;var O=Vs[h];Vs[h++]=null;var v=Vs[h];if(Vs[h++]=null,p!==null&&O!==null){var S=p.pending;S===null?O.next=O:(O.next=S.next,S.next=O),p.pending=O}v!==0&&tw(f,O,v)}}function Hf(a,h,f,p){Vs[dl++]=a,Vs[dl++]=h,Vs[dl++]=f,Vs[dl++]=p,eO|=p,a.lanes|=p,a=a.alternate,a!==null&&(a.lanes|=p)}function tO(a,h,f,p){return Hf(a,h,f,p),Ff(a)}function ra(a,h){return Hf(a,null,null,h),Ff(a)}function tw(a,h,f){a.lanes|=f;var p=a.alternate;p!==null&&(p.lanes|=f);for(var O=!1,v=a.return;v!==null;)v.childLanes|=f,p=v.alternate,p!==null&&(p.childLanes|=f),v.tag===22&&(a=v.stateNode,a===null||a._visibility&1||(O=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,O&&h!==null&&(O=31-bs(f),a=v.hiddenUpdates,p=a[O],p===null?a[O]=[h]:p.push(h),h.lane=f|536870912),v):null}function Ff(a){if(50<Cc)throw Cc=0,c0=null,Error(s(185));for(var h=a.return;h!==null;)a=h,h=a.return;return a.tag===3?a.stateNode:null}var pl={};function h6(a,h,f,p){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function xs(a,h,f,p){return new h6(a,h,f,p)}function iO(a){return a=a.prototype,!(!a||!a.isReactComponent)}function fn(a,h){var f=a.alternate;return f===null?(f=xs(a.tag,h,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=h,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&65011712,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,h=a.dependencies,f.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function iw(a,h){a.flags&=65011714;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=h,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,h=f.dependencies,a.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),a}function Gf(a,h,f,p,O,v){var S=0;if(p=a,typeof a=="function")iO(a)&&(S=1);else if(typeof a=="string")S=pz(a,f,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case I:return a=xs(31,f,h,O),a.elementType=I,a.lanes=v,a;case b:return na(f.children,O,v,h);case x:S=8,O|=24;break;case w:return a=xs(12,f,h,O|2),a.elementType=w,a.lanes=v,a;case P:return a=xs(13,f,h,O),a.elementType=P,a.lanes=v,a;case E:return a=xs(19,f,h,O),a.elementType=E,a.lanes=v,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:S=10;break e;case k:S=9;break e;case A:S=11;break e;case $:S=14;break e;case z:S=16,p=null;break e}S=29,f=Error(s(130,a===null?"null":typeof a,"")),p=null}return h=xs(S,f,h,O),h.elementType=a,h.type=p,h.lanes=v,h}function na(a,h,f,p){return a=xs(7,a,p,h),a.lanes=f,a}function sO(a,h,f){return a=xs(6,a,null,h),a.lanes=f,a}function sw(a){var h=xs(18,null,null,0);return h.stateNode=a,h}function rO(a,h,f){return h=xs(4,a.children!==null?a.children:[],a.key,h),h.lanes=f,h.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},h}var rw=new WeakMap;function Zs(a,h){if(typeof a=="object"&&a!==null){var f=rw.get(a);return f!==void 0?f:(h={value:a,source:h,stack:Zh(h)},rw.set(a,h),h)}return{value:a,source:h,stack:Zh(h)}}var ml=[],gl=0,Kf=null,rc=0,js=[],Is=0,Kn=null,Mr=1,Er="";function dn(a,h){ml[gl++]=rc,ml[gl++]=Kf,Kf=a,rc=h}function nw(a,h,f){js[Is++]=Mr,js[Is++]=Er,js[Is++]=Kn,Kn=a;var p=Mr;a=Er;var O=32-bs(p)-1;p&=~(1<<O),f+=1;var v=32-bs(h)+O;if(30<v){var S=O-O%5;v=(p&(1<<S)-1).toString(32),p>>=S,O-=S,Mr=1<<32-bs(h)+O|f<<O|p,Er=v+a}else Mr=1<<v|f<<O|p,Er=a}function nO(a){a.return!==null&&(dn(a,1),nw(a,1,0))}function oO(a){for(;a===Kf;)Kf=ml[--gl],ml[gl]=null,rc=ml[--gl],ml[gl]=null;for(;a===Kn;)Kn=js[--Is],js[Is]=null,Er=js[--Is],js[Is]=null,Mr=js[--Is],js[Is]=null}function ow(a,h){js[Is++]=Mr,js[Is++]=Er,js[Is++]=Kn,Mr=h.id,Er=h.overflow,Kn=a}var Ci=null,mt=null,Ue=!1,Jn=null,qs=!1,aO=Error(s(519));function eo(a){var h=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nc(Zs(h,a)),aO}function aw(a){var h=a.stateNode,f=a.type,p=a.memoizedProps;switch(h[wi]=a,h[rs]=p,f){case"dialog":Ze("cancel",h),Ze("close",h);break;case"iframe":case"object":case"embed":Ze("load",h);break;case"video":case"audio":for(f=0;f<Tc.length;f++)Ze(Tc[f],h);break;case"source":Ze("error",h);break;case"img":case"image":case"link":Ze("error",h),Ze("load",h);break;case"details":Ze("toggle",h);break;case"input":Ze("invalid",h),yx(h,p.value,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name,!0);break;case"select":Ze("invalid",h);break;case"textarea":Ze("invalid",h),Sx(h,p.value,p.defaultValue,p.children)}f=p.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||h.textContent===""+f||p.suppressHydrationWarning===!0||wk(h.textContent,f)?(p.popover!=null&&(Ze("beforetoggle",h),Ze("toggle",h)),p.onScroll!=null&&Ze("scroll",h),p.onScrollEnd!=null&&Ze("scrollend",h),p.onClick!=null&&(h.onclick=cn),h=!0):h=!1,h||eo(a,!0)}function lw(a){for(Ci=a.return;Ci;)switch(Ci.tag){case 5:case 31:case 13:qs=!1;return;case 27:case 3:qs=!0;return;default:Ci=Ci.return}}function Ol(a){if(a!==Ci)return!1;if(!Ue)return lw(a),Ue=!0,!1;var h=a.tag,f;if((f=h!==3&&h!==27)&&((f=h===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||C0(a.type,a.memoizedProps)),f=!f),f&&mt&&eo(a),lw(a),h===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));mt=Rk(a)}else if(h===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(317));mt=Rk(a)}else h===27?(h=mt,mo(a.type)?(a=E0,E0=null,mt=a):mt=h):mt=Ci?Us(a.stateNode.nextSibling):null;return!0}function oa(){mt=Ci=null,Ue=!1}function lO(){var a=Jn;return a!==null&&(hs===null?hs=a:hs.push.apply(hs,a),Jn=null),a}function nc(a){Jn===null?Jn=[a]:Jn.push(a)}var hO=D(null),aa=null,pn=null;function to(a,h,f){ie(hO,h._currentValue),h._currentValue=f}function mn(a){a._currentValue=hO.current,G(hO)}function cO(a,h,f){for(;a!==null;){var p=a.alternate;if((a.childLanes&h)!==h?(a.childLanes|=h,p!==null&&(p.childLanes|=h)):p!==null&&(p.childLanes&h)!==h&&(p.childLanes|=h),a===f)break;a=a.return}}function uO(a,h,f,p){var O=a.child;for(O!==null&&(O.return=a);O!==null;){var v=O.dependencies;if(v!==null){var S=O.child;v=v.firstContext;e:for(;v!==null;){var T=v;v=O;for(var V=0;V<h.length;V++)if(T.context===h[V]){v.lanes|=f,T=v.alternate,T!==null&&(T.lanes|=f),cO(v.return,f,a),p||(S=null);break e}v=T.next}}else if(O.tag===18){if(S=O.return,S===null)throw Error(s(341));S.lanes|=f,v=S.alternate,v!==null&&(v.lanes|=f),cO(S,f,a),S=null}else S=O.child;if(S!==null)S.return=O;else for(S=O;S!==null;){if(S===a){S=null;break}if(O=S.sibling,O!==null){O.return=S.return,S=O;break}S=S.return}O=S}}function _l(a,h,f,p){a=null;for(var O=h,v=!1;O!==null;){if(!v){if((O.flags&524288)!==0)v=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var S=O.alternate;if(S===null)throw Error(s(387));if(S=S.memoizedProps,S!==null){var T=O.type;Ss(O.pendingProps.value,S.value)||(a!==null?a.push(T):a=[T])}}else if(O===ge.current){if(S=O.alternate,S===null)throw Error(s(387));S.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(a!==null?a.push(Qc):a=[Qc])}O=O.return}a!==null&&uO(h,a,f,p),h.flags|=262144}function Jf(a){for(a=a.firstContext;a!==null;){if(!Ss(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function la(a){aa=a,pn=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function ki(a){return hw(aa,a)}function ed(a,h){return aa===null&&la(a),hw(a,h)}function hw(a,h){var f=h._currentValue;if(h={context:h,memoizedValue:f,next:null},pn===null){if(a===null)throw Error(s(308));pn=h,a.dependencies={lanes:0,firstContext:h},a.flags|=524288}else pn=pn.next=h;return f}var c6=typeof AbortController<"u"?AbortController:function(){var a=[],h=this.signal={aborted:!1,addEventListener:function(f,p){a.push(p)}};this.abort=function(){h.aborted=!0,a.forEach(function(f){return f()})}},u6=i.unstable_scheduleCallback,f6=i.unstable_NormalPriority,Xt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fO(){return{controller:new c6,data:new Map,refCount:0}}function oc(a){a.refCount--,a.refCount===0&&u6(f6,function(){a.controller.abort()})}var ac=null,dO=0,vl=0,yl=null;function d6(a,h){if(ac===null){var f=ac=[];dO=0,vl=g0(),yl={status:"pending",value:void 0,then:function(p){f.push(p)}}}return dO++,h.then(cw,cw),h}function cw(){if(--dO===0&&ac!==null){yl!==null&&(yl.status="fulfilled");var a=ac;ac=null,vl=0,yl=null;for(var h=0;h<a.length;h++)(0,a[h])()}}function p6(a,h){var f=[],p={status:"pending",value:null,reason:null,then:function(O){f.push(O)}};return a.then(function(){p.status="fulfilled",p.value=h;for(var O=0;O<f.length;O++)(0,f[O])(h)},function(O){for(p.status="rejected",p.reason=O,O=0;O<f.length;O++)(0,f[O])(void 0)}),p}var uw=Q.S;Q.S=function(a,h){YC=vs(),typeof h=="object"&&h!==null&&typeof h.then=="function"&&d6(a,h),uw!==null&&uw(a,h)};var ha=D(null);function pO(){var a=ha.current;return a!==null?a:lt.pooledCache}function td(a,h){h===null?ie(ha,ha.current):ie(ha,h.pool)}function fw(){var a=pO();return a===null?null:{parent:Xt._currentValue,pool:a}}var bl=Error(s(460)),mO=Error(s(474)),id=Error(s(542)),sd={then:function(){}};function dw(a){return a=a.status,a==="fulfilled"||a==="rejected"}function pw(a,h,f){switch(f=a[f],f===void 0?a.push(h):f!==h&&(h.then(cn,cn),h=f),h.status){case"fulfilled":return h.value;case"rejected":throw a=h.reason,gw(a),a;default:if(typeof h.status=="string")h.then(cn,cn);else{if(a=lt,a!==null&&100<a.shellSuspendCounter)throw Error(s(482));a=h,a.status="pending",a.then(function(p){if(h.status==="pending"){var O=h;O.status="fulfilled",O.value=p}},function(p){if(h.status==="pending"){var O=h;O.status="rejected",O.reason=p}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw a=h.reason,gw(a),a}throw ua=h,bl}}function ca(a){try{var h=a._init;return h(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(ua=f,bl):f}}var ua=null;function mw(){if(ua===null)throw Error(s(459));var a=ua;return ua=null,a}function gw(a){if(a===bl||a===id)throw Error(s(483))}var Sl=null,lc=0;function rd(a){var h=lc;return lc+=1,Sl===null&&(Sl=[]),pw(Sl,a,h)}function hc(a,h){h=h.props.ref,a.ref=h!==void 0?h:null}function nd(a,h){throw h.$$typeof===g?Error(s(525)):(a=Object.prototype.toString.call(h),Error(s(31,a==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":a)))}function Ow(a){function h(H,j){if(a){var K=H.deletions;K===null?(H.deletions=[j],H.flags|=16):K.push(j)}}function f(H,j){if(!a)return null;for(;j!==null;)h(H,j),j=j.sibling;return null}function p(H){for(var j=new Map;H!==null;)H.key!==null?j.set(H.key,H):j.set(H.index,H),H=H.sibling;return j}function O(H,j){return H=fn(H,j),H.index=0,H.sibling=null,H}function v(H,j,K){return H.index=K,a?(K=H.alternate,K!==null?(K=K.index,K<j?(H.flags|=67108866,j):K):(H.flags|=67108866,j)):(H.flags|=1048576,j)}function S(H){return a&&H.alternate===null&&(H.flags|=67108866),H}function T(H,j,K,oe){return j===null||j.tag!==6?(j=sO(K,H.mode,oe),j.return=H,j):(j=O(j,K),j.return=H,j)}function V(H,j,K,oe){var Me=K.type;return Me===b?re(H,j,K.props.children,oe,K.key):j!==null&&(j.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===z&&ca(Me)===j.type)?(j=O(j,K.props),hc(j,K),j.return=H,j):(j=Gf(K.type,K.key,K.props,null,H.mode,oe),hc(j,K),j.return=H,j)}function J(H,j,K,oe){return j===null||j.tag!==4||j.stateNode.containerInfo!==K.containerInfo||j.stateNode.implementation!==K.implementation?(j=rO(K,H.mode,oe),j.return=H,j):(j=O(j,K.children||[]),j.return=H,j)}function re(H,j,K,oe,Me){return j===null||j.tag!==7?(j=na(K,H.mode,oe,Me),j.return=H,j):(j=O(j,K),j.return=H,j)}function ae(H,j,K){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=sO(""+j,H.mode,K),j.return=H,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case _:return K=Gf(j.type,j.key,j.props,null,H.mode,K),hc(K,j),K.return=H,K;case y:return j=rO(j,H.mode,K),j.return=H,j;case z:return j=ca(j),ae(H,j,K)}if(Z(j)||R(j))return j=na(j,H.mode,K,null),j.return=H,j;if(typeof j.then=="function")return ae(H,rd(j),K);if(j.$$typeof===C)return ae(H,ed(H,j),K);nd(H,j)}return null}function ee(H,j,K,oe){var Me=j!==null?j.key:null;if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return Me!==null?null:T(H,j,""+K,oe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case _:return K.key===Me?V(H,j,K,oe):null;case y:return K.key===Me?J(H,j,K,oe):null;case z:return K=ca(K),ee(H,j,K,oe)}if(Z(K)||R(K))return Me!==null?null:re(H,j,K,oe,null);if(typeof K.then=="function")return ee(H,j,rd(K),oe);if(K.$$typeof===C)return ee(H,j,ed(H,K),oe);nd(H,K)}return null}function te(H,j,K,oe,Me){if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return H=H.get(K)||null,T(j,H,""+oe,Me);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case _:return H=H.get(oe.key===null?K:oe.key)||null,V(j,H,oe,Me);case y:return H=H.get(oe.key===null?K:oe.key)||null,J(j,H,oe,Me);case z:return oe=ca(oe),te(H,j,K,oe,Me)}if(Z(oe)||R(oe))return H=H.get(K)||null,re(j,H,oe,Me,null);if(typeof oe.then=="function")return te(H,j,K,rd(oe),Me);if(oe.$$typeof===C)return te(H,j,K,ed(j,oe),Me);nd(j,oe)}return null}function be(H,j,K,oe){for(var Me=null,He=null,Ce=j,De=j=0,qe=null;Ce!==null&&De<K.length;De++){Ce.index>De?(qe=Ce,Ce=null):qe=Ce.sibling;var Fe=ee(H,Ce,K[De],oe);if(Fe===null){Ce===null&&(Ce=qe);break}a&&Ce&&Fe.alternate===null&&h(H,Ce),j=v(Fe,j,De),He===null?Me=Fe:He.sibling=Fe,He=Fe,Ce=qe}if(De===K.length)return f(H,Ce),Ue&&dn(H,De),Me;if(Ce===null){for(;De<K.length;De++)Ce=ae(H,K[De],oe),Ce!==null&&(j=v(Ce,j,De),He===null?Me=Ce:He.sibling=Ce,He=Ce);return Ue&&dn(H,De),Me}for(Ce=p(Ce);De<K.length;De++)qe=te(Ce,H,De,K[De],oe),qe!==null&&(a&&qe.alternate!==null&&Ce.delete(qe.key===null?De:qe.key),j=v(qe,j,De),He===null?Me=qe:He.sibling=qe,He=qe);return a&&Ce.forEach(function(yo){return h(H,yo)}),Ue&&dn(H,De),Me}function Ee(H,j,K,oe){if(K==null)throw Error(s(151));for(var Me=null,He=null,Ce=j,De=j=0,qe=null,Fe=K.next();Ce!==null&&!Fe.done;De++,Fe=K.next()){Ce.index>De?(qe=Ce,Ce=null):qe=Ce.sibling;var yo=ee(H,Ce,Fe.value,oe);if(yo===null){Ce===null&&(Ce=qe);break}a&&Ce&&yo.alternate===null&&h(H,Ce),j=v(yo,j,De),He===null?Me=yo:He.sibling=yo,He=yo,Ce=qe}if(Fe.done)return f(H,Ce),Ue&&dn(H,De),Me;if(Ce===null){for(;!Fe.done;De++,Fe=K.next())Fe=ae(H,Fe.value,oe),Fe!==null&&(j=v(Fe,j,De),He===null?Me=Fe:He.sibling=Fe,He=Fe);return Ue&&dn(H,De),Me}for(Ce=p(Ce);!Fe.done;De++,Fe=K.next())Fe=te(Ce,H,De,Fe.value,oe),Fe!==null&&(a&&Fe.alternate!==null&&Ce.delete(Fe.key===null?De:Fe.key),j=v(Fe,j,De),He===null?Me=Fe:He.sibling=Fe,He=Fe);return a&&Ce.forEach(function(Cz){return h(H,Cz)}),Ue&&dn(H,De),Me}function nt(H,j,K,oe){if(typeof K=="object"&&K!==null&&K.type===b&&K.key===null&&(K=K.props.children),typeof K=="object"&&K!==null){switch(K.$$typeof){case _:e:{for(var Me=K.key;j!==null;){if(j.key===Me){if(Me=K.type,Me===b){if(j.tag===7){f(H,j.sibling),oe=O(j,K.props.children),oe.return=H,H=oe;break e}}else if(j.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===z&&ca(Me)===j.type){f(H,j.sibling),oe=O(j,K.props),hc(oe,K),oe.return=H,H=oe;break e}f(H,j);break}else h(H,j);j=j.sibling}K.type===b?(oe=na(K.props.children,H.mode,oe,K.key),oe.return=H,H=oe):(oe=Gf(K.type,K.key,K.props,null,H.mode,oe),hc(oe,K),oe.return=H,H=oe)}return S(H);case y:e:{for(Me=K.key;j!==null;){if(j.key===Me)if(j.tag===4&&j.stateNode.containerInfo===K.containerInfo&&j.stateNode.implementation===K.implementation){f(H,j.sibling),oe=O(j,K.children||[]),oe.return=H,H=oe;break e}else{f(H,j);break}else h(H,j);j=j.sibling}oe=rO(K,H.mode,oe),oe.return=H,H=oe}return S(H);case z:return K=ca(K),nt(H,j,K,oe)}if(Z(K))return be(H,j,K,oe);if(R(K)){if(Me=R(K),typeof Me!="function")throw Error(s(150));return K=Me.call(K),Ee(H,j,K,oe)}if(typeof K.then=="function")return nt(H,j,rd(K),oe);if(K.$$typeof===C)return nt(H,j,ed(H,K),oe);nd(H,K)}return typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint"?(K=""+K,j!==null&&j.tag===6?(f(H,j.sibling),oe=O(j,K),oe.return=H,H=oe):(f(H,j),oe=sO(K,H.mode,oe),oe.return=H,H=oe),S(H)):f(H,j)}return function(H,j,K,oe){try{lc=0;var Me=nt(H,j,K,oe);return Sl=null,Me}catch(Ce){if(Ce===bl||Ce===id)throw Ce;var He=xs(29,Ce,null,H.mode);return He.lanes=oe,He.return=H,He}finally{}}}var fa=Ow(!0),_w=Ow(!1),io=!1;function gO(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function OO(a,h){a=a.updateQueue,h.updateQueue===a&&(h.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function so(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ro(a,h,f){var p=a.updateQueue;if(p===null)return null;if(p=p.shared,(Ge&2)!==0){var O=p.pending;return O===null?h.next=h:(h.next=O.next,O.next=h),p.pending=h,h=Ff(a),tw(a,null,f),h}return Hf(a,p,h,f),Ff(a)}function cc(a,h,f){if(h=h.updateQueue,h!==null&&(h=h.shared,(f&4194048)!==0)){var p=h.lanes;p&=a.pendingLanes,f|=p,h.lanes=f,hx(a,f)}}function _O(a,h){var f=a.updateQueue,p=a.alternate;if(p!==null&&(p=p.updateQueue,f===p)){var O=null,v=null;if(f=f.firstBaseUpdate,f!==null){do{var S={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};v===null?O=v=S:v=v.next=S,f=f.next}while(f!==null);v===null?O=v=h:v=v.next=h}else O=v=h;f={baseState:p.baseState,firstBaseUpdate:O,lastBaseUpdate:v,shared:p.shared,callbacks:p.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=h:a.next=h,f.lastBaseUpdate=h}var vO=!1;function uc(){if(vO){var a=yl;if(a!==null)throw a}}function fc(a,h,f,p){vO=!1;var O=a.updateQueue;io=!1;var v=O.firstBaseUpdate,S=O.lastBaseUpdate,T=O.shared.pending;if(T!==null){O.shared.pending=null;var V=T,J=V.next;V.next=null,S===null?v=J:S.next=J,S=V;var re=a.alternate;re!==null&&(re=re.updateQueue,T=re.lastBaseUpdate,T!==S&&(T===null?re.firstBaseUpdate=J:T.next=J,re.lastBaseUpdate=V))}if(v!==null){var ae=O.baseState;S=0,re=J=V=null,T=v;do{var ee=T.lane&-536870913,te=ee!==T.lane;if(te?(Ie&ee)===ee:(p&ee)===ee){ee!==0&&ee===vl&&(vO=!0),re!==null&&(re=re.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var be=a,Ee=T;ee=h;var nt=f;switch(Ee.tag){case 1:if(be=Ee.payload,typeof be=="function"){ae=be.call(nt,ae,ee);break e}ae=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=Ee.payload,ee=typeof be=="function"?be.call(nt,ae,ee):be,ee==null)break e;ae=m({},ae,ee);break e;case 2:io=!0}}ee=T.callback,ee!==null&&(a.flags|=64,te&&(a.flags|=8192),te=O.callbacks,te===null?O.callbacks=[ee]:te.push(ee))}else te={lane:ee,tag:T.tag,payload:T.payload,callback:T.callback,next:null},re===null?(J=re=te,V=ae):re=re.next=te,S|=ee;if(T=T.next,T===null){if(T=O.shared.pending,T===null)break;te=T,T=te.next,te.next=null,O.lastBaseUpdate=te,O.shared.pending=null}}while(!0);re===null&&(V=ae),O.baseState=V,O.firstBaseUpdate=J,O.lastBaseUpdate=re,v===null&&(O.shared.lanes=0),ho|=S,a.lanes=S,a.memoizedState=ae}}function vw(a,h){if(typeof a!="function")throw Error(s(191,a));a.call(h)}function yw(a,h){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)vw(f[a],h)}var xl=D(null),od=D(0);function bw(a,h){a=wn,ie(od,a),ie(xl,h),wn=a|h.baseLanes}function yO(){ie(od,wn),ie(xl,xl.current)}function bO(){wn=od.current,G(xl),G(od)}var ws=D(null),Ws=null;function no(a){var h=a.alternate;ie($t,$t.current&1),ie(ws,a),Ws===null&&(h===null||xl.current!==null||h.memoizedState!==null)&&(Ws=a)}function SO(a){ie($t,$t.current),ie(ws,a),Ws===null&&(Ws=a)}function Sw(a){a.tag===22?(ie($t,$t.current),ie(ws,a),Ws===null&&(Ws=a)):oo()}function oo(){ie($t,$t.current),ie(ws,ws.current)}function Cs(a){G(ws),Ws===a&&(Ws=null),G($t)}var $t=D(0);function ad(a){for(var h=a;h!==null;){if(h.tag===13){var f=h.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||A0(f)||M0(f)))return h}else if(h.tag===19&&(h.memoizedProps.revealOrder==="forwards"||h.memoizedProps.revealOrder==="backwards"||h.memoizedProps.revealOrder==="unstable_legacy-backwards"||h.memoizedProps.revealOrder==="together")){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}var gn=0,Be=null,st=null,Vt=null,ld=!1,wl=!1,da=!1,hd=0,dc=0,Cl=null,m6=0;function Tt(){throw Error(s(321))}function xO(a,h){if(h===null)return!1;for(var f=0;f<h.length&&f<a.length;f++)if(!Ss(a[f],h[f]))return!1;return!0}function wO(a,h,f,p,O,v){return gn=v,Be=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,Q.H=a===null||a.memoizedState===null?nC:NO,da=!1,v=f(p,O),da=!1,wl&&(v=ww(h,f,p,O)),xw(a),v}function xw(a){Q.H=gc;var h=st!==null&&st.next!==null;if(gn=0,Vt=st=Be=null,ld=!1,dc=0,Cl=null,h)throw Error(s(300));a===null||Zt||(a=a.dependencies,a!==null&&Jf(a)&&(Zt=!0))}function ww(a,h,f,p){Be=a;var O=0;do{if(wl&&(Cl=null),dc=0,wl=!1,25<=O)throw Error(s(301));if(O+=1,Vt=st=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}Q.H=oC,v=h(f,p)}while(wl);return v}function g6(){var a=Q.H,h=a.useState()[0];return h=typeof h.then=="function"?pc(h):h,a=a.useState()[0],(st!==null?st.memoizedState:null)!==a&&(Be.flags|=1024),h}function CO(){var a=hd!==0;return hd=0,a}function kO(a,h,f){h.updateQueue=a.updateQueue,h.flags&=-2053,a.lanes&=~f}function TO(a){if(ld){for(a=a.memoizedState;a!==null;){var h=a.queue;h!==null&&(h.pending=null),a=a.next}ld=!1}gn=0,Vt=st=Be=null,wl=!1,dc=hd=0,Cl=null}function Ui(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Be.memoizedState=Vt=a:Vt=Vt.next=a,Vt}function Bt(){if(st===null){var a=Be.alternate;a=a!==null?a.memoizedState:null}else a=st.next;var h=Vt===null?Be.memoizedState:Vt.next;if(h!==null)Vt=h,st=a;else{if(a===null)throw Be.alternate===null?Error(s(467)):Error(s(310));st=a,a={memoizedState:st.memoizedState,baseState:st.baseState,baseQueue:st.baseQueue,queue:st.queue,next:null},Vt===null?Be.memoizedState=Vt=a:Vt=Vt.next=a}return Vt}function cd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pc(a){var h=dc;return dc+=1,Cl===null&&(Cl=[]),a=pw(Cl,a,h),h=Be,(Vt===null?h.memoizedState:Vt.next)===null&&(h=h.alternate,Q.H=h===null||h.memoizedState===null?nC:NO),a}function ud(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return pc(a);if(a.$$typeof===C)return ki(a)}throw Error(s(438,String(a)))}function AO(a){var h=null,f=Be.updateQueue;if(f!==null&&(h=f.memoCache),h==null){var p=Be.alternate;p!==null&&(p=p.updateQueue,p!==null&&(p=p.memoCache,p!=null&&(h={data:p.data.map(function(O){return O.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),f===null&&(f=cd(),Be.updateQueue=f),f.memoCache=h,f=h.data[h.index],f===void 0)for(f=h.data[h.index]=Array(a),p=0;p<a;p++)f[p]=se;return h.index++,f}function On(a,h){return typeof h=="function"?h(a):h}function fd(a){var h=Bt();return MO(h,st,a)}function MO(a,h,f){var p=a.queue;if(p===null)throw Error(s(311));p.lastRenderedReducer=f;var O=a.baseQueue,v=p.pending;if(v!==null){if(O!==null){var S=O.next;O.next=v.next,v.next=S}h.baseQueue=O=v,p.pending=null}if(v=a.baseState,O===null)a.memoizedState=v;else{h=O.next;var T=S=null,V=null,J=h,re=!1;do{var ae=J.lane&-536870913;if(ae!==J.lane?(Ie&ae)===ae:(gn&ae)===ae){var ee=J.revertLane;if(ee===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null}),ae===vl&&(re=!0);else if((gn&ee)===ee){J=J.next,ee===vl&&(re=!0);continue}else ae={lane:0,revertLane:J.revertLane,gesture:null,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},V===null?(T=V=ae,S=v):V=V.next=ae,Be.lanes|=ee,ho|=ee;ae=J.action,da&&f(v,ae),v=J.hasEagerState?J.eagerState:f(v,ae)}else ee={lane:ae,revertLane:J.revertLane,gesture:J.gesture,action:J.action,hasEagerState:J.hasEagerState,eagerState:J.eagerState,next:null},V===null?(T=V=ee,S=v):V=V.next=ee,Be.lanes|=ae,ho|=ae;J=J.next}while(J!==null&&J!==h);if(V===null?S=v:V.next=T,!Ss(v,a.memoizedState)&&(Zt=!0,re&&(f=yl,f!==null)))throw f;a.memoizedState=v,a.baseState=S,a.baseQueue=V,p.lastRenderedState=v}return O===null&&(p.lanes=0),[a.memoizedState,p.dispatch]}function EO(a){var h=Bt(),f=h.queue;if(f===null)throw Error(s(311));f.lastRenderedReducer=a;var p=f.dispatch,O=f.pending,v=h.memoizedState;if(O!==null){f.pending=null;var S=O=O.next;do v=a(v,S.action),S=S.next;while(S!==O);Ss(v,h.memoizedState)||(Zt=!0),h.memoizedState=v,h.baseQueue===null&&(h.baseState=v),f.lastRenderedState=v}return[v,p]}function Cw(a,h,f){var p=Be,O=Bt(),v=Ue;if(v){if(f===void 0)throw Error(s(407));f=f()}else f=h();var S=!Ss((st||O).memoizedState,f);if(S&&(O.memoizedState=f,Zt=!0),O=O.queue,RO(Aw.bind(null,p,O,a),[a]),O.getSnapshot!==h||S||Vt!==null&&Vt.memoizedState.tag&1){if(p.flags|=2048,kl(9,{destroy:void 0},Tw.bind(null,p,O,f,h),null),lt===null)throw Error(s(349));v||(gn&127)!==0||kw(p,h,f)}return f}function kw(a,h,f){a.flags|=16384,a={getSnapshot:h,value:f},h=Be.updateQueue,h===null?(h=cd(),Be.updateQueue=h,h.stores=[a]):(f=h.stores,f===null?h.stores=[a]:f.push(a))}function Tw(a,h,f,p){h.value=f,h.getSnapshot=p,Mw(h)&&Ew(a)}function Aw(a,h,f){return f(function(){Mw(h)&&Ew(a)})}function Mw(a){var h=a.getSnapshot;a=a.value;try{var f=h();return!Ss(a,f)}catch{return!0}}function Ew(a){var h=ra(a,2);h!==null&&cs(h,a,2)}function PO(a){var h=Ui();if(typeof a=="function"){var f=a;if(a=f(),da){Hn(!0);try{f()}finally{Hn(!1)}}}return h.memoizedState=h.baseState=a,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:a},h}function Pw(a,h,f,p){return a.baseState=f,MO(a,st,typeof p=="function"?p:On)}function O6(a,h,f,p,O){if(md(a))throw Error(s(485));if(a=h.action,a!==null){var v={payload:O,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){v.listeners.push(S)}};Q.T!==null?f(!0):v.isTransition=!1,p(v),f=h.pending,f===null?(v.next=h.pending=v,Qw(h,v)):(v.next=f.next,h.pending=f.next=v)}}function Qw(a,h){var f=h.action,p=h.payload,O=a.state;if(h.isTransition){var v=Q.T,S={};Q.T=S;try{var T=f(O,p),V=Q.S;V!==null&&V(S,T),Rw(a,h,T)}catch(J){QO(a,h,J)}finally{v!==null&&S.types!==null&&(v.types=S.types),Q.T=v}}else try{v=f(O,p),Rw(a,h,v)}catch(J){QO(a,h,J)}}function Rw(a,h,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(p){Lw(a,h,p)},function(p){return QO(a,h,p)}):Lw(a,h,f)}function Lw(a,h,f){h.status="fulfilled",h.value=f,$w(h),a.state=f,h=a.pending,h!==null&&(f=h.next,f===h?a.pending=null:(f=f.next,h.next=f,Qw(a,f)))}function QO(a,h,f){var p=a.pending;if(a.pending=null,p!==null){p=p.next;do h.status="rejected",h.reason=f,$w(h),h=h.next;while(h!==p)}a.action=null}function $w(a){a=a.listeners;for(var h=0;h<a.length;h++)(0,a[h])()}function Bw(a,h){return h}function Dw(a,h){if(Ue){var f=lt.formState;if(f!==null){e:{var p=Be;if(Ue){if(mt){t:{for(var O=mt,v=qs;O.nodeType!==8;){if(!v){O=null;break t}if(O=Us(O.nextSibling),O===null){O=null;break t}}v=O.data,O=v==="F!"||v==="F"?O:null}if(O){mt=Us(O.nextSibling),p=O.data==="F!";break e}}eo(p)}p=!1}p&&(h=f[0])}}return f=Ui(),f.memoizedState=f.baseState=h,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bw,lastRenderedState:h},f.queue=p,f=iC.bind(null,Be,p),p.dispatch=f,p=PO(!1),v=zO.bind(null,Be,!1,p.queue),p=Ui(),O={state:h,dispatch:null,action:a,pending:null},p.queue=O,f=O6.bind(null,Be,O,v,f),O.dispatch=f,p.memoizedState=a,[h,f,!1]}function zw(a){var h=Bt();return Nw(h,st,a)}function Nw(a,h,f){if(h=MO(a,h,Bw)[0],a=fd(On)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var p=pc(h)}catch(S){throw S===bl?id:S}else p=h;h=Bt();var O=h.queue,v=O.dispatch;return f!==h.memoizedState&&(Be.flags|=2048,kl(9,{destroy:void 0},_6.bind(null,O,f),null)),[p,v,a]}function _6(a,h){a.action=h}function Xw(a){var h=Bt(),f=st;if(f!==null)return Nw(h,f,a);Bt(),h=h.memoizedState,f=Bt();var p=f.queue.dispatch;return f.memoizedState=a,[h,p,!1]}function kl(a,h,f,p){return a={tag:a,create:f,deps:p,inst:h,next:null},h=Be.updateQueue,h===null&&(h=cd(),Be.updateQueue=h),f=h.lastEffect,f===null?h.lastEffect=a.next=a:(p=f.next,f.next=a,a.next=p,h.lastEffect=a),a}function Vw(){return Bt().memoizedState}function dd(a,h,f,p){var O=Ui();Be.flags|=a,O.memoizedState=kl(1|h,{destroy:void 0},f,p===void 0?null:p)}function pd(a,h,f,p){var O=Bt();p=p===void 0?null:p;var v=O.memoizedState.inst;st!==null&&p!==null&&xO(p,st.memoizedState.deps)?O.memoizedState=kl(h,v,f,p):(Be.flags|=a,O.memoizedState=kl(1|h,v,f,p))}function Zw(a,h){dd(8390656,8,a,h)}function RO(a,h){pd(2048,8,a,h)}function v6(a){Be.flags|=4;var h=Be.updateQueue;if(h===null)h=cd(),Be.updateQueue=h,h.events=[a];else{var f=h.events;f===null?h.events=[a]:f.push(a)}}function jw(a){var h=Bt().memoizedState;return v6({ref:h,nextImpl:a}),function(){if((Ge&2)!==0)throw Error(s(440));return h.impl.apply(void 0,arguments)}}function Iw(a,h){return pd(4,2,a,h)}function qw(a,h){return pd(4,4,a,h)}function Ww(a,h){if(typeof h=="function"){a=a();var f=h(a);return function(){typeof f=="function"?f():h(null)}}if(h!=null)return a=a(),h.current=a,function(){h.current=null}}function Uw(a,h,f){f=f!=null?f.concat([a]):null,pd(4,4,Ww.bind(null,h,a),f)}function LO(){}function Yw(a,h){var f=Bt();h=h===void 0?null:h;var p=f.memoizedState;return h!==null&&xO(h,p[1])?p[0]:(f.memoizedState=[a,h],a)}function Hw(a,h){var f=Bt();h=h===void 0?null:h;var p=f.memoizedState;if(h!==null&&xO(h,p[1]))return p[0];if(p=a(),da){Hn(!0);try{a()}finally{Hn(!1)}}return f.memoizedState=[p,h],p}function $O(a,h,f){return f===void 0||(gn&1073741824)!==0&&(Ie&261930)===0?a.memoizedState=h:(a.memoizedState=f,a=FC(),Be.lanes|=a,ho|=a,f)}function Fw(a,h,f,p){return Ss(f,h)?f:xl.current!==null?(a=$O(a,f,p),Ss(a,h)||(Zt=!0),a):(gn&42)===0||(gn&1073741824)!==0&&(Ie&261930)===0?(Zt=!0,a.memoizedState=f):(a=FC(),Be.lanes|=a,ho|=a,h)}function Gw(a,h,f,p,O){var v=X.p;X.p=v!==0&&8>v?v:8;var S=Q.T,T={};Q.T=T,zO(a,!1,h,f);try{var V=O(),J=Q.S;if(J!==null&&J(T,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var re=p6(V,p);mc(a,h,re,As(a))}else mc(a,h,p,As(a))}catch(ae){mc(a,h,{then:function(){},status:"rejected",reason:ae},As())}finally{X.p=v,S!==null&&T.types!==null&&(S.types=T.types),Q.T=S}}function y6(){}function BO(a,h,f,p){if(a.tag!==5)throw Error(s(476));var O=Kw(a).queue;Gw(a,O,h,W,f===null?y6:function(){return Jw(a),f(p)})}function Kw(a){var h=a.memoizedState;if(h!==null)return h;h={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:W},next:null};var f={};return h.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:f},next:null},a.memoizedState=h,a=a.alternate,a!==null&&(a.memoizedState=h),h}function Jw(a){var h=Kw(a);h.next===null&&(h=a.alternate.memoizedState),mc(a,h.next.queue,{},As())}function DO(){return ki(Qc)}function eC(){return Bt().memoizedState}function tC(){return Bt().memoizedState}function b6(a){for(var h=a.return;h!==null;){switch(h.tag){case 24:case 3:var f=As();a=so(f);var p=ro(h,a,f);p!==null&&(cs(p,h,f),cc(p,h,f)),h={cache:fO()},a.payload=h;return}h=h.return}}function S6(a,h,f){var p=As();f={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},md(a)?sC(h,f):(f=tO(a,h,f,p),f!==null&&(cs(f,a,p),rC(f,h,p)))}function iC(a,h,f){var p=As();mc(a,h,f,p)}function mc(a,h,f,p){var O={lane:p,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(md(a))sC(h,O);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=h.lastRenderedReducer,v!==null))try{var S=h.lastRenderedState,T=v(S,f);if(O.hasEagerState=!0,O.eagerState=T,Ss(T,S))return Hf(a,h,O,0),lt===null&&Yf(),!1}catch{}finally{}if(f=tO(a,h,O,p),f!==null)return cs(f,a,p),rC(f,h,p),!0}return!1}function zO(a,h,f,p){if(p={lane:2,revertLane:g0(),gesture:null,action:p,hasEagerState:!1,eagerState:null,next:null},md(a)){if(h)throw Error(s(479))}else h=tO(a,f,p,2),h!==null&&cs(h,a,2)}function md(a){var h=a.alternate;return a===Be||h!==null&&h===Be}function sC(a,h){wl=ld=!0;var f=a.pending;f===null?h.next=h:(h.next=f.next,f.next=h),a.pending=h}function rC(a,h,f){if((f&4194048)!==0){var p=h.lanes;p&=a.pendingLanes,f|=p,h.lanes=f,hx(a,f)}}var gc={readContext:ki,use:ud,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt};gc.useEffectEvent=Tt;var nC={readContext:ki,use:ud,useCallback:function(a,h){return Ui().memoizedState=[a,h===void 0?null:h],a},useContext:ki,useEffect:Zw,useImperativeHandle:function(a,h,f){f=f!=null?f.concat([a]):null,dd(4194308,4,Ww.bind(null,h,a),f)},useLayoutEffect:function(a,h){return dd(4194308,4,a,h)},useInsertionEffect:function(a,h){dd(4,2,a,h)},useMemo:function(a,h){var f=Ui();h=h===void 0?null:h;var p=a();if(da){Hn(!0);try{a()}finally{Hn(!1)}}return f.memoizedState=[p,h],p},useReducer:function(a,h,f){var p=Ui();if(f!==void 0){var O=f(h);if(da){Hn(!0);try{f(h)}finally{Hn(!1)}}}else O=h;return p.memoizedState=p.baseState=O,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:O},p.queue=a,a=a.dispatch=S6.bind(null,Be,a),[p.memoizedState,a]},useRef:function(a){var h=Ui();return a={current:a},h.memoizedState=a},useState:function(a){a=PO(a);var h=a.queue,f=iC.bind(null,Be,h);return h.dispatch=f,[a.memoizedState,f]},useDebugValue:LO,useDeferredValue:function(a,h){var f=Ui();return $O(f,a,h)},useTransition:function(){var a=PO(!1);return a=Gw.bind(null,Be,a.queue,!0,!1),Ui().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,h,f){var p=Be,O=Ui();if(Ue){if(f===void 0)throw Error(s(407));f=f()}else{if(f=h(),lt===null)throw Error(s(349));(Ie&127)!==0||kw(p,h,f)}O.memoizedState=f;var v={value:f,getSnapshot:h};return O.queue=v,Zw(Aw.bind(null,p,v,a),[a]),p.flags|=2048,kl(9,{destroy:void 0},Tw.bind(null,p,v,f,h),null),f},useId:function(){var a=Ui(),h=lt.identifierPrefix;if(Ue){var f=Er,p=Mr;f=(p&~(1<<32-bs(p)-1)).toString(32)+f,h="_"+h+"R_"+f,f=hd++,0<f&&(h+="H"+f.toString(32)),h+="_"}else f=m6++,h="_"+h+"r_"+f.toString(32)+"_";return a.memoizedState=h},useHostTransitionStatus:DO,useFormState:Dw,useActionState:Dw,useOptimistic:function(a){var h=Ui();h.memoizedState=h.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=f,h=zO.bind(null,Be,!0,f),f.dispatch=h,[a,h]},useMemoCache:AO,useCacheRefresh:function(){return Ui().memoizedState=b6.bind(null,Be)},useEffectEvent:function(a){var h=Ui(),f={impl:a};return h.memoizedState=f,function(){if((Ge&2)!==0)throw Error(s(440));return f.impl.apply(void 0,arguments)}}},NO={readContext:ki,use:ud,useCallback:Yw,useContext:ki,useEffect:RO,useImperativeHandle:Uw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:Hw,useReducer:fd,useRef:Vw,useState:function(){return fd(On)},useDebugValue:LO,useDeferredValue:function(a,h){var f=Bt();return Fw(f,st.memoizedState,a,h)},useTransition:function(){var a=fd(On)[0],h=Bt().memoizedState;return[typeof a=="boolean"?a:pc(a),h]},useSyncExternalStore:Cw,useId:eC,useHostTransitionStatus:DO,useFormState:zw,useActionState:zw,useOptimistic:function(a,h){var f=Bt();return Pw(f,st,a,h)},useMemoCache:AO,useCacheRefresh:tC};NO.useEffectEvent=jw;var oC={readContext:ki,use:ud,useCallback:Yw,useContext:ki,useEffect:RO,useImperativeHandle:Uw,useInsertionEffect:Iw,useLayoutEffect:qw,useMemo:Hw,useReducer:EO,useRef:Vw,useState:function(){return EO(On)},useDebugValue:LO,useDeferredValue:function(a,h){var f=Bt();return st===null?$O(f,a,h):Fw(f,st.memoizedState,a,h)},useTransition:function(){var a=EO(On)[0],h=Bt().memoizedState;return[typeof a=="boolean"?a:pc(a),h]},useSyncExternalStore:Cw,useId:eC,useHostTransitionStatus:DO,useFormState:Xw,useActionState:Xw,useOptimistic:function(a,h){var f=Bt();return st!==null?Pw(f,st,a,h):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:AO,useCacheRefresh:tC};oC.useEffectEvent=jw;function XO(a,h,f,p){h=a.memoizedState,f=f(p,h),f=f==null?h:m({},h,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var VO={enqueueSetState:function(a,h,f){a=a._reactInternals;var p=As(),O=so(p);O.payload=h,f!=null&&(O.callback=f),h=ro(a,O,p),h!==null&&(cs(h,a,p),cc(h,a,p))},enqueueReplaceState:function(a,h,f){a=a._reactInternals;var p=As(),O=so(p);O.tag=1,O.payload=h,f!=null&&(O.callback=f),h=ro(a,O,p),h!==null&&(cs(h,a,p),cc(h,a,p))},enqueueForceUpdate:function(a,h){a=a._reactInternals;var f=As(),p=so(f);p.tag=2,h!=null&&(p.callback=h),h=ro(a,p,f),h!==null&&(cs(h,a,f),cc(h,a,f))}};function aC(a,h,f,p,O,v,S){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(p,v,S):h.prototype&&h.prototype.isPureReactComponent?!ic(f,p)||!ic(O,v):!0}function lC(a,h,f,p){a=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(f,p),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(f,p),h.state!==a&&VO.enqueueReplaceState(h,h.state,null)}function pa(a,h){var f=h;if("ref"in h){f={};for(var p in h)p!=="ref"&&(f[p]=h[p])}if(a=a.defaultProps){f===h&&(f=m({},f));for(var O in a)f[O]===void 0&&(f[O]=a[O])}return f}function hC(a){Uf(a)}function cC(a){console.error(a)}function uC(a){Uf(a)}function gd(a,h){try{var f=a.onUncaughtError;f(h.value,{componentStack:h.stack})}catch(p){setTimeout(function(){throw p})}}function fC(a,h,f){try{var p=a.onCaughtError;p(f.value,{componentStack:f.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function ZO(a,h,f){return f=so(f),f.tag=3,f.payload={element:null},f.callback=function(){gd(a,h)},f}function dC(a){return a=so(a),a.tag=3,a}function pC(a,h,f,p){var O=f.type.getDerivedStateFromError;if(typeof O=="function"){var v=p.value;a.payload=function(){return O(v)},a.callback=function(){fC(h,f,p)}}var S=f.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(a.callback=function(){fC(h,f,p),typeof O!="function"&&(co===null?co=new Set([this]):co.add(this));var T=p.stack;this.componentDidCatch(p.value,{componentStack:T!==null?T:""})})}function x6(a,h,f,p,O){if(f.flags|=32768,p!==null&&typeof p=="object"&&typeof p.then=="function"){if(h=f.alternate,h!==null&&_l(h,f,O,!0),f=ws.current,f!==null){switch(f.tag){case 31:case 13:return Ws===null?Ad():f.alternate===null&&At===0&&(At=3),f.flags&=-257,f.flags|=65536,f.lanes=O,p===sd?f.flags|=16384:(h=f.updateQueue,h===null?f.updateQueue=new Set([p]):h.add(p),d0(a,p,O)),!1;case 22:return f.flags|=65536,p===sd?f.flags|=16384:(h=f.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([p])},f.updateQueue=h):(f=h.retryQueue,f===null?h.retryQueue=new Set([p]):f.add(p)),d0(a,p,O)),!1}throw Error(s(435,f.tag))}return d0(a,p,O),Ad(),!1}if(Ue)return h=ws.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=O,p!==aO&&(a=Error(s(422),{cause:p}),nc(Zs(a,f)))):(p!==aO&&(h=Error(s(423),{cause:p}),nc(Zs(h,f))),a=a.current.alternate,a.flags|=65536,O&=-O,a.lanes|=O,p=Zs(p,f),O=ZO(a.stateNode,p,O),_O(a,O),At!==4&&(At=2)),!1;var v=Error(s(520),{cause:p});if(v=Zs(v,f),wc===null?wc=[v]:wc.push(v),At!==4&&(At=2),h===null)return!0;p=Zs(p,f),f=h;do{switch(f.tag){case 3:return f.flags|=65536,a=O&-O,f.lanes|=a,a=ZO(f.stateNode,p,a),_O(f,a),!1;case 1:if(h=f.type,v=f.stateNode,(f.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(co===null||!co.has(v))))return f.flags|=65536,O&=-O,f.lanes|=O,O=dC(O),pC(O,a,f,p),_O(f,O),!1}f=f.return}while(f!==null);return!1}var jO=Error(s(461)),Zt=!1;function Ti(a,h,f,p){h.child=a===null?_w(h,null,f,p):fa(h,a.child,f,p)}function mC(a,h,f,p,O){f=f.render;var v=h.ref;if("ref"in p){var S={};for(var T in p)T!=="ref"&&(S[T]=p[T])}else S=p;return la(h),p=wO(a,h,f,S,v,O),T=CO(),a!==null&&!Zt?(kO(a,h,O),_n(a,h,O)):(Ue&&T&&nO(h),h.flags|=1,Ti(a,h,p,O),h.child)}function gC(a,h,f,p,O){if(a===null){var v=f.type;return typeof v=="function"&&!iO(v)&&v.defaultProps===void 0&&f.compare===null?(h.tag=15,h.type=v,OC(a,h,v,p,O)):(a=Gf(f.type,null,p,h,h.mode,O),a.ref=h.ref,a.return=h,h.child=a)}if(v=a.child,!GO(a,O)){var S=v.memoizedProps;if(f=f.compare,f=f!==null?f:ic,f(S,p)&&a.ref===h.ref)return _n(a,h,O)}return h.flags|=1,a=fn(v,p),a.ref=h.ref,a.return=h,h.child=a}function OC(a,h,f,p,O){if(a!==null){var v=a.memoizedProps;if(ic(v,p)&&a.ref===h.ref)if(Zt=!1,h.pendingProps=p=v,GO(a,O))(a.flags&131072)!==0&&(Zt=!0);else return h.lanes=a.lanes,_n(a,h,O)}return IO(a,h,f,p,O)}function _C(a,h,f,p){var O=p.children,v=a!==null?a.memoizedState:null;if(a===null&&h.stateNode===null&&(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),p.mode==="hidden"){if((h.flags&128)!==0){if(v=v!==null?v.baseLanes|f:f,a!==null){for(p=h.child=a.child,O=0;p!==null;)O=O|p.lanes|p.childLanes,p=p.sibling;p=O&~v}else p=0,h.child=null;return vC(a,h,v,f,p)}if((f&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},a!==null&&td(h,v!==null?v.cachePool:null),v!==null?bw(h,v):yO(),Sw(h);else return p=h.lanes=536870912,vC(a,h,v!==null?v.baseLanes|f:f,f,p)}else v!==null?(td(h,v.cachePool),bw(h,v),oo(),h.memoizedState=null):(a!==null&&td(h,null),yO(),oo());return Ti(a,h,O,f),h.child}function Oc(a,h){return a!==null&&a.tag===22||h.stateNode!==null||(h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.sibling}function vC(a,h,f,p,O){var v=pO();return v=v===null?null:{parent:Xt._currentValue,pool:v},h.memoizedState={baseLanes:f,cachePool:v},a!==null&&td(h,null),yO(),Sw(h),a!==null&&_l(a,h,p,!0),h.childLanes=O,null}function Od(a,h){return h=vd({mode:h.mode,children:h.children},a.mode),h.ref=a.ref,a.child=h,h.return=a,h}function yC(a,h,f){return fa(h,a.child,null,f),a=Od(h,h.pendingProps),a.flags|=2,Cs(h),h.memoizedState=null,a}function w6(a,h,f){var p=h.pendingProps,O=(h.flags&128)!==0;if(h.flags&=-129,a===null){if(Ue){if(p.mode==="hidden")return a=Od(h,p),h.lanes=536870912,Oc(null,a);if(SO(h),(a=mt)?(a=Qk(a,qs),a=a!==null&&a.data==="&"?a:null,a!==null&&(h.memoizedState={dehydrated:a,treeContext:Kn!==null?{id:Mr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},f=sw(a),f.return=h,h.child=f,Ci=h,mt=null)):a=null,a===null)throw eo(h);return h.lanes=536870912,null}return Od(h,p)}var v=a.memoizedState;if(v!==null){var S=v.dehydrated;if(SO(h),O)if(h.flags&256)h.flags&=-257,h=yC(a,h,f);else if(h.memoizedState!==null)h.child=a.child,h.flags|=128,h=null;else throw Error(s(558));else if(Zt||_l(a,h,f,!1),O=(f&a.childLanes)!==0,Zt||O){if(p=lt,p!==null&&(S=cx(p,f),S!==0&&S!==v.retryLane))throw v.retryLane=S,ra(a,S),cs(p,a,S),jO;Ad(),h=yC(a,h,f)}else a=v.treeContext,mt=Us(S.nextSibling),Ci=h,Ue=!0,Jn=null,qs=!1,a!==null&&ow(h,a),h=Od(h,p),h.flags|=4096;return h}return a=fn(a.child,{mode:p.mode,children:p.children}),a.ref=h.ref,h.child=a,a.return=h,a}function _d(a,h){var f=h.ref;if(f===null)a!==null&&a.ref!==null&&(h.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(s(284));(a===null||a.ref!==f)&&(h.flags|=4194816)}}function IO(a,h,f,p,O){return la(h),f=wO(a,h,f,p,void 0,O),p=CO(),a!==null&&!Zt?(kO(a,h,O),_n(a,h,O)):(Ue&&p&&nO(h),h.flags|=1,Ti(a,h,f,O),h.child)}function bC(a,h,f,p,O,v){return la(h),h.updateQueue=null,f=ww(h,p,f,O),xw(a),p=CO(),a!==null&&!Zt?(kO(a,h,v),_n(a,h,v)):(Ue&&p&&nO(h),h.flags|=1,Ti(a,h,f,v),h.child)}function SC(a,h,f,p,O){if(la(h),h.stateNode===null){var v=pl,S=f.contextType;typeof S=="object"&&S!==null&&(v=ki(S)),v=new f(p,v),h.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=VO,h.stateNode=v,v._reactInternals=h,v=h.stateNode,v.props=p,v.state=h.memoizedState,v.refs={},gO(h),S=f.contextType,v.context=typeof S=="object"&&S!==null?ki(S):pl,v.state=h.memoizedState,S=f.getDerivedStateFromProps,typeof S=="function"&&(XO(h,f,S,p),v.state=h.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(S=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),S!==v.state&&VO.enqueueReplaceState(v,v.state,null),fc(h,p,v,O),uc(),v.state=h.memoizedState),typeof v.componentDidMount=="function"&&(h.flags|=4194308),p=!0}else if(a===null){v=h.stateNode;var T=h.memoizedProps,V=pa(f,T);v.props=V;var J=v.context,re=f.contextType;S=pl,typeof re=="object"&&re!==null&&(S=ki(re));var ae=f.getDerivedStateFromProps;re=typeof ae=="function"||typeof v.getSnapshotBeforeUpdate=="function",T=h.pendingProps!==T,re||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T||J!==S)&&lC(h,v,p,S),io=!1;var ee=h.memoizedState;v.state=ee,fc(h,p,v,O),uc(),J=h.memoizedState,T||ee!==J||io?(typeof ae=="function"&&(XO(h,f,ae,p),J=h.memoizedState),(V=io||aC(h,f,V,p,ee,J,S))?(re||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(h.flags|=4194308)):(typeof v.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=p,h.memoizedState=J),v.props=p,v.state=J,v.context=S,p=V):(typeof v.componentDidMount=="function"&&(h.flags|=4194308),p=!1)}else{v=h.stateNode,OO(a,h),S=h.memoizedProps,re=pa(f,S),v.props=re,ae=h.pendingProps,ee=v.context,J=f.contextType,V=pl,typeof J=="object"&&J!==null&&(V=ki(J)),T=f.getDerivedStateFromProps,(J=typeof T=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(S!==ae||ee!==V)&&lC(h,v,p,V),io=!1,ee=h.memoizedState,v.state=ee,fc(h,p,v,O),uc();var te=h.memoizedState;S!==ae||ee!==te||io||a!==null&&a.dependencies!==null&&Jf(a.dependencies)?(typeof T=="function"&&(XO(h,f,T,p),te=h.memoizedState),(re=io||aC(h,f,re,p,ee,te,V)||a!==null&&a.dependencies!==null&&Jf(a.dependencies))?(J||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(p,te,V),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(p,te,V)),typeof v.componentDidUpdate=="function"&&(h.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof v.componentDidUpdate!="function"||S===a.memoizedProps&&ee===a.memoizedState||(h.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===a.memoizedProps&&ee===a.memoizedState||(h.flags|=1024),h.memoizedProps=p,h.memoizedState=te),v.props=p,v.state=te,v.context=V,p=re):(typeof v.componentDidUpdate!="function"||S===a.memoizedProps&&ee===a.memoizedState||(h.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||S===a.memoizedProps&&ee===a.memoizedState||(h.flags|=1024),p=!1)}return v=p,_d(a,h),p=(h.flags&128)!==0,v||p?(v=h.stateNode,f=p&&typeof f.getDerivedStateFromError!="function"?null:v.render(),h.flags|=1,a!==null&&p?(h.child=fa(h,a.child,null,O),h.child=fa(h,null,f,O)):Ti(a,h,f,O),h.memoizedState=v.state,a=h.child):a=_n(a,h,O),a}function xC(a,h,f,p){return oa(),h.flags|=256,Ti(a,h,f,p),h.child}var qO={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function WO(a){return{baseLanes:a,cachePool:fw()}}function UO(a,h,f){return a=a!==null?a.childLanes&~f:0,h&&(a|=Ts),a}function wC(a,h,f){var p=h.pendingProps,O=!1,v=(h.flags&128)!==0,S;if((S=v)||(S=a!==null&&a.memoizedState===null?!1:($t.current&2)!==0),S&&(O=!0,h.flags&=-129),S=(h.flags&32)!==0,h.flags&=-33,a===null){if(Ue){if(O?no(h):oo(),(a=mt)?(a=Qk(a,qs),a=a!==null&&a.data!=="&"?a:null,a!==null&&(h.memoizedState={dehydrated:a,treeContext:Kn!==null?{id:Mr,overflow:Er}:null,retryLane:536870912,hydrationErrors:null},f=sw(a),f.return=h,h.child=f,Ci=h,mt=null)):a=null,a===null)throw eo(h);return M0(a)?h.lanes=32:h.lanes=536870912,null}var T=p.children;return p=p.fallback,O?(oo(),O=h.mode,T=vd({mode:"hidden",children:T},O),p=na(p,O,f,null),T.return=h,p.return=h,T.sibling=p,h.child=T,p=h.child,p.memoizedState=WO(f),p.childLanes=UO(a,S,f),h.memoizedState=qO,Oc(null,p)):(no(h),YO(h,T))}var V=a.memoizedState;if(V!==null&&(T=V.dehydrated,T!==null)){if(v)h.flags&256?(no(h),h.flags&=-257,h=HO(a,h,f)):h.memoizedState!==null?(oo(),h.child=a.child,h.flags|=128,h=null):(oo(),T=p.fallback,O=h.mode,p=vd({mode:"visible",children:p.children},O),T=na(T,O,f,null),T.flags|=2,p.return=h,T.return=h,p.sibling=T,h.child=p,fa(h,a.child,null,f),p=h.child,p.memoizedState=WO(f),p.childLanes=UO(a,S,f),h.memoizedState=qO,h=Oc(null,p));else if(no(h),M0(T)){if(S=T.nextSibling&&T.nextSibling.dataset,S)var J=S.dgst;S=J,p=Error(s(419)),p.stack="",p.digest=S,nc({value:p,source:null,stack:null}),h=HO(a,h,f)}else if(Zt||_l(a,h,f,!1),S=(f&a.childLanes)!==0,Zt||S){if(S=lt,S!==null&&(p=cx(S,f),p!==0&&p!==V.retryLane))throw V.retryLane=p,ra(a,p),cs(S,a,p),jO;A0(T)||Ad(),h=HO(a,h,f)}else A0(T)?(h.flags|=192,h.child=a.child,h=null):(a=V.treeContext,mt=Us(T.nextSibling),Ci=h,Ue=!0,Jn=null,qs=!1,a!==null&&ow(h,a),h=YO(h,p.children),h.flags|=4096);return h}return O?(oo(),T=p.fallback,O=h.mode,V=a.child,J=V.sibling,p=fn(V,{mode:"hidden",children:p.children}),p.subtreeFlags=V.subtreeFlags&65011712,J!==null?T=fn(J,T):(T=na(T,O,f,null),T.flags|=2),T.return=h,p.return=h,p.sibling=T,h.child=p,Oc(null,p),p=h.child,T=a.child.memoizedState,T===null?T=WO(f):(O=T.cachePool,O!==null?(V=Xt._currentValue,O=O.parent!==V?{parent:V,pool:V}:O):O=fw(),T={baseLanes:T.baseLanes|f,cachePool:O}),p.memoizedState=T,p.childLanes=UO(a,S,f),h.memoizedState=qO,Oc(a.child,p)):(no(h),f=a.child,a=f.sibling,f=fn(f,{mode:"visible",children:p.children}),f.return=h,f.sibling=null,a!==null&&(S=h.deletions,S===null?(h.deletions=[a],h.flags|=16):S.push(a)),h.child=f,h.memoizedState=null,f)}function YO(a,h){return h=vd({mode:"visible",children:h},a.mode),h.return=a,a.child=h}function vd(a,h){return a=xs(22,a,null,h),a.lanes=0,a}function HO(a,h,f){return fa(h,a.child,null,f),a=YO(h,h.pendingProps.children),a.flags|=2,h.memoizedState=null,a}function CC(a,h,f){a.lanes|=h;var p=a.alternate;p!==null&&(p.lanes|=h),cO(a.return,h,f)}function FO(a,h,f,p,O,v){var S=a.memoizedState;S===null?a.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:p,tail:f,tailMode:O,treeForkCount:v}:(S.isBackwards=h,S.rendering=null,S.renderingStartTime=0,S.last=p,S.tail=f,S.tailMode=O,S.treeForkCount=v)}function kC(a,h,f){var p=h.pendingProps,O=p.revealOrder,v=p.tail;p=p.children;var S=$t.current,T=(S&2)!==0;if(T?(S=S&1|2,h.flags|=128):S&=1,ie($t,S),Ti(a,h,p,f),p=Ue?rc:0,!T&&a!==null&&(a.flags&128)!==0)e:for(a=h.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&CC(a,f,h);else if(a.tag===19)CC(a,f,h);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===h)break e;for(;a.sibling===null;){if(a.return===null||a.return===h)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(O){case"forwards":for(f=h.child,O=null;f!==null;)a=f.alternate,a!==null&&ad(a)===null&&(O=f),f=f.sibling;f=O,f===null?(O=h.child,h.child=null):(O=f.sibling,f.sibling=null),FO(h,!1,O,f,v,p);break;case"backwards":case"unstable_legacy-backwards":for(f=null,O=h.child,h.child=null;O!==null;){if(a=O.alternate,a!==null&&ad(a)===null){h.child=O;break}a=O.sibling,O.sibling=f,f=O,O=a}FO(h,!0,f,null,v,p);break;case"together":FO(h,!1,null,null,void 0,p);break;default:h.memoizedState=null}return h.child}function _n(a,h,f){if(a!==null&&(h.dependencies=a.dependencies),ho|=h.lanes,(f&h.childLanes)===0)if(a!==null){if(_l(a,h,f,!1),(f&h.childLanes)===0)return null}else return null;if(a!==null&&h.child!==a.child)throw Error(s(153));if(h.child!==null){for(a=h.child,f=fn(a,a.pendingProps),h.child=f,f.return=h;a.sibling!==null;)a=a.sibling,f=f.sibling=fn(a,a.pendingProps),f.return=h;f.sibling=null}return h.child}function GO(a,h){return(a.lanes&h)!==0?!0:(a=a.dependencies,!!(a!==null&&Jf(a)))}function C6(a,h,f){switch(h.tag){case 3:Ae(h,h.stateNode.containerInfo),to(h,Xt,a.memoizedState.cache),oa();break;case 27:case 5:pt(h);break;case 4:Ae(h,h.stateNode.containerInfo);break;case 10:to(h,h.type,h.memoizedProps.value);break;case 31:if(h.memoizedState!==null)return h.flags|=128,SO(h),null;break;case 13:var p=h.memoizedState;if(p!==null)return p.dehydrated!==null?(no(h),h.flags|=128,null):(f&h.child.childLanes)!==0?wC(a,h,f):(no(h),a=_n(a,h,f),a!==null?a.sibling:null);no(h);break;case 19:var O=(a.flags&128)!==0;if(p=(f&h.childLanes)!==0,p||(_l(a,h,f,!1),p=(f&h.childLanes)!==0),O){if(p)return kC(a,h,f);h.flags|=128}if(O=h.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),ie($t,$t.current),p)break;return null;case 22:return h.lanes=0,_C(a,h,f,h.pendingProps);case 24:to(h,Xt,a.memoizedState.cache)}return _n(a,h,f)}function TC(a,h,f){if(a!==null)if(a.memoizedProps!==h.pendingProps)Zt=!0;else{if(!GO(a,f)&&(h.flags&128)===0)return Zt=!1,C6(a,h,f);Zt=(a.flags&131072)!==0}else Zt=!1,Ue&&(h.flags&1048576)!==0&&nw(h,rc,h.index);switch(h.lanes=0,h.tag){case 16:e:{var p=h.pendingProps;if(a=ca(h.elementType),h.type=a,typeof a=="function")iO(a)?(p=pa(a,p),h.tag=1,h=SC(null,h,a,p,f)):(h.tag=0,h=IO(null,h,a,p,f));else{if(a!=null){var O=a.$$typeof;if(O===A){h.tag=11,h=mC(null,h,a,p,f);break e}else if(O===$){h.tag=14,h=gC(null,h,a,p,f);break e}}throw h=N(a)||a,Error(s(306,h,""))}}return h;case 0:return IO(a,h,h.type,h.pendingProps,f);case 1:return p=h.type,O=pa(p,h.pendingProps),SC(a,h,p,O,f);case 3:e:{if(Ae(h,h.stateNode.containerInfo),a===null)throw Error(s(387));p=h.pendingProps;var v=h.memoizedState;O=v.element,OO(a,h),fc(h,p,null,f);var S=h.memoizedState;if(p=S.cache,to(h,Xt,p),p!==v.cache&&uO(h,[Xt],f,!0),uc(),p=S.element,v.isDehydrated)if(v={element:p,isDehydrated:!1,cache:S.cache},h.updateQueue.baseState=v,h.memoizedState=v,h.flags&256){h=xC(a,h,p,f);break e}else if(p!==O){O=Zs(Error(s(424)),h),nc(O),h=xC(a,h,p,f);break e}else{switch(a=h.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(mt=Us(a.firstChild),Ci=h,Ue=!0,Jn=null,qs=!0,f=_w(h,null,p,f),h.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling}else{if(oa(),p===O){h=_n(a,h,f);break e}Ti(a,h,p,f)}h=h.child}return h;case 26:return _d(a,h),a===null?(f=zk(h.type,null,h.pendingProps,null))?h.memoizedState=f:Ue||(f=h.type,a=h.pendingProps,p=$d(de.current).createElement(f),p[wi]=h,p[rs]=a,Ai(p,f,a),ai(p),h.stateNode=p):h.memoizedState=zk(h.type,a.memoizedProps,h.pendingProps,a.memoizedState),null;case 27:return pt(h),a===null&&Ue&&(p=h.stateNode=$k(h.type,h.pendingProps,de.current),Ci=h,qs=!0,O=mt,mo(h.type)?(E0=O,mt=Us(p.firstChild)):mt=O),Ti(a,h,h.pendingProps.children,f),_d(a,h),a===null&&(h.flags|=4194304),h.child;case 5:return a===null&&Ue&&((O=p=mt)&&(p=tz(p,h.type,h.pendingProps,qs),p!==null?(h.stateNode=p,Ci=h,mt=Us(p.firstChild),qs=!1,O=!0):O=!1),O||eo(h)),pt(h),O=h.type,v=h.pendingProps,S=a!==null?a.memoizedProps:null,p=v.children,C0(O,v)?p=null:S!==null&&C0(O,S)&&(h.flags|=32),h.memoizedState!==null&&(O=wO(a,h,g6,null,null,f),Qc._currentValue=O),_d(a,h),Ti(a,h,p,f),h.child;case 6:return a===null&&Ue&&((a=f=mt)&&(f=iz(f,h.pendingProps,qs),f!==null?(h.stateNode=f,Ci=h,mt=null,a=!0):a=!1),a||eo(h)),null;case 13:return wC(a,h,f);case 4:return Ae(h,h.stateNode.containerInfo),p=h.pendingProps,a===null?h.child=fa(h,null,p,f):Ti(a,h,p,f),h.child;case 11:return mC(a,h,h.type,h.pendingProps,f);case 7:return Ti(a,h,h.pendingProps,f),h.child;case 8:return Ti(a,h,h.pendingProps.children,f),h.child;case 12:return Ti(a,h,h.pendingProps.children,f),h.child;case 10:return p=h.pendingProps,to(h,h.type,p.value),Ti(a,h,p.children,f),h.child;case 9:return O=h.type._context,p=h.pendingProps.children,la(h),O=ki(O),p=p(O),h.flags|=1,Ti(a,h,p,f),h.child;case 14:return gC(a,h,h.type,h.pendingProps,f);case 15:return OC(a,h,h.type,h.pendingProps,f);case 19:return kC(a,h,f);case 31:return w6(a,h,f);case 22:return _C(a,h,f,h.pendingProps);case 24:return la(h),p=ki(Xt),a===null?(O=pO(),O===null&&(O=lt,v=fO(),O.pooledCache=v,v.refCount++,v!==null&&(O.pooledCacheLanes|=f),O=v),h.memoizedState={parent:p,cache:O},gO(h),to(h,Xt,O)):((a.lanes&f)!==0&&(OO(a,h),fc(h,null,null,f),uc()),O=a.memoizedState,v=h.memoizedState,O.parent!==p?(O={parent:p,cache:p},h.memoizedState=O,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=O),to(h,Xt,p)):(p=v.cache,to(h,Xt,p),p!==O.cache&&uO(h,[Xt],f,!0))),Ti(a,h,h.pendingProps.children,f),h.child;case 29:throw h.pendingProps}throw Error(s(156,h.tag))}function vn(a){a.flags|=4}function KO(a,h,f,p,O){if((h=(a.mode&32)!==0)&&(h=!1),h){if(a.flags|=16777216,(O&335544128)===O)if(a.stateNode.complete)a.flags|=8192;else if(ek())a.flags|=8192;else throw ua=sd,mO}else a.flags&=-16777217}function AC(a,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!jk(h))if(ek())a.flags|=8192;else throw ua=sd,mO}function yd(a,h){h!==null&&(a.flags|=4),a.flags&16384&&(h=a.tag!==22?ax():536870912,a.lanes|=h,El|=h)}function _c(a,h){if(!Ue)switch(a.tailMode){case"hidden":h=a.tail;for(var f=null;h!==null;)h.alternate!==null&&(f=h),h=h.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var p=null;f!==null;)f.alternate!==null&&(p=f),f=f.sibling;p===null?h||a.tail===null?a.tail=null:a.tail.sibling=null:p.sibling=null}}function gt(a){var h=a.alternate!==null&&a.alternate.child===a.child,f=0,p=0;if(h)for(var O=a.child;O!==null;)f|=O.lanes|O.childLanes,p|=O.subtreeFlags&65011712,p|=O.flags&65011712,O.return=a,O=O.sibling;else for(O=a.child;O!==null;)f|=O.lanes|O.childLanes,p|=O.subtreeFlags,p|=O.flags,O.return=a,O=O.sibling;return a.subtreeFlags|=p,a.childLanes=f,h}function k6(a,h,f){var p=h.pendingProps;switch(oO(h),h.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(h),null;case 1:return gt(h),null;case 3:return f=h.stateNode,p=null,a!==null&&(p=a.memoizedState.cache),h.memoizedState.cache!==p&&(h.flags|=2048),mn(Xt),ye(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Ol(h)?vn(h):a===null||a.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,lO())),gt(h),null;case 26:var O=h.type,v=h.memoizedState;return a===null?(vn(h),v!==null?(gt(h),AC(h,v)):(gt(h),KO(h,O,null,p,f))):v?v!==a.memoizedState?(vn(h),gt(h),AC(h,v)):(gt(h),h.flags&=-16777217):(a=a.memoizedProps,a!==p&&vn(h),gt(h),KO(h,O,a,p,f)),null;case 27:if(Ft(h),f=de.current,O=h.type,a!==null&&h.stateNode!=null)a.memoizedProps!==p&&vn(h);else{if(!p){if(h.stateNode===null)throw Error(s(166));return gt(h),null}a=ce.current,Ol(h)?aw(h):(a=$k(O,p,f),h.stateNode=a,vn(h))}return gt(h),null;case 5:if(Ft(h),O=h.type,a!==null&&h.stateNode!=null)a.memoizedProps!==p&&vn(h);else{if(!p){if(h.stateNode===null)throw Error(s(166));return gt(h),null}if(v=ce.current,Ol(h))aw(h);else{var S=$d(de.current);switch(v){case 1:v=S.createElementNS("http://www.w3.org/2000/svg",O);break;case 2:v=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;default:switch(O){case"svg":v=S.createElementNS("http://www.w3.org/2000/svg",O);break;case"math":v=S.createElementNS("http://www.w3.org/1998/Math/MathML",O);break;case"script":v=S.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof p.is=="string"?S.createElement("select",{is:p.is}):S.createElement("select"),p.multiple?v.multiple=!0:p.size&&(v.size=p.size);break;default:v=typeof p.is=="string"?S.createElement(O,{is:p.is}):S.createElement(O)}}v[wi]=h,v[rs]=p;e:for(S=h.child;S!==null;){if(S.tag===5||S.tag===6)v.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===h)break e;for(;S.sibling===null;){if(S.return===null||S.return===h)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}h.stateNode=v;e:switch(Ai(v,O,p),O){case"button":case"input":case"select":case"textarea":p=!!p.autoFocus;break e;case"img":p=!0;break e;default:p=!1}p&&vn(h)}}return gt(h),KO(h,h.type,a===null?null:a.memoizedProps,h.pendingProps,f),null;case 6:if(a&&h.stateNode!=null)a.memoizedProps!==p&&vn(h);else{if(typeof p!="string"&&h.stateNode===null)throw Error(s(166));if(a=de.current,Ol(h)){if(a=h.stateNode,f=h.memoizedProps,p=null,O=Ci,O!==null)switch(O.tag){case 27:case 5:p=O.memoizedProps}a[wi]=h,a=!!(a.nodeValue===f||p!==null&&p.suppressHydrationWarning===!0||wk(a.nodeValue,f)),a||eo(h,!0)}else a=$d(a).createTextNode(p),a[wi]=h,h.stateNode=a}return gt(h),null;case 31:if(f=h.memoizedState,a===null||a.memoizedState!==null){if(p=Ol(h),f!==null){if(a===null){if(!p)throw Error(s(318));if(a=h.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(s(557));a[wi]=h}else oa(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;gt(h),a=!1}else f=lO(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return h.flags&256?(Cs(h),h):(Cs(h),null);if((h.flags&128)!==0)throw Error(s(558))}return gt(h),null;case 13:if(p=h.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(O=Ol(h),p!==null&&p.dehydrated!==null){if(a===null){if(!O)throw Error(s(318));if(O=h.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(s(317));O[wi]=h}else oa(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;gt(h),O=!1}else O=lO(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=O),O=!0;if(!O)return h.flags&256?(Cs(h),h):(Cs(h),null)}return Cs(h),(h.flags&128)!==0?(h.lanes=f,h):(f=p!==null,a=a!==null&&a.memoizedState!==null,f&&(p=h.child,O=null,p.alternate!==null&&p.alternate.memoizedState!==null&&p.alternate.memoizedState.cachePool!==null&&(O=p.alternate.memoizedState.cachePool.pool),v=null,p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),v!==O&&(p.flags|=2048)),f!==a&&f&&(h.child.flags|=8192),yd(h,h.updateQueue),gt(h),null);case 4:return ye(),a===null&&y0(h.stateNode.containerInfo),gt(h),null;case 10:return mn(h.type),gt(h),null;case 19:if(G($t),p=h.memoizedState,p===null)return gt(h),null;if(O=(h.flags&128)!==0,v=p.rendering,v===null)if(O)_c(p,!1);else{if(At!==0||a!==null&&(a.flags&128)!==0)for(a=h.child;a!==null;){if(v=ad(a),v!==null){for(h.flags|=128,_c(p,!1),a=v.updateQueue,h.updateQueue=a,yd(h,a),h.subtreeFlags=0,a=f,f=h.child;f!==null;)iw(f,a),f=f.sibling;return ie($t,$t.current&1|2),Ue&&dn(h,p.treeForkCount),h.child}a=a.sibling}p.tail!==null&&vs()>Cd&&(h.flags|=128,O=!0,_c(p,!1),h.lanes=4194304)}else{if(!O)if(a=ad(v),a!==null){if(h.flags|=128,O=!0,a=a.updateQueue,h.updateQueue=a,yd(h,a),_c(p,!0),p.tail===null&&p.tailMode==="hidden"&&!v.alternate&&!Ue)return gt(h),null}else 2*vs()-p.renderingStartTime>Cd&&f!==536870912&&(h.flags|=128,O=!0,_c(p,!1),h.lanes=4194304);p.isBackwards?(v.sibling=h.child,h.child=v):(a=p.last,a!==null?a.sibling=v:h.child=v,p.last=v)}return p.tail!==null?(a=p.tail,p.rendering=a,p.tail=a.sibling,p.renderingStartTime=vs(),a.sibling=null,f=$t.current,ie($t,O?f&1|2:f&1),Ue&&dn(h,p.treeForkCount),a):(gt(h),null);case 22:case 23:return Cs(h),bO(),p=h.memoizedState!==null,a!==null?a.memoizedState!==null!==p&&(h.flags|=8192):p&&(h.flags|=8192),p?(f&536870912)!==0&&(h.flags&128)===0&&(gt(h),h.subtreeFlags&6&&(h.flags|=8192)):gt(h),f=h.updateQueue,f!==null&&yd(h,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),p=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(p=h.memoizedState.cachePool.pool),p!==f&&(h.flags|=2048),a!==null&&G(ha),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),h.memoizedState.cache!==f&&(h.flags|=2048),mn(Xt),gt(h),null;case 25:return null;case 30:return null}throw Error(s(156,h.tag))}function T6(a,h){switch(oO(h),h.tag){case 1:return a=h.flags,a&65536?(h.flags=a&-65537|128,h):null;case 3:return mn(Xt),ye(),a=h.flags,(a&65536)!==0&&(a&128)===0?(h.flags=a&-65537|128,h):null;case 26:case 27:case 5:return Ft(h),null;case 31:if(h.memoizedState!==null){if(Cs(h),h.alternate===null)throw Error(s(340));oa()}return a=h.flags,a&65536?(h.flags=a&-65537|128,h):null;case 13:if(Cs(h),a=h.memoizedState,a!==null&&a.dehydrated!==null){if(h.alternate===null)throw Error(s(340));oa()}return a=h.flags,a&65536?(h.flags=a&-65537|128,h):null;case 19:return G($t),null;case 4:return ye(),null;case 10:return mn(h.type),null;case 22:case 23:return Cs(h),bO(),a!==null&&G(ha),a=h.flags,a&65536?(h.flags=a&-65537|128,h):null;case 24:return mn(Xt),null;case 25:return null;default:return null}}function MC(a,h){switch(oO(h),h.tag){case 3:mn(Xt),ye();break;case 26:case 27:case 5:Ft(h);break;case 4:ye();break;case 31:h.memoizedState!==null&&Cs(h);break;case 13:Cs(h);break;case 19:G($t);break;case 10:mn(h.type);break;case 22:case 23:Cs(h),bO(),a!==null&&G(ha);break;case 24:mn(Xt)}}function vc(a,h){try{var f=h.updateQueue,p=f!==null?f.lastEffect:null;if(p!==null){var O=p.next;f=O;do{if((f.tag&a)===a){p=void 0;var v=f.create,S=f.inst;p=v(),S.destroy=p}f=f.next}while(f!==O)}}catch(T){it(h,h.return,T)}}function ao(a,h,f){try{var p=h.updateQueue,O=p!==null?p.lastEffect:null;if(O!==null){var v=O.next;p=v;do{if((p.tag&a)===a){var S=p.inst,T=S.destroy;if(T!==void 0){S.destroy=void 0,O=h;var V=f,J=T;try{J()}catch(re){it(O,V,re)}}}p=p.next}while(p!==v)}}catch(re){it(h,h.return,re)}}function EC(a){var h=a.updateQueue;if(h!==null){var f=a.stateNode;try{yw(h,f)}catch(p){it(a,a.return,p)}}}function PC(a,h,f){f.props=pa(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(p){it(a,h,p)}}function yc(a,h){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var p=a.stateNode;break;case 30:p=a.stateNode;break;default:p=a.stateNode}typeof f=="function"?a.refCleanup=f(p):f.current=p}}catch(O){it(a,h,O)}}function Pr(a,h){var f=a.ref,p=a.refCleanup;if(f!==null)if(typeof p=="function")try{p()}catch(O){it(a,h,O)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(O){it(a,h,O)}else f.current=null}function QC(a){var h=a.type,f=a.memoizedProps,p=a.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":f.autoFocus&&p.focus();break e;case"img":f.src?p.src=f.src:f.srcSet&&(p.srcset=f.srcSet)}}catch(O){it(a,a.return,O)}}function JO(a,h,f){try{var p=a.stateNode;H6(p,a.type,f,h),p[rs]=h}catch(O){it(a,a.return,O)}}function RC(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&mo(a.type)||a.tag===4}function e0(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||RC(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&mo(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function t0(a,h,f){var p=a.tag;if(p===5||p===6)a=a.stateNode,h?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(a,h):(h=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,h.appendChild(a),f=f._reactRootContainer,f!=null||h.onclick!==null||(h.onclick=cn));else if(p!==4&&(p===27&&mo(a.type)&&(f=a.stateNode,h=null),a=a.child,a!==null))for(t0(a,h,f),a=a.sibling;a!==null;)t0(a,h,f),a=a.sibling}function bd(a,h,f){var p=a.tag;if(p===5||p===6)a=a.stateNode,h?f.insertBefore(a,h):f.appendChild(a);else if(p!==4&&(p===27&&mo(a.type)&&(f=a.stateNode),a=a.child,a!==null))for(bd(a,h,f),a=a.sibling;a!==null;)bd(a,h,f),a=a.sibling}function LC(a){var h=a.stateNode,f=a.memoizedProps;try{for(var p=a.type,O=h.attributes;O.length;)h.removeAttributeNode(O[0]);Ai(h,p,f),h[wi]=a,h[rs]=f}catch(v){it(a,a.return,v)}}var yn=!1,jt=!1,i0=!1,$C=typeof WeakSet=="function"?WeakSet:Set,li=null;function A6(a,h){if(a=a.containerInfo,x0=Zd,a=Ux(a),Hg(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var p=f.getSelection&&f.getSelection();if(p&&p.rangeCount!==0){f=p.anchorNode;var O=p.anchorOffset,v=p.focusNode;p=p.focusOffset;try{f.nodeType,v.nodeType}catch{f=null;break e}var S=0,T=-1,V=-1,J=0,re=0,ae=a,ee=null;t:for(;;){for(var te;ae!==f||O!==0&&ae.nodeType!==3||(T=S+O),ae!==v||p!==0&&ae.nodeType!==3||(V=S+p),ae.nodeType===3&&(S+=ae.nodeValue.length),(te=ae.firstChild)!==null;)ee=ae,ae=te;for(;;){if(ae===a)break t;if(ee===f&&++J===O&&(T=S),ee===v&&++re===p&&(V=S),(te=ae.nextSibling)!==null)break;ae=ee,ee=ae.parentNode}ae=te}f=T===-1||V===-1?null:{start:T,end:V}}else f=null}f=f||{start:0,end:0}}else f=null;for(w0={focusedElem:a,selectionRange:f},Zd=!1,li=h;li!==null;)if(h=li,a=h.child,(h.subtreeFlags&1028)!==0&&a!==null)a.return=h,li=a;else for(;li!==null;){switch(h=li,v=h.alternate,a=h.flags,h.tag){case 0:if((a&4)!==0&&(a=h.updateQueue,a=a!==null?a.events:null,a!==null))for(f=0;f<a.length;f++)O=a[f],O.ref.impl=O.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&v!==null){a=void 0,f=h,O=v.memoizedProps,v=v.memoizedState,p=f.stateNode;try{var be=pa(f.type,O);a=p.getSnapshotBeforeUpdate(be,v),p.__reactInternalSnapshotBeforeUpdate=a}catch(Ee){it(f,f.return,Ee)}}break;case 3:if((a&1024)!==0){if(a=h.stateNode.containerInfo,f=a.nodeType,f===9)T0(a);else if(f===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":T0(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(s(163))}if(a=h.sibling,a!==null){a.return=h.return,li=a;break}li=h.return}}function BC(a,h,f){var p=f.flags;switch(f.tag){case 0:case 11:case 15:Sn(a,f),p&4&&vc(5,f);break;case 1:if(Sn(a,f),p&4)if(a=f.stateNode,h===null)try{a.componentDidMount()}catch(S){it(f,f.return,S)}else{var O=pa(f.type,h.memoizedProps);h=h.memoizedState;try{a.componentDidUpdate(O,h,a.__reactInternalSnapshotBeforeUpdate)}catch(S){it(f,f.return,S)}}p&64&&EC(f),p&512&&yc(f,f.return);break;case 3:if(Sn(a,f),p&64&&(a=f.updateQueue,a!==null)){if(h=null,f.child!==null)switch(f.child.tag){case 27:case 5:h=f.child.stateNode;break;case 1:h=f.child.stateNode}try{yw(a,h)}catch(S){it(f,f.return,S)}}break;case 27:h===null&&p&4&&LC(f);case 26:case 5:Sn(a,f),h===null&&p&4&&QC(f),p&512&&yc(f,f.return);break;case 12:Sn(a,f);break;case 31:Sn(a,f),p&4&&NC(a,f);break;case 13:Sn(a,f),p&4&&XC(a,f),p&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=D6.bind(null,f),sz(a,f))));break;case 22:if(p=f.memoizedState!==null||yn,!p){h=h!==null&&h.memoizedState!==null||jt,O=yn;var v=jt;yn=p,(jt=h)&&!v?xn(a,f,(f.subtreeFlags&8772)!==0):Sn(a,f),yn=O,jt=v}break;case 30:break;default:Sn(a,f)}}function DC(a){var h=a.alternate;h!==null&&(a.alternate=null,DC(h)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(h=a.stateNode,h!==null&&Qg(h)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var bt=null,os=!1;function bn(a,h,f){for(f=f.child;f!==null;)zC(a,h,f),f=f.sibling}function zC(a,h,f){if(ys&&typeof ys.onCommitFiberUnmount=="function")try{ys.onCommitFiberUnmount(Ih,f)}catch{}switch(f.tag){case 26:jt||Pr(f,h),bn(a,h,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:jt||Pr(f,h);var p=bt,O=os;mo(f.type)&&(bt=f.stateNode,os=!1),bn(a,h,f),Mc(f.stateNode),bt=p,os=O;break;case 5:jt||Pr(f,h);case 6:if(p=bt,O=os,bt=null,bn(a,h,f),bt=p,os=O,bt!==null)if(os)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(f.stateNode)}catch(v){it(f,h,v)}else try{bt.removeChild(f.stateNode)}catch(v){it(f,h,v)}break;case 18:bt!==null&&(os?(a=bt,Ek(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),zl(a)):Ek(bt,f.stateNode));break;case 4:p=bt,O=os,bt=f.stateNode.containerInfo,os=!0,bn(a,h,f),bt=p,os=O;break;case 0:case 11:case 14:case 15:ao(2,f,h),jt||ao(4,f,h),bn(a,h,f);break;case 1:jt||(Pr(f,h),p=f.stateNode,typeof p.componentWillUnmount=="function"&&PC(f,h,p)),bn(a,h,f);break;case 21:bn(a,h,f);break;case 22:jt=(p=jt)||f.memoizedState!==null,bn(a,h,f),jt=p;break;default:bn(a,h,f)}}function NC(a,h){if(h.memoizedState===null&&(a=h.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{zl(a)}catch(f){it(h,h.return,f)}}}function XC(a,h){if(h.memoizedState===null&&(a=h.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{zl(a)}catch(f){it(h,h.return,f)}}function M6(a){switch(a.tag){case 31:case 13:case 19:var h=a.stateNode;return h===null&&(h=a.stateNode=new $C),h;case 22:return a=a.stateNode,h=a._retryCache,h===null&&(h=a._retryCache=new $C),h;default:throw Error(s(435,a.tag))}}function Sd(a,h){var f=M6(a);h.forEach(function(p){if(!f.has(p)){f.add(p);var O=z6.bind(null,a,p);p.then(O,O)}})}function as(a,h){var f=h.deletions;if(f!==null)for(var p=0;p<f.length;p++){var O=f[p],v=a,S=h,T=S;e:for(;T!==null;){switch(T.tag){case 27:if(mo(T.type)){bt=T.stateNode,os=!1;break e}break;case 5:bt=T.stateNode,os=!1;break e;case 3:case 4:bt=T.stateNode.containerInfo,os=!0;break e}T=T.return}if(bt===null)throw Error(s(160));zC(v,S,O),bt=null,os=!1,v=O.alternate,v!==null&&(v.return=null),O.return=null}if(h.subtreeFlags&13886)for(h=h.child;h!==null;)VC(h,a),h=h.sibling}var dr=null;function VC(a,h){var f=a.alternate,p=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:as(h,a),ls(a),p&4&&(ao(3,a,a.return),vc(3,a),ao(5,a,a.return));break;case 1:as(h,a),ls(a),p&512&&(jt||f===null||Pr(f,f.return)),p&64&&yn&&(a=a.updateQueue,a!==null&&(p=a.callbacks,p!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?p:f.concat(p))));break;case 26:var O=dr;if(as(h,a),ls(a),p&512&&(jt||f===null||Pr(f,f.return)),p&4){var v=f!==null?f.memoizedState:null;if(p=a.memoizedState,f===null)if(p===null)if(a.stateNode===null){e:{p=a.type,f=a.memoizedProps,O=O.ownerDocument||O;t:switch(p){case"title":v=O.getElementsByTagName("title")[0],(!v||v[Uh]||v[wi]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=O.createElement(p),O.head.insertBefore(v,O.querySelector("head > title"))),Ai(v,p,f),v[wi]=a,ai(v),p=v;break e;case"link":var S=Vk("link","href",O).get(p+(f.href||""));if(S){for(var T=0;T<S.length;T++)if(v=S[T],v.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&v.getAttribute("rel")===(f.rel==null?null:f.rel)&&v.getAttribute("title")===(f.title==null?null:f.title)&&v.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){S.splice(T,1);break t}}v=O.createElement(p),Ai(v,p,f),O.head.appendChild(v);break;case"meta":if(S=Vk("meta","content",O).get(p+(f.content||""))){for(T=0;T<S.length;T++)if(v=S[T],v.getAttribute("content")===(f.content==null?null:""+f.content)&&v.getAttribute("name")===(f.name==null?null:f.name)&&v.getAttribute("property")===(f.property==null?null:f.property)&&v.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&v.getAttribute("charset")===(f.charSet==null?null:f.charSet)){S.splice(T,1);break t}}v=O.createElement(p),Ai(v,p,f),O.head.appendChild(v);break;default:throw Error(s(468,p))}v[wi]=a,ai(v),p=v}a.stateNode=p}else Zk(O,a.type,a.stateNode);else a.stateNode=Xk(O,p,a.memoizedProps);else v!==p?(v===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):v.count--,p===null?Zk(O,a.type,a.stateNode):Xk(O,p,a.memoizedProps)):p===null&&a.stateNode!==null&&JO(a,a.memoizedProps,f.memoizedProps)}break;case 27:as(h,a),ls(a),p&512&&(jt||f===null||Pr(f,f.return)),f!==null&&p&4&&JO(a,a.memoizedProps,f.memoizedProps);break;case 5:if(as(h,a),ls(a),p&512&&(jt||f===null||Pr(f,f.return)),a.flags&32){O=a.stateNode;try{al(O,"")}catch(be){it(a,a.return,be)}}p&4&&a.stateNode!=null&&(O=a.memoizedProps,JO(a,O,f!==null?f.memoizedProps:O)),p&1024&&(i0=!0);break;case 6:if(as(h,a),ls(a),p&4){if(a.stateNode===null)throw Error(s(162));p=a.memoizedProps,f=a.stateNode;try{f.nodeValue=p}catch(be){it(a,a.return,be)}}break;case 3:if(zd=null,O=dr,dr=Bd(h.containerInfo),as(h,a),dr=O,ls(a),p&4&&f!==null&&f.memoizedState.isDehydrated)try{zl(h.containerInfo)}catch(be){it(a,a.return,be)}i0&&(i0=!1,ZC(a));break;case 4:p=dr,dr=Bd(a.stateNode.containerInfo),as(h,a),ls(a),dr=p;break;case 12:as(h,a),ls(a);break;case 31:as(h,a),ls(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Sd(a,p)));break;case 13:as(h,a),ls(a),a.child.flags&8192&&a.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(wd=vs()),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Sd(a,p)));break;case 22:O=a.memoizedState!==null;var V=f!==null&&f.memoizedState!==null,J=yn,re=jt;if(yn=J||O,jt=re||V,as(h,a),jt=re,yn=J,ls(a),p&8192)e:for(h=a.stateNode,h._visibility=O?h._visibility&-2:h._visibility|1,O&&(f===null||V||yn||jt||ma(a)),f=null,h=a;;){if(h.tag===5||h.tag===26){if(f===null){V=f=h;try{if(v=V.stateNode,O)S=v.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{T=V.stateNode;var ae=V.memoizedProps.style,ee=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;T.style.display=ee==null||typeof ee=="boolean"?"":(""+ee).trim()}}catch(be){it(V,V.return,be)}}}else if(h.tag===6){if(f===null){V=h;try{V.stateNode.nodeValue=O?"":V.memoizedProps}catch(be){it(V,V.return,be)}}}else if(h.tag===18){if(f===null){V=h;try{var te=V.stateNode;O?Pk(te,!0):Pk(V.stateNode,!1)}catch(be){it(V,V.return,be)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===a)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break e;for(;h.sibling===null;){if(h.return===null||h.return===a)break e;f===h&&(f=null),h=h.return}f===h&&(f=null),h.sibling.return=h.return,h=h.sibling}p&4&&(p=a.updateQueue,p!==null&&(f=p.retryQueue,f!==null&&(p.retryQueue=null,Sd(a,f))));break;case 19:as(h,a),ls(a),p&4&&(p=a.updateQueue,p!==null&&(a.updateQueue=null,Sd(a,p)));break;case 30:break;case 21:break;default:as(h,a),ls(a)}}function ls(a){var h=a.flags;if(h&2){try{for(var f,p=a.return;p!==null;){if(RC(p)){f=p;break}p=p.return}if(f==null)throw Error(s(160));switch(f.tag){case 27:var O=f.stateNode,v=e0(a);bd(a,v,O);break;case 5:var S=f.stateNode;f.flags&32&&(al(S,""),f.flags&=-33);var T=e0(a);bd(a,T,S);break;case 3:case 4:var V=f.stateNode.containerInfo,J=e0(a);t0(a,J,V);break;default:throw Error(s(161))}}catch(re){it(a,a.return,re)}a.flags&=-3}h&4096&&(a.flags&=-4097)}function ZC(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var h=a;ZC(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),a=a.sibling}}function Sn(a,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)BC(a,h.alternate,h),h=h.sibling}function ma(a){for(a=a.child;a!==null;){var h=a;switch(h.tag){case 0:case 11:case 14:case 15:ao(4,h,h.return),ma(h);break;case 1:Pr(h,h.return);var f=h.stateNode;typeof f.componentWillUnmount=="function"&&PC(h,h.return,f),ma(h);break;case 27:Mc(h.stateNode);case 26:case 5:Pr(h,h.return),ma(h);break;case 22:h.memoizedState===null&&ma(h);break;case 30:ma(h);break;default:ma(h)}a=a.sibling}}function xn(a,h,f){for(f=f&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var p=h.alternate,O=a,v=h,S=v.flags;switch(v.tag){case 0:case 11:case 15:xn(O,v,f),vc(4,v);break;case 1:if(xn(O,v,f),p=v,O=p.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(J){it(p,p.return,J)}if(p=v,O=p.updateQueue,O!==null){var T=p.stateNode;try{var V=O.shared.hiddenCallbacks;if(V!==null)for(O.shared.hiddenCallbacks=null,O=0;O<V.length;O++)vw(V[O],T)}catch(J){it(p,p.return,J)}}f&&S&64&&EC(v),yc(v,v.return);break;case 27:LC(v);case 26:case 5:xn(O,v,f),f&&p===null&&S&4&&QC(v),yc(v,v.return);break;case 12:xn(O,v,f);break;case 31:xn(O,v,f),f&&S&4&&NC(O,v);break;case 13:xn(O,v,f),f&&S&4&&XC(O,v);break;case 22:v.memoizedState===null&&xn(O,v,f),yc(v,v.return);break;case 30:break;default:xn(O,v,f)}h=h.sibling}}function s0(a,h){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(a=h.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&oc(f))}function r0(a,h){a=null,h.alternate!==null&&(a=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==a&&(h.refCount++,a!=null&&oc(a))}function pr(a,h,f,p){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)jC(a,h,f,p),h=h.sibling}function jC(a,h,f,p){var O=h.flags;switch(h.tag){case 0:case 11:case 15:pr(a,h,f,p),O&2048&&vc(9,h);break;case 1:pr(a,h,f,p);break;case 3:pr(a,h,f,p),O&2048&&(a=null,h.alternate!==null&&(a=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==a&&(h.refCount++,a!=null&&oc(a)));break;case 12:if(O&2048){pr(a,h,f,p),a=h.stateNode;try{var v=h.memoizedProps,S=v.id,T=v.onPostCommit;typeof T=="function"&&T(S,h.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(V){it(h,h.return,V)}}else pr(a,h,f,p);break;case 31:pr(a,h,f,p);break;case 13:pr(a,h,f,p);break;case 23:break;case 22:v=h.stateNode,S=h.alternate,h.memoizedState!==null?v._visibility&2?pr(a,h,f,p):bc(a,h):v._visibility&2?pr(a,h,f,p):(v._visibility|=2,Tl(a,h,f,p,(h.subtreeFlags&10256)!==0||!1)),O&2048&&s0(S,h);break;case 24:pr(a,h,f,p),O&2048&&r0(h.alternate,h);break;default:pr(a,h,f,p)}}function Tl(a,h,f,p,O){for(O=O&&((h.subtreeFlags&10256)!==0||!1),h=h.child;h!==null;){var v=a,S=h,T=f,V=p,J=S.flags;switch(S.tag){case 0:case 11:case 15:Tl(v,S,T,V,O),vc(8,S);break;case 23:break;case 22:var re=S.stateNode;S.memoizedState!==null?re._visibility&2?Tl(v,S,T,V,O):bc(v,S):(re._visibility|=2,Tl(v,S,T,V,O)),O&&J&2048&&s0(S.alternate,S);break;case 24:Tl(v,S,T,V,O),O&&J&2048&&r0(S.alternate,S);break;default:Tl(v,S,T,V,O)}h=h.sibling}}function bc(a,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var f=a,p=h,O=p.flags;switch(p.tag){case 22:bc(f,p),O&2048&&s0(p.alternate,p);break;case 24:bc(f,p),O&2048&&r0(p.alternate,p);break;default:bc(f,p)}h=h.sibling}}var Sc=8192;function Al(a,h,f){if(a.subtreeFlags&Sc)for(a=a.child;a!==null;)IC(a,h,f),a=a.sibling}function IC(a,h,f){switch(a.tag){case 26:Al(a,h,f),a.flags&Sc&&a.memoizedState!==null&&mz(f,dr,a.memoizedState,a.memoizedProps);break;case 5:Al(a,h,f);break;case 3:case 4:var p=dr;dr=Bd(a.stateNode.containerInfo),Al(a,h,f),dr=p;break;case 22:a.memoizedState===null&&(p=a.alternate,p!==null&&p.memoizedState!==null?(p=Sc,Sc=16777216,Al(a,h,f),Sc=p):Al(a,h,f));break;default:Al(a,h,f)}}function qC(a){var h=a.alternate;if(h!==null&&(a=h.child,a!==null)){h.child=null;do h=a.sibling,a.sibling=null,a=h;while(a!==null)}}function xc(a){var h=a.deletions;if((a.flags&16)!==0){if(h!==null)for(var f=0;f<h.length;f++){var p=h[f];li=p,UC(p,a)}qC(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)WC(a),a=a.sibling}function WC(a){switch(a.tag){case 0:case 11:case 15:xc(a),a.flags&2048&&ao(9,a,a.return);break;case 3:xc(a);break;case 12:xc(a);break;case 22:var h=a.stateNode;a.memoizedState!==null&&h._visibility&2&&(a.return===null||a.return.tag!==13)?(h._visibility&=-3,xd(a)):xc(a);break;default:xc(a)}}function xd(a){var h=a.deletions;if((a.flags&16)!==0){if(h!==null)for(var f=0;f<h.length;f++){var p=h[f];li=p,UC(p,a)}qC(a)}for(a=a.child;a!==null;){switch(h=a,h.tag){case 0:case 11:case 15:ao(8,h,h.return),xd(h);break;case 22:f=h.stateNode,f._visibility&2&&(f._visibility&=-3,xd(h));break;default:xd(h)}a=a.sibling}}function UC(a,h){for(;li!==null;){var f=li;switch(f.tag){case 0:case 11:case 15:ao(8,f,h);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var p=f.memoizedState.cachePool.pool;p!=null&&p.refCount++}break;case 24:oc(f.memoizedState.cache)}if(p=f.child,p!==null)p.return=f,li=p;else e:for(f=a;li!==null;){p=li;var O=p.sibling,v=p.return;if(DC(p),p===f){li=null;break e}if(O!==null){O.return=v,li=O;break e}li=v}}}var E6={getCacheForType:function(a){var h=ki(Xt),f=h.data.get(a);return f===void 0&&(f=a(),h.data.set(a,f)),f},cacheSignal:function(){return ki(Xt).controller.signal}},P6=typeof WeakMap=="function"?WeakMap:Map,Ge=0,lt=null,Ve=null,Ie=0,tt=0,ks=null,lo=!1,Ml=!1,n0=!1,wn=0,At=0,ho=0,ga=0,o0=0,Ts=0,El=0,wc=null,hs=null,a0=!1,wd=0,YC=0,Cd=1/0,kd=null,co=null,Kt=0,uo=null,Pl=null,Cn=0,l0=0,h0=null,HC=null,Cc=0,c0=null;function As(){return(Ge&2)!==0&&Ie!==0?Ie&-Ie:Q.T!==null?g0():ux()}function FC(){if(Ts===0)if((Ie&536870912)===0||Ue){var a=Lf;Lf<<=1,(Lf&3932160)===0&&(Lf=262144),Ts=a}else Ts=536870912;return a=ws.current,a!==null&&(a.flags|=32),Ts}function cs(a,h,f){(a===lt&&(tt===2||tt===9)||a.cancelPendingCommit!==null)&&(Ql(a,0),fo(a,Ie,Ts,!1)),Wh(a,f),((Ge&2)===0||a!==lt)&&(a===lt&&((Ge&2)===0&&(ga|=f),At===4&&fo(a,Ie,Ts,!1)),Qr(a))}function GC(a,h,f){if((Ge&6)!==0)throw Error(s(327));var p=!f&&(h&127)===0&&(h&a.expiredLanes)===0||qh(a,h),O=p?L6(a,h):f0(a,h,!0),v=p;do{if(O===0){Ml&&!p&&fo(a,h,0,!1);break}else{if(f=a.current.alternate,v&&!Q6(f)){O=f0(a,h,!1),v=!1;continue}if(O===2){if(v=h,a.errorRecoveryDisabledLanes&v)var S=0;else S=a.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){h=S;e:{var T=a;O=wc;var V=T.current.memoizedState.isDehydrated;if(V&&(Ql(T,S).flags|=256),S=f0(T,S,!1),S!==2){if(n0&&!V){T.errorRecoveryDisabledLanes|=v,ga|=v,O=4;break e}v=hs,hs=O,v!==null&&(hs===null?hs=v:hs.push.apply(hs,v))}O=S}if(v=!1,O!==2)continue}}if(O===1){Ql(a,0),fo(a,h,0,!0);break}e:{switch(p=a,v=O,v){case 0:case 1:throw Error(s(345));case 4:if((h&4194048)!==h)break;case 6:fo(p,h,Ts,!lo);break e;case 2:hs=null;break;case 3:case 5:break;default:throw Error(s(329))}if((h&62914560)===h&&(O=wd+300-vs(),10<O)){if(fo(p,h,Ts,!lo),Bf(p,0,!0)!==0)break e;Cn=h,p.timeoutHandle=Ak(KC.bind(null,p,f,hs,kd,a0,h,Ts,ga,El,lo,v,"Throttled",-0,0),O);break e}KC(p,f,hs,kd,a0,h,Ts,ga,El,lo,v,null,-0,0)}}break}while(!0);Qr(a)}function KC(a,h,f,p,O,v,S,T,V,J,re,ae,ee,te){if(a.timeoutHandle=-1,ae=h.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:cn},IC(h,v,ae);var be=(v&62914560)===v?wd-vs():(v&4194048)===v?YC-vs():0;if(be=gz(ae,be),be!==null){Cn=v,a.cancelPendingCommit=be(ok.bind(null,a,h,v,f,p,O,S,T,V,re,ae,null,ee,te)),fo(a,v,S,!J);return}}ok(a,h,v,f,p,O,S,T,V)}function Q6(a){for(var h=a;;){var f=h.tag;if((f===0||f===11||f===15)&&h.flags&16384&&(f=h.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var p=0;p<f.length;p++){var O=f[p],v=O.getSnapshot;O=O.value;try{if(!Ss(v(),O))return!1}catch{return!1}}if(f=h.child,h.subtreeFlags&16384&&f!==null)f.return=h,h=f;else{if(h===a)break;for(;h.sibling===null;){if(h.return===null||h.return===a)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function fo(a,h,f,p){h&=~o0,h&=~ga,a.suspendedLanes|=h,a.pingedLanes&=~h,p&&(a.warmLanes|=h),p=a.expirationTimes;for(var O=h;0<O;){var v=31-bs(O),S=1<<v;p[v]=-1,O&=~S}f!==0&&lx(a,f,h)}function Td(){return(Ge&6)===0?(kc(0),!1):!0}function u0(){if(Ve!==null){if(tt===0)var a=Ve.return;else a=Ve,pn=aa=null,TO(a),Sl=null,lc=0,a=Ve;for(;a!==null;)MC(a.alternate,a),a=a.return;Ve=null}}function Ql(a,h){var f=a.timeoutHandle;f!==-1&&(a.timeoutHandle=-1,K6(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),Cn=0,u0(),lt=a,Ve=f=fn(a.current,null),Ie=h,tt=0,ks=null,lo=!1,Ml=qh(a,h),n0=!1,El=Ts=o0=ga=ho=At=0,hs=wc=null,a0=!1,(h&8)!==0&&(h|=h&32);var p=a.entangledLanes;if(p!==0)for(a=a.entanglements,p&=h;0<p;){var O=31-bs(p),v=1<<O;h|=a[O],p&=~v}return wn=h,Yf(),f}function JC(a,h){Be=null,Q.H=gc,h===bl||h===id?(h=mw(),tt=3):h===mO?(h=mw(),tt=4):tt=h===jO?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,ks=h,Ve===null&&(At=1,gd(a,Zs(h,a.current)))}function ek(){var a=ws.current;return a===null?!0:(Ie&4194048)===Ie?Ws===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?a===Ws:!1}function tk(){var a=Q.H;return Q.H=gc,a===null?gc:a}function ik(){var a=Q.A;return Q.A=E6,a}function Ad(){At=4,lo||(Ie&4194048)!==Ie&&ws.current!==null||(Ml=!0),(ho&134217727)===0&&(ga&134217727)===0||lt===null||fo(lt,Ie,Ts,!1)}function f0(a,h,f){var p=Ge;Ge|=2;var O=tk(),v=ik();(lt!==a||Ie!==h)&&(kd=null,Ql(a,h)),h=!1;var S=At;e:do try{if(tt!==0&&Ve!==null){var T=Ve,V=ks;switch(tt){case 8:u0(),S=6;break e;case 3:case 2:case 9:case 6:ws.current===null&&(h=!0);var J=tt;if(tt=0,ks=null,Rl(a,T,V,J),f&&Ml){S=0;break e}break;default:J=tt,tt=0,ks=null,Rl(a,T,V,J)}}R6(),S=At;break}catch(re){JC(a,re)}while(!0);return h&&a.shellSuspendCounter++,pn=aa=null,Ge=p,Q.H=O,Q.A=v,Ve===null&&(lt=null,Ie=0,Yf()),S}function R6(){for(;Ve!==null;)sk(Ve)}function L6(a,h){var f=Ge;Ge|=2;var p=tk(),O=ik();lt!==a||Ie!==h?(kd=null,Cd=vs()+500,Ql(a,h)):Ml=qh(a,h);e:do try{if(tt!==0&&Ve!==null){h=Ve;var v=ks;t:switch(tt){case 1:tt=0,ks=null,Rl(a,h,v,1);break;case 2:case 9:if(dw(v)){tt=0,ks=null,rk(h);break}h=function(){tt!==2&&tt!==9||lt!==a||(tt=7),Qr(a)},v.then(h,h);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:dw(v)?(tt=0,ks=null,rk(h)):(tt=0,ks=null,Rl(a,h,v,7));break;case 5:var S=null;switch(Ve.tag){case 26:S=Ve.memoizedState;case 5:case 27:var T=Ve;if(S?jk(S):T.stateNode.complete){tt=0,ks=null;var V=T.sibling;if(V!==null)Ve=V;else{var J=T.return;J!==null?(Ve=J,Md(J)):Ve=null}break t}}tt=0,ks=null,Rl(a,h,v,5);break;case 6:tt=0,ks=null,Rl(a,h,v,6);break;case 8:u0(),At=6;break e;default:throw Error(s(462))}}$6();break}catch(re){JC(a,re)}while(!0);return pn=aa=null,Q.H=p,Q.A=O,Ge=f,Ve!==null?0:(lt=null,Ie=0,Yf(),At)}function $6(){for(;Ve!==null&&!r4();)sk(Ve)}function sk(a){var h=TC(a.alternate,a,wn);a.memoizedProps=a.pendingProps,h===null?Md(a):Ve=h}function rk(a){var h=a,f=h.alternate;switch(h.tag){case 15:case 0:h=bC(f,h,h.pendingProps,h.type,void 0,Ie);break;case 11:h=bC(f,h,h.pendingProps,h.type.render,h.ref,Ie);break;case 5:TO(h);default:MC(f,h),h=Ve=iw(h,wn),h=TC(f,h,wn)}a.memoizedProps=a.pendingProps,h===null?Md(a):Ve=h}function Rl(a,h,f,p){pn=aa=null,TO(h),Sl=null,lc=0;var O=h.return;try{if(x6(a,O,h,f,Ie)){At=1,gd(a,Zs(f,a.current)),Ve=null;return}}catch(v){if(O!==null)throw Ve=O,v;At=1,gd(a,Zs(f,a.current)),Ve=null;return}h.flags&32768?(Ue||p===1?a=!0:Ml||(Ie&536870912)!==0?a=!1:(lo=a=!0,(p===2||p===9||p===3||p===6)&&(p=ws.current,p!==null&&p.tag===13&&(p.flags|=16384))),nk(h,a)):Md(h)}function Md(a){var h=a;do{if((h.flags&32768)!==0){nk(h,lo);return}a=h.return;var f=k6(h.alternate,h,wn);if(f!==null){Ve=f;return}if(h=h.sibling,h!==null){Ve=h;return}Ve=h=a}while(h!==null);At===0&&(At=5)}function nk(a,h){do{var f=T6(a.alternate,a);if(f!==null){f.flags&=32767,Ve=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!h&&(a=a.sibling,a!==null)){Ve=a;return}Ve=a=f}while(a!==null);At=6,Ve=null}function ok(a,h,f,p,O,v,S,T,V){a.cancelPendingCommit=null;do Ed();while(Kt!==0);if((Ge&6)!==0)throw Error(s(327));if(h!==null){if(h===a.current)throw Error(s(177));if(v=h.lanes|h.childLanes,v|=eO,p4(a,f,v,S,T,V),a===lt&&(Ve=lt=null,Ie=0),Pl=h,uo=a,Cn=f,l0=v,h0=O,HC=p,(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,N6(Qf,function(){return uk(),null})):(a.callbackNode=null,a.callbackPriority=0),p=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||p){p=Q.T,Q.T=null,O=X.p,X.p=2,S=Ge,Ge|=4;try{A6(a,h,f)}finally{Ge=S,X.p=O,Q.T=p}}Kt=1,ak(),lk(),hk()}}function ak(){if(Kt===1){Kt=0;var a=uo,h=Pl,f=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||f){f=Q.T,Q.T=null;var p=X.p;X.p=2;var O=Ge;Ge|=4;try{VC(h,a);var v=w0,S=Ux(a.containerInfo),T=v.focusedElem,V=v.selectionRange;if(S!==T&&T&&T.ownerDocument&&Wx(T.ownerDocument.documentElement,T)){if(V!==null&&Hg(T)){var J=V.start,re=V.end;if(re===void 0&&(re=J),"selectionStart"in T)T.selectionStart=J,T.selectionEnd=Math.min(re,T.value.length);else{var ae=T.ownerDocument||document,ee=ae&&ae.defaultView||window;if(ee.getSelection){var te=ee.getSelection(),be=T.textContent.length,Ee=Math.min(V.start,be),nt=V.end===void 0?Ee:Math.min(V.end,be);!te.extend&&Ee>nt&&(S=nt,nt=Ee,Ee=S);var H=qx(T,Ee),j=qx(T,nt);if(H&&j&&(te.rangeCount!==1||te.anchorNode!==H.node||te.anchorOffset!==H.offset||te.focusNode!==j.node||te.focusOffset!==j.offset)){var K=ae.createRange();K.setStart(H.node,H.offset),te.removeAllRanges(),Ee>nt?(te.addRange(K),te.extend(j.node,j.offset)):(K.setEnd(j.node,j.offset),te.addRange(K))}}}}for(ae=[],te=T;te=te.parentNode;)te.nodeType===1&&ae.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ae.length;T++){var oe=ae[T];oe.element.scrollLeft=oe.left,oe.element.scrollTop=oe.top}}Zd=!!x0,w0=x0=null}finally{Ge=O,X.p=p,Q.T=f}}a.current=h,Kt=2}}function lk(){if(Kt===2){Kt=0;var a=uo,h=Pl,f=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||f){f=Q.T,Q.T=null;var p=X.p;X.p=2;var O=Ge;Ge|=4;try{BC(a,h.alternate,h)}finally{Ge=O,X.p=p,Q.T=f}}Kt=3}}function hk(){if(Kt===4||Kt===3){Kt=0,n4();var a=uo,h=Pl,f=Cn,p=HC;(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?Kt=5:(Kt=0,Pl=uo=null,ck(a,a.pendingLanes));var O=a.pendingLanes;if(O===0&&(co=null),Eg(f),h=h.stateNode,ys&&typeof ys.onCommitFiberRoot=="function")try{ys.onCommitFiberRoot(Ih,h,void 0,(h.current.flags&128)===128)}catch{}if(p!==null){h=Q.T,O=X.p,X.p=2,Q.T=null;try{for(var v=a.onRecoverableError,S=0;S<p.length;S++){var T=p[S];v(T.value,{componentStack:T.stack})}}finally{Q.T=h,X.p=O}}(Cn&3)!==0&&Ed(),Qr(a),O=a.pendingLanes,(f&261930)!==0&&(O&42)!==0?a===c0?Cc++:(Cc=0,c0=a):Cc=0,kc(0)}}function ck(a,h){(a.pooledCacheLanes&=h)===0&&(h=a.pooledCache,h!=null&&(a.pooledCache=null,oc(h)))}function Ed(){return ak(),lk(),hk(),uk()}function uk(){if(Kt!==5)return!1;var a=uo,h=l0;l0=0;var f=Eg(Cn),p=Q.T,O=X.p;try{X.p=32>f?32:f,Q.T=null,f=h0,h0=null;var v=uo,S=Cn;if(Kt=0,Pl=uo=null,Cn=0,(Ge&6)!==0)throw Error(s(331));var T=Ge;if(Ge|=4,WC(v.current),jC(v,v.current,S,f),Ge=T,kc(0,!1),ys&&typeof ys.onPostCommitFiberRoot=="function")try{ys.onPostCommitFiberRoot(Ih,v)}catch{}return!0}finally{X.p=O,Q.T=p,ck(a,h)}}function fk(a,h,f){h=Zs(f,h),h=ZO(a.stateNode,h,2),a=ro(a,h,2),a!==null&&(Wh(a,2),Qr(a))}function it(a,h,f){if(a.tag===3)fk(a,a,f);else for(;h!==null;){if(h.tag===3){fk(h,a,f);break}else if(h.tag===1){var p=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof p.componentDidCatch=="function"&&(co===null||!co.has(p))){a=Zs(f,a),f=dC(2),p=ro(h,f,2),p!==null&&(pC(f,p,h,a),Wh(p,2),Qr(p));break}}h=h.return}}function d0(a,h,f){var p=a.pingCache;if(p===null){p=a.pingCache=new P6;var O=new Set;p.set(h,O)}else O=p.get(h),O===void 0&&(O=new Set,p.set(h,O));O.has(f)||(n0=!0,O.add(f),a=B6.bind(null,a,h,f),h.then(a,a))}function B6(a,h,f){var p=a.pingCache;p!==null&&p.delete(h),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,lt===a&&(Ie&f)===f&&(At===4||At===3&&(Ie&62914560)===Ie&&300>vs()-wd?(Ge&2)===0&&Ql(a,0):o0|=f,El===Ie&&(El=0)),Qr(a)}function dk(a,h){h===0&&(h=ax()),a=ra(a,h),a!==null&&(Wh(a,h),Qr(a))}function D6(a){var h=a.memoizedState,f=0;h!==null&&(f=h.retryLane),dk(a,f)}function z6(a,h){var f=0;switch(a.tag){case 31:case 13:var p=a.stateNode,O=a.memoizedState;O!==null&&(f=O.retryLane);break;case 19:p=a.stateNode;break;case 22:p=a.stateNode._retryCache;break;default:throw Error(s(314))}p!==null&&p.delete(h),dk(a,f)}function N6(a,h){return jh(a,h)}var Pd=null,Ll=null,p0=!1,Qd=!1,m0=!1,po=0;function Qr(a){a!==Ll&&a.next===null&&(Ll===null?Pd=Ll=a:Ll=Ll.next=a),Qd=!0,p0||(p0=!0,V6())}function kc(a,h){if(!m0&&Qd){m0=!0;do for(var f=!1,p=Pd;p!==null;){if(a!==0){var O=p.pendingLanes;if(O===0)var v=0;else{var S=p.suspendedLanes,T=p.pingedLanes;v=(1<<31-bs(42|a)+1)-1,v&=O&~(S&~T),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(f=!0,Ok(p,v))}else v=Ie,v=Bf(p,p===lt?v:0,p.cancelPendingCommit!==null||p.timeoutHandle!==-1),(v&3)===0||qh(p,v)||(f=!0,Ok(p,v));p=p.next}while(f);m0=!1}}function X6(){pk()}function pk(){Qd=p0=!1;var a=0;po!==0&&G6()&&(a=po);for(var h=vs(),f=null,p=Pd;p!==null;){var O=p.next,v=mk(p,h);v===0?(p.next=null,f===null?Pd=O:f.next=O,O===null&&(Ll=f)):(f=p,(a!==0||(v&3)!==0)&&(Qd=!0)),p=O}Kt!==0&&Kt!==5||kc(a),po!==0&&(po=0)}function mk(a,h){for(var f=a.suspendedLanes,p=a.pingedLanes,O=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var S=31-bs(v),T=1<<S,V=O[S];V===-1?((T&f)===0||(T&p)!==0)&&(O[S]=d4(T,h)):V<=h&&(a.expiredLanes|=T),v&=~T}if(h=lt,f=Ie,f=Bf(a,a===h?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p=a.callbackNode,f===0||a===h&&(tt===2||tt===9)||a.cancelPendingCommit!==null)return p!==null&&p!==null&&Tg(p),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||qh(a,f)){if(h=f&-f,h===a.callbackPriority)return h;switch(p!==null&&Tg(p),Eg(f)){case 2:case 8:f=nx;break;case 32:f=Qf;break;case 268435456:f=ox;break;default:f=Qf}return p=gk.bind(null,a),f=jh(f,p),a.callbackPriority=h,a.callbackNode=f,h}return p!==null&&p!==null&&Tg(p),a.callbackPriority=2,a.callbackNode=null,2}function gk(a,h){if(Kt!==0&&Kt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(Ed()&&a.callbackNode!==f)return null;var p=Ie;return p=Bf(a,a===lt?p:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),p===0?null:(GC(a,p,h),mk(a,vs()),a.callbackNode!=null&&a.callbackNode===f?gk.bind(null,a):null)}function Ok(a,h){if(Ed())return null;GC(a,h,!0)}function V6(){J6(function(){(Ge&6)!==0?jh(rx,X6):pk()})}function g0(){if(po===0){var a=vl;a===0&&(a=Rf,Rf<<=1,(Rf&261888)===0&&(Rf=256)),po=a}return po}function _k(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Xf(""+a)}function vk(a,h){var f=h.ownerDocument.createElement("input");return f.name=h.name,f.value=h.value,a.id&&f.setAttribute("form",a.id),h.parentNode.insertBefore(f,h),a=new FormData(a),f.parentNode.removeChild(f),a}function Z6(a,h,f,p,O){if(h==="submit"&&f&&f.stateNode===O){var v=_k((O[rs]||null).action),S=p.submitter;S&&(h=(h=S[rs]||null)?_k(h.formAction):S.getAttribute("formAction"),h!==null&&(v=h,S=null));var T=new If("action","action",null,p,O);a.push({event:T,listeners:[{instance:null,listener:function(){if(p.defaultPrevented){if(po!==0){var V=S?vk(O,S):new FormData(O);BO(f,{pending:!0,data:V,method:O.method,action:v},null,V)}}else typeof v=="function"&&(T.preventDefault(),V=S?vk(O,S):new FormData(O),BO(f,{pending:!0,data:V,method:O.method,action:v},v,V))},currentTarget:O}]})}}for(var O0=0;O0<Jg.length;O0++){var _0=Jg[O0],j6=_0.toLowerCase(),I6=_0[0].toUpperCase()+_0.slice(1);fr(j6,"on"+I6)}fr(Fx,"onAnimationEnd"),fr(Gx,"onAnimationIteration"),fr(Kx,"onAnimationStart"),fr("dblclick","onDoubleClick"),fr("focusin","onFocus"),fr("focusout","onBlur"),fr(o6,"onTransitionRun"),fr(a6,"onTransitionStart"),fr(l6,"onTransitionCancel"),fr(Jx,"onTransitionEnd"),nl("onMouseEnter",["mouseout","mouseover"]),nl("onMouseLeave",["mouseout","mouseover"]),nl("onPointerEnter",["pointerout","pointerover"]),nl("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),q6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Tc));function yk(a,h){h=(h&4)!==0;for(var f=0;f<a.length;f++){var p=a[f],O=p.event;p=p.listeners;e:{var v=void 0;if(h)for(var S=p.length-1;0<=S;S--){var T=p[S],V=T.instance,J=T.currentTarget;if(T=T.listener,V!==v&&O.isPropagationStopped())break e;v=T,O.currentTarget=J;try{v(O)}catch(re){Uf(re)}O.currentTarget=null,v=V}else for(S=0;S<p.length;S++){if(T=p[S],V=T.instance,J=T.currentTarget,T=T.listener,V!==v&&O.isPropagationStopped())break e;v=T,O.currentTarget=J;try{v(O)}catch(re){Uf(re)}O.currentTarget=null,v=V}}}}function Ze(a,h){var f=h[Pg];f===void 0&&(f=h[Pg]=new Set);var p=a+"__bubble";f.has(p)||(bk(h,a,2,!1),f.add(p))}function v0(a,h,f){var p=0;h&&(p|=4),bk(f,a,p,h)}var Rd="_reactListening"+Math.random().toString(36).slice(2);function y0(a){if(!a[Rd]){a[Rd]=!0,px.forEach(function(f){f!=="selectionchange"&&(q6.has(f)||v0(f,!1,a),v0(f,!0,a))});var h=a.nodeType===9?a:a.ownerDocument;h===null||h[Rd]||(h[Rd]=!0,v0("selectionchange",!1,h))}}function bk(a,h,f,p){switch(Fk(h)){case 2:var O=vz;break;case 8:O=yz;break;default:O=$0}f=O.bind(null,h,f,a),O=void 0,!Xg||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(O=!0),p?O!==void 0?a.addEventListener(h,f,{capture:!0,passive:O}):a.addEventListener(h,f,!0):O!==void 0?a.addEventListener(h,f,{passive:O}):a.addEventListener(h,f,!1)}function b0(a,h,f,p,O){var v=p;if((h&1)===0&&(h&2)===0&&p!==null)e:for(;;){if(p===null)return;var S=p.tag;if(S===3||S===4){var T=p.stateNode.containerInfo;if(T===O)break;if(S===4)for(S=p.return;S!==null;){var V=S.tag;if((V===3||V===4)&&S.stateNode.containerInfo===O)return;S=S.return}for(;T!==null;){if(S=il(T),S===null)return;if(V=S.tag,V===5||V===6||V===26||V===27){p=v=S;continue e}T=T.parentNode}}p=p.return}kx(function(){var J=v,re=zg(f),ae=[];e:{var ee=ew.get(a);if(ee!==void 0){var te=If,be=a;switch(a){case"keypress":if(Zf(f)===0)break e;case"keydown":case"keyup":te=z4;break;case"focusin":be="focus",te=Ig;break;case"focusout":be="blur",te=Ig;break;case"beforeblur":case"afterblur":te=Ig;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Mx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=k4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=V4;break;case Fx:case Gx:case Kx:te=M4;break;case Jx:te=j4;break;case"scroll":case"scrollend":te=w4;break;case"wheel":te=q4;break;case"copy":case"cut":case"paste":te=P4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=Px;break;case"toggle":case"beforetoggle":te=U4}var Ee=(h&4)!==0,nt=!Ee&&(a==="scroll"||a==="scrollend"),H=Ee?ee!==null?ee+"Capture":null:ee;Ee=[];for(var j=J,K;j!==null;){var oe=j;if(K=oe.stateNode,oe=oe.tag,oe!==5&&oe!==26&&oe!==27||K===null||H===null||(oe=Hh(j,H),oe!=null&&Ee.push(Ac(j,oe,K))),nt)break;j=j.return}0<Ee.length&&(ee=new te(ee,be,null,f,re),ae.push({event:ee,listeners:Ee}))}}if((h&7)===0){e:{if(ee=a==="mouseover"||a==="pointerover",te=a==="mouseout"||a==="pointerout",ee&&f!==Dg&&(be=f.relatedTarget||f.fromElement)&&(il(be)||be[tl]))break e;if((te||ee)&&(ee=re.window===re?re:(ee=re.ownerDocument)?ee.defaultView||ee.parentWindow:window,te?(be=f.relatedTarget||f.toElement,te=J,be=be?il(be):null,be!==null&&(nt=n(be),Ee=be.tag,be!==nt||Ee!==5&&Ee!==27&&Ee!==6)&&(be=null)):(te=null,be=J),te!==be)){if(Ee=Mx,oe="onMouseLeave",H="onMouseEnter",j="mouse",(a==="pointerout"||a==="pointerover")&&(Ee=Px,oe="onPointerLeave",H="onPointerEnter",j="pointer"),nt=te==null?ee:Yh(te),K=be==null?ee:Yh(be),ee=new Ee(oe,j+"leave",te,f,re),ee.target=nt,ee.relatedTarget=K,oe=null,il(re)===J&&(Ee=new Ee(H,j+"enter",be,f,re),Ee.target=K,Ee.relatedTarget=nt,oe=Ee),nt=oe,te&&be)t:{for(Ee=W6,H=te,j=be,K=0,oe=H;oe;oe=Ee(oe))K++;oe=0;for(var Me=j;Me;Me=Ee(Me))oe++;for(;0<K-oe;)H=Ee(H),K--;for(;0<oe-K;)j=Ee(j),oe--;for(;K--;){if(H===j||j!==null&&H===j.alternate){Ee=H;break t}H=Ee(H),j=Ee(j)}Ee=null}else Ee=null;te!==null&&Sk(ae,ee,te,Ee,!1),be!==null&&nt!==null&&Sk(ae,nt,be,Ee,!0)}}e:{if(ee=J?Yh(J):window,te=ee.nodeName&&ee.nodeName.toLowerCase(),te==="select"||te==="input"&&ee.type==="file")var He=Nx;else if(Dx(ee))if(Xx)He=s6;else{He=t6;var Ce=e6}else te=ee.nodeName,!te||te.toLowerCase()!=="input"||ee.type!=="checkbox"&&ee.type!=="radio"?J&&Bg(J.elementType)&&(He=Nx):He=i6;if(He&&(He=He(a,J))){zx(ae,He,f,re);break e}Ce&&Ce(a,ee,J),a==="focusout"&&J&&ee.type==="number"&&J.memoizedProps.value!=null&&$g(ee,"number",ee.value)}switch(Ce=J?Yh(J):window,a){case"focusin":(Dx(Ce)||Ce.contentEditable==="true")&&(ul=Ce,Fg=J,sc=null);break;case"focusout":sc=Fg=ul=null;break;case"mousedown":Gg=!0;break;case"contextmenu":case"mouseup":case"dragend":Gg=!1,Yx(ae,f,re);break;case"selectionchange":if(n6)break;case"keydown":case"keyup":Yx(ae,f,re)}var De;if(Wg)e:{switch(a){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else cl?$x(a,f)&&(qe="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(qe="onCompositionStart");qe&&(Qx&&f.locale!=="ko"&&(cl||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&cl&&(De=Tx()):(Gn=re,Vg="value"in Gn?Gn.value:Gn.textContent,cl=!0)),Ce=Ld(J,qe),0<Ce.length&&(qe=new Ex(qe,a,null,f,re),ae.push({event:qe,listeners:Ce}),De?qe.data=De:(De=Bx(f),De!==null&&(qe.data=De)))),(De=H4?F4(a,f):G4(a,f))&&(qe=Ld(J,"onBeforeInput"),0<qe.length&&(Ce=new Ex("onBeforeInput","beforeinput",null,f,re),ae.push({event:Ce,listeners:qe}),Ce.data=De)),Z6(ae,a,J,f,re)}yk(ae,h)})}function Ac(a,h,f){return{instance:a,listener:h,currentTarget:f}}function Ld(a,h){for(var f=h+"Capture",p=[];a!==null;){var O=a,v=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||v===null||(O=Hh(a,f),O!=null&&p.unshift(Ac(a,O,v)),O=Hh(a,h),O!=null&&p.push(Ac(a,O,v))),a.tag===3)return p;a=a.return}return[]}function W6(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Sk(a,h,f,p,O){for(var v=h._reactName,S=[];f!==null&&f!==p;){var T=f,V=T.alternate,J=T.stateNode;if(T=T.tag,V!==null&&V===p)break;T!==5&&T!==26&&T!==27||J===null||(V=J,O?(J=Hh(f,v),J!=null&&S.unshift(Ac(f,J,V))):O||(J=Hh(f,v),J!=null&&S.push(Ac(f,J,V)))),f=f.return}S.length!==0&&a.push({event:h,listeners:S})}var U6=/\r\n?/g,Y6=/\u0000|\uFFFD/g;function xk(a){return(typeof a=="string"?a:""+a).replace(U6,`
|
|
49
|
-
`).replace(Y6,"")}function wk(a,h){return h=xk(h),xk(a)===h}function rt(a,h,f,p,O,v){switch(f){case"children":typeof p=="string"?h==="body"||h==="textarea"&&p===""||al(a,p):(typeof p=="number"||typeof p=="bigint")&&h!=="body"&&al(a,""+p);break;case"className":zf(a,"class",p);break;case"tabIndex":zf(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":zf(a,f,p);break;case"style":wx(a,p,v);break;case"data":if(h!=="object"){zf(a,"data",p);break}case"src":case"href":if(p===""&&(h!=="a"||f!=="href")){a.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=Xf(""+p),a.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(f==="formAction"?(h!=="input"&&rt(a,h,"name",O.name,O,null),rt(a,h,"formEncType",O.formEncType,O,null),rt(a,h,"formMethod",O.formMethod,O,null),rt(a,h,"formTarget",O.formTarget,O,null)):(rt(a,h,"encType",O.encType,O,null),rt(a,h,"method",O.method,O,null),rt(a,h,"target",O.target,O,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=Xf(""+p),a.setAttribute(f,p);break;case"onClick":p!=null&&(a.onclick=cn);break;case"onScroll":p!=null&&Ze("scroll",a);break;case"onScrollEnd":p!=null&&Ze("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(s(61));if(f=p.__html,f!=null){if(O.children!=null)throw Error(s(60));a.innerHTML=f}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}f=Xf(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""+p):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":p===!0?a.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(f,p):a.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(f):a.setAttribute(f,p);break;case"popover":Ze("beforetoggle",a),Ze("toggle",a),Df(a,"popover",p);break;case"xlinkActuate":hn(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":hn(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":hn(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":hn(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":hn(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":hn(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":hn(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":hn(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":hn(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Df(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=S4.get(f)||f,Df(a,f,p))}}function S0(a,h,f,p,O,v){switch(f){case"style":wx(a,p,v);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(s(61));if(f=p.__html,f!=null){if(O.children!=null)throw Error(s(60));a.innerHTML=f}}break;case"children":typeof p=="string"?al(a,p):(typeof p=="number"||typeof p=="bigint")&&al(a,""+p);break;case"onScroll":p!=null&&Ze("scroll",a);break;case"onScrollEnd":p!=null&&Ze("scrollend",a);break;case"onClick":p!=null&&(a.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mx.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(O=f.endsWith("Capture"),h=f.slice(2,O?f.length-7:void 0),v=a[rs]||null,v=v!=null?v[f]:null,typeof v=="function"&&a.removeEventListener(h,v,O),typeof p=="function")){typeof v!="function"&&v!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(h,p,O);break e}f in a?a[f]=p:p===!0?a.setAttribute(f,""):Df(a,f,p)}}}function Ai(a,h,f){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",a),Ze("load",a);var p=!1,O=!1,v;for(v in f)if(f.hasOwnProperty(v)){var S=f[v];if(S!=null)switch(v){case"src":p=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:rt(a,h,v,S,f,null)}}O&&rt(a,h,"srcSet",f.srcSet,f,null),p&&rt(a,h,"src",f.src,f,null);return;case"input":Ze("invalid",a);var T=v=S=O=null,V=null,J=null;for(p in f)if(f.hasOwnProperty(p)){var re=f[p];if(re!=null)switch(p){case"name":O=re;break;case"type":S=re;break;case"checked":V=re;break;case"defaultChecked":J=re;break;case"value":v=re;break;case"defaultValue":T=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(s(137,h));break;default:rt(a,h,p,re,f,null)}}yx(a,v,T,V,J,S,O,!1);return;case"select":Ze("invalid",a),p=S=v=null;for(O in f)if(f.hasOwnProperty(O)&&(T=f[O],T!=null))switch(O){case"value":v=T;break;case"defaultValue":S=T;break;case"multiple":p=T;default:rt(a,h,O,T,f,null)}h=v,f=S,a.multiple=!!p,h!=null?ol(a,!!p,h,!1):f!=null&&ol(a,!!p,f,!0);return;case"textarea":Ze("invalid",a),v=O=p=null;for(S in f)if(f.hasOwnProperty(S)&&(T=f[S],T!=null))switch(S){case"value":p=T;break;case"defaultValue":O=T;break;case"children":v=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:rt(a,h,S,T,f,null)}Sx(a,p,O,v);return;case"option":for(V in f)if(f.hasOwnProperty(V)&&(p=f[V],p!=null))switch(V){case"selected":a.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:rt(a,h,V,p,f,null)}return;case"dialog":Ze("beforetoggle",a),Ze("toggle",a),Ze("cancel",a),Ze("close",a);break;case"iframe":case"object":Ze("load",a);break;case"video":case"audio":for(p=0;p<Tc.length;p++)Ze(Tc[p],a);break;case"image":Ze("error",a),Ze("load",a);break;case"details":Ze("toggle",a);break;case"embed":case"source":case"link":Ze("error",a),Ze("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in f)if(f.hasOwnProperty(J)&&(p=f[J],p!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:rt(a,h,J,p,f,null)}return;default:if(Bg(h)){for(re in f)f.hasOwnProperty(re)&&(p=f[re],p!==void 0&&S0(a,h,re,p,f,void 0));return}}for(T in f)f.hasOwnProperty(T)&&(p=f[T],p!=null&&rt(a,h,T,p,f,null))}function H6(a,h,f,p){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,v=null,S=null,T=null,V=null,J=null,re=null;for(te in f){var ae=f[te];if(f.hasOwnProperty(te)&&ae!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":V=ae;default:p.hasOwnProperty(te)||rt(a,h,te,null,p,ae)}}for(var ee in p){var te=p[ee];if(ae=f[ee],p.hasOwnProperty(ee)&&(te!=null||ae!=null))switch(ee){case"type":v=te;break;case"name":O=te;break;case"checked":J=te;break;case"defaultChecked":re=te;break;case"value":S=te;break;case"defaultValue":T=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(s(137,h));break;default:te!==ae&&rt(a,h,ee,te,p,ae)}}Lg(a,S,T,V,J,re,v,O);return;case"select":te=S=T=ee=null;for(v in f)if(V=f[v],f.hasOwnProperty(v)&&V!=null)switch(v){case"value":break;case"multiple":te=V;default:p.hasOwnProperty(v)||rt(a,h,v,null,p,V)}for(O in p)if(v=p[O],V=f[O],p.hasOwnProperty(O)&&(v!=null||V!=null))switch(O){case"value":ee=v;break;case"defaultValue":T=v;break;case"multiple":S=v;default:v!==V&&rt(a,h,O,v,p,V)}h=T,f=S,p=te,ee!=null?ol(a,!!f,ee,!1):!!p!=!!f&&(h!=null?ol(a,!!f,h,!0):ol(a,!!f,f?[]:"",!1));return;case"textarea":te=ee=null;for(T in f)if(O=f[T],f.hasOwnProperty(T)&&O!=null&&!p.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:rt(a,h,T,null,p,O)}for(S in p)if(O=p[S],v=f[S],p.hasOwnProperty(S)&&(O!=null||v!=null))switch(S){case"value":ee=O;break;case"defaultValue":te=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(91));break;default:O!==v&&rt(a,h,S,O,p,v)}bx(a,ee,te);return;case"option":for(var be in f)if(ee=f[be],f.hasOwnProperty(be)&&ee!=null&&!p.hasOwnProperty(be))switch(be){case"selected":a.selected=!1;break;default:rt(a,h,be,null,p,ee)}for(V in p)if(ee=p[V],te=f[V],p.hasOwnProperty(V)&&ee!==te&&(ee!=null||te!=null))switch(V){case"selected":a.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:rt(a,h,V,ee,p,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in f)ee=f[Ee],f.hasOwnProperty(Ee)&&ee!=null&&!p.hasOwnProperty(Ee)&&rt(a,h,Ee,null,p,ee);for(J in p)if(ee=p[J],te=f[J],p.hasOwnProperty(J)&&ee!==te&&(ee!=null||te!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(s(137,h));break;default:rt(a,h,J,ee,p,te)}return;default:if(Bg(h)){for(var nt in f)ee=f[nt],f.hasOwnProperty(nt)&&ee!==void 0&&!p.hasOwnProperty(nt)&&S0(a,h,nt,void 0,p,ee);for(re in p)ee=p[re],te=f[re],!p.hasOwnProperty(re)||ee===te||ee===void 0&&te===void 0||S0(a,h,re,ee,p,te);return}}for(var H in f)ee=f[H],f.hasOwnProperty(H)&&ee!=null&&!p.hasOwnProperty(H)&&rt(a,h,H,null,p,ee);for(ae in p)ee=p[ae],te=f[ae],!p.hasOwnProperty(ae)||ee===te||ee==null&&te==null||rt(a,h,ae,ee,p,te)}function Ck(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F6(){if(typeof performance.getEntriesByType=="function"){for(var a=0,h=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var O=f[p],v=O.transferSize,S=O.initiatorType,T=O.duration;if(v&&T&&Ck(S)){for(S=0,T=O.responseEnd,p+=1;p<f.length;p++){var V=f[p],J=V.startTime;if(J>T)break;var re=V.transferSize,ae=V.initiatorType;re&&Ck(ae)&&(V=V.responseEnd,S+=re*(V<T?1:(T-J)/(V-J)))}if(--p,h+=8*(v+S)/(O.duration/1e3),a++,10<a)break}}if(0<a)return h/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var x0=null,w0=null;function $d(a){return a.nodeType===9?a:a.ownerDocument}function kk(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tk(a,h){if(a===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&h==="foreignObject"?0:a}function C0(a,h){return a==="textarea"||a==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var k0=null;function G6(){var a=window.event;return a&&a.type==="popstate"?a===k0?!1:(k0=a,!0):(k0=null,!1)}var Ak=typeof setTimeout=="function"?setTimeout:void 0,K6=typeof clearTimeout=="function"?clearTimeout:void 0,Mk=typeof Promise=="function"?Promise:void 0,J6=typeof queueMicrotask=="function"?queueMicrotask:typeof Mk<"u"?function(a){return Mk.resolve(null).then(a).catch(ez)}:Ak;function ez(a){setTimeout(function(){throw a})}function mo(a){return a==="head"}function Ek(a,h){var f=h,p=0;do{var O=f.nextSibling;if(a.removeChild(f),O&&O.nodeType===8)if(f=O.data,f==="/$"||f==="/&"){if(p===0){a.removeChild(O),zl(h);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Mc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,Mc(f);for(var v=f.firstChild;v;){var S=v.nextSibling,T=v.nodeName;v[Uh]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&v.rel.toLowerCase()==="stylesheet"||f.removeChild(v),v=S}}else f==="body"&&Mc(a.ownerDocument.body);f=O}while(f);zl(h)}function Pk(a,h){var f=a;a=0;do{var p=f.nextSibling;if(f.nodeType===1?h?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(h?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=p}while(f)}function T0(a){var h=a.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var f=h;switch(h=h.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":T0(f),Qg(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function tz(a,h,f,p){for(;a.nodeType===1;){var O=f;if(a.nodeName.toLowerCase()!==h.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[Uh])switch(h){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==O.rel||a.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||a.getAttribute("title")!==(O.title==null?null:O.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(O.src==null?null:O.src)||a.getAttribute("type")!==(O.type==null?null:O.type)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(h==="input"&&a.type==="hidden"){var v=O.name==null?null:""+O.name;if(O.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=Us(a.nextSibling),a===null)break}return null}function iz(a,h,f){if(h==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=Us(a.nextSibling),a===null))return null;return a}function Qk(a,h){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Us(a.nextSibling),a===null))return null;return a}function A0(a){return a.data==="$?"||a.data==="$~"}function M0(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function sz(a,h){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=h;else if(a.data!=="$?"||f.readyState!=="loading")h();else{var p=function(){h(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Us(a){for(;a!=null;a=a.nextSibling){var h=a.nodeType;if(h===1||h===3)break;if(h===8){if(h=a.data,h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"||h==="F!"||h==="F")break;if(h==="/$"||h==="/&")return null}}return a}var E0=null;function Rk(a){a=a.nextSibling;for(var h=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(h===0)return Us(a.nextSibling);h--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||h++}a=a.nextSibling}return null}function Lk(a){a=a.previousSibling;for(var h=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(h===0)return a;h--}else f!=="/$"&&f!=="/&"||h++}a=a.previousSibling}return null}function $k(a,h,f){switch(h=$d(f),a){case"html":if(a=h.documentElement,!a)throw Error(s(452));return a;case"head":if(a=h.head,!a)throw Error(s(453));return a;case"body":if(a=h.body,!a)throw Error(s(454));return a;default:throw Error(s(451))}}function Mc(a){for(var h=a.attributes;h.length;)a.removeAttributeNode(h[0]);Qg(a)}var Ys=new Map,Bk=new Set;function Bd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var kn=X.d;X.d={f:rz,r:nz,D:oz,C:az,L:lz,m:hz,X:uz,S:cz,M:fz};function rz(){var a=kn.f(),h=Td();return a||h}function nz(a){var h=sl(a);h!==null&&h.tag===5&&h.type==="form"?Jw(h):kn.r(a)}var $l=typeof document>"u"?null:document;function Dk(a,h,f){var p=$l;if(p&&typeof h=="string"&&h){var O=Xs(h);O='link[rel="'+a+'"][href="'+O+'"]',typeof f=="string"&&(O+='[crossorigin="'+f+'"]'),Bk.has(O)||(Bk.add(O),a={rel:a,crossOrigin:f,href:h},p.querySelector(O)===null&&(h=p.createElement("link"),Ai(h,"link",a),ai(h),p.head.appendChild(h)))}}function oz(a){kn.D(a),Dk("dns-prefetch",a,null)}function az(a,h){kn.C(a,h),Dk("preconnect",a,h)}function lz(a,h,f){kn.L(a,h,f);var p=$l;if(p&&a&&h){var O='link[rel="preload"][as="'+Xs(h)+'"]';h==="image"&&f&&f.imageSrcSet?(O+='[imagesrcset="'+Xs(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(O+='[imagesizes="'+Xs(f.imageSizes)+'"]')):O+='[href="'+Xs(a)+'"]';var v=O;switch(h){case"style":v=Bl(a);break;case"script":v=Dl(a)}Ys.has(v)||(a=m({rel:"preload",href:h==="image"&&f&&f.imageSrcSet?void 0:a,as:h},f),Ys.set(v,a),p.querySelector(O)!==null||h==="style"&&p.querySelector(Ec(v))||h==="script"&&p.querySelector(Pc(v))||(h=p.createElement("link"),Ai(h,"link",a),ai(h),p.head.appendChild(h)))}}function hz(a,h){kn.m(a,h);var f=$l;if(f&&a){var p=h&&typeof h.as=="string"?h.as:"script",O='link[rel="modulepreload"][as="'+Xs(p)+'"][href="'+Xs(a)+'"]',v=O;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Dl(a)}if(!Ys.has(v)&&(a=m({rel:"modulepreload",href:a},h),Ys.set(v,a),f.querySelector(O)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Pc(v)))return}p=f.createElement("link"),Ai(p,"link",a),ai(p),f.head.appendChild(p)}}}function cz(a,h,f){kn.S(a,h,f);var p=$l;if(p&&a){var O=rl(p).hoistableStyles,v=Bl(a);h=h||"default";var S=O.get(v);if(!S){var T={loading:0,preload:null};if(S=p.querySelector(Ec(v)))T.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":h},f),(f=Ys.get(v))&&P0(a,f);var V=S=p.createElement("link");ai(V),Ai(V,"link",a),V._p=new Promise(function(J,re){V.onload=J,V.onerror=re}),V.addEventListener("load",function(){T.loading|=1}),V.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Dd(S,h,p)}S={type:"stylesheet",instance:S,count:1,state:T},O.set(v,S)}}}function uz(a,h){kn.X(a,h);var f=$l;if(f&&a){var p=rl(f).hoistableScripts,O=Dl(a),v=p.get(O);v||(v=f.querySelector(Pc(O)),v||(a=m({src:a,async:!0},h),(h=Ys.get(O))&&Q0(a,h),v=f.createElement("script"),ai(v),Ai(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},p.set(O,v))}}function fz(a,h){kn.M(a,h);var f=$l;if(f&&a){var p=rl(f).hoistableScripts,O=Dl(a),v=p.get(O);v||(v=f.querySelector(Pc(O)),v||(a=m({src:a,async:!0,type:"module"},h),(h=Ys.get(O))&&Q0(a,h),v=f.createElement("script"),ai(v),Ai(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},p.set(O,v))}}function zk(a,h,f,p){var O=(O=de.current)?Bd(O):null;if(!O)throw Error(s(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(h=Bl(f.href),f=rl(O).hoistableStyles,p=f.get(h),p||(p={type:"style",instance:null,count:0,state:null},f.set(h,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=Bl(f.href);var v=rl(O).hoistableStyles,S=v.get(a);if(S||(O=O.ownerDocument||O,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,S),(v=O.querySelector(Ec(a)))&&!v._p&&(S.instance=v,S.state.loading=5),Ys.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Ys.set(a,f),v||dz(O,a,f,S.state))),h&&p===null)throw Error(s(528,""));return S}if(h&&p!==null)throw Error(s(529,""));return null;case"script":return h=f.async,f=f.src,typeof f=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=Dl(f),f=rl(O).hoistableScripts,p=f.get(h),p||(p={type:"script",instance:null,count:0,state:null},f.set(h,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,a))}}function Bl(a){return'href="'+Xs(a)+'"'}function Ec(a){return'link[rel="stylesheet"]['+a+"]"}function Nk(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function dz(a,h,f,p){a.querySelector('link[rel="preload"][as="style"]['+h+"]")?p.loading=1:(h=a.createElement("link"),p.preload=h,h.addEventListener("load",function(){return p.loading|=1}),h.addEventListener("error",function(){return p.loading|=2}),Ai(h,"link",f),ai(h),a.head.appendChild(h))}function Dl(a){return'[src="'+Xs(a)+'"]'}function Pc(a){return"script[async]"+a}function Xk(a,h,f){if(h.count++,h.instance===null)switch(h.type){case"style":var p=a.querySelector('style[data-href~="'+Xs(f.href)+'"]');if(p)return h.instance=p,ai(p),p;var O=m({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),ai(p),Ai(p,"style",O),Dd(p,f.precedence,a),h.instance=p;case"stylesheet":O=Bl(f.href);var v=a.querySelector(Ec(O));if(v)return h.state.loading|=4,h.instance=v,ai(v),v;p=Nk(f),(O=Ys.get(O))&&P0(p,O),v=(a.ownerDocument||a).createElement("link"),ai(v);var S=v;return S._p=new Promise(function(T,V){S.onload=T,S.onerror=V}),Ai(v,"link",p),h.state.loading|=4,Dd(v,f.precedence,a),h.instance=v;case"script":return v=Dl(f.src),(O=a.querySelector(Pc(v)))?(h.instance=O,ai(O),O):(p=f,(O=Ys.get(v))&&(p=m({},f),Q0(p,O)),a=a.ownerDocument||a,O=a.createElement("script"),ai(O),Ai(O,"link",p),a.head.appendChild(O),h.instance=O);case"void":return null;default:throw Error(s(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(p=h.instance,h.state.loading|=4,Dd(p,f.precedence,a));return h.instance}function Dd(a,h,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=p.length?p[p.length-1]:null,v=O,S=0;S<p.length;S++){var T=p[S];if(T.dataset.precedence===h)v=T;else if(v!==O)break}v?v.parentNode.insertBefore(a,v.nextSibling):(h=f.nodeType===9?f.head:f,h.insertBefore(a,h.firstChild))}function P0(a,h){a.crossOrigin==null&&(a.crossOrigin=h.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=h.referrerPolicy),a.title==null&&(a.title=h.title)}function Q0(a,h){a.crossOrigin==null&&(a.crossOrigin=h.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=h.referrerPolicy),a.integrity==null&&(a.integrity=h.integrity)}var zd=null;function Vk(a,h,f){if(zd===null){var p=new Map,O=zd=new Map;O.set(f,p)}else O=zd,p=O.get(f),p||(p=new Map,O.set(f,p));if(p.has(a))return p;for(p.set(a,null),f=f.getElementsByTagName(a),O=0;O<f.length;O++){var v=f[O];if(!(v[Uh]||v[wi]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var S=v.getAttribute(h)||"";S=a+S;var T=p.get(S);T?T.push(v):p.set(S,[v])}}return p}function Zk(a,h,f){a=a.ownerDocument||a,a.head.insertBefore(f,h==="title"?a.querySelector("head > title"):null)}function pz(a,h,f){if(f===1||h.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return a=h.disabled,typeof h.precedence=="string"&&a==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function jk(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function mz(a,h,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var O=Bl(p.href),v=h.querySelector(Ec(O));if(v){h=v._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(a.count++,a=Nd.bind(a),h.then(a,a)),f.state.loading|=4,f.instance=v,ai(v);return}v=h.ownerDocument||h,p=Nk(p),(O=Ys.get(O))&&P0(p,O),v=v.createElement("link"),ai(v);var S=v;S._p=new Promise(function(T,V){S.onload=T,S.onerror=V}),Ai(v,"link",p),f.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,h),(h=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=Nd.bind(a),h.addEventListener("load",f),h.addEventListener("error",f))}}var R0=0;function gz(a,h){return a.stylesheets&&a.count===0&&Vd(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var p=setTimeout(function(){if(a.stylesheets&&Vd(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4+h);0<a.imgBytes&&R0===0&&(R0=62500*F6());var O=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Vd(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>R0?50:800)+h);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(O)}}:null}function Nd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Xd=null;function Vd(a,h){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Xd=new Map,h.forEach(Oz,a),Xd=null,Nd.call(a))}function Oz(a,h){if(!(h.state.loading&4)){var f=Xd.get(a);if(f)var p=f.get(null);else{f=new Map,Xd.set(a,f);for(var O=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<O.length;v++){var S=O[v];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(f.set(S.dataset.precedence,S),p=S)}p&&f.set(null,p)}O=h.instance,S=O.getAttribute("data-precedence"),v=f.get(S)||p,v===p&&f.set(null,O),f.set(S,O),this.count++,p=Nd.bind(this),O.addEventListener("load",p),O.addEventListener("error",p),v?v.parentNode.insertBefore(O,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(O,a.firstChild)),h.state.loading|=4}}var Qc={$$typeof:C,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _z(a,h,f,p,O,v,S,T,V){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ag(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ag(0),this.hiddenUpdates=Ag(null),this.identifierPrefix=p,this.onUncaughtError=O,this.onCaughtError=v,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function Ik(a,h,f,p,O,v,S,T,V,J,re,ae){return a=new _z(a,h,f,S,V,J,re,ae,T),h=1,v===!0&&(h|=24),v=xs(3,null,null,h),a.current=v,v.stateNode=a,h=fO(),h.refCount++,a.pooledCache=h,h.refCount++,v.memoizedState={element:p,isDehydrated:f,cache:h},gO(v),a}function qk(a){return a?(a=pl,a):pl}function Wk(a,h,f,p,O,v){O=qk(O),p.context===null?p.context=O:p.pendingContext=O,p=so(h),p.payload={element:f},v=v===void 0?null:v,v!==null&&(p.callback=v),f=ro(a,p,h),f!==null&&(cs(f,a,h),cc(f,a,h))}function Uk(a,h){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<h?f:h}}function L0(a,h){Uk(a,h),(a=a.alternate)&&Uk(a,h)}function Yk(a){if(a.tag===13||a.tag===31){var h=ra(a,67108864);h!==null&&cs(h,a,67108864),L0(a,67108864)}}function Hk(a){if(a.tag===13||a.tag===31){var h=As();h=Mg(h);var f=ra(a,h);f!==null&&cs(f,a,h),L0(a,h)}}var Zd=!0;function vz(a,h,f,p){var O=Q.T;Q.T=null;var v=X.p;try{X.p=2,$0(a,h,f,p)}finally{X.p=v,Q.T=O}}function yz(a,h,f,p){var O=Q.T;Q.T=null;var v=X.p;try{X.p=8,$0(a,h,f,p)}finally{X.p=v,Q.T=O}}function $0(a,h,f,p){if(Zd){var O=B0(p);if(O===null)b0(a,h,p,jd,f),Gk(a,p);else if(Sz(O,a,h,f,p))p.stopPropagation();else if(Gk(a,p),h&4&&-1<bz.indexOf(a)){for(;O!==null;){var v=sl(O);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var S=Jo(v.pendingLanes);if(S!==0){var T=v;for(T.pendingLanes|=2,T.entangledLanes|=2;S;){var V=1<<31-bs(S);T.entanglements[1]|=V,S&=~V}Qr(v),(Ge&6)===0&&(Cd=vs()+500,kc(0))}}break;case 31:case 13:T=ra(v,2),T!==null&&cs(T,v,2),Td(),L0(v,2)}if(v=B0(p),v===null&&b0(a,h,p,jd,f),v===O)break;O=v}O!==null&&p.stopPropagation()}else b0(a,h,p,null,f)}}function B0(a){return a=zg(a),D0(a)}var jd=null;function D0(a){if(jd=null,a=il(a),a!==null){var h=n(a);if(h===null)a=null;else{var f=h.tag;if(f===13){if(a=o(h),a!==null)return a;a=null}else if(f===31){if(a=l(h),a!==null)return a;a=null}else if(f===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;a=null}else h!==a&&(a=null)}}return jd=a,null}function Fk(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(o4()){case rx:return 2;case nx:return 8;case Qf:case a4:return 32;case ox:return 268435456;default:return 32}default:return 32}}var z0=!1,go=null,Oo=null,_o=null,Rc=new Map,Lc=new Map,vo=[],bz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gk(a,h){switch(a){case"focusin":case"focusout":go=null;break;case"dragenter":case"dragleave":Oo=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":Rc.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lc.delete(h.pointerId)}}function $c(a,h,f,p,O,v){return a===null||a.nativeEvent!==v?(a={blockedOn:h,domEventName:f,eventSystemFlags:p,nativeEvent:v,targetContainers:[O]},h!==null&&(h=sl(h),h!==null&&Yk(h)),a):(a.eventSystemFlags|=p,h=a.targetContainers,O!==null&&h.indexOf(O)===-1&&h.push(O),a)}function Sz(a,h,f,p,O){switch(h){case"focusin":return go=$c(go,a,h,f,p,O),!0;case"dragenter":return Oo=$c(Oo,a,h,f,p,O),!0;case"mouseover":return _o=$c(_o,a,h,f,p,O),!0;case"pointerover":var v=O.pointerId;return Rc.set(v,$c(Rc.get(v)||null,a,h,f,p,O)),!0;case"gotpointercapture":return v=O.pointerId,Lc.set(v,$c(Lc.get(v)||null,a,h,f,p,O)),!0}return!1}function Kk(a){var h=il(a.target);if(h!==null){var f=n(h);if(f!==null){if(h=f.tag,h===13){if(h=o(f),h!==null){a.blockedOn=h,fx(a.priority,function(){Hk(f)});return}}else if(h===31){if(h=l(f),h!==null){a.blockedOn=h,fx(a.priority,function(){Hk(f)});return}}else if(h===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Id(a){if(a.blockedOn!==null)return!1;for(var h=a.targetContainers;0<h.length;){var f=B0(a.nativeEvent);if(f===null){f=a.nativeEvent;var p=new f.constructor(f.type,f);Dg=p,f.target.dispatchEvent(p),Dg=null}else return h=sl(f),h!==null&&Yk(h),a.blockedOn=f,!1;h.shift()}return!0}function Jk(a,h,f){Id(a)&&f.delete(h)}function xz(){z0=!1,go!==null&&Id(go)&&(go=null),Oo!==null&&Id(Oo)&&(Oo=null),_o!==null&&Id(_o)&&(_o=null),Rc.forEach(Jk),Lc.forEach(Jk)}function qd(a,h){a.blockedOn===h&&(a.blockedOn=null,z0||(z0=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xz)))}var Wd=null;function e2(a){Wd!==a&&(Wd=a,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Wd===a&&(Wd=null);for(var h=0;h<a.length;h+=3){var f=a[h],p=a[h+1],O=a[h+2];if(typeof p!="function"){if(D0(p||f)===null)continue;break}var v=sl(f);v!==null&&(a.splice(h,3),h-=3,BO(v,{pending:!0,data:O,method:f.method,action:p},p,O))}}))}function zl(a){function h(V){return qd(V,a)}go!==null&&qd(go,a),Oo!==null&&qd(Oo,a),_o!==null&&qd(_o,a),Rc.forEach(h),Lc.forEach(h);for(var f=0;f<vo.length;f++){var p=vo[f];p.blockedOn===a&&(p.blockedOn=null)}for(;0<vo.length&&(f=vo[0],f.blockedOn===null);)Kk(f),f.blockedOn===null&&vo.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var O=f[p],v=f[p+1],S=O[rs]||null;if(typeof v=="function")S||e2(f);else if(S){var T=null;if(v&&v.hasAttribute("formAction")){if(O=v,S=v[rs]||null)T=S.formAction;else if(D0(O)!==null)continue}else T=S.action;typeof T=="function"?f[p+1]=T:(f.splice(p,3),p-=3),e2(f)}}}function t2(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(S){return O=S})},focusReset:"manual",scroll:"manual"})}function h(){O!==null&&(O(),O=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,O=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",h),navigation.addEventListener("navigateerror",h),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",h),navigation.removeEventListener("navigateerror",h),O!==null&&(O(),O=null)}}}function N0(a){this._internalRoot=a}Ud.prototype.render=N0.prototype.render=function(a){var h=this._internalRoot;if(h===null)throw Error(s(409));var f=h.current,p=As();Wk(f,p,a,h,null,null)},Ud.prototype.unmount=N0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var h=a.containerInfo;Wk(a.current,2,null,a,null,null),Td(),h[tl]=null}};function Ud(a){this._internalRoot=a}Ud.prototype.unstable_scheduleHydration=function(a){if(a){var h=ux();a={blockedOn:null,target:a,priority:h};for(var f=0;f<vo.length&&h!==0&&h<vo[f].priority;f++);vo.splice(f,0,a),f===0&&Kk(a)}};var i2=e.version;if(i2!=="19.2.4")throw Error(s(527,i2,"19.2.4"));X.findDOMNode=function(a){var h=a._reactInternals;if(h===void 0)throw typeof a.render=="function"?Error(s(188)):(a=Object.keys(a).join(","),Error(s(268,a)));return a=u(h),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var wz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yd.isDisabled&&Yd.supportsFiber)try{Ih=Yd.inject(wz),ys=Yd}catch{}}return Dc.createRoot=function(a,h){if(!r(a))throw Error(s(299));var f=!1,p="",O=hC,v=cC,S=uC;return h!=null&&(h.unstable_strictMode===!0&&(f=!0),h.identifierPrefix!==void 0&&(p=h.identifierPrefix),h.onUncaughtError!==void 0&&(O=h.onUncaughtError),h.onCaughtError!==void 0&&(v=h.onCaughtError),h.onRecoverableError!==void 0&&(S=h.onRecoverableError)),h=Ik(a,1,!1,null,null,f,p,null,O,v,S,t2),a[tl]=h.current,y0(a),new N0(h)},Dc.hydrateRoot=function(a,h,f){if(!r(a))throw Error(s(299));var p=!1,O="",v=hC,S=cC,T=uC,V=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(O=f.identifierPrefix),f.onUncaughtError!==void 0&&(v=f.onUncaughtError),f.onCaughtError!==void 0&&(S=f.onCaughtError),f.onRecoverableError!==void 0&&(T=f.onRecoverableError),f.formState!==void 0&&(V=f.formState)),h=Ik(a,1,!0,h,f??null,p,O,V,v,S,T,t2),h.context=qk(null),f=h.current,p=As(),p=Mg(p),O=so(p),O.callback=null,ro(f,O,p),f=p,h.current.lanes=f,Wh(h,f),Qr(h),a[tl]=h.current,y0(a),new Ud(h)},Dc.version="19.2.4",Dc}var f2;function $z(){if(f2)return Z0.exports;f2=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),Z0.exports=Lz(),Z0.exports}var Bz=$z();const vP=Y.createContext({connected:!1,lastChange:0}),d2=2e3,Dz=3e4,zz=1.5;function Nz({children:i}){const[e,t]=Y.useState(!1),[s,r]=Y.useState(0),n=Y.useRef(null),o=Y.useRef(null),l=Y.useRef(d2);return Y.useEffect(()=>{function c(){const d=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/ws`,m=new WebSocket(d);n.current=m,m.onopen=()=>{t(!0),l.current=d2},m.onclose=()=>{t(!1),n.current=null;const g=l.current;l.current=Math.min(g*zz,Dz),o.current=setTimeout(c,g)},m.onmessage=g=>{try{const _=JSON.parse(g.data);_.type==="file-changes"&&typeof _.timestamp=="number"&&r(_.timestamp)}catch{}},m.onerror=()=>{console.warn("[ws-provider] WebSocket error occurred")}}return c(),()=>{o.current!==null&&(clearTimeout(o.current),o.current=null),n.current&&(n.current.onclose=null,n.current.close(),n.current=null)}},[]),M.jsx(vP.Provider,{value:{connected:e,lastChange:s},children:i})}function ff(){return Y.useContext(vP)}function fb(){const{lastChange:i}=ff(),[e,t]=Y.useState(null),[s,r]=Y.useState(null),[n,o]=Y.useState(null),[l,c]=Y.useState(!0),[u,d]=Y.useState(null),m=Y.useCallback(async()=>{try{d(null);const[g,_,y]=await Promise.all([fetch("/api/roadmap"),fetch("/api/state"),fetch("/api/todos")]);if(!g.ok&&g.status!==404)throw new Error(`Roadmap fetch failed: ${g.status}`);if(!_.ok&&_.status!==404)throw new Error(`State fetch failed: ${_.status}`);if(!y.ok)throw new Error(`Todos fetch failed: ${y.status}`);const b=g.ok?await g.json():null,x=_.ok?await _.json():null,w=y.ok?await y.json():{pending:[],completed:[]};t(b),r(x),o(w)}catch(g){const _=g instanceof Error?g.message:"Failed to fetch dashboard data";d(_),console.error("[use-dashboard-data]",_)}finally{c(!1)}},[]);return Y.useEffect(()=>{m()},[m]),Y.useEffect(()=>{i>0&&m()},[i,m]),{roadmap:e,state:s,todos:n,loading:l,error:u}}const yP=Y.createContext({});function Xz(i){const e=Y.useRef(null);return e.current===null&&(e.current=i()),e.current}const bP=typeof window<"u",Vz=bP?Y.useLayoutEffect:Y.useEffect,db=Y.createContext(null);function pb(i,e){i.indexOf(e)===-1&&i.push(e)}function cm(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}const tn=(i,e,t)=>t>e?e:t<i?i:t;let mb=()=>{};const Zn={},SP=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function xP(i){return typeof i=="object"&&i!==null}const wP=i=>/^0[^.\s]+$/u.test(i);function CP(i){let e;return()=>(e===void 0&&(e=i()),e)}const ar=i=>i,Zz=(i,e)=>t=>e(i(t)),df=(...i)=>i.reduce(Zz),Pu=(i,e,t)=>{const s=e-i;return s===0?1:(t-i)/s};class gb{constructor(){this.subscriptions=[]}add(e){return pb(this.subscriptions,e),()=>cm(this.subscriptions,e)}notify(e,t,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,s);else for(let n=0;n<r;n++){const o=this.subscriptions[n];o&&o(e,t,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const br=i=>i*1e3,tr=i=>i/1e3;function kP(i,e){return e?i*(1e3/e):0}const TP=(i,e,t)=>(((1-3*t+3*e)*i+(3*t-6*e))*i+3*e)*i,jz=1e-7,Iz=12;function qz(i,e,t,s,r){let n,o,l=0;do o=e+(t-e)/2,n=TP(o,s,r)-i,n>0?t=o:e=o;while(Math.abs(n)>jz&&++l<Iz);return o}function pf(i,e,t,s){if(i===e&&t===s)return ar;const r=n=>qz(n,0,1,i,t);return n=>n===0||n===1?n:TP(r(n),e,s)}const AP=i=>e=>e<=.5?i(2*e)/2:(2-i(2*(1-e)))/2,MP=i=>e=>1-i(1-e),EP=pf(.33,1.53,.69,.99),Ob=MP(EP),PP=AP(Ob),QP=i=>(i*=2)<1?.5*Ob(i):.5*(2-Math.pow(2,-10*(i-1))),_b=i=>1-Math.sin(Math.acos(i)),RP=MP(_b),LP=AP(_b),Wz=pf(.42,0,1,1),Uz=pf(0,0,.58,1),$P=pf(.42,0,.58,1),Yz=i=>Array.isArray(i)&&typeof i[0]!="number",BP=i=>Array.isArray(i)&&typeof i[0]=="number",Hz={linear:ar,easeIn:Wz,easeInOut:$P,easeOut:Uz,circIn:_b,circInOut:LP,circOut:RP,backIn:Ob,backInOut:PP,backOut:EP,anticipate:QP},Fz=i=>typeof i=="string",p2=i=>{if(BP(i)){mb(i.length===4);const[e,t,s,r]=i;return pf(e,t,s,r)}else if(Fz(i))return Hz[i];return i},Hd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Gz(i,e){let t=new Set,s=new Set,r=!1,n=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){o.has(d)&&(u.schedule(d),i()),d(l)}const u={schedule:(d,m=!1,g=!1)=>{const y=g&&r?t:s;return m&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{s.delete(d),o.delete(d)},process:d=>{if(l=d,r){n=!0;return}r=!0,[t,s]=[s,t],t.forEach(c),t.clear(),r=!1,n&&(n=!1,u.process(d))}};return u}const Kz=40;function DP(i,e){let t=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},n=()=>t=!0,o=Hd.reduce((C,A)=>(C[A]=Gz(n),C),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:m,preRender:g,render:_,postRender:y}=o,b=()=>{const C=Zn.useManualTiming?r.timestamp:performance.now();t=!1,Zn.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(C-r.timestamp,Kz),1)),r.timestamp=C,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),m.process(r),g.process(r),_.process(r),y.process(r),r.isProcessing=!1,t&&e&&(s=!1,i(b))},x=()=>{t=!0,s=!0,r.isProcessing||i(b)};return{schedule:Hd.reduce((C,A)=>{const P=o[A];return C[A]=(E,$=!1,z=!1)=>(t||x(),P.schedule(E,$,z)),C},{}),cancel:C=>{for(let A=0;A<Hd.length;A++)o[Hd[A]].cancel(C)},state:r,steps:o}}const{schedule:dt,cancel:Zo,state:Pi,steps:W0}=DP(typeof requestAnimationFrame<"u"?requestAnimationFrame:ar,!0);let Bp;function Jz(){Bp=void 0}const Ji={now:()=>(Bp===void 0&&Ji.set(Pi.isProcessing||Zn.useManualTiming?Pi.timestamp:performance.now()),Bp),set:i=>{Bp=i,queueMicrotask(Jz)}},zP=i=>e=>typeof e=="string"&&e.startsWith(i),NP=zP("--"),e8=zP("var(--"),vb=i=>e8(i)?t8.test(i.split("/*")[0].trim()):!1,t8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function m2(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Ah={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Qu={...Ah,transform:i=>tn(0,1,i)},Fd={...Ah,default:1},Ou=i=>Math.round(i*1e5)/1e5,yb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function i8(i){return i==null}const s8=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bb=(i,e)=>t=>!!(typeof t=="string"&&s8.test(t)&&t.startsWith(i)||e&&!i8(t)&&Object.prototype.hasOwnProperty.call(t,e)),XP=(i,e,t)=>s=>{if(typeof s!="string")return s;const[r,n,o,l]=s.match(yb);return{[i]:parseFloat(r),[e]:parseFloat(n),[t]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},r8=i=>tn(0,255,i),U0={...Ah,transform:i=>Math.round(r8(i))},Ea={test:bb("rgb","red"),parse:XP("red","green","blue"),transform:({red:i,green:e,blue:t,alpha:s=1})=>"rgba("+U0.transform(i)+", "+U0.transform(e)+", "+U0.transform(t)+", "+Ou(Qu.transform(s))+")"};function n8(i){let e="",t="",s="",r="";return i.length>5?(e=i.substring(1,3),t=i.substring(3,5),s=i.substring(5,7),r=i.substring(7,9)):(e=i.substring(1,2),t=i.substring(2,3),s=i.substring(3,4),r=i.substring(4,5),e+=e,t+=t,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Hv={test:bb("#"),parse:n8,transform:Ea.transform},mf=i=>({test:e=>typeof e=="string"&&e.endsWith(i)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${i}`}),Mo=mf("deg"),Gr=mf("%"),xe=mf("px"),o8=mf("vh"),a8=mf("vw"),g2={...Gr,parse:i=>Gr.parse(i)/100,transform:i=>Gr.transform(i*100)},Yl={test:bb("hsl","hue"),parse:XP("hue","saturation","lightness"),transform:({hue:i,saturation:e,lightness:t,alpha:s=1})=>"hsla("+Math.round(i)+", "+Gr.transform(Ou(e))+", "+Gr.transform(Ou(t))+", "+Ou(Qu.transform(s))+")"},qt={test:i=>Ea.test(i)||Hv.test(i)||Yl.test(i),parse:i=>Ea.test(i)?Ea.parse(i):Yl.test(i)?Yl.parse(i):Hv.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ea.transform(i):Yl.transform(i),getAnimatableNone:i=>{const e=qt.parse(i);return e.alpha=0,qt.transform(e)}},l8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h8(i){var e,t;return isNaN(i)&&typeof i=="string"&&(((e=i.match(yb))==null?void 0:e.length)||0)+(((t=i.match(l8))==null?void 0:t.length)||0)>0}const VP="number",ZP="color",c8="var",u8="var(",O2="${}",f8=/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 Ru(i){const e=i.toString(),t=[],s={color:[],number:[],var:[]},r=[];let n=0;const l=e.replace(f8,c=>(qt.test(c)?(s.color.push(n),r.push(ZP),t.push(qt.parse(c))):c.startsWith(u8)?(s.var.push(n),r.push(c8),t.push(c)):(s.number.push(n),r.push(VP),t.push(parseFloat(c))),++n,O2)).split(O2);return{values:t,split:l,indexes:s,types:r}}function jP(i){return Ru(i).values}function IP(i){const{split:e,types:t}=Ru(i),s=e.length;return r=>{let n="";for(let o=0;o<s;o++)if(n+=e[o],r[o]!==void 0){const l=t[o];l===VP?n+=Ou(r[o]):l===ZP?n+=qt.transform(r[o]):n+=r[o]}return n}}const d8=i=>typeof i=="number"?0:qt.test(i)?qt.getAnimatableNone(i):i;function p8(i){const e=jP(i);return IP(i)(e.map(d8))}const Sr={test:h8,parse:jP,createTransformer:IP,getAnimatableNone:p8};function Y0(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*(2/3-t)*6:i}function m8({hue:i,saturation:e,lightness:t,alpha:s}){i/=360,e/=100,t/=100;let r=0,n=0,o=0;if(!e)r=n=o=t;else{const l=t<.5?t*(1+e):t+e-t*e,c=2*t-l;r=Y0(c,l,i+1/3),n=Y0(c,l,i),o=Y0(c,l,i-1/3)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(o*255),alpha:s}}function um(i,e){return t=>t>0?e:i}const kt=(i,e,t)=>i+(e-i)*t,H0=(i,e,t)=>{const s=i*i,r=t*(e*e-s)+s;return r<0?0:Math.sqrt(r)},g8=[Hv,Ea,Yl],O8=i=>g8.find(e=>e.test(i));function _2(i){const e=O8(i);if(!e)return!1;let t=e.parse(i);return e===Yl&&(t=m8(t)),t}const v2=(i,e)=>{const t=_2(i),s=_2(e);if(!t||!s)return um(i,e);const r={...t};return n=>(r.red=H0(t.red,s.red,n),r.green=H0(t.green,s.green,n),r.blue=H0(t.blue,s.blue,n),r.alpha=kt(t.alpha,s.alpha,n),Ea.transform(r))},Fv=new Set(["none","hidden"]);function _8(i,e){return Fv.has(i)?t=>t<=0?i:e:t=>t>=1?e:i}function v8(i,e){return t=>kt(i,e,t)}function Sb(i){return typeof i=="number"?v8:typeof i=="string"?vb(i)?um:qt.test(i)?v2:S8:Array.isArray(i)?qP:typeof i=="object"?qt.test(i)?v2:y8:um}function qP(i,e){const t=[...i],s=t.length,r=i.map((n,o)=>Sb(n)(n,e[o]));return n=>{for(let o=0;o<s;o++)t[o]=r[o](n);return t}}function y8(i,e){const t={...i,...e},s={};for(const r in t)i[r]!==void 0&&e[r]!==void 0&&(s[r]=Sb(i[r])(i[r],e[r]));return r=>{for(const n in s)t[n]=s[n](r);return t}}function b8(i,e){const t=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const n=e.types[r],o=i.indexes[n][s[n]],l=i.values[o]??0;t[r]=l,s[n]++}return t}const S8=(i,e)=>{const t=Sr.createTransformer(e),s=Ru(i),r=Ru(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Fv.has(i)&&!r.values.length||Fv.has(e)&&!s.values.length?_8(i,e):df(qP(b8(s,r),r.values),t):um(i,e)};function WP(i,e,t){return typeof i=="number"&&typeof e=="number"&&typeof t=="number"?kt(i,e,t):Sb(i)(i,e)}const x8=i=>{const e=({timestamp:t})=>i(t);return{start:(t=!0)=>dt.update(e,t),stop:()=>Zo(e),now:()=>Pi.isProcessing?Pi.timestamp:Ji.now()}},UP=(i,e,t=10)=>{let s="";const r=Math.max(Math.round(e/t),2);for(let n=0;n<r;n++)s+=Math.round(i(n/(r-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},fm=2e4;function xb(i){let e=0;const t=50;let s=i.next(e);for(;!s.done&&e<fm;)e+=t,s=i.next(e);return e>=fm?1/0:e}function w8(i,e=100,t){const s=t({...i,keyframes:[0,e]}),r=Math.min(xb(s),fm);return{type:"keyframes",ease:n=>s.next(r*n).value/e,duration:tr(r)}}const C8=5;function YP(i,e,t){const s=Math.max(e-C8,0);return kP(t-i(s),e-s)}const Et={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},F0=.001;function k8({duration:i=Et.duration,bounce:e=Et.bounce,velocity:t=Et.velocity,mass:s=Et.mass}){let r,n,o=1-e;o=tn(Et.minDamping,Et.maxDamping,o),i=tn(Et.minDuration,Et.maxDuration,tr(i)),o<1?(r=u=>{const d=u*o,m=d*i,g=d-t,_=Gv(u,o),y=Math.exp(-m);return F0-g/_*y},n=u=>{const m=u*o*i,g=m*t+t,_=Math.pow(o,2)*Math.pow(u,2)*i,y=Math.exp(-m),b=Gv(Math.pow(u,2),o);return(-r(u)+F0>0?-1:1)*((g-_)*y)/b}):(r=u=>{const d=Math.exp(-u*i),m=(u-t)*i+1;return-F0+d*m},n=u=>{const d=Math.exp(-u*i),m=(t-u)*(i*i);return d*m});const l=5/i,c=A8(r,n,l);if(i=br(i),isNaN(c))return{stiffness:Et.stiffness,damping:Et.damping,duration:i};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:i}}}const T8=12;function A8(i,e,t){let s=t;for(let r=1;r<T8;r++)s=s-i(s)/e(s);return s}function Gv(i,e){return i*Math.sqrt(1-e*e)}const M8=["duration","bounce"],E8=["stiffness","damping","mass"];function y2(i,e){return e.some(t=>i[t]!==void 0)}function P8(i){let e={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...i};if(!y2(i,E8)&&y2(i,M8))if(e.velocity=0,i.visualDuration){const t=i.visualDuration,s=2*Math.PI/(t*1.2),r=s*s,n=2*tn(.05,1,1-(i.bounce||0))*Math.sqrt(r);e={...e,mass:Et.mass,stiffness:r,damping:n}}else{const t=k8({...i,velocity:0});e={...e,...t,mass:Et.mass},e.isResolvedFromDuration=!0}return e}function dm(i=Et.visualDuration,e=Et.bounce){const t=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:e}:i;let{restSpeed:s,restDelta:r}=t;const n=t.keyframes[0],o=t.keyframes[t.keyframes.length-1],l={done:!1,value:n},{stiffness:c,damping:u,mass:d,duration:m,velocity:g,isResolvedFromDuration:_}=P8({...t,velocity:-tr(t.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=o-n,w=tr(Math.sqrt(c/d)),k=Math.abs(x)<5;s||(s=k?Et.restSpeed.granular:Et.restSpeed.default),r||(r=k?Et.restDelta.granular:Et.restDelta.default);let C;if(b<1){const P=Gv(w,b);C=E=>{const $=Math.exp(-b*w*E);return o-$*((y+b*w*x)/P*Math.sin(P*E)+x*Math.cos(P*E))}}else if(b===1)C=P=>o-Math.exp(-w*P)*(x+(y+w*x)*P);else{const P=w*Math.sqrt(b*b-1);C=E=>{const $=Math.exp(-b*w*E),z=Math.min(P*E,300);return o-$*((y+b*w*x)*Math.sinh(z)+P*x*Math.cosh(z))/P}}const A={calculatedDuration:_&&m||null,next:P=>{const E=C(P);if(_)l.done=P>=m;else{let $=P===0?y:0;b<1&&($=P===0?br(y):YP(C,P,E));const z=Math.abs($)<=s,I=Math.abs(o-E)<=r;l.done=z&&I}return l.value=l.done?o:E,l},toString:()=>{const P=Math.min(xb(A),fm),E=UP($=>A.next(P*$).value,P,30);return P+"ms "+E},toTransition:()=>{}};return A}dm.applyToOptions=i=>{const e=w8(i,100,dm);return i.ease=e.ease,i.duration=br(e.duration),i.type="keyframes",i};function Kv({keyframes:i,velocity:e=0,power:t=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const m=i[0],g={done:!1,value:m},_=z=>l!==void 0&&z<l||c!==void 0&&z>c,y=z=>l===void 0?c:c===void 0||Math.abs(l-z)<Math.abs(c-z)?l:c;let b=t*e;const x=m+b,w=o===void 0?x:o(x);w!==x&&(b=w-m);const k=z=>-b*Math.exp(-z/s),C=z=>w+k(z),A=z=>{const I=k(z),se=C(z);g.done=Math.abs(I)<=u,g.value=g.done?w:se};let P,E;const $=z=>{_(g.value)&&(P=z,E=dm({keyframes:[g.value,y(g.value)],velocity:YP(C,z,g.value),damping:r,stiffness:n,restDelta:u,restSpeed:d}))};return $(0),{calculatedDuration:null,next:z=>{let I=!1;return!E&&P===void 0&&(I=!0,A(z),$(z)),P!==void 0&&z>=P?E.next(z-P):(!I&&A(z),g)}}}function Q8(i,e,t){const s=[],r=t||Zn.mix||WP,n=i.length-1;for(let o=0;o<n;o++){let l=r(i[o],i[o+1]);if(e){const c=Array.isArray(e)?e[o]||ar:e;l=df(c,l)}s.push(l)}return s}function R8(i,e,{clamp:t=!0,ease:s,mixer:r}={}){const n=i.length;if(mb(n===e.length),n===1)return()=>e[0];if(n===2&&e[0]===e[1])return()=>e[1];const o=i[0]===i[1];i[0]>i[n-1]&&(i=[...i].reverse(),e=[...e].reverse());const l=Q8(e,s,r),c=l.length,u=d=>{if(o&&d<i[0])return e[0];let m=0;if(c>1)for(;m<i.length-2&&!(d<i[m+1]);m++);const g=Pu(i[m],i[m+1],d);return l[m](g)};return t?d=>u(tn(i[0],i[n-1],d)):u}function L8(i,e){const t=i[i.length-1];for(let s=1;s<=e;s++){const r=Pu(0,e,s);i.push(kt(t,1,r))}}function $8(i){const e=[0];return L8(e,i.length-1),e}function B8(i,e){return i.map(t=>t*e)}function D8(i,e){return i.map(()=>e||$P).splice(0,i.length-1)}function _u({duration:i=300,keyframes:e,times:t,ease:s="easeInOut"}){const r=Yz(s)?s.map(p2):p2(s),n={done:!1,value:e[0]},o=B8(t&&t.length===e.length?t:$8(e),i),l=R8(o,e,{ease:Array.isArray(r)?r:D8(e,r)});return{calculatedDuration:i,next:c=>(n.value=l(c),n.done=c>=i,n)}}const z8=i=>i!==null;function wb(i,{repeat:e,repeatType:t="loop"},s,r=1){const n=i.filter(z8),l=r<0||e&&t!=="loop"&&e%2===1?0:n.length-1;return!l||s===void 0?n[l]:s}const N8={decay:Kv,inertia:Kv,tween:_u,keyframes:_u,spring:dm};function HP(i){typeof i.type=="string"&&(i.type=N8[i.type])}class Cb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const X8=i=>i/100;class kb extends Cb{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,r;const{motionValue:t}=this.options;t&&t.updatedAt!==Ji.now()&&this.tick(Ji.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(s=this.options).onStop)==null||r.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;HP(e);const{type:t=_u,repeat:s=0,repeatDelay:r=0,repeatType:n,velocity:o=0}=e;let{keyframes:l}=e;const c=t||_u;c!==_u&&typeof l[0]!="number"&&(this.mixKeyframes=df(X8,WP(l[0],l[1])),l=[0,100]);const u=c({...e,keyframes:l});n==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=xb(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(s+1)-r,this.generator=u}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:s,totalDuration:r,mixKeyframes:n,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:d,repeat:m,repeatType:g,repeatDelay:_,type:y,onUpdate:b,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?w<0:w>r;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let C=this.currentTime,A=s;if(m){const z=Math.min(this.currentTime,r)/l;let I=Math.floor(z),se=z%1;!se&&z>=1&&(se=1),se===1&&I--,I=Math.min(I,m+1),!!(I%2)&&(g==="reverse"?(se=1-se,_&&(se-=_/l)):g==="mirror"&&(A=o)),C=tn(0,1,se)*l}const P=k?{done:!1,value:d[0]}:A.next(C);n&&(P.value=n(P.value));let{done:E}=P;!k&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return $&&y!==Kv&&(P.value=wb(d,this.options,x,this.speed)),b&&b(P.value),$&&this.finish(),P}then(e,t){return this.finished.then(e,t)}get duration(){return tr(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tr(e)}get time(){return tr(this.currentTime)}set time(e){var t;e=br(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(t=this.driver)==null||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ji.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tr(this.currentTime))}play(){var r,n;if(this.isStopped)return;const{driver:e=x8,startTime:t}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(n=(r=this.options).onPlay)==null||n.call(r);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=t??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ji.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",(t=(e=this.options).onComplete)==null||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(t=(e=this.options).onCancel)==null||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}}function V8(i){for(let e=1;e<i.length;e++)i[e]??(i[e]=i[e-1])}const Pa=i=>i*180/Math.PI,Jv=i=>{const e=Pa(Math.atan2(i[1],i[0]));return e1(e)},Z8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Jv,rotateZ:Jv,skewX:i=>Pa(Math.atan(i[1])),skewY:i=>Pa(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},e1=i=>(i=i%360,i<0&&(i+=360),i),b2=Jv,S2=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),x2=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),j8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:S2,scaleY:x2,scale:i=>(S2(i)+x2(i))/2,rotateX:i=>e1(Pa(Math.atan2(i[6],i[5]))),rotateY:i=>e1(Pa(Math.atan2(-i[2],i[0]))),rotateZ:b2,rotate:b2,skewX:i=>Pa(Math.atan(i[4])),skewY:i=>Pa(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function t1(i){return i.includes("scale")?1:0}function i1(i,e){if(!i||i==="none")return t1(e);const t=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,r;if(t)s=j8,r=t;else{const l=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Z8,r=l}if(!r)return t1(e);const n=s[e],o=r[1].split(",").map(q8);return typeof n=="function"?n(o):o[n]}const I8=(i,e)=>{const{transform:t="none"}=getComputedStyle(i);return i1(t,e)};function q8(i){return parseFloat(i.trim())}const Mh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Eh=new Set(Mh),w2=i=>i===Ah||i===xe,W8=new Set(["x","y","z"]),U8=Mh.filter(i=>!W8.has(i));function Y8(i){const e=[];return U8.forEach(t=>{const s=i.getValue(t);s!==void 0&&(e.push([t,s.get()]),s.set(t.startsWith("scale")?1:0))}),e}const Do={width:({x:i},{paddingLeft:e="0",paddingRight:t="0"})=>i.max-i.min-parseFloat(e)-parseFloat(t),height:({y:i},{paddingTop:e="0",paddingBottom:t="0"})=>i.max-i.min-parseFloat(e)-parseFloat(t),top:(i,{top:e})=>parseFloat(e),left:(i,{left:e})=>parseFloat(e),bottom:({y:i},{top:e})=>parseFloat(e)+(i.max-i.min),right:({x:i},{left:e})=>parseFloat(e)+(i.max-i.min),x:(i,{transform:e})=>i1(e,"x"),y:(i,{transform:e})=>i1(e,"y")};Do.translateX=Do.x;Do.translateY=Do.y;const za=new Set;let s1=!1,r1=!1,n1=!1;function FP(){if(r1){const i=Array.from(za).filter(s=>s.needsMeasurement),e=new Set(i.map(s=>s.element)),t=new Map;e.forEach(s=>{const r=Y8(s);r.length&&(t.set(s,r),s.render())}),i.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const r=t.get(s);r&&r.forEach(([n,o])=>{var l;(l=s.getValue(n))==null||l.set(o)})}),i.forEach(s=>s.measureEndState()),i.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}r1=!1,s1=!1,za.forEach(i=>i.complete(n1)),za.clear()}function GP(){za.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(r1=!0)})}function H8(){n1=!0,GP(),FP(),n1=!1}class Tb{constructor(e,t,s,r,n,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=s,this.motionValue=r,this.element=n,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(za.add(this),s1||(s1=!0,dt.read(GP),dt.resolveKeyframes(FP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:s,motionValue:r}=this;if(e[0]===null){const n=r==null?void 0:r.get(),o=e[e.length-1];if(n!==void 0)e[0]=n;else if(s&&t){const l=s.readValue(t,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),r&&n===void 0&&r.set(e[0])}V8(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),za.delete(this)}cancel(){this.state==="scheduled"&&(za.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const F8=i=>i.startsWith("--");function G8(i,e,t){F8(e)?i.style.setProperty(e,t):i.style[e]=t}const K8={};function KP(i,e){const t=CP(i);return()=>K8[e]??t()}const J8=KP(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),JP=KP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nu=([i,e,t,s])=>`cubic-bezier(${i}, ${e}, ${t}, ${s})`,C2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nu([0,.65,.55,1]),circOut:nu([.55,0,1,.45]),backIn:nu([.31,.01,.66,-.59]),backOut:nu([.33,1.53,.69,.99])};function eQ(i,e){if(i)return typeof i=="function"?JP()?UP(i,e):"ease-out":BP(i)?nu(i):Array.isArray(i)?i.map(t=>eQ(t,e)||C2.easeOut):C2[i]}function eN(i,e,t,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[e]:t};c&&(d.offset=c);const m=eQ(l,r);Array.isArray(m)&&(d.easing=m);const g={delay:s,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:n+1,direction:o==="reverse"?"alternate":"normal"};return u&&(g.pseudoElement=u),i.animate(d,g)}function tQ(i){return typeof i=="function"&&"applyToOptions"in i}function tN({type:i,...e}){return tQ(i)&&JP()?i.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class iQ extends Cb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:s,keyframes:r,pseudoElement:n,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!n,this.allowFlatten=o,this.options=e,mb(typeof e.type!="string");const u=tN(e);this.animation=eN(t,s,r,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){const d=wb(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):G8(t,s,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(t=(e=this.animation).finish)==null||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,s,r;const e=(t=this.options)==null?void 0:t.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((r=(s=this.animation).commitStyles)==null||r.call(s))}get duration(){var t,s;const e=((s=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:s.call(t).duration)||0;return tr(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tr(e)}get time(){return tr(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=br(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&J8()?(this.animation.timeline=e,ar):t(this)}}const sQ={anticipate:QP,backInOut:PP,circInOut:LP};function iN(i){return i in sQ}function sN(i){typeof i.ease=="string"&&iN(i.ease)&&(i.ease=sQ[i.ease])}const G0=10;class rN extends iQ{constructor(e){sN(e),HP(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:s,onComplete:r,element:n,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const l=new kb({...o,autoplay:!1}),c=Math.max(G0,Ji.now()-this.startTime),u=tn(0,G0,c-G0);t.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const k2=(i,e)=>e==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Sr.test(i)||i==="0")&&!i.startsWith("url("));function nN(i){const e=i[0];if(i.length===1)return!0;for(let t=0;t<i.length;t++)if(i[t]!==e)return!0}function oN(i,e,t,s){const r=i[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const n=i[i.length-1],o=k2(r,e),l=k2(n,e);return!o||!l?!1:nN(i)||(t==="spring"||tQ(t))&&s}function o1(i){i.duration=0,i.type="keyframes"}const aN=new Set(["opacity","clipPath","filter","transform"]),lN=CP(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hN(i){var d;const{motionValue:e,name:t,repeatDelay:s,repeatType:r,damping:n,type:o}=i;if(!(((d=e==null?void 0:e.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return lN()&&t&&aN.has(t)&&(t!=="transform"||!u)&&!c&&!s&&r!=="mirror"&&n!==0&&o!=="inertia"}const cN=40;class uN extends Cb{constructor({autoplay:e=!0,delay:t=0,type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o="loop",keyframes:l,name:c,motionValue:u,element:d,...m}){var y;super(),this.stop=()=>{var b,x;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Ji.now();const g={autoplay:e,delay:t,type:s,repeat:r,repeatDelay:n,repeatType:o,name:c,motionValue:u,element:d,...m},_=(d==null?void 0:d.KeyframeResolver)||Tb;this.keyframeResolver=new _(l,(b,x,w)=>this.onKeyframesResolved(b,x,g,!w),c,u,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(e,t,s,r){var x,w;this.keyframeResolver=void 0;const{name:n,type:o,velocity:l,delay:c,isHandoff:u,onUpdate:d}=s;this.resolvedAt=Ji.now(),oN(e,n,o,l)||((Zn.instantAnimations||!c)&&(d==null||d(wb(e,s,t))),e[0]=e[e.length-1],o1(s),s.repeat=0);const g={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>cN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...s,keyframes:e},_=!u&&hN(g),y=(w=(x=g.motionValue)==null?void 0:x.owner)==null?void 0:w.current,b=_?new rN({...g,element:y}):new kb(g);b.finished.then(()=>{this.notifyFinished()}).catch(ar),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),H8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function rQ(i,e,t,s=0,r=1){const n=Array.from(i).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),o=i.size,l=(o-1)*s;return typeof t=="function"?t(n,o):r===1?n*s:l-n*s}const fN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dN(i){const e=fN.exec(i);if(!e)return[,];const[,t,s,r]=e;return[`--${t??s}`,r]}function nQ(i,e,t=1){const[s,r]=dN(i);if(!s)return;const n=window.getComputedStyle(e).getPropertyValue(s);if(n){const o=n.trim();return SP(o)?parseFloat(o):o}return vb(r)?nQ(r,e,t+1):r}const pN={type:"spring",stiffness:500,damping:25,restSpeed:10},mN=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),gN={type:"keyframes",duration:.8},ON={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_N=(i,{keyframes:e})=>e.length>2?gN:Eh.has(i)?i.startsWith("scale")?mN(e[1]):pN:ON,vN=i=>i!==null;function yN(i,{repeat:e,repeatType:t="loop"},s){const r=i.filter(vN),n=e&&t!=="loop"&&e%2===1?0:r.length-1;return r[n]}function oQ(i,e){if(i!=null&&i.inherit&&e){const{inherit:t,...s}=i;return{...e,...s}}return i}function Ab(i,e){const t=(i==null?void 0:i[e])??(i==null?void 0:i.default)??i;return t!==i?oQ(t,i):t}function bN({when:i,delay:e,delayChildren:t,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Mb=(i,e,t,s={},r,n)=>o=>{const l=Ab(s,i)||{},c=l.delay||s.delay||0;let{elapsed:u=0}=s;u=u-br(c);const d={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:g=>{e.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:i,motionValue:e,element:n?void 0:r};bN(l)||Object.assign(d,_N(i,d)),d.duration&&(d.duration=br(d.duration)),d.repeatDelay&&(d.repeatDelay=br(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let m=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(o1(d),d.delay===0&&(m=!0)),(Zn.instantAnimations||Zn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(m=!0,o1(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,m&&!n&&e.get()!==void 0){const g=yN(d.keyframes,l);if(g!==void 0){dt.update(()=>{d.onUpdate(g),d.onComplete()});return}}return l.isSync?new kb(d):new uN(d)};function T2(i){const e=[{},{}];return i==null||i.values.forEach((t,s)=>{e[0][s]=t.get(),e[1][s]=t.getVelocity()}),e}function Eb(i,e,t,s){if(typeof e=="function"){const[r,n]=T2(s);e=e(t!==void 0?t:i.custom,r,n)}if(typeof e=="string"&&(e=i.variants&&i.variants[e]),typeof e=="function"){const[r,n]=T2(s);e=e(t!==void 0?t:i.custom,r,n)}return e}function nh(i,e,t){const s=i.getProps();return Eb(s,e,t!==void 0?t:s.custom,i)}const aQ=new Set(["width","height","top","left","right","bottom",...Mh]),A2=30,SN=i=>!isNaN(parseFloat(i));class xN{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var n;const r=Ji.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((n=this.events.change)==null||n.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Ji.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=SN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new gb);const s=this.events[e].add(t);return e==="change"?()=>{s(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,s){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ji.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>A2)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,A2);return kP(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mh(i,e){return new xN(i,e)}const a1=i=>Array.isArray(i);function wN(i,e,t){i.hasValue(e)?i.getValue(e).set(t):i.addValue(e,mh(t))}function CN(i){return a1(i)?i[i.length-1]||0:i}function kN(i,e){const t=nh(i,e);let{transitionEnd:s={},transition:r={},...n}=t||{};n={...n,...s};for(const o in n){const l=CN(n[o]);wN(i,o,l)}}const Ii=i=>!!(i&&i.getVelocity);function TN(i){return!!(Ii(i)&&i.add)}function l1(i,e){const t=i.getValue("willChange");if(TN(t))return t.add(e);if(!t&&Zn.WillChange){const s=new Zn.WillChange("auto");i.addValue("willChange",s),s.add(e)}}function Pb(i){return i.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const AN="framerAppearId",lQ="data-"+Pb(AN);function hQ(i){return i.props[lQ]}function MN({protectedKeys:i,needsAnimating:e},t){const s=i.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,s}function cQ(i,e,{delay:t=0,transitionOverride:s,type:r}={}){let{transition:n,transitionEnd:o,...l}=e;const c=i.getDefaultTransition();n=n?oQ(n,c):c;const u=n==null?void 0:n.reduceMotion;s&&(n=s);const d=[],m=r&&i.animationState&&i.animationState.getState()[r];for(const g in l){const _=i.getValue(g,i.latestValues[g]??null),y=l[g];if(y===void 0||m&&MN(m,g))continue;const b={delay:t,...Ab(n||{},g)},x=_.get();if(x!==void 0&&!_.isAnimating&&!Array.isArray(y)&&y===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const A=hQ(i);if(A){const P=window.MotionHandoffAnimation(A,g,dt);P!==null&&(b.startTime=P,w=!0)}}l1(i,g);const k=u??i.shouldReduceMotion;_.start(Mb(g,_,y,k&&aQ.has(g)?{type:!1}:b,i,w));const C=_.animation;C&&d.push(C)}if(o){const g=()=>dt.update(()=>{o&&kN(i,o)});d.length?Promise.all(d).then(g):g()}return d}function h1(i,e,t={}){var c;const s=nh(i,e,t.type==="exit"?(c=i.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=i.getDefaultTransition()||{}}=s||{};t.transitionOverride&&(r=t.transitionOverride);const n=s?()=>Promise.all(cQ(i,s,t)):()=>Promise.resolve(),o=i.variantChildren&&i.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:g}=r;return EN(i,e,u,d,m,g,t)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[n,o]:[o,n];return u().then(()=>d())}else return Promise.all([n(),o(t.delay)])}function EN(i,e,t=0,s=0,r=0,n=1,o){const l=[];for(const c of i.variantChildren)c.notify("AnimationStart",e),l.push(h1(c,e,{...o,delay:t+(typeof s=="function"?0:s)+rQ(i.variantChildren,c,s,r,n)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(l)}function PN(i,e,t={}){i.notify("AnimationStart",e);let s;if(Array.isArray(e)){const r=e.map(n=>h1(i,n,t));s=Promise.all(r)}else if(typeof e=="string")s=h1(i,e,t);else{const r=typeof e=="function"?nh(i,e,t.custom):e;s=Promise.all(cQ(i,r,t))}return s.then(()=>{i.notify("AnimationComplete",e)})}const QN={test:i=>i==="auto",parse:i=>i},uQ=i=>e=>e.test(i),fQ=[Ah,xe,Gr,Mo,a8,o8,QN],M2=i=>fQ.find(uQ(i));function RN(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||wP(i):!0}const LN=new Set(["brightness","contrast","saturate","opacity"]);function $N(i){const[e,t]=i.slice(0,-1).split("(");if(e==="drop-shadow")return i;const[s]=t.match(yb)||[];if(!s)return i;const r=t.replace(s,"");let n=LN.has(e)?1:0;return s!==t&&(n*=100),e+"("+n+r+")"}const BN=/\b([a-z-]*)\(.*?\)/gu,c1={...Sr,getAnimatableNone:i=>{const e=i.match(BN);return e?e.map($N).join(" "):i}},u1={...Sr,getAnimatableNone:i=>{const e=Sr.parse(i);return Sr.createTransformer(i)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},E2={...Ah,transform:Math.round},DN={rotate:Mo,rotateX:Mo,rotateY:Mo,rotateZ:Mo,scale:Fd,scaleX:Fd,scaleY:Fd,scaleZ:Fd,skew:Mo,skewX:Mo,skewY:Mo,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:Qu,originX:g2,originY:g2,originZ:xe},Qb={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...DN,zIndex:E2,fillOpacity:Qu,strokeOpacity:Qu,numOctaves:E2},zN={...Qb,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:c1,WebkitFilter:c1,mask:u1,WebkitMask:u1},dQ=i=>zN[i],NN=new Set([c1,u1]);function pQ(i,e){let t=dQ(i);return NN.has(t)||(t=Sr),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const XN=new Set(["auto","none","0"]);function VN(i,e,t){let s=0,r;for(;s<i.length&&!r;){const n=i[s];typeof n=="string"&&!XN.has(n)&&Ru(n).values.length&&(r=i[s]),s++}if(r&&t)for(const n of e)i[n]=pQ(t,r)}class ZN extends Tb{constructor(e,t,s,r,n){super(e,t,s,r,n,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:s}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let m=e[d];if(typeof m=="string"&&(m=m.trim(),vb(m))){const g=nQ(m,t.current);g!==void 0&&(e[d]=g),d===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!aQ.has(s)||e.length!==2)return;const[r,n]=e,o=M2(r),l=M2(n),c=m2(r),u=m2(n);if(c!==u&&Do[s]){this.needsMeasurement=!0;return}if(o!==l)if(w2(o)&&w2(l))for(let d=0;d<e.length;d++){const m=e[d];typeof m=="string"&&(e[d]=parseFloat(m))}else Do[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,s=[];for(let r=0;r<e.length;r++)(e[r]===null||RN(e[r]))&&s.push(r);s.length&&VN(e,s,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Do[s](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];r!==void 0&&e.getValue(s,r).jump(r,!1)}measureEndState(){var l;const{element:e,name:t,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const n=s.length-1,o=s[n];s[n]=Do[t](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const jN=new Set(["opacity","clipPath","filter","transform"]);function mQ(i,e,t){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let s=document;const r=(t==null?void 0:t[i])??s.querySelectorAll(i);return r?Array.from(r):[]}return Array.from(i).filter(s=>s!=null)}const gQ=(i,e)=>e&&typeof i=="number"?e.transform(i):i;function IN(i){return xP(i)&&"offsetHeight"in i}const{schedule:Rb}=DP(queueMicrotask,!1),_r={x:!1,y:!1};function OQ(){return _r.x||_r.y}function qN(i){return i==="x"||i==="y"?_r[i]?null:(_r[i]=!0,()=>{_r[i]=!1}):_r.x||_r.y?null:(_r.x=_r.y=!0,()=>{_r.x=_r.y=!1})}function _Q(i,e){const t=mQ(i),s=new AbortController,r={passive:!0,...e,signal:s.signal};return[t,r,()=>s.abort()]}function WN(i){return!(i.pointerType==="touch"||OQ())}function UN(i,e,t={}){const[s,r,n]=_Q(i,t);return s.forEach(o=>{let l=!1,c=!1,u;const d=()=>{o.removeEventListener("pointerleave",y)},m=x=>{u&&(u(x),u=void 0),d()},g=x=>{l=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),c&&(c=!1,m(x))},_=()=>{l=!0,window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",g,r)},y=x=>{if(x.pointerType!=="touch"){if(l){c=!0;return}m(x)}},b=x=>{if(!WN(x))return;c=!1;const w=e(o,x);typeof w=="function"&&(u=w,o.addEventListener("pointerleave",y,r))};o.addEventListener("pointerenter",b,r),o.addEventListener("pointerdown",_,r)}),n}const vQ=(i,e)=>e?i===e?!0:vQ(i,e.parentElement):!1,Lb=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,YN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HN(i){return YN.has(i.tagName)||i.isContentEditable===!0}const FN=new Set(["INPUT","SELECT","TEXTAREA"]);function GN(i){return FN.has(i.tagName)||i.isContentEditable===!0}const Dp=new WeakSet;function P2(i){return e=>{e.key==="Enter"&&i(e)}}function K0(i,e){i.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const KN=(i,e)=>{const t=i.currentTarget;if(!t)return;const s=P2(()=>{if(Dp.has(t))return;K0(t,"down");const r=P2(()=>{K0(t,"up")}),n=()=>K0(t,"cancel");t.addEventListener("keyup",r,e),t.addEventListener("blur",n,e)});t.addEventListener("keydown",s,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",s),e)};function Q2(i){return Lb(i)&&!OQ()}const R2=new WeakSet;function JN(i,e,t={}){const[s,r,n]=_Q(i,t),o=l=>{const c=l.currentTarget;if(!Q2(l)||R2.has(l))return;Dp.add(c),t.stopPropagation&&R2.add(l);const u=e(c,l),d=(_,y)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Dp.has(c)&&Dp.delete(c),Q2(_)&&typeof u=="function"&&u(_,{success:y})},m=_=>{d(_,c===window||c===document||t.useGlobalTarget||vQ(c,_.target))},g=_=>{d(_,!1)};window.addEventListener("pointerup",m,r),window.addEventListener("pointercancel",g,r)};return s.forEach(l=>{(t.useGlobalTarget?window:l).addEventListener("pointerdown",o,r),IN(l)&&(l.addEventListener("focus",u=>KN(u,r)),!HN(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),n}function $b(i){return xP(i)&&"ownerSVGElement"in i}const zp=new WeakMap;let Eo;const yQ=(i,e,t)=>(s,r)=>r&&r[0]?r[0][i+"Size"]:$b(s)&&"getBBox"in s?s.getBBox()[e]:s[t],e7=yQ("inline","width","offsetWidth"),t7=yQ("block","height","offsetHeight");function i7({target:i,borderBoxSize:e}){var t;(t=zp.get(i))==null||t.forEach(s=>{s(i,{get width(){return e7(i,e)},get height(){return t7(i,e)}})})}function s7(i){i.forEach(i7)}function r7(){typeof ResizeObserver>"u"||(Eo=new ResizeObserver(s7))}function n7(i,e){Eo||r7();const t=mQ(i);return t.forEach(s=>{let r=zp.get(s);r||(r=new Set,zp.set(s,r)),r.add(e),Eo==null||Eo.observe(s)}),()=>{t.forEach(s=>{const r=zp.get(s);r==null||r.delete(e),r!=null&&r.size||Eo==null||Eo.unobserve(s)})}}const Np=new Set;let Hl;function o7(){Hl=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Np.forEach(e=>e(i))},window.addEventListener("resize",Hl)}function a7(i){return Np.add(i),Hl||o7(),()=>{Np.delete(i),!Np.size&&typeof Hl=="function"&&(window.removeEventListener("resize",Hl),Hl=void 0)}}function L2(i,e){return typeof i=="function"?a7(i):n7(i,e)}function l7(i){return $b(i)&&i.tagName==="svg"}const h7=[...fQ,qt,Sr],c7=i=>h7.find(uQ(i)),$2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fl=()=>({x:$2(),y:$2()}),B2=()=>({min:0,max:0}),ii=()=>({x:B2(),y:B2()}),u7=new WeakMap;function rg(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Lu(i){return typeof i=="string"||Array.isArray(i)}const Bb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Db=["initial",...Bb];function ng(i){return rg(i.animate)||Db.some(e=>Lu(i[e]))}function bQ(i){return!!(ng(i)||i.variants)}function f7(i,e,t){for(const s in e){const r=e[s],n=t[s];if(Ii(r))i.addValue(s,r);else if(Ii(n))i.addValue(s,mh(r,{owner:i}));else if(n!==r)if(i.hasValue(s)){const o=i.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=i.getStaticValue(s);i.addValue(s,mh(o!==void 0?o:r,{owner:i}))}}for(const s in t)e[s]===void 0&&i.removeValue(s);return e}const f1={current:null},SQ={current:!1},d7=typeof window<"u";function p7(){if(SQ.current=!0,!!d7)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),e=()=>f1.current=i.matches;i.addEventListener("change",e),e()}else f1.current=!1}const D2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let pm={};function xQ(i){pm=i}function m7(){return pm}class g7{scrapeMotionValuesFromProps(e,t,s){return{}}constructor({parent:e,props:t,presenceContext:s,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 _=Ji.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,dt.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ng(t),this.isVariantNode=bQ(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(t,{},this);for(const _ in g){const y=g[_];u[_]!==void 0&&Ii(y)&&y.set(u[_])}}mount(e){var t,s;if(this.hasBeenMounted)for(const r in this.initialValues)(t=this.values.get(r))==null||t.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,u7.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(SQ.current||p7(),this.shouldReduceMotion=f1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Zo(this.notifyUpdate),Zo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&jN.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:l,times:c,ease:u,duration:d}=t.accelerate,m=new iQ({element:this.current,name:e,keyframes:l,times:c,ease:u,duration:br(d)}),g=o(m);this.valueSubscriptions.set(e,()=>{g(),m.cancel()});return}const s=Eh.has(e);s&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&dt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in pm){const t=pm[e];if(!t)continue;const{isEnabled:s,Feature:r}=t;if(!this.features[e]&&r&&s(this.props)&&(this.features[e]=new r(this)),this.features[e]){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ii()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let s=0;s<D2.length;s++){const r=D2[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n="on"+r,o=e[n];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=f7(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const s=this.values.get(e);t!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&t!==void 0&&(s=mh(t===null?void 0:t,{owner:this}),this.addValue(e,s)),s}readValue(e,t){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(SP(s)||wP(s))?s=parseFloat(s):!c7(s)&&Sr.test(t)&&(s=pQ(e,t)),this.setBaseTarget(e,Ii(s)?s.get():s)),Ii(s)?s.get():s}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var n;const{initial:t}=this.props;let s;if(typeof t=="string"||typeof t=="object"){const o=Eb(this.props,t,(n=this.presenceContext)==null?void 0:n.custom);o&&(s=o[e])}if(t&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Ii(r)?r:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new gb),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Rb.render(this.render)}}class wQ extends g7{constructor(){super(...arguments),this.KeyframeResolver=ZN}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){const s=e.style;return s?s[t]:void 0}removeValueFromRenderState(e,{vars:t,style:s}){delete t[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ii(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class Fo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function CQ({top:i,left:e,right:t,bottom:s}){return{x:{min:e,max:t},y:{min:i,max:s}}}function O7({x:i,y:e}){return{top:e.min,right:i.max,bottom:e.max,left:i.min}}function _7(i,e){if(!e)return i;const t=e({x:i.left,y:i.top}),s=e({x:i.right,y:i.bottom});return{top:t.y,left:t.x,bottom:s.y,right:s.x}}function J0(i){return i===void 0||i===1}function d1({scale:i,scaleX:e,scaleY:t}){return!J0(i)||!J0(e)||!J0(t)}function xa(i){return d1(i)||kQ(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function kQ(i){return z2(i.x)||z2(i.y)}function z2(i){return i&&i!=="0%"}function mm(i,e,t){const s=i-t,r=e*s;return t+r}function N2(i,e,t,s,r){return r!==void 0&&(i=mm(i,r,s)),mm(i,t,s)+e}function p1(i,e=0,t=1,s,r){i.min=N2(i.min,e,t,s,r),i.max=N2(i.max,e,t,s,r)}function TQ(i,{x:e,y:t}){p1(i.x,e.translate,e.scale,e.originPoint),p1(i.y,t.translate,t.scale,t.originPoint)}const X2=.999999999999,V2=1.0000000000001;function v7(i,e,t,s=!1){const r=t.length;if(!r)return;e.x=e.y=1;let n,o;for(let l=0;l<r;l++){n=t[l],o=n.projectionDelta;const{visualElement:c}=n.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Kl(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,TQ(i,o)),s&&xa(n.latestValues)&&Kl(i,n.latestValues))}e.x<V2&&e.x>X2&&(e.x=1),e.y<V2&&e.y>X2&&(e.y=1)}function Gl(i,e){i.min=i.min+e,i.max=i.max+e}function Z2(i,e,t,s,r=.5){const n=kt(i.min,i.max,r);p1(i,e,t,n,s)}function Kl(i,e){Z2(i.x,e.x,e.scaleX,e.scale,e.originX),Z2(i.y,e.y,e.scaleY,e.scale,e.originY)}function AQ(i,e){return CQ(_7(i.getBoundingClientRect(),e))}function y7(i,e,t){const s=AQ(i,t),{scroll:r}=e;return r&&(Gl(s.x,r.offset.x),Gl(s.y,r.offset.y)),s}const b7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S7=Mh.length;function x7(i,e,t){let s="",r=!0;for(let n=0;n<S7;n++){const o=Mh[n],l=i[o];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(o.startsWith("scale")?1:0);else{const u=parseFloat(l);c=o.startsWith("scale")?u===1:u===0}if(!c||t){const u=gQ(l,Qb[o]);if(!c){r=!1;const d=b7[o]||o;s+=`${d}(${u}) `}t&&(e[o]=u)}}return s=s.trim(),t?s=t(e,r?"":s):r&&(s="none"),s}function zb(i,e,t){const{style:s,vars:r,transformOrigin:n}=i;let o=!1,l=!1;for(const c in e){const u=e[c];if(Eh.has(c)){o=!0;continue}else if(NP(c)){r[c]=u;continue}else{const d=gQ(u,Qb[c]);c.startsWith("origin")?(l=!0,n[c]=d):s[c]=d}}if(e.transform||(o||t?s.transform=x7(e,i.transform,t):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=n;s.transformOrigin=`${c} ${u} ${d}`}}function MQ(i,{style:e,vars:t},s,r){const n=i.style;let o;for(o in e)n[o]=e[o];r==null||r.applyProjectionStyles(n,s);for(o in t)n.setProperty(o,t[o])}function j2(i,e){return e.max===e.min?0:i/(e.max-e.min)*100}const zc={correct:(i,e)=>{if(!e.target)return i;if(typeof i=="string")if(xe.test(i))i=parseFloat(i);else return i;const t=j2(i,e.target.x),s=j2(i,e.target.y);return`${t}% ${s}%`}},w7={correct:(i,{treeScale:e,projectionDelta:t})=>{const s=i,r=Sr.parse(i);if(r.length>5)return s;const n=Sr.createTransformer(i),o=typeof r[0]!="number"?1:0,l=t.x.scale*e.x,c=t.y.scale*e.y;r[0+o]/=l,r[1+o]/=c;const u=kt(l,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),n(r)}},m1={borderRadius:{...zc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zc,borderTopRightRadius:zc,borderBottomLeftRadius:zc,borderBottomRightRadius:zc,boxShadow:w7};function EQ(i,{layout:e,layoutId:t}){return Eh.has(i)||i.startsWith("origin")||(e||t!==void 0)&&(!!m1[i]||i==="opacity")}function Nb(i,e,t){var o;const s=i.style,r=e==null?void 0:e.style,n={};if(!s)return n;for(const l in s)(Ii(s[l])||r&&Ii(r[l])||EQ(l,i)||((o=t==null?void 0:t.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(n[l]=s[l]);return n}function C7(i){return window.getComputedStyle(i)}class k7 extends wQ{constructor(){super(...arguments),this.type="html",this.renderInstance=MQ}readValueFromInstance(e,t){var s;if(Eh.has(t))return(s=this.projection)!=null&&s.isProjecting?t1(t):I8(e,t);{const r=C7(e),n=(NP(t)?r.getPropertyValue(t):r[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return AQ(e,t)}build(e,t,s){zb(e,t,s.transformTemplate)}scrapeMotionValuesFromProps(e,t,s){return Nb(e,t,s)}}const T7={offset:"stroke-dashoffset",array:"stroke-dasharray"},A7={offset:"strokeDashoffset",array:"strokeDasharray"};function M7(i,e,t=1,s=0,r=!0){i.pathLength=1;const n=r?T7:A7;i[n.offset]=`${-s}`,i[n.array]=`${e} ${t}`}const E7=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function PQ(i,{attrX:e,attrY:t,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:o=0,...l},c,u,d){if(zb(i,l,u),c){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:m,style:g}=i;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete m.transformBox);for(const _ of E7)m[_]!==void 0&&(g[_]=m[_],delete m[_]);e!==void 0&&(m.x=e),t!==void 0&&(m.y=t),s!==void 0&&(m.scale=s),r!==void 0&&M7(m,r,n,o,!1)}const QQ=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"]),RQ=i=>typeof i=="string"&&i.toLowerCase()==="svg";function P7(i,e,t,s){MQ(i,e,void 0,s);for(const r in e.attrs)i.setAttribute(QQ.has(r)?r:Pb(r),e.attrs[r])}function LQ(i,e,t){const s=Nb(i,e,t);for(const r in i)if(Ii(i[r])||Ii(e[r])){const n=Mh.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[n]=i[r]}return s}class Q7 extends wQ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ii}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Eh.has(t)){const s=dQ(t);return s&&s.default||0}return t=QQ.has(t)?t:Pb(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,s){return LQ(e,t,s)}build(e,t,s){PQ(e,t,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,t,s,r){P7(e,t,s,r)}mount(e){this.isSVGTag=RQ(e.tagName),super.mount(e)}}const R7=Db.length;function $Q(i){if(!i)return;if(!i.isControllingVariants){const t=i.parent?$Q(i.parent)||{}:{};return i.props.initial!==void 0&&(t.initial=i.props.initial),t}const e={};for(let t=0;t<R7;t++){const s=Db[t],r=i.props[s];(Lu(r)||r===!1)&&(e[s]=r)}return e}function BQ(i,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==i.length)return!1;for(let s=0;s<t;s++)if(e[s]!==i[s])return!1;return!0}const L7=[...Bb].reverse(),$7=Bb.length;function B7(i){return e=>Promise.all(e.map(({animation:t,options:s})=>PN(i,t,s)))}function D7(i){let e=B7(i),t=I2(),s=!0;const r=c=>(u,d)=>{var g;const m=nh(i,d,c==="exit"?(g=i.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:_,transitionEnd:y,...b}=m;u={...u,...b,...y}}return u};function n(c){e=c(i)}function o(c){const{props:u}=i,d=$Q(i.parent)||{},m=[],g=new Set;let _={},y=1/0;for(let x=0;x<$7;x++){const w=L7[x],k=t[w],C=u[w]!==void 0?u[w]:d[w],A=Lu(C),P=w===c?k.isActive:null;P===!1&&(y=x);let E=C===d[w]&&C!==u[w]&&A;if(E&&s&&i.manuallyAnimateOnMount&&(E=!1),k.protectedKeys={..._},!k.isActive&&P===null||!C&&!k.prevProp||rg(C)||typeof C=="boolean")continue;if(w==="exit"&&k.isActive&&P!==!0){k.prevResolvedValues&&(_={..._,...k.prevResolvedValues});continue}const $=z7(k.prevProp,C);let z=$||w===c&&k.isActive&&!E&&A||x>y&&A,I=!1;const se=Array.isArray(C)?C:[C];let F=se.reduce(r(w),{});P===!1&&(F={});const{prevResolvedValues:R={}}=k,L={...R,...F},N=X=>{z=!0,g.has(X)&&(I=!0,g.delete(X)),k.needsAnimating[X]=!0;const W=i.getValue(X);W&&(W.liveStyle=!1)};for(const X in L){const W=F[X],U=R[X];if(_.hasOwnProperty(X))continue;let q=!1;a1(W)&&a1(U)?q=!BQ(W,U):q=W!==U,q?W!=null?N(X):g.add(X):W!==void 0&&g.has(X)?N(X):k.protectedKeys[X]=!0}k.prevProp=C,k.prevResolvedValues=F,k.isActive&&(_={..._,...F}),s&&i.blockInitialAnimation&&(z=!1);const Z=E&&$;z&&(!Z||I)&&m.push(...se.map(X=>{const W={type:w};if(typeof X=="string"&&s&&!Z&&i.manuallyAnimateOnMount&&i.parent){const{parent:U}=i,q=nh(U,X);if(U.enteringChildren&&q){const{delayChildren:D}=q.transition||{};W.delay=rQ(U.enteringChildren,i,D)}}return{animation:X,options:W}}))}if(g.size){const x={};if(typeof u.initial!="boolean"){const w=nh(i,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(x.transition=w.transition)}g.forEach(w=>{const k=i.getBaseTarget(w),C=i.getValue(w);C&&(C.liveStyle=!0),x[w]=k??null}),m.push({animation:x})}let b=!!m.length;return s&&(u.initial===!1||u.initial===u.animate)&&!i.manuallyAnimateOnMount&&(b=!1),s=!1,b?e(m):Promise.resolve()}function l(c,u){var m;if(t[c].isActive===u)return Promise.resolve();(m=i.variantChildren)==null||m.forEach(g=>{var _;return(_=g.animationState)==null?void 0:_.setActive(c,u)}),t[c].isActive=u;const d=o(c);for(const g in t)t[g].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:n,getState:()=>t,reset:()=>{t=I2()}}}function z7(i,e){return typeof e=="string"?e!==i:Array.isArray(e)?!BQ(e,i):!1}function Oa(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function I2(){return{animate:Oa(!0),whileInView:Oa(),whileHover:Oa(),whileTap:Oa(),whileDrag:Oa(),whileFocus:Oa(),exit:Oa()}}function q2(i,e){i.min=e.min,i.max=e.max}function mr(i,e){q2(i.x,e.x),q2(i.y,e.y)}function W2(i,e){i.translate=e.translate,i.scale=e.scale,i.originPoint=e.originPoint,i.origin=e.origin}const DQ=1e-4,N7=1-DQ,X7=1+DQ,zQ=.01,V7=0-zQ,Z7=0+zQ;function es(i){return i.max-i.min}function j7(i,e,t){return Math.abs(i-e)<=t}function U2(i,e,t,s=.5){i.origin=s,i.originPoint=kt(e.min,e.max,i.origin),i.scale=es(t)/es(e),i.translate=kt(t.min,t.max,i.origin)-i.originPoint,(i.scale>=N7&&i.scale<=X7||isNaN(i.scale))&&(i.scale=1),(i.translate>=V7&&i.translate<=Z7||isNaN(i.translate))&&(i.translate=0)}function vu(i,e,t,s){U2(i.x,e.x,t.x,s?s.originX:void 0),U2(i.y,e.y,t.y,s?s.originY:void 0)}function Y2(i,e,t){i.min=t.min+e.min,i.max=i.min+es(e)}function I7(i,e,t){Y2(i.x,e.x,t.x),Y2(i.y,e.y,t.y)}function H2(i,e,t){i.min=e.min-t.min,i.max=i.min+es(e)}function gm(i,e,t){H2(i.x,e.x,t.x),H2(i.y,e.y,t.y)}function F2(i,e,t,s,r){return i-=e,i=mm(i,1/t,s),r!==void 0&&(i=mm(i,1/r,s)),i}function q7(i,e=0,t=1,s=.5,r,n=i,o=i){if(Gr.test(e)&&(e=parseFloat(e),e=kt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=kt(n.min,n.max,s);i===n&&(l-=e),i.min=F2(i.min,e,t,l,r),i.max=F2(i.max,e,t,l,r)}function G2(i,e,[t,s,r],n,o){q7(i,e[t],e[s],e[r],e.scale,n,o)}const W7=["x","scaleX","originX"],U7=["y","scaleY","originY"];function K2(i,e,t,s){G2(i.x,e,W7,t?t.x:void 0,s?s.x:void 0),G2(i.y,e,U7,t?t.y:void 0,s?s.y:void 0)}function J2(i){return i.translate===0&&i.scale===1}function NQ(i){return J2(i.x)&&J2(i.y)}function e5(i,e){return i.min===e.min&&i.max===e.max}function Y7(i,e){return e5(i.x,e.x)&&e5(i.y,e.y)}function t5(i,e){return Math.round(i.min)===Math.round(e.min)&&Math.round(i.max)===Math.round(e.max)}function XQ(i,e){return t5(i.x,e.x)&&t5(i.y,e.y)}function i5(i){return es(i.x)/es(i.y)}function s5(i,e){return i.translate===e.translate&&i.scale===e.scale&&i.originPoint===e.originPoint}function Zr(i){return[i("x"),i("y")]}function H7(i,e,t){let s="";const r=i.x.translate/e.x,n=i.y.translate/e.y,o=(t==null?void 0:t.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:u,rotate:d,rotateX:m,rotateY:g,skewX:_,skewY:y}=t;u&&(s=`perspective(${u}px) ${s}`),d&&(s+=`rotate(${d}deg) `),m&&(s+=`rotateX(${m}deg) `),g&&(s+=`rotateY(${g}deg) `),_&&(s+=`skewX(${_}deg) `),y&&(s+=`skewY(${y}deg) `)}const l=i.x.scale*e.x,c=i.y.scale*e.y;return(l!==1||c!==1)&&(s+=`scale(${l}, ${c})`),s||"none"}const VQ=["TopLeft","TopRight","BottomLeft","BottomRight"],F7=VQ.length,r5=i=>typeof i=="string"?parseFloat(i):i,n5=i=>typeof i=="number"||xe.test(i);function G7(i,e,t,s,r,n){r?(i.opacity=kt(0,t.opacity??1,K7(s)),i.opacityExit=kt(e.opacity??1,0,J7(s))):n&&(i.opacity=kt(e.opacity??1,t.opacity??1,s));for(let o=0;o<F7;o++){const l=`border${VQ[o]}Radius`;let c=o5(e,l),u=o5(t,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||n5(c)===n5(u)?(i[l]=Math.max(kt(r5(c),r5(u),s),0),(Gr.test(u)||Gr.test(c))&&(i[l]+="%")):i[l]=u}(e.rotate||t.rotate)&&(i.rotate=kt(e.rotate||0,t.rotate||0,s))}function o5(i,e){return i[e]!==void 0?i[e]:i.borderRadius}const K7=ZQ(0,.5,RP),J7=ZQ(.5,.95,ar);function ZQ(i,e,t){return s=>s<i?0:s>e?1:t(Pu(i,e,s))}function eX(i,e,t){const s=Ii(i)?i:mh(i);return s.start(Mb("",s,e,t)),s.animation}function $u(i,e,t,s={passive:!0}){return i.addEventListener(e,t,s),()=>i.removeEventListener(e,t)}const tX=(i,e)=>i.depth-e.depth;class iX{constructor(){this.children=[],this.isDirty=!1}add(e){pb(this.children,e),this.isDirty=!0}remove(e){cm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tX),this.isDirty=!1,this.children.forEach(e)}}function sX(i,e){const t=Ji.now(),s=({timestamp:r})=>{const n=r-t;n>=e&&(Zo(s),i(n-e))};return dt.setup(s,!0),()=>Zo(s)}function Xp(i){return Ii(i)?i.get():i}class rX{constructor(){this.members=[]}add(e){pb(this.members,e);for(let t=this.members.length-1;t>=0;t--){const s=this.members[t];if(s===e||s===this.lead||s===this.prevLead)continue;const r=s.instance;r&&r.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&cm(this.members,s)}e.scheduleRender()}remove(e){if(cm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(r=>e===r);if(t===0)return!1;let s;for(let r=t;r>=0;r--){const n=this.members[r],o=n.instance;if(n.isPresent!==!1&&(!o||o.isConnected!==!1)){s=n;break}}return s?(this.promote(s),!0):!1}promote(e,t){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const r=s.options.layoutDependency,n=e.options.layoutDependency;if(!(r!==void 0&&n!==void 0&&r===n)){const c=s.instance;c&&c.isConnected===!1&&!s.snapshot||(e.resumeFrom=s,t&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:l}=e.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:s}=e;t.onExitComplete&&t.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Vp={hasAnimatedSinceResize:!0,hasEverUpdated:!1},e_=["","X","Y","Z"],nX=1e3;let oX=0;function t_(i,e,t,s){const{latestValues:r}=e;r[i]&&(t[i]=r[i],e.setStaticValue(i,0),s&&(s[i]=0))}function jQ(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:e}=i.options;if(!e)return;const t=hQ(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:r,layoutId:n}=i.options;window.MotionCancelOptimisedAnimation(t,"transform",dt,!(r||n))}const{parent:s}=i;s&&!s.hasCheckedOptimisedAppear&&jQ(s)}function IQ({attachResizeListener:i,defaultParent:e,measureScroll:t,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},l=e==null?void 0:e()){this.id=oX++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hX),this.nodes.forEach(dX),this.nodes.forEach(pX),this.nodes.forEach(cX)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new iX)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new gb),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=$b(o)&&!l7(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),i){let d,m=0;const g=()=>this.root.updateBlockedByResize=!1;dt.read(()=>{m=window.innerWidth}),i(o,()=>{const _=window.innerWidth;_!==m&&(m=_,this.root.updateBlockedByResize=!0,d&&d(),d=sX(g,250),Vp.hasAnimatedSinceResize&&(Vp.hasAnimatedSinceResize=!1,this.nodes.forEach(h5)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||vX,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=u.getProps(),w=!this.targetLayout||!XQ(this.targetLayout,_),k=!m&&g;if(this.options.layoutRoot||this.resumeFrom||k||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Ab(y,"layout"),onPlay:b,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,k)}else m||h5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,this.eventHandlers.clear(),Zo(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(mX),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&&jQ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const m=this.path[d];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(a5);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(l5);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fX),this.nodes.forEach(aX),this.nodes.forEach(lX)):this.nodes.forEach(l5),this.clearAllSnapshots();const l=Ji.now();Pi.delta=tn(0,1e3/60,l-Pi.timestamp),Pi.timestamp=l,Pi.isProcessing=!0,W0.update.process(Pi),W0.preRender.process(Pi),W0.render.process(Pi),Pi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uX),this.sharedNodes.forEach(gX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!es(this.snapshot.measuredBox.x)&&!es(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ii(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!NQ(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(l||xa(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),yX(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return ii();const l=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(bX))){const{scroll:d}=this.root;d&&(Gl(l.x,d.offset.x),Gl(l.y,d.offset.y))}return l}removeElementScroll(o){var c;const l=ii();if(mr(l,o),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:m,options:g}=d;d!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&mr(l,o),Gl(l.x,m.offset.x),Gl(l.y,m.offset.y))}return l}applyTransform(o,l=!1){const c=ii();mr(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Kl(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xa(d.latestValues)&&Kl(c,d.latestValues)}return xa(this.latestValues)&&Kl(c,this.latestValues),c}removeTransform(o){const l=ii();mr(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!xa(u.latestValues))continue;d1(u.latestValues)&&u.updateSnapshot();const d=ii(),m=u.measurePageBox();mr(d,m),K2(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return xa(this.latestValues)&&K2(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Pi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var _;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(_=this.parent)!=null&&_.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:m}=this.options;if(!this.layout||!(d||m))return;this.resolvedRelativeTargetAt=Pi.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ii(),this.targetWithTransforms=ii()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),I7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mr(this.target,this.layout.layoutBox),TQ(this.target,this.targetDelta)):mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||d1(this.parent.latestValues)||kQ(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ii(),this.relativeTargetOrigin=ii(),gm(this.relativeTargetOrigin,l,c),mr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Pi.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;mr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;v7(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ii());const{target:_}=o;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(W2(this.prevProjectionDelta.x,this.projectionDelta.x),W2(this.prevProjectionDelta.y,this.projectionDelta.y)),vu(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!s5(this.projectionDelta.x,this.prevProjectionDelta.x)||!s5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fl(),this.projectionDelta=Fl(),this.projectionDeltaWithTransform=Fl()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},m=Fl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=ii(),_=c?c.source:void 0,y=this.layout?this.layout.source:void 0,b=_!==y,x=this.getStack(),w=!x||x.members.length<=1,k=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(_X));this.animationProgress=0;let C;this.mixTargetDelta=A=>{const P=A/1e3;c5(m.x,o.x,P),c5(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gm(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),OX(this.relativeTarget,this.relativeTargetOrigin,g,P),C&&Y7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ii()),mr(C,this.relativeTarget)),b&&(this.animationValues=d,G7(d,u,this.latestValues,P,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Zo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Vp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mh(0)),this.motionValue.jump(0,!1),this.currentAnimation=eX(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},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(nX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&qQ(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||ii();const m=es(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+m;const g=es(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+g}mr(l,c),Kl(l,d),vu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new rX),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 l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),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:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&t_("z",o,u,this.animationValues);for(let d=0;d<e_.length;d++)t_(`rotate${e_[d]}`,o,u,this.animationValues),t_(`skew${e_[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Xp(l==null?void 0:l.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Xp(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!xa(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let m=H7(this.projectionDeltaWithTransform,this.treeScale,d);c&&(m=c(d,m)),o.transform=m;const{x:g,y:_}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${_.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in m1){if(d[y]===void 0)continue;const{correct:b,applyTo:x,isCSSVariable:w}=m1[y],k=m==="none"?d[y]:b(d[y],u);if(x){const C=x.length;for(let A=0;A<C;A++)o[x[A]]=k}else w?this.options.visualElement.renderState.vars[y]=k:o[y]=k}this.options.layoutId&&(o.pointerEvents=u===this?Xp(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(a5),this.root.sharedNodes.clear()}}}function aX(i){i.updateLayout()}function lX(i){var t;const e=((t=i.resumeFrom)==null?void 0:t.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&e&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=i.layout,{animationType:n}=i.options,o=e.source!==i.layout.source;n==="size"?Zr(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],_=es(g);g.min=s[m].min,g.max=g.min+_}):qQ(n,e.layoutBox,s)&&Zr(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],_=es(s[m]);g.max=g.min+_,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[m].max=i.relativeTarget[m].min+_)});const l=Fl();vu(l,s,e.layoutBox);const c=Fl();o?vu(c,i.applyTransform(r,!0),e.measuredBox):vu(c,s,e.layoutBox);const u=!NQ(l);let d=!1;if(!i.resumeFrom){const m=i.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:_}=m;if(g&&_){const y=ii();gm(y,e.layoutBox,g.layoutBox);const b=ii();gm(b,s,_.layoutBox),XQ(y,b)||(d=!0),m.options.layoutRoot&&(i.relativeTarget=b,i.relativeTargetOrigin=y,i.relativeParent=m)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function hX(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function cX(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function uX(i){i.clearSnapshot()}function a5(i){i.clearMeasurements()}function l5(i){i.isLayoutDirty=!1}function fX(i){const{visualElement:e}=i.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),i.resetTransform()}function h5(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function dX(i){i.resolveTargetDelta()}function pX(i){i.calcProjection()}function mX(i){i.resetSkewAndRotation()}function gX(i){i.removeLeadSnapshot()}function c5(i,e,t){i.translate=kt(e.translate,0,t),i.scale=kt(e.scale,1,t),i.origin=e.origin,i.originPoint=e.originPoint}function u5(i,e,t,s){i.min=kt(e.min,t.min,s),i.max=kt(e.max,t.max,s)}function OX(i,e,t,s){u5(i.x,e.x,t.x,s),u5(i.y,e.y,t.y,s)}function _X(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const vX={duration:.45,ease:[.4,0,.1,1]},f5=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),d5=f5("applewebkit/")&&!f5("chrome/")?Math.round:ar;function p5(i){i.min=d5(i.min),i.max=d5(i.max)}function yX(i){p5(i.x),p5(i.y)}function qQ(i,e,t){return i==="position"||i==="preserve-aspect"&&!j7(i5(e),i5(t),.2)}function bX(i){var e;return i!==i.root&&((e=i.scroll)==null?void 0:e.wasRoot)}const SX=IQ({attachResizeListener:(i,e)=>$u(i,"resize",e),measureScroll:()=>{var i,e;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),i_={current:void 0},WQ=IQ({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!i_.current){const i=new SX({});i.mount(window),i.setOptions({layoutScroll:!0}),i_.current=i}return i_.current},resetTransform:(i,e)=>{i.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),UQ=Y.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function xX(i=!0){const e=Y.useContext(db);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:r}=e,n=Y.useId();Y.useEffect(()=>{if(i)return r(n)},[i]);const o=Y.useCallback(()=>i&&s&&s(n),[n,s,i]);return!t&&s?[!1,o]:[!0]}const YQ=Y.createContext({strict:!1}),m5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let g5=!1;function wX(){if(g5)return;const i={};for(const e in m5)i[e]={isEnabled:t=>m5[e].some(s=>!!t[s])};xQ(i),g5=!0}function HQ(){return wX(),m7()}function CX(i){const e=HQ();for(const t in i)e[t]={...e[t],...i[t]};xQ(e)}const kX=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","propagate","ignoreStrict","viewport"]);function Om(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||kX.has(i)}let FQ=i=>!Om(i);function TX(i){typeof i=="function"&&(FQ=e=>e.startsWith("on")?!Om(e):i(e))}try{TX(require("@emotion/is-prop-valid").default)}catch{}function AX(i,e,t){const s={};for(const r in i)r==="values"&&typeof i.values=="object"||(FQ(r)||t===!0&&Om(r)||!e&&!Om(r)||i.draggable&&r.startsWith("onDrag"))&&(s[r]=i[r]);return s}const og=Y.createContext({});function MX(i,e){if(ng(i)){const{initial:t,animate:s}=i;return{initial:t===!1||Lu(t)?t:void 0,animate:Lu(s)?s:void 0}}return i.inherit!==!1?e:{}}function EX(i){const{initial:e,animate:t}=MX(i,Y.useContext(og));return Y.useMemo(()=>({initial:e,animate:t}),[O5(e),O5(t)])}function O5(i){return Array.isArray(i)?i.join(" "):i}const Xb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GQ(i,e,t){for(const s in e)!Ii(e[s])&&!EQ(s,t)&&(i[s]=e[s])}function PX({transformTemplate:i},e){return Y.useMemo(()=>{const t=Xb();return zb(t,e,i),Object.assign({},t.vars,t.style)},[e])}function QX(i,e){const t=i.style||{},s={};return GQ(s,t,i),Object.assign(s,PX(i,e)),s}function RX(i,e){const t={},s=QX(i,e);return i.drag&&i.dragListener!==!1&&(t.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(t.tabIndex=0),t.style=s,t}const KQ=()=>({...Xb(),attrs:{}});function LX(i,e,t,s){const r=Y.useMemo(()=>{const n=KQ();return PQ(n,e,RQ(s),i.transformTemplate,i.style),{...n.attrs,style:{...n.style}}},[e]);if(i.style){const n={};GQ(n,i.style,i),r.style={...n,...r.style}}return r}const $X=["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 Vb(i){return typeof i!="string"||i.includes("-")?!1:!!($X.indexOf(i)>-1||/[A-Z]/u.test(i))}function BX(i,e,t,{latestValues:s},r,n=!1,o){const c=(o??Vb(i)?LX:RX)(e,s,r,i),u=AX(e,typeof i=="string",n),d=i!==Y.Fragment?{...u,...c,ref:t}:{},{children:m}=e,g=Y.useMemo(()=>Ii(m)?m.get():m,[m]);return Y.createElement(i,{...d,children:g})}function DX({scrapeMotionValuesFromProps:i,createRenderState:e},t,s,r){return{latestValues:zX(t,s,r,i),renderState:e()}}function zX(i,e,t,s){const r={},n=s(i,{});for(const g in n)r[g]=Xp(n[g]);let{initial:o,animate:l}=i;const c=ng(i),u=bQ(i);e&&u&&!c&&i.inherit!==!1&&(o===void 0&&(o=e.initial),l===void 0&&(l=e.animate));let d=t?t.initial===!1:!1;d=d||o===!1;const m=d?l:o;if(m&&typeof m!="boolean"&&!rg(m)){const g=Array.isArray(m)?m:[m];for(let _=0;_<g.length;_++){const y=Eb(i,g[_]);if(y){const{transitionEnd:b,transition:x,...w}=y;for(const k in w){let C=w[k];if(Array.isArray(C)){const A=d?C.length-1:0;C=C[A]}C!==null&&(r[k]=C)}for(const k in b)r[k]=b[k]}}}return r}const JQ=i=>(e,t)=>{const s=Y.useContext(og),r=Y.useContext(db),n=()=>DX(i,e,s,r);return t?n():Xz(n)},NX=JQ({scrapeMotionValuesFromProps:Nb,createRenderState:Xb}),XX=JQ({scrapeMotionValuesFromProps:LQ,createRenderState:KQ}),VX=Symbol.for("motionComponentSymbol");function ZX(i,e,t){const s=Y.useRef(t);Y.useInsertionEffect(()=>{s.current=t});const r=Y.useRef(null);return Y.useCallback(n=>{var l;n&&((l=i.onMount)==null||l.call(i,n)),e&&(n?e.mount(n):e.unmount());const o=s.current;if(typeof o=="function")if(n){const c=o(n);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):o(n);else o&&(o.current=n)},[e])}const eR=Y.createContext({});function Il(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function jX(i,e,t,s,r,n){var C,A;const{visualElement:o}=Y.useContext(og),l=Y.useContext(YQ),c=Y.useContext(db),u=Y.useContext(UQ),d=u.reducedMotion,m=u.skipAnimations,g=Y.useRef(null),_=Y.useRef(!1);s=s||l.renderer,!g.current&&s&&(g.current=s(i,{visualState:e,parent:o,props:t,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:m,isSVG:n}),_.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const y=g.current,b=Y.useContext(eR);y&&!y.projection&&r&&(y.type==="html"||y.type==="svg")&&IX(g.current,t,r,b);const x=Y.useRef(!1);Y.useInsertionEffect(()=>{y&&x.current&&y.update(t,c)});const w=t[lQ],k=Y.useRef(!!w&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,w))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,w)));return Vz(()=>{_.current=!0,y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),k.current&&y.animationState&&y.animationState.animateChanges())}),Y.useEffect(()=>{y&&(!k.current&&y.animationState&&y.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,w)}),k.current=!1),y.enteringChildren=void 0)}),y}function IX(i,e,t,s){const{layoutId:r,layout:n,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=e;i.projection=new t(i.latestValues,e["data-framer-portal-id"]?void 0:tR(i.parent)),i.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||l&&Il(l),visualElement:i,animationType:typeof n=="string"?n:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:c,layoutRoot:u})}function tR(i){if(i)return i.options.allowProjection!==!1?i.projection:tR(i.parent)}function s_(i,{forwardMotionProps:e=!1,type:t}={},s,r){s&&CX(s);const n=t?t==="svg":Vb(i),o=n?XX:NX;function l(u,d){let m;const g={...Y.useContext(UQ),...u,layoutId:qX(u)},{isStatic:_}=g,y=EX(u),b=o(u,_);if(!_&&bP){WX();const x=UX(g);m=x.MeasureLayout,y.visualElement=jX(i,b,g,r,x.ProjectionNode,n)}return M.jsxs(og.Provider,{value:y,children:[m&&y.visualElement?M.jsx(m,{visualElement:y.visualElement,...g}):null,BX(i,u,ZX(b,y.visualElement,d),b,_,e,n)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const c=Y.forwardRef(l);return c[VX]=i,c}function qX({layoutId:i}){const e=Y.useContext(yP).id;return e&&i!==void 0?e+"-"+i:i}function WX(i,e){Y.useContext(YQ).strict}function UX(i){const e=HQ(),{drag:t,layout:s}=e;if(!t&&!s)return{};const r={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(i)||s!=null&&s.isEnabled(i)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function YX(i,e){if(typeof Proxy>"u")return s_;const t=new Map,s=(n,o)=>s_(n,o,i,e),r=(n,o)=>s(n,o);return new Proxy(r,{get:(n,o)=>o==="create"?s:(t.has(o)||t.set(o,s_(o,void 0,i,e)),t.get(o))})}const HX=(i,e)=>e.isSVG??Vb(i)?new Q7(e):new k7(e,{allowProjection:i!==Y.Fragment});class FX extends Fo{constructor(e){super(e),e.animationState||(e.animationState=D7(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();rg(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let GX=0;class KX extends Fo{constructor(){super(...arguments),this.id=GX++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const JX={animation:{Feature:FX},exit:{Feature:KX}};function gf(i){return{point:{x:i.pageX,y:i.pageY}}}const eV=i=>e=>Lb(e)&&i(e,gf(e));function yu(i,e,t,s){return $u(i,e,eV(t),s)}const iR=({current:i})=>i?i.ownerDocument.defaultView:null,_5=(i,e)=>Math.abs(i-e);function tV(i,e){const t=_5(i.x,e.x),s=_5(i.y,e.y);return Math.sqrt(t**2+s**2)}const v5=new Set(["auto","scroll"]);class sR{constructor(e,t,{transformPagePoint:s,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:o=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=_=>{this.handleScroll(_.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=n_(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,b=tV(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!b)return;const{point:x}=_,{timestamp:w}=Pi;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;y||(k&&k(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,_)},this.handlePointerMove=(_,y)=>{this.lastMoveEvent=_,this.lastMoveEventInfo=r_(y,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(_,y)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=n_(_.type==="pointercancel"?this.lastMoveEventInfo:r_(y,this.transformPagePoint),this.history);this.startEvent&&b&&b(_,k),x&&x(_,k)},!Lb(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=r||window;const c=gf(e),u=r_(c,this.transformPagePoint),{point:d}=u,{timestamp:m}=Pi;this.history=[{...d,timestamp:m}];const{onSessionStart:g}=t;g&&g(e,n_(u,this.history)),this.removeListeners=df(yu(this.contextWindow,"pointermove",this.handlePointerMove),yu(this.contextWindow,"pointerup",this.handlePointerUp),yu(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let t=e.parentElement;for(;t;){const s=getComputedStyle(t);(v5.has(s.overflowX)||v5.has(s.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const s=e===window,r=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:r.x-t.x,y:r.y-t.y};n.x===0&&n.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,r),dt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zo(this.updatePoint)}}function r_(i,e){return e?{point:e(i.point)}:i}function y5(i,e){return{x:i.x-e.x,y:i.y-e.y}}function n_({point:i},e){return{point:i,delta:y5(i,rR(e)),offset:y5(i,iV(e)),velocity:sV(e,.1)}}function iV(i){return i[0]}function rR(i){return i[i.length-1]}function sV(i,e){if(i.length<2)return{x:0,y:0};let t=i.length-1,s=null;const r=rR(i);for(;t>=0&&(s=i[t],!(r.timestamp-s.timestamp>br(e)));)t--;if(!s)return{x:0,y:0};s===i[0]&&i.length>2&&r.timestamp-s.timestamp>br(e)*2&&(s=i[1]);const n=tr(r.timestamp-s.timestamp);if(n===0)return{x:0,y:0};const o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rV(i,{min:e,max:t},s){return e!==void 0&&i<e?i=s?kt(e,i,s.min):Math.max(i,e):t!==void 0&&i>t&&(i=s?kt(t,i,s.max):Math.min(i,t)),i}function b5(i,e,t){return{min:e!==void 0?i.min+e:void 0,max:t!==void 0?i.max+t-(i.max-i.min):void 0}}function nV(i,{top:e,left:t,bottom:s,right:r}){return{x:b5(i.x,t,r),y:b5(i.y,e,s)}}function S5(i,e){let t=e.min-i.min,s=e.max-i.max;return e.max-e.min<i.max-i.min&&([t,s]=[s,t]),{min:t,max:s}}function oV(i,e){return{x:S5(i.x,e.x),y:S5(i.y,e.y)}}function aV(i,e){let t=.5;const s=es(i),r=es(e);return r>s?t=Pu(e.min,e.max-s,i.min):s>r&&(t=Pu(i.min,i.max-r,e.min)),tn(0,1,t)}function lV(i,e){const t={};return e.min!==void 0&&(t.min=e.min-i.min),e.max!==void 0&&(t.max=e.max-i.min),t}const g1=.35;function hV(i=g1){return i===!1?i=0:i===!0&&(i=g1),{x:x5(i,"left","right"),y:x5(i,"top","bottom")}}function x5(i,e,t){return{min:w5(i,e),max:w5(i,t)}}function w5(i,e){return typeof i=="number"?i:i[e]||0}const cV=new WeakMap;class uV{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ii(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:s}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const n=m=>{t&&this.snapToCursor(gf(m).point),this.stopAnimation()},o=(m,g)=>{const{drag:_,dragPropagation:y,onDragStart:b}=this.getProps();if(_&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qN(_),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zr(w=>{let k=this.getAxisMotionValue(w).get()||0;if(Gr.test(k)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[w];A&&(k=es(A)*(parseFloat(k)/100))}}this.originPoint[w]=k}),b&&dt.update(()=>b(m,g),!1,!0),l1(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:_,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=dV(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&dt.update(()=>x(m,g),!1,!0)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new sR(e,{onSessionStart:n,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:s,contextWindow:iR(this.visualElement),element:this.visualElement.current})}stop(e,t){const s=e||this.latestPointerEvent,r=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!s)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&dt.postRender(()=>l(s,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,s){const{drag:r}=this.getProps();if(!s||!Gd(e,r,this.currentDirection))return;const n=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=rV(o,this.constraints[e],this.elastic[e])),n.set(o)}resolveConstraints(){var n;const{dragConstraints:e,dragElastic:t}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)==null?void 0:n.layout,r=this.constraints;e&&Il(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=nV(s.layoutBox,e):this.constraints=!1,this.elastic=hV(t),r!==this.constraints&&!Il(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Zr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lV(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Il(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const n=y7(s,r.root,this.visualElement.getTransformPagePoint());let o=oV(r.layout.layoutBox,n);if(t){const l=t(O7(o));this.hasMutatedConstraints=!!l,l&&(o=CQ(l))}return o}startAnimation(e){const{drag:t,dragMomentum:s,dragElastic:r,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zr(d=>{if(!Gd(d,t,this.currentDirection))return;let m=c&&c[d]||{};o&&(m={min:0,max:0});const g=r?200:1e6,_=r?40:1e7,y={type:"inertia",velocity:s?e[d]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...n,...m};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(e,t){const s=this.getAxisMotionValue(e);return l1(this.visualElement,e),s.start(Mb(e,s,0,t,this.visualElement,!1))}stopAnimation(){Zr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),r=s[t];return r||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Zr(t=>{const{drag:s}=this.getProps();if(!Gd(t,s,this.currentDirection))return;const{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){const{min:o,max:l}=r.layout.layoutBox[t],c=n.get()||0;n.set(e[t]-kt(o,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:s}=this.visualElement;if(!Il(t)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zr(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();r[o]=aV({min:c,max:c},this.constraints[o])}});const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Zr(o=>{if(!Gd(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(kt(c,u,r[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cV.set(this.visualElement,this);const e=this.visualElement.current,t=yu(e,"pointerdown",u=>{const{drag:d,dragListener:m=!0}=this.getProps(),g=u.target,_=g!==e&&GN(g);d&&m&&!_&&this.start(u)});let s;const r=()=>{const{dragConstraints:u}=this.getProps();Il(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=fV(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,o=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),dt.read(r);const l=$u(window,"resize",()=>this.scalePositionWithinConstraints()),c=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Zr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=u[m].translate,g.set(g.get()+u[m].translate))}),this.visualElement.render())}));return()=>{l(),t(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:o=g1,dragMomentum:l=!0}=e;return{...e,drag:t,dragDirectionLock:s,dragPropagation:r,dragConstraints:n,dragElastic:o,dragMomentum:l}}}function C5(i){let e=!0;return()=>{if(e){e=!1;return}i()}}function fV(i,e,t){const s=L2(i,C5(t)),r=L2(e,C5(t));return()=>{s(),r()}}function Gd(i,e,t){return(e===!0||e===i)&&(t===null||t===i)}function dV(i,e=10){let t=null;return Math.abs(i.y)>e?t="y":Math.abs(i.x)>e&&(t="x"),t}class pV extends Fo{constructor(e){super(e),this.removeGroupControls=ar,this.removeListeners=ar,this.controls=new uV(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ar}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const o_=i=>(e,t)=>{i&&dt.update(()=>i(e,t),!1,!0)};class mV extends Fo{constructor(){super(...arguments),this.removePointerDownListener=ar}onPointerDown(e){this.session=new sR(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iR(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:o_(e),onStart:o_(t),onMove:o_(s),onEnd:(n,o)=>{delete this.session,r&&dt.postRender(()=>r(n,o))}}}mount(){this.removePointerDownListener=yu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let a_=!1;class gV extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:s,layoutId:r}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),s&&s.register&&r&&s.register(n),a_&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Vp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:s,drag:r,isPresent:n}=this.props,{projection:o}=s;return o&&(o.isPresent=n,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),a_=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==n?o.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?o.promote():o.relegate()||dt.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Rb.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:s}=this.props,{projection:r}=e;a_=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nR(i){const[e,t]=xX(),s=Y.useContext(yP);return M.jsx(gV,{...i,layoutGroup:s,switchLayoutGroup:Y.useContext(eR),isPresent:e,safeToRemove:t})}const OV={pan:{Feature:mV},drag:{Feature:pV,ProjectionNode:WQ,MeasureLayout:nR}};function k5(i,e,t){const{props:s}=i;i.animationState&&s.whileHover&&i.animationState.setActive("whileHover",t==="Start");const r="onHover"+t,n=s[r];n&&dt.postRender(()=>n(e,gf(e)))}class _V extends Fo{mount(){const{current:e}=this.node;e&&(this.unmount=UN(e,(t,s)=>(k5(this.node,s,"Start"),r=>k5(this.node,r,"End"))))}unmount(){}}class vV extends Fo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=df($u(this.node.current,"focus",()=>this.onFocus()),$u(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function T5(i,e,t){const{props:s}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&s.whileTap&&i.animationState.setActive("whileTap",t==="Start");const r="onTap"+(t==="End"?"":t),n=s[r];n&&dt.postRender(()=>n(e,gf(e)))}class yV extends Fo{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:s}=this.node.props;this.unmount=JN(e,(r,n)=>(T5(this.node,n,"Start"),(o,{success:l})=>T5(this.node,o,l?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const O1=new WeakMap,l_=new WeakMap,bV=i=>{const e=O1.get(i.target);e&&e(i)},SV=i=>{i.forEach(bV)};function xV({root:i,...e}){const t=i||document;l_.has(t)||l_.set(t,{});const s=l_.get(t),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(SV,{root:i,...e})),s[r]}function wV(i,e,t){const s=xV(e);return O1.set(i,t),s.observe(i),()=>{O1.delete(i),s.unobserve(i)}}const CV={some:0,all:1};class kV extends Fo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:s,amount:r="some",once:n}=e,o={root:t?t.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:CV[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:m}=this.node.getProps(),g=u?d:m;g&&g(c)};return wV(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(TV(e,t))&&this.startObserver()}unmount(){}}function TV({viewport:i={}},{viewport:e={}}={}){return t=>i[t]!==e[t]}const AV={inView:{Feature:kV},tap:{Feature:yV},focus:{Feature:vV},hover:{Feature:_V}},MV={layout:{ProjectionNode:WQ,MeasureLayout:nR}},EV={...JX,...AV,...OV,...MV},oR=YX(EV,HX);function PV({roadmap:i,state:e,todos:t}){var m;const{connected:s}=ff(),r=(i==null?void 0:i.progress_percent)??0,n=(i==null?void 0:i.current_phase)??(e==null?void 0:e.currentPhase)??"--",o=((m=i==null?void 0:i.phases.find(g=>g.number===i.current_phase))==null?void 0:m.name)??"",l=(e==null?void 0:e.blockers.filter(g=>!g.includes("RESOLVED")).length)??0,c=(t==null?void 0:t.pending.length)??0,u=(i==null?void 0:i.completed_phases)??0,d=(i==null?void 0:i.phase_count)??0;return M.jsxs("div",{className:"border-b border-border pb-6",children:[M.jsxs("div",{className:"flex items-center justify-between mb-4",children:[M.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted-foreground",children:"Milestone Progress"}),M.jsxs("div",{className:"flex items-center gap-4",children:[M.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums",children:[u,"/",d," phases"]}),M.jsx("span",{className:`inline-block h-1.5 w-1.5 ${s?"bg-success":"bg-danger"}`,title:s?"Connected":"Disconnected"})]})]}),M.jsx("div",{className:"h-px w-full bg-muted mb-5",children:M.jsx(oR.div,{className:"h-full bg-accent",initial:{width:0},animate:{width:`${r}%`},transition:{duration:.6,ease:"easeOut"}})}),M.jsxs("div",{className:"flex items-end gap-10",children:[M.jsxs("div",{children:[M.jsx("span",{className:"font-mono text-3xl font-bold tabular-nums text-foreground leading-none",children:r}),M.jsx("span",{className:"font-mono text-sm text-muted-foreground ml-1",children:"%"})]}),M.jsxs("div",{className:"border-l border-border pl-10",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Current"}),M.jsxs("div",{className:"flex items-baseline gap-2",children:[M.jsx("span",{className:"font-mono text-sm font-bold text-accent",children:n}),M.jsx("span",{className:"text-sm text-foreground/80",children:o})]})]}),M.jsxs("div",{className:"ml-auto flex items-end gap-8",children:[M.jsxs("div",{className:"text-right",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Blockers"}),M.jsx("span",{className:`font-mono text-xl font-bold tabular-nums ${l>0?"text-danger":"text-muted-foreground"}`,children:l})]}),M.jsxs("div",{className:"text-right",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Todos"}),M.jsx("span",{className:`font-mono text-xl font-bold tabular-nums ${c>0?"text-warning":"text-muted-foreground"}`,children:c})]})]})]})]})}function A5(i){switch(i){case"complete":return"bg-success";case"partial":return"bg-accent";default:return"bg-muted-foreground"}}function QV({phaseName:i,phaseNumber:e,completedPlans:t,totalPlans:s,status:r,roadmapComplete:n,isCurrent:o,onClick:l,onToggleComplete:c}){const u=s>0?Math.round(t/s*100):0;return M.jsxs("button",{type:"button",onClick:()=>l(e),className:`group w-full text-left transition-colors border-b border-border ${o?"bg-card-hover border-l-2 border-l-accent":"hover:bg-card-hover border-l-2 border-l-transparent"}`,children:[M.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[c?M.jsx("input",{type:"checkbox",checked:n,onChange:d=>{d.stopPropagation(),c(e,d.target.checked)},onClick:d=>d.stopPropagation(),className:"h-3 w-3 shrink-0 cursor-pointer accent-accent",title:n?"Mark incomplete":"Mark complete"}):M.jsx("span",{className:`inline-block h-1.5 w-1.5 shrink-0 ${A5(r)}`}),M.jsx("span",{className:`font-mono text-xs font-bold tabular-nums ${o?"text-accent":"text-muted-foreground"}`,children:e}),M.jsx("span",{className:"truncate text-xs text-foreground/90",children:i}),M.jsxs("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground tabular-nums",children:[t,"/",s]})]}),M.jsx("div",{className:"h-px w-full bg-muted",children:M.jsx(oR.div,{className:`h-full ${A5(r)}`,initial:{width:0},animate:{width:`${u}%`},transition:{duration:.5,ease:"easeOut"}})})]})}function RV({phases:i,currentPhase:e,onPhaseClick:t,onToggleComplete:s}){return M.jsxs("div",{className:"flex flex-col gap-1",children:[M.jsxs("div",{className:"flex items-center justify-between px-4 pb-2",children:[M.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground",children:"Phases"}),M.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:i.length})]}),M.jsx("div",{className:"flex flex-col gap-1",children:i.length===0?M.jsxs("div",{className:"flex flex-col items-center gap-3 px-4 py-10 text-center",children:[M.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:"No project initialized yet."}),M.jsxs("span",{className:"font-mono text-xs text-muted-foreground",children:["Run"," ",M.jsx("code",{className:"rounded-sm bg-muted px-1.5 py-0.5 text-accent",children:"/maxsim:new-project"})," ","in Claude Code to get started."]})]}):i.map(r=>M.jsx(QV,{phaseNumber:r.number,phaseName:r.name,completedPlans:r.summaryCount,totalPlans:r.planCount,status:r.diskStatus,roadmapComplete:r.roadmapComplete,isCurrent:r.number===e,onClick:t,onToggleComplete:s},r.number))})]})}function aR(i){var e,t,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=aR(i[e]))&&(s&&(s+=" "),s+=t)}else for(t in i)i[t]&&(s&&(s+=" "),s+=t);return s}function LV(){for(var i,e,t=0,s="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=aR(i))&&(s&&(s+=" "),s+=e);return s}const $V=(i,e)=>{const t=new Array(i.length+e.length);for(let s=0;s<i.length;s++)t[s]=i[s];for(let s=0;s<e.length;s++)t[i.length+s]=e[s];return t},BV=(i,e)=>({classGroupId:i,validator:e}),lR=(i=new Map,e=null,t)=>({nextPart:i,validators:e,classGroupId:t}),_m="-",M5=[],DV="arbitrary..",zV=i=>{const e=XV(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=i;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return NV(o);const l=o.split(_m),c=l[0]===""&&l.length>1?1:0;return hR(l,c,e)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=s[o],u=t[o];return c?u?$V(u,c):c:u||M5}return t[o]||M5}}},hR=(i,e,t)=>{if(i.length-e===0)return t.classGroupId;const r=i[e],n=t.nextPart.get(r);if(n){const u=hR(i,e+1,n);if(u)return u}const o=t.validators;if(o===null)return;const l=e===0?i.join(_m):i.slice(e).join(_m),c=o.length;for(let u=0;u<c;u++){const d=o[u];if(d.validator(l))return d.classGroupId}},NV=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=i.slice(1,-1),t=e.indexOf(":"),s=e.slice(0,t);return s?DV+s:void 0})(),XV=i=>{const{theme:e,classGroups:t}=i;return VV(t,e)},VV=(i,e)=>{const t=lR();for(const s in i){const r=i[s];Zb(r,t,s,e)}return t},Zb=(i,e,t,s)=>{const r=i.length;for(let n=0;n<r;n++){const o=i[n];ZV(o,e,t,s)}},ZV=(i,e,t,s)=>{if(typeof i=="string"){jV(i,e,t);return}if(typeof i=="function"){IV(i,e,t,s);return}qV(i,e,t,s)},jV=(i,e,t)=>{const s=i===""?e:cR(e,i);s.classGroupId=t},IV=(i,e,t,s)=>{if(WV(i)){Zb(i(s),e,t,s);return}e.validators===null&&(e.validators=[]),e.validators.push(BV(t,i))},qV=(i,e,t,s)=>{const r=Object.entries(i),n=r.length;for(let o=0;o<n;o++){const[l,c]=r[o];Zb(c,cR(e,l),t,s)}},cR=(i,e)=>{let t=i;const s=e.split(_m),r=s.length;for(let n=0;n<r;n++){const o=s[n];let l=t.nextPart.get(o);l||(l=lR(),t.nextPart.set(o,l)),t=l}return t},WV=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,UV=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),s=Object.create(null);const r=(n,o)=>{t[n]=o,e++,e>i&&(e=0,s=t,t=Object.create(null))};return{get(n){let o=t[n];if(o!==void 0)return o;if((o=s[n])!==void 0)return r(n,o),o},set(n,o){n in t?t[n]=o:r(n,o)}}},_1="!",E5=":",YV=[],P5=(i,e,t,s,r)=>({modifiers:i,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:s,isExternal:r}),HV=i=>{const{prefix:e,experimentalParseClassName:t}=i;let s=r=>{const n=[];let o=0,l=0,c=0,u;const d=r.length;for(let b=0;b<d;b++){const x=r[b];if(o===0&&l===0){if(x===E5){n.push(r.slice(c,b)),c=b+1;continue}if(x==="/"){u=b;continue}}x==="["?o++:x==="]"?o--:x==="("?l++:x===")"&&l--}const m=n.length===0?r:r.slice(c);let g=m,_=!1;m.endsWith(_1)?(g=m.slice(0,-1),_=!0):m.startsWith(_1)&&(g=m.slice(1),_=!0);const y=u&&u>c?u-c:void 0;return P5(n,_,g,y)};if(e){const r=e+E5,n=s;s=o=>o.startsWith(r)?n(o.slice(r.length)):P5(YV,!1,o,void 0,!0)}if(t){const r=s;s=n=>t({className:n,parseClassName:r})}return s},FV=i=>{const e=new Map;return i.orderSensitiveModifiers.forEach((t,s)=>{e.set(t,1e6+s)}),t=>{const s=[];let r=[];for(let n=0;n<t.length;n++){const o=t[n],l=o[0]==="[",c=e.has(o);l||c?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(o)):r.push(o)}return r.length>0&&(r.sort(),s.push(...r)),s}},GV=i=>({cache:UV(i.cacheSize),parseClassName:HV(i),sortModifiers:FV(i),...zV(i)}),KV=/\s+/,JV=(i,e)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:n}=e,o=[],l=i.trim().split(KV);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:m,modifiers:g,hasImportantModifier:_,baseClassName:y,maybePostfixModifierPosition:b}=t(d);if(m){c=d+(c.length>0?" "+c:c);continue}let x=!!b,w=s(x?y.substring(0,b):y);if(!w){if(!x){c=d+(c.length>0?" "+c:c);continue}if(w=s(y),!w){c=d+(c.length>0?" "+c:c);continue}x=!1}const k=g.length===0?"":g.length===1?g[0]:n(g).join(":"),C=_?k+_1:k,A=C+w;if(o.indexOf(A)>-1)continue;o.push(A);const P=r(w,x);for(let E=0;E<P.length;++E){const $=P[E];o.push(C+$)}c=d+(c.length>0?" "+c:c)}return c},eZ=(...i)=>{let e=0,t,s,r="";for(;e<i.length;)(t=i[e++])&&(s=uR(t))&&(r&&(r+=" "),r+=s);return r},uR=i=>{if(typeof i=="string")return i;let e,t="";for(let s=0;s<i.length;s++)i[s]&&(e=uR(i[s]))&&(t&&(t+=" "),t+=e);return t},tZ=(i,...e)=>{let t,s,r,n;const o=c=>{const u=e.reduce((d,m)=>m(d),i());return t=GV(u),s=t.cache.get,r=t.cache.set,n=l,l(c)},l=c=>{const u=s(c);if(u)return u;const d=JV(c,t);return r(c,d),d};return n=o,(...c)=>n(eZ(...c))},iZ=[],Jt=i=>{const e=t=>t[i]||iZ;return e.isThemeGetter=!0,e},fR=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dR=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sZ=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nZ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bo=i=>sZ.test(i),Ne=i=>!!i&&!Number.isNaN(Number(i)),So=i=>!!i&&Number.isInteger(Number(i)),h_=i=>i.endsWith("%")&&Ne(i.slice(0,-1)),Tn=i=>rZ.test(i),pR=()=>!0,hZ=i=>nZ.test(i)&&!oZ.test(i),jb=()=>!1,cZ=i=>aZ.test(i),uZ=i=>lZ.test(i),fZ=i=>!Se(i)&&!we(i),dZ=i=>Go(i,OR,jb),Se=i=>fR.test(i),_a=i=>Go(i,_R,hZ),Q5=i=>Go(i,bZ,Ne),pZ=i=>Go(i,yR,pR),mZ=i=>Go(i,vR,jb),R5=i=>Go(i,mR,jb),gZ=i=>Go(i,gR,uZ),Kd=i=>Go(i,bR,cZ),we=i=>dR.test(i),Nc=i=>Ha(i,_R),OZ=i=>Ha(i,vR),L5=i=>Ha(i,mR),_Z=i=>Ha(i,OR),vZ=i=>Ha(i,gR),Jd=i=>Ha(i,bR,!0),yZ=i=>Ha(i,yR,!0),Go=(i,e,t)=>{const s=fR.exec(i);return s?s[1]?e(s[1]):t(s[2]):!1},Ha=(i,e,t=!1)=>{const s=dR.exec(i);return s?s[1]?e(s[1]):t:!1},mR=i=>i==="position"||i==="percentage",gR=i=>i==="image"||i==="url",OR=i=>i==="length"||i==="size"||i==="bg-size",_R=i=>i==="length",bZ=i=>i==="number",vR=i=>i==="family-name",yR=i=>i==="number"||i==="weight",bR=i=>i==="shadow",SZ=()=>{const i=Jt("color"),e=Jt("font"),t=Jt("text"),s=Jt("font-weight"),r=Jt("tracking"),n=Jt("leading"),o=Jt("breakpoint"),l=Jt("container"),c=Jt("spacing"),u=Jt("radius"),d=Jt("shadow"),m=Jt("inset-shadow"),g=Jt("text-shadow"),_=Jt("drop-shadow"),y=Jt("blur"),b=Jt("perspective"),x=Jt("aspect"),w=Jt("ease"),k=Jt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...A(),we,Se],E=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],z=()=>[we,Se,c],I=()=>[bo,"full","auto",...z()],se=()=>[So,"none","subgrid",we,Se],F=()=>["auto",{span:["full",So,we,Se]},So,we,Se],R=()=>[So,"auto",we,Se],L=()=>["auto","min","max","fr",we,Se],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...z()],X=()=>[bo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],W=()=>[bo,"screen","full","dvw","lvw","svw","min","max","fit",...z()],U=()=>[bo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],q=()=>[i,we,Se],D=()=>[...A(),L5,R5,{position:[we,Se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",_Z,dZ,{size:[we,Se]}],ce=()=>[h_,Nc,_a],he=()=>["","none","full",u,we,Se],de=()=>["",Ne,Nc,_a],ge=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Ne,h_,L5,R5],pt=()=>["","none",y,we,Se],Ft=()=>["none",Ne,we,Se],Gt=()=>["none",Ne,we,Se],oi=()=>[Ne,we,Se],Pe=()=>[bo,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tn],breakpoint:[Tn],color:[pR],container:[Tn],"drop-shadow":[Tn],ease:["in","out","in-out"],font:[fZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tn],shadow:[Tn],spacing:["px",Ne],text:[Tn],"text-shadow":[Tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bo,Se,we,x]}],container:["container"],columns:[{columns:[Ne,Se,we,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[So,"auto",we,Se]}],basis:[{basis:[bo,"full","auto",l,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,bo,"auto","initial","none",Se]}],grow:[{grow:["",Ne,we,Se]}],shrink:[{shrink:["",Ne,we,Se]}],order:[{order:[So,"first","last","none",we,Se]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",t,Nc,_a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,yZ,pZ]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",h_,Se]}],"font-family":[{font:[OZ,mZ,e]}],"font-features":[{"font-features":[Se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,we,Se]}],"line-clamp":[{"line-clamp":[Ne,"none",we,Q5]}],leading:[{leading:[n,...z()]}],"list-image":[{"list-image":["none",we,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",we,_a]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Ne,"auto",we,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},So,we,Se],radial:["",we,Se],conic:[So,we,Se]},vZ,gZ]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-bs":[{"border-bs":q()}],"border-color-be":[{"border-be":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,we,Se]}],"outline-w":[{outline:["",Ne,Nc,_a]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",d,Jd,Kd]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",m,Jd,Kd]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Ne,_a]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",g,Jd,Kd]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Ne,we,Se]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[we,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,Se]}],filter:[{filter:["","none",we,Se]}],blur:[{blur:pt()}],brightness:[{brightness:[Ne,we,Se]}],contrast:[{contrast:[Ne,we,Se]}],"drop-shadow":[{"drop-shadow":["","none",_,Jd,Kd]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Ne,we,Se]}],"hue-rotate":[{"hue-rotate":[Ne,we,Se]}],invert:[{invert:["",Ne,we,Se]}],saturate:[{saturate:[Ne,we,Se]}],sepia:[{sepia:["",Ne,we,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",we,Se]}],"backdrop-blur":[{"backdrop-blur":pt()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,we,Se]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,we,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,we,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,we,Se]}],"backdrop-invert":[{"backdrop-invert":["",Ne,we,Se]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,we,Se]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,we,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,we,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",we,Se]}],ease:[{ease:["linear","initial",w,we,Se]}],delay:[{delay:[Ne,we,Se]}],animate:[{animate:["none",k,we,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,we,Se]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ft()}],"rotate-x":[{"rotate-x":Ft()}],"rotate-y":[{"rotate-y":Ft()}],"rotate-z":[{"rotate-z":Ft()}],scale:[{scale:Gt()}],"scale-x":[{"scale-x":Gt()}],"scale-y":[{"scale-y":Gt()}],"scale-z":[{"scale-z":Gt()}],"scale-3d":["scale-3d"],skew:[{skew:oi()}],"skew-x":[{"skew-x":oi()}],"skew-y":[{"skew-y":oi()}],transform:[{transform:[we,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,Se]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Ne,Nc,_a,Q5]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xZ=tZ(SZ);function vt(...i){return xZ(LV(i))}function wZ(i){const[e,t]=Y.useState(null),[s,r]=Y.useState(!1),[n,o]=Y.useState(null),{lastChange:l}=ff(),c=Y.useCallback(async()=>{if(!i){t(null),r(!1),o(null);return}r(!0),o(null);try{const u=await fetch(`/api/phase/${encodeURIComponent(i)}`);if(!u.ok){const m=await u.json().catch(()=>({}));throw new Error(m.error||`Failed to fetch phase ${i} (${u.status})`)}const d=await u.json();t(d)}catch(u){o(u instanceof Error?u.message:"Unknown error")}finally{r(!1)}},[i]);return Y.useEffect(()=>{c()},[c]),Y.useEffect(()=>{l>0&&c()},[l,c]),{plans:(e==null?void 0:e.plans)??[],context:(e==null?void 0:e.context)??null,research:(e==null?void 0:e.research)??null,loading:s,error:n,refetch:c}}function CZ({tasks:i,planPath:e,planContent:t,onContentChange:s}){const r=Y.useCallback(async n=>{const o=i[n];if(!o)return;let l=t;const c=o.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(`<name>\\s*${c}\\s*</name>`).exec(l);if(d){const m=l.slice(d.index),g=m.match(/<done>([\s\S]*?)<\/done>/);if(g){const _=g[1],y=d.index+m.indexOf(g[0]),b=y+g[0].length,x=/^\s*\[x\]/i.test(_);let w;x?w=_.replace(/^\s*\[x\]\s*/i,""):w=`[x] ${_.trim()}`,l=l.slice(0,y)+`<done>${w}</done>`+l.slice(b)}}if(l!==t){s(l);try{const g=e.replace(/^\.planning[\\/]/,"").split(/[\\/]/);await fetch(`/api/plan/${g.join("/")}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:l})})}catch(m){console.error("[task-list] Failed to write checkbox change:",m)}}},[i,e,t,s]);return i.length===0?M.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No tasks defined"}):M.jsx("div",{className:"space-y-1",children:i.map((n,o)=>M.jsxs("div",{className:vt("flex items-start gap-2 py-1 px-2 rounded-md transition-colors","hover:bg-muted/50",n.completed&&"opacity-60"),children:[M.jsx("button",{type:"button",onClick:()=>r(o),className:vt("mt-0.5 flex-shrink-0 w-4 h-4 rounded-sm border transition-colors","focus:outline-none focus:ring-2 focus:ring-accent/50",n.completed?"bg-success border-success text-background":"border-muted-foreground hover:border-accent"),"aria-label":`Toggle ${n.name}`,children:n.completed&&M.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",children:M.jsx("path",{d:"M3 8l3 3 7-7"})})}),M.jsxs("div",{className:"flex-1 min-w-0",children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:vt("text-sm font-sans",n.completed&&"line-through text-muted-foreground"),children:n.name}),M.jsx("span",{className:vt("text-xs px-1.5 py-0.5 rounded-sm font-mono",n.type.startsWith("checkpoint")?"bg-warning/20 text-warning":"bg-muted text-muted-foreground"),children:n.type})]}),n.files.length>0&&M.jsx("div",{className:"mt-0.5",children:n.files.map((l,c)=>M.jsx("span",{className:"text-xs font-mono text-muted-foreground mr-2",children:l},c))})]})]},o))})}function kZ({plan:i,onEdit:e}){const[t,s]=Y.useState(i.content),r=i.frontmatter,n=r.plan??"?",o=r.wave,l=r.autonomous,c=r.depends_on??[],u=r.files_modified??[];let d="";const m=i.content.match(/<objective>([\s\S]*?)<\/objective>/);if(m){const y=m[1].trim().split(`
|
|
49
|
+
`).replace(Y6,"")}function wk(a,h){return h=xk(h),xk(a)===h}function rt(a,h,f,p,O,v){switch(f){case"children":typeof p=="string"?h==="body"||h==="textarea"&&p===""||al(a,p):(typeof p=="number"||typeof p=="bigint")&&h!=="body"&&al(a,""+p);break;case"className":zf(a,"class",p);break;case"tabIndex":zf(a,"tabindex",p);break;case"dir":case"role":case"viewBox":case"width":case"height":zf(a,f,p);break;case"style":wx(a,p,v);break;case"data":if(h!=="object"){zf(a,"data",p);break}case"src":case"href":if(p===""&&(h!=="a"||f!=="href")){a.removeAttribute(f);break}if(p==null||typeof p=="function"||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=Xf(""+p),a.setAttribute(f,p);break;case"action":case"formAction":if(typeof p=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof v=="function"&&(f==="formAction"?(h!=="input"&&rt(a,h,"name",O.name,O,null),rt(a,h,"formEncType",O.formEncType,O,null),rt(a,h,"formMethod",O.formMethod,O,null),rt(a,h,"formTarget",O.formTarget,O,null)):(rt(a,h,"encType",O.encType,O,null),rt(a,h,"method",O.method,O,null),rt(a,h,"target",O.target,O,null)));if(p==null||typeof p=="symbol"||typeof p=="boolean"){a.removeAttribute(f);break}p=Xf(""+p),a.setAttribute(f,p);break;case"onClick":p!=null&&(a.onclick=cn);break;case"onScroll":p!=null&&Ze("scroll",a);break;case"onScrollEnd":p!=null&&Ze("scrollend",a);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(s(61));if(f=p.__html,f!=null){if(O.children!=null)throw Error(s(60));a.innerHTML=f}}break;case"multiple":a.multiple=p&&typeof p!="function"&&typeof p!="symbol";break;case"muted":a.muted=p&&typeof p!="function"&&typeof p!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(p==null||typeof p=="function"||typeof p=="boolean"||typeof p=="symbol"){a.removeAttribute("xlink:href");break}f=Xf(""+p),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""+p):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":p&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":p===!0?a.setAttribute(f,""):p!==!1&&p!=null&&typeof p!="function"&&typeof p!="symbol"?a.setAttribute(f,p):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":p!=null&&typeof p!="function"&&typeof p!="symbol"&&!isNaN(p)&&1<=p?a.setAttribute(f,p):a.removeAttribute(f);break;case"rowSpan":case"start":p==null||typeof p=="function"||typeof p=="symbol"||isNaN(p)?a.removeAttribute(f):a.setAttribute(f,p);break;case"popover":Ze("beforetoggle",a),Ze("toggle",a),Df(a,"popover",p);break;case"xlinkActuate":hn(a,"http://www.w3.org/1999/xlink","xlink:actuate",p);break;case"xlinkArcrole":hn(a,"http://www.w3.org/1999/xlink","xlink:arcrole",p);break;case"xlinkRole":hn(a,"http://www.w3.org/1999/xlink","xlink:role",p);break;case"xlinkShow":hn(a,"http://www.w3.org/1999/xlink","xlink:show",p);break;case"xlinkTitle":hn(a,"http://www.w3.org/1999/xlink","xlink:title",p);break;case"xlinkType":hn(a,"http://www.w3.org/1999/xlink","xlink:type",p);break;case"xmlBase":hn(a,"http://www.w3.org/XML/1998/namespace","xml:base",p);break;case"xmlLang":hn(a,"http://www.w3.org/XML/1998/namespace","xml:lang",p);break;case"xmlSpace":hn(a,"http://www.w3.org/XML/1998/namespace","xml:space",p);break;case"is":Df(a,"is",p);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=S4.get(f)||f,Df(a,f,p))}}function S0(a,h,f,p,O,v){switch(f){case"style":wx(a,p,v);break;case"dangerouslySetInnerHTML":if(p!=null){if(typeof p!="object"||!("__html"in p))throw Error(s(61));if(f=p.__html,f!=null){if(O.children!=null)throw Error(s(60));a.innerHTML=f}}break;case"children":typeof p=="string"?al(a,p):(typeof p=="number"||typeof p=="bigint")&&al(a,""+p);break;case"onScroll":p!=null&&Ze("scroll",a);break;case"onScrollEnd":p!=null&&Ze("scrollend",a);break;case"onClick":p!=null&&(a.onclick=cn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mx.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(O=f.endsWith("Capture"),h=f.slice(2,O?f.length-7:void 0),v=a[rs]||null,v=v!=null?v[f]:null,typeof v=="function"&&a.removeEventListener(h,v,O),typeof p=="function")){typeof v!="function"&&v!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(h,p,O);break e}f in a?a[f]=p:p===!0?a.setAttribute(f,""):Df(a,f,p)}}}function Ai(a,h,f){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",a),Ze("load",a);var p=!1,O=!1,v;for(v in f)if(f.hasOwnProperty(v)){var S=f[v];if(S!=null)switch(v){case"src":p=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:rt(a,h,v,S,f,null)}}O&&rt(a,h,"srcSet",f.srcSet,f,null),p&&rt(a,h,"src",f.src,f,null);return;case"input":Ze("invalid",a);var T=v=S=O=null,V=null,J=null;for(p in f)if(f.hasOwnProperty(p)){var re=f[p];if(re!=null)switch(p){case"name":O=re;break;case"type":S=re;break;case"checked":V=re;break;case"defaultChecked":J=re;break;case"value":v=re;break;case"defaultValue":T=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(s(137,h));break;default:rt(a,h,p,re,f,null)}}yx(a,v,T,V,J,S,O,!1);return;case"select":Ze("invalid",a),p=S=v=null;for(O in f)if(f.hasOwnProperty(O)&&(T=f[O],T!=null))switch(O){case"value":v=T;break;case"defaultValue":S=T;break;case"multiple":p=T;default:rt(a,h,O,T,f,null)}h=v,f=S,a.multiple=!!p,h!=null?ol(a,!!p,h,!1):f!=null&&ol(a,!!p,f,!0);return;case"textarea":Ze("invalid",a),v=O=p=null;for(S in f)if(f.hasOwnProperty(S)&&(T=f[S],T!=null))switch(S){case"value":p=T;break;case"defaultValue":O=T;break;case"children":v=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(s(91));break;default:rt(a,h,S,T,f,null)}Sx(a,p,O,v);return;case"option":for(V in f)if(f.hasOwnProperty(V)&&(p=f[V],p!=null))switch(V){case"selected":a.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:rt(a,h,V,p,f,null)}return;case"dialog":Ze("beforetoggle",a),Ze("toggle",a),Ze("cancel",a),Ze("close",a);break;case"iframe":case"object":Ze("load",a);break;case"video":case"audio":for(p=0;p<Tc.length;p++)Ze(Tc[p],a);break;case"image":Ze("error",a),Ze("load",a);break;case"details":Ze("toggle",a);break;case"embed":case"source":case"link":Ze("error",a),Ze("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(J in f)if(f.hasOwnProperty(J)&&(p=f[J],p!=null))switch(J){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,h));default:rt(a,h,J,p,f,null)}return;default:if(Bg(h)){for(re in f)f.hasOwnProperty(re)&&(p=f[re],p!==void 0&&S0(a,h,re,p,f,void 0));return}}for(T in f)f.hasOwnProperty(T)&&(p=f[T],p!=null&&rt(a,h,T,p,f,null))}function H6(a,h,f,p){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,v=null,S=null,T=null,V=null,J=null,re=null;for(te in f){var ae=f[te];if(f.hasOwnProperty(te)&&ae!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":V=ae;default:p.hasOwnProperty(te)||rt(a,h,te,null,p,ae)}}for(var ee in p){var te=p[ee];if(ae=f[ee],p.hasOwnProperty(ee)&&(te!=null||ae!=null))switch(ee){case"type":v=te;break;case"name":O=te;break;case"checked":J=te;break;case"defaultChecked":re=te;break;case"value":S=te;break;case"defaultValue":T=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(s(137,h));break;default:te!==ae&&rt(a,h,ee,te,p,ae)}}Lg(a,S,T,V,J,re,v,O);return;case"select":te=S=T=ee=null;for(v in f)if(V=f[v],f.hasOwnProperty(v)&&V!=null)switch(v){case"value":break;case"multiple":te=V;default:p.hasOwnProperty(v)||rt(a,h,v,null,p,V)}for(O in p)if(v=p[O],V=f[O],p.hasOwnProperty(O)&&(v!=null||V!=null))switch(O){case"value":ee=v;break;case"defaultValue":T=v;break;case"multiple":S=v;default:v!==V&&rt(a,h,O,v,p,V)}h=T,f=S,p=te,ee!=null?ol(a,!!f,ee,!1):!!p!=!!f&&(h!=null?ol(a,!!f,h,!0):ol(a,!!f,f?[]:"",!1));return;case"textarea":te=ee=null;for(T in f)if(O=f[T],f.hasOwnProperty(T)&&O!=null&&!p.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:rt(a,h,T,null,p,O)}for(S in p)if(O=p[S],v=f[S],p.hasOwnProperty(S)&&(O!=null||v!=null))switch(S){case"value":ee=O;break;case"defaultValue":te=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(s(91));break;default:O!==v&&rt(a,h,S,O,p,v)}bx(a,ee,te);return;case"option":for(var be in f)if(ee=f[be],f.hasOwnProperty(be)&&ee!=null&&!p.hasOwnProperty(be))switch(be){case"selected":a.selected=!1;break;default:rt(a,h,be,null,p,ee)}for(V in p)if(ee=p[V],te=f[V],p.hasOwnProperty(V)&&ee!==te&&(ee!=null||te!=null))switch(V){case"selected":a.selected=ee&&typeof ee!="function"&&typeof ee!="symbol";break;default:rt(a,h,V,ee,p,te)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in f)ee=f[Ee],f.hasOwnProperty(Ee)&&ee!=null&&!p.hasOwnProperty(Ee)&&rt(a,h,Ee,null,p,ee);for(J in p)if(ee=p[J],te=f[J],p.hasOwnProperty(J)&&ee!==te&&(ee!=null||te!=null))switch(J){case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(s(137,h));break;default:rt(a,h,J,ee,p,te)}return;default:if(Bg(h)){for(var nt in f)ee=f[nt],f.hasOwnProperty(nt)&&ee!==void 0&&!p.hasOwnProperty(nt)&&S0(a,h,nt,void 0,p,ee);for(re in p)ee=p[re],te=f[re],!p.hasOwnProperty(re)||ee===te||ee===void 0&&te===void 0||S0(a,h,re,ee,p,te);return}}for(var H in f)ee=f[H],f.hasOwnProperty(H)&&ee!=null&&!p.hasOwnProperty(H)&&rt(a,h,H,null,p,ee);for(ae in p)ee=p[ae],te=f[ae],!p.hasOwnProperty(ae)||ee===te||ee==null&&te==null||rt(a,h,ae,ee,p,te)}function Ck(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F6(){if(typeof performance.getEntriesByType=="function"){for(var a=0,h=0,f=performance.getEntriesByType("resource"),p=0;p<f.length;p++){var O=f[p],v=O.transferSize,S=O.initiatorType,T=O.duration;if(v&&T&&Ck(S)){for(S=0,T=O.responseEnd,p+=1;p<f.length;p++){var V=f[p],J=V.startTime;if(J>T)break;var re=V.transferSize,ae=V.initiatorType;re&&Ck(ae)&&(V=V.responseEnd,S+=re*(V<T?1:(T-J)/(V-J)))}if(--p,h+=8*(v+S)/(O.duration/1e3),a++,10<a)break}}if(0<a)return h/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var x0=null,w0=null;function $d(a){return a.nodeType===9?a:a.ownerDocument}function kk(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tk(a,h){if(a===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&h==="foreignObject"?0:a}function C0(a,h){return a==="textarea"||a==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var k0=null;function G6(){var a=window.event;return a&&a.type==="popstate"?a===k0?!1:(k0=a,!0):(k0=null,!1)}var Ak=typeof setTimeout=="function"?setTimeout:void 0,K6=typeof clearTimeout=="function"?clearTimeout:void 0,Mk=typeof Promise=="function"?Promise:void 0,J6=typeof queueMicrotask=="function"?queueMicrotask:typeof Mk<"u"?function(a){return Mk.resolve(null).then(a).catch(ez)}:Ak;function ez(a){setTimeout(function(){throw a})}function mo(a){return a==="head"}function Ek(a,h){var f=h,p=0;do{var O=f.nextSibling;if(a.removeChild(f),O&&O.nodeType===8)if(f=O.data,f==="/$"||f==="/&"){if(p===0){a.removeChild(O),zl(h);return}p--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")p++;else if(f==="html")Mc(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,Mc(f);for(var v=f.firstChild;v;){var S=v.nextSibling,T=v.nodeName;v[Uh]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&v.rel.toLowerCase()==="stylesheet"||f.removeChild(v),v=S}}else f==="body"&&Mc(a.ownerDocument.body);f=O}while(f);zl(h)}function Pk(a,h){var f=a;a=0;do{var p=f.nextSibling;if(f.nodeType===1?h?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(h?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),p&&p.nodeType===8)if(f=p.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=p}while(f)}function T0(a){var h=a.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var f=h;switch(h=h.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":T0(f),Qg(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function tz(a,h,f,p){for(;a.nodeType===1;){var O=f;if(a.nodeName.toLowerCase()!==h.toLowerCase()){if(!p&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(p){if(!a[Uh])switch(h){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(v=a.getAttribute("rel"),v==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(v!==O.rel||a.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||a.getAttribute("title")!==(O.title==null?null:O.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(O.src==null?null:O.src)||a.getAttribute("type")!==(O.type==null?null:O.type)||a.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(h==="input"&&a.type==="hidden"){var v=O.name==null?null:""+O.name;if(O.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=Us(a.nextSibling),a===null)break}return null}function iz(a,h,f){if(h==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=Us(a.nextSibling),a===null))return null;return a}function Qk(a,h){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Us(a.nextSibling),a===null))return null;return a}function A0(a){return a.data==="$?"||a.data==="$~"}function M0(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function sz(a,h){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=h;else if(a.data!=="$?"||f.readyState!=="loading")h();else{var p=function(){h(),f.removeEventListener("DOMContentLoaded",p)};f.addEventListener("DOMContentLoaded",p),a._reactRetry=p}}function Us(a){for(;a!=null;a=a.nextSibling){var h=a.nodeType;if(h===1||h===3)break;if(h===8){if(h=a.data,h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"||h==="F!"||h==="F")break;if(h==="/$"||h==="/&")return null}}return a}var E0=null;function Rk(a){a=a.nextSibling;for(var h=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(h===0)return Us(a.nextSibling);h--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||h++}a=a.nextSibling}return null}function Lk(a){a=a.previousSibling;for(var h=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(h===0)return a;h--}else f!=="/$"&&f!=="/&"||h++}a=a.previousSibling}return null}function $k(a,h,f){switch(h=$d(f),a){case"html":if(a=h.documentElement,!a)throw Error(s(452));return a;case"head":if(a=h.head,!a)throw Error(s(453));return a;case"body":if(a=h.body,!a)throw Error(s(454));return a;default:throw Error(s(451))}}function Mc(a){for(var h=a.attributes;h.length;)a.removeAttributeNode(h[0]);Qg(a)}var Ys=new Map,Bk=new Set;function Bd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var kn=X.d;X.d={f:rz,r:nz,D:oz,C:az,L:lz,m:hz,X:uz,S:cz,M:fz};function rz(){var a=kn.f(),h=Td();return a||h}function nz(a){var h=sl(a);h!==null&&h.tag===5&&h.type==="form"?Jw(h):kn.r(a)}var $l=typeof document>"u"?null:document;function Dk(a,h,f){var p=$l;if(p&&typeof h=="string"&&h){var O=Xs(h);O='link[rel="'+a+'"][href="'+O+'"]',typeof f=="string"&&(O+='[crossorigin="'+f+'"]'),Bk.has(O)||(Bk.add(O),a={rel:a,crossOrigin:f,href:h},p.querySelector(O)===null&&(h=p.createElement("link"),Ai(h,"link",a),ai(h),p.head.appendChild(h)))}}function oz(a){kn.D(a),Dk("dns-prefetch",a,null)}function az(a,h){kn.C(a,h),Dk("preconnect",a,h)}function lz(a,h,f){kn.L(a,h,f);var p=$l;if(p&&a&&h){var O='link[rel="preload"][as="'+Xs(h)+'"]';h==="image"&&f&&f.imageSrcSet?(O+='[imagesrcset="'+Xs(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(O+='[imagesizes="'+Xs(f.imageSizes)+'"]')):O+='[href="'+Xs(a)+'"]';var v=O;switch(h){case"style":v=Bl(a);break;case"script":v=Dl(a)}Ys.has(v)||(a=m({rel:"preload",href:h==="image"&&f&&f.imageSrcSet?void 0:a,as:h},f),Ys.set(v,a),p.querySelector(O)!==null||h==="style"&&p.querySelector(Ec(v))||h==="script"&&p.querySelector(Pc(v))||(h=p.createElement("link"),Ai(h,"link",a),ai(h),p.head.appendChild(h)))}}function hz(a,h){kn.m(a,h);var f=$l;if(f&&a){var p=h&&typeof h.as=="string"?h.as:"script",O='link[rel="modulepreload"][as="'+Xs(p)+'"][href="'+Xs(a)+'"]',v=O;switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Dl(a)}if(!Ys.has(v)&&(a=m({rel:"modulepreload",href:a},h),Ys.set(v,a),f.querySelector(O)===null)){switch(p){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(Pc(v)))return}p=f.createElement("link"),Ai(p,"link",a),ai(p),f.head.appendChild(p)}}}function cz(a,h,f){kn.S(a,h,f);var p=$l;if(p&&a){var O=rl(p).hoistableStyles,v=Bl(a);h=h||"default";var S=O.get(v);if(!S){var T={loading:0,preload:null};if(S=p.querySelector(Ec(v)))T.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":h},f),(f=Ys.get(v))&&P0(a,f);var V=S=p.createElement("link");ai(V),Ai(V,"link",a),V._p=new Promise(function(J,re){V.onload=J,V.onerror=re}),V.addEventListener("load",function(){T.loading|=1}),V.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Dd(S,h,p)}S={type:"stylesheet",instance:S,count:1,state:T},O.set(v,S)}}}function uz(a,h){kn.X(a,h);var f=$l;if(f&&a){var p=rl(f).hoistableScripts,O=Dl(a),v=p.get(O);v||(v=f.querySelector(Pc(O)),v||(a=m({src:a,async:!0},h),(h=Ys.get(O))&&Q0(a,h),v=f.createElement("script"),ai(v),Ai(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},p.set(O,v))}}function fz(a,h){kn.M(a,h);var f=$l;if(f&&a){var p=rl(f).hoistableScripts,O=Dl(a),v=p.get(O);v||(v=f.querySelector(Pc(O)),v||(a=m({src:a,async:!0,type:"module"},h),(h=Ys.get(O))&&Q0(a,h),v=f.createElement("script"),ai(v),Ai(v,"link",a),f.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},p.set(O,v))}}function zk(a,h,f,p){var O=(O=de.current)?Bd(O):null;if(!O)throw Error(s(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(h=Bl(f.href),f=rl(O).hoistableStyles,p=f.get(h),p||(p={type:"style",instance:null,count:0,state:null},f.set(h,p)),p):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=Bl(f.href);var v=rl(O).hoistableStyles,S=v.get(a);if(S||(O=O.ownerDocument||O,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(a,S),(v=O.querySelector(Ec(a)))&&!v._p&&(S.instance=v,S.state.loading=5),Ys.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Ys.set(a,f),v||dz(O,a,f,S.state))),h&&p===null)throw Error(s(528,""));return S}if(h&&p!==null)throw Error(s(529,""));return null;case"script":return h=f.async,f=f.src,typeof f=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=Dl(f),f=rl(O).hoistableScripts,p=f.get(h),p||(p={type:"script",instance:null,count:0,state:null},f.set(h,p)),p):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,a))}}function Bl(a){return'href="'+Xs(a)+'"'}function Ec(a){return'link[rel="stylesheet"]['+a+"]"}function Nk(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function dz(a,h,f,p){a.querySelector('link[rel="preload"][as="style"]['+h+"]")?p.loading=1:(h=a.createElement("link"),p.preload=h,h.addEventListener("load",function(){return p.loading|=1}),h.addEventListener("error",function(){return p.loading|=2}),Ai(h,"link",f),ai(h),a.head.appendChild(h))}function Dl(a){return'[src="'+Xs(a)+'"]'}function Pc(a){return"script[async]"+a}function Xk(a,h,f){if(h.count++,h.instance===null)switch(h.type){case"style":var p=a.querySelector('style[data-href~="'+Xs(f.href)+'"]');if(p)return h.instance=p,ai(p),p;var O=m({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return p=(a.ownerDocument||a).createElement("style"),ai(p),Ai(p,"style",O),Dd(p,f.precedence,a),h.instance=p;case"stylesheet":O=Bl(f.href);var v=a.querySelector(Ec(O));if(v)return h.state.loading|=4,h.instance=v,ai(v),v;p=Nk(f),(O=Ys.get(O))&&P0(p,O),v=(a.ownerDocument||a).createElement("link"),ai(v);var S=v;return S._p=new Promise(function(T,V){S.onload=T,S.onerror=V}),Ai(v,"link",p),h.state.loading|=4,Dd(v,f.precedence,a),h.instance=v;case"script":return v=Dl(f.src),(O=a.querySelector(Pc(v)))?(h.instance=O,ai(O),O):(p=f,(O=Ys.get(v))&&(p=m({},f),Q0(p,O)),a=a.ownerDocument||a,O=a.createElement("script"),ai(O),Ai(O,"link",p),a.head.appendChild(O),h.instance=O);case"void":return null;default:throw Error(s(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(p=h.instance,h.state.loading|=4,Dd(p,f.precedence,a));return h.instance}function Dd(a,h,f){for(var p=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=p.length?p[p.length-1]:null,v=O,S=0;S<p.length;S++){var T=p[S];if(T.dataset.precedence===h)v=T;else if(v!==O)break}v?v.parentNode.insertBefore(a,v.nextSibling):(h=f.nodeType===9?f.head:f,h.insertBefore(a,h.firstChild))}function P0(a,h){a.crossOrigin==null&&(a.crossOrigin=h.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=h.referrerPolicy),a.title==null&&(a.title=h.title)}function Q0(a,h){a.crossOrigin==null&&(a.crossOrigin=h.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=h.referrerPolicy),a.integrity==null&&(a.integrity=h.integrity)}var zd=null;function Vk(a,h,f){if(zd===null){var p=new Map,O=zd=new Map;O.set(f,p)}else O=zd,p=O.get(f),p||(p=new Map,O.set(f,p));if(p.has(a))return p;for(p.set(a,null),f=f.getElementsByTagName(a),O=0;O<f.length;O++){var v=f[O];if(!(v[Uh]||v[wi]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var S=v.getAttribute(h)||"";S=a+S;var T=p.get(S);T?T.push(v):p.set(S,[v])}}return p}function Zk(a,h,f){a=a.ownerDocument||a,a.head.insertBefore(f,h==="title"?a.querySelector("head > title"):null)}function pz(a,h,f){if(f===1||h.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return a=h.disabled,typeof h.precedence=="string"&&a==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function jk(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function mz(a,h,f,p){if(f.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var O=Bl(p.href),v=h.querySelector(Ec(O));if(v){h=v._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(a.count++,a=Nd.bind(a),h.then(a,a)),f.state.loading|=4,f.instance=v,ai(v);return}v=h.ownerDocument||h,p=Nk(p),(O=Ys.get(O))&&P0(p,O),v=v.createElement("link"),ai(v);var S=v;S._p=new Promise(function(T,V){S.onload=T,S.onerror=V}),Ai(v,"link",p),f.instance=v}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,h),(h=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=Nd.bind(a),h.addEventListener("load",f),h.addEventListener("error",f))}}var R0=0;function gz(a,h){return a.stylesheets&&a.count===0&&Vd(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var p=setTimeout(function(){if(a.stylesheets&&Vd(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},6e4+h);0<a.imgBytes&&R0===0&&(R0=62500*F6());var O=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Vd(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>R0?50:800)+h);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(p),clearTimeout(O)}}:null}function Nd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Xd=null;function Vd(a,h){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Xd=new Map,h.forEach(Oz,a),Xd=null,Nd.call(a))}function Oz(a,h){if(!(h.state.loading&4)){var f=Xd.get(a);if(f)var p=f.get(null);else{f=new Map,Xd.set(a,f);for(var O=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<O.length;v++){var S=O[v];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(f.set(S.dataset.precedence,S),p=S)}p&&f.set(null,p)}O=h.instance,S=O.getAttribute("data-precedence"),v=f.get(S)||p,v===p&&f.set(null,O),f.set(S,O),this.count++,p=Nd.bind(this),O.addEventListener("load",p),O.addEventListener("error",p),v?v.parentNode.insertBefore(O,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(O,a.firstChild)),h.state.loading|=4}}var Qc={$$typeof:C,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function _z(a,h,f,p,O,v,S,T,V){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ag(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ag(0),this.hiddenUpdates=Ag(null),this.identifierPrefix=p,this.onUncaughtError=O,this.onCaughtError=v,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function Ik(a,h,f,p,O,v,S,T,V,J,re,ae){return a=new _z(a,h,f,S,V,J,re,ae,T),h=1,v===!0&&(h|=24),v=xs(3,null,null,h),a.current=v,v.stateNode=a,h=fO(),h.refCount++,a.pooledCache=h,h.refCount++,v.memoizedState={element:p,isDehydrated:f,cache:h},gO(v),a}function qk(a){return a?(a=pl,a):pl}function Wk(a,h,f,p,O,v){O=qk(O),p.context===null?p.context=O:p.pendingContext=O,p=so(h),p.payload={element:f},v=v===void 0?null:v,v!==null&&(p.callback=v),f=ro(a,p,h),f!==null&&(cs(f,a,h),cc(f,a,h))}function Uk(a,h){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<h?f:h}}function L0(a,h){Uk(a,h),(a=a.alternate)&&Uk(a,h)}function Yk(a){if(a.tag===13||a.tag===31){var h=ra(a,67108864);h!==null&&cs(h,a,67108864),L0(a,67108864)}}function Hk(a){if(a.tag===13||a.tag===31){var h=As();h=Mg(h);var f=ra(a,h);f!==null&&cs(f,a,h),L0(a,h)}}var Zd=!0;function vz(a,h,f,p){var O=Q.T;Q.T=null;var v=X.p;try{X.p=2,$0(a,h,f,p)}finally{X.p=v,Q.T=O}}function yz(a,h,f,p){var O=Q.T;Q.T=null;var v=X.p;try{X.p=8,$0(a,h,f,p)}finally{X.p=v,Q.T=O}}function $0(a,h,f,p){if(Zd){var O=B0(p);if(O===null)b0(a,h,p,jd,f),Gk(a,p);else if(Sz(O,a,h,f,p))p.stopPropagation();else if(Gk(a,p),h&4&&-1<bz.indexOf(a)){for(;O!==null;){var v=sl(O);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var S=Jo(v.pendingLanes);if(S!==0){var T=v;for(T.pendingLanes|=2,T.entangledLanes|=2;S;){var V=1<<31-bs(S);T.entanglements[1]|=V,S&=~V}Qr(v),(Ge&6)===0&&(Cd=vs()+500,kc(0))}}break;case 31:case 13:T=ra(v,2),T!==null&&cs(T,v,2),Td(),L0(v,2)}if(v=B0(p),v===null&&b0(a,h,p,jd,f),v===O)break;O=v}O!==null&&p.stopPropagation()}else b0(a,h,p,null,f)}}function B0(a){return a=zg(a),D0(a)}var jd=null;function D0(a){if(jd=null,a=il(a),a!==null){var h=n(a);if(h===null)a=null;else{var f=h.tag;if(f===13){if(a=o(h),a!==null)return a;a=null}else if(f===31){if(a=l(h),a!==null)return a;a=null}else if(f===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;a=null}else h!==a&&(a=null)}}return jd=a,null}function Fk(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(o4()){case rx:return 2;case nx:return 8;case Qf:case a4:return 32;case ox:return 268435456;default:return 32}default:return 32}}var z0=!1,go=null,Oo=null,_o=null,Rc=new Map,Lc=new Map,vo=[],bz="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Gk(a,h){switch(a){case"focusin":case"focusout":go=null;break;case"dragenter":case"dragleave":Oo=null;break;case"mouseover":case"mouseout":_o=null;break;case"pointerover":case"pointerout":Rc.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lc.delete(h.pointerId)}}function $c(a,h,f,p,O,v){return a===null||a.nativeEvent!==v?(a={blockedOn:h,domEventName:f,eventSystemFlags:p,nativeEvent:v,targetContainers:[O]},h!==null&&(h=sl(h),h!==null&&Yk(h)),a):(a.eventSystemFlags|=p,h=a.targetContainers,O!==null&&h.indexOf(O)===-1&&h.push(O),a)}function Sz(a,h,f,p,O){switch(h){case"focusin":return go=$c(go,a,h,f,p,O),!0;case"dragenter":return Oo=$c(Oo,a,h,f,p,O),!0;case"mouseover":return _o=$c(_o,a,h,f,p,O),!0;case"pointerover":var v=O.pointerId;return Rc.set(v,$c(Rc.get(v)||null,a,h,f,p,O)),!0;case"gotpointercapture":return v=O.pointerId,Lc.set(v,$c(Lc.get(v)||null,a,h,f,p,O)),!0}return!1}function Kk(a){var h=il(a.target);if(h!==null){var f=n(h);if(f!==null){if(h=f.tag,h===13){if(h=o(f),h!==null){a.blockedOn=h,fx(a.priority,function(){Hk(f)});return}}else if(h===31){if(h=l(f),h!==null){a.blockedOn=h,fx(a.priority,function(){Hk(f)});return}}else if(h===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Id(a){if(a.blockedOn!==null)return!1;for(var h=a.targetContainers;0<h.length;){var f=B0(a.nativeEvent);if(f===null){f=a.nativeEvent;var p=new f.constructor(f.type,f);Dg=p,f.target.dispatchEvent(p),Dg=null}else return h=sl(f),h!==null&&Yk(h),a.blockedOn=f,!1;h.shift()}return!0}function Jk(a,h,f){Id(a)&&f.delete(h)}function xz(){z0=!1,go!==null&&Id(go)&&(go=null),Oo!==null&&Id(Oo)&&(Oo=null),_o!==null&&Id(_o)&&(_o=null),Rc.forEach(Jk),Lc.forEach(Jk)}function qd(a,h){a.blockedOn===h&&(a.blockedOn=null,z0||(z0=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,xz)))}var Wd=null;function e2(a){Wd!==a&&(Wd=a,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Wd===a&&(Wd=null);for(var h=0;h<a.length;h+=3){var f=a[h],p=a[h+1],O=a[h+2];if(typeof p!="function"){if(D0(p||f)===null)continue;break}var v=sl(f);v!==null&&(a.splice(h,3),h-=3,BO(v,{pending:!0,data:O,method:f.method,action:p},p,O))}}))}function zl(a){function h(V){return qd(V,a)}go!==null&&qd(go,a),Oo!==null&&qd(Oo,a),_o!==null&&qd(_o,a),Rc.forEach(h),Lc.forEach(h);for(var f=0;f<vo.length;f++){var p=vo[f];p.blockedOn===a&&(p.blockedOn=null)}for(;0<vo.length&&(f=vo[0],f.blockedOn===null);)Kk(f),f.blockedOn===null&&vo.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(p=0;p<f.length;p+=3){var O=f[p],v=f[p+1],S=O[rs]||null;if(typeof v=="function")S||e2(f);else if(S){var T=null;if(v&&v.hasAttribute("formAction")){if(O=v,S=v[rs]||null)T=S.formAction;else if(D0(O)!==null)continue}else T=S.action;typeof T=="function"?f[p+1]=T:(f.splice(p,3),p-=3),e2(f)}}}function t2(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(S){return O=S})},focusReset:"manual",scroll:"manual"})}function h(){O!==null&&(O(),O=null),p||setTimeout(f,20)}function f(){if(!p&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var p=!1,O=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",h),navigation.addEventListener("navigateerror",h),setTimeout(f,100),function(){p=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",h),navigation.removeEventListener("navigateerror",h),O!==null&&(O(),O=null)}}}function N0(a){this._internalRoot=a}Ud.prototype.render=N0.prototype.render=function(a){var h=this._internalRoot;if(h===null)throw Error(s(409));var f=h.current,p=As();Wk(f,p,a,h,null,null)},Ud.prototype.unmount=N0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var h=a.containerInfo;Wk(a.current,2,null,a,null,null),Td(),h[tl]=null}};function Ud(a){this._internalRoot=a}Ud.prototype.unstable_scheduleHydration=function(a){if(a){var h=ux();a={blockedOn:null,target:a,priority:h};for(var f=0;f<vo.length&&h!==0&&h<vo[f].priority;f++);vo.splice(f,0,a),f===0&&Kk(a)}};var i2=e.version;if(i2!=="19.2.4")throw Error(s(527,i2,"19.2.4"));X.findDOMNode=function(a){var h=a._reactInternals;if(h===void 0)throw typeof a.render=="function"?Error(s(188)):(a=Object.keys(a).join(","),Error(s(268,a)));return a=u(h),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var wz={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yd.isDisabled&&Yd.supportsFiber)try{Ih=Yd.inject(wz),ys=Yd}catch{}}return Dc.createRoot=function(a,h){if(!r(a))throw Error(s(299));var f=!1,p="",O=hC,v=cC,S=uC;return h!=null&&(h.unstable_strictMode===!0&&(f=!0),h.identifierPrefix!==void 0&&(p=h.identifierPrefix),h.onUncaughtError!==void 0&&(O=h.onUncaughtError),h.onCaughtError!==void 0&&(v=h.onCaughtError),h.onRecoverableError!==void 0&&(S=h.onRecoverableError)),h=Ik(a,1,!1,null,null,f,p,null,O,v,S,t2),a[tl]=h.current,y0(a),new N0(h)},Dc.hydrateRoot=function(a,h,f){if(!r(a))throw Error(s(299));var p=!1,O="",v=hC,S=cC,T=uC,V=null;return f!=null&&(f.unstable_strictMode===!0&&(p=!0),f.identifierPrefix!==void 0&&(O=f.identifierPrefix),f.onUncaughtError!==void 0&&(v=f.onUncaughtError),f.onCaughtError!==void 0&&(S=f.onCaughtError),f.onRecoverableError!==void 0&&(T=f.onRecoverableError),f.formState!==void 0&&(V=f.formState)),h=Ik(a,1,!0,h,f??null,p,O,V,v,S,T,t2),h.context=qk(null),f=h.current,p=As(),p=Mg(p),O=so(p),O.callback=null,ro(f,O,p),f=p,h.current.lanes=f,Wh(h,f),Qr(h),a[tl]=h.current,y0(a),new Ud(h)},Dc.version="19.2.4",Dc}var f2;function $z(){if(f2)return Z0.exports;f2=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(e){console.error(e)}}return i(),Z0.exports=Lz(),Z0.exports}var Bz=$z();const vP=Y.createContext({connected:!1,lastChange:0}),d2=2e3,Dz=3e4,zz=1.5;function Nz({children:i}){const[e,t]=Y.useState(!1),[s,r]=Y.useState(0),n=Y.useRef(null),o=Y.useRef(null),l=Y.useRef(d2);return Y.useEffect(()=>{function c(){const d=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/ws`,m=new WebSocket(d);n.current=m,m.onopen=()=>{t(!0),l.current=d2},m.onclose=()=>{t(!1),n.current=null;const g=l.current;l.current=Math.min(g*zz,Dz),o.current=setTimeout(c,g)},m.onmessage=g=>{try{const _=JSON.parse(g.data);_.type==="file-changes"&&typeof _.timestamp=="number"&&r(_.timestamp)}catch{}},m.onerror=()=>{console.warn("[ws-provider] WebSocket error occurred")}}return c(),()=>{o.current!==null&&(clearTimeout(o.current),o.current=null),n.current&&(n.current.onclose=null,n.current.close(),n.current=null)}},[]),M.jsx(vP.Provider,{value:{connected:e,lastChange:s},children:i})}function ff(){return Y.useContext(vP)}function fb(){const{lastChange:i}=ff(),[e,t]=Y.useState(null),[s,r]=Y.useState(null),[n,o]=Y.useState(null),[l,c]=Y.useState(!0),[u,d]=Y.useState(null),m=Y.useCallback(async()=>{try{d(null);const[g,_,y]=await Promise.all([fetch("/api/roadmap"),fetch("/api/state"),fetch("/api/todos")]);if(!g.ok&&g.status!==404)throw new Error(`Roadmap fetch failed: ${g.status}`);if(!_.ok&&_.status!==404)throw new Error(`State fetch failed: ${_.status}`);if(!y.ok)throw new Error(`Todos fetch failed: ${y.status}`);const b=g.ok?await g.json():null,x=_.ok?await _.json():null,w=y.ok?await y.json():{pending:[],completed:[]};t(b),r(x),o(w)}catch(g){const _=g instanceof Error?g.message:"Failed to fetch dashboard data";d(_),console.error("[use-dashboard-data]",_)}finally{c(!1)}},[]);return Y.useEffect(()=>{m()},[m]),Y.useEffect(()=>{i>0&&m()},[i,m]),{roadmap:e,state:s,todos:n,loading:l,error:u}}const yP=Y.createContext({});function Xz(i){const e=Y.useRef(null);return e.current===null&&(e.current=i()),e.current}const bP=typeof window<"u",Vz=bP?Y.useLayoutEffect:Y.useEffect,db=Y.createContext(null);function pb(i,e){i.indexOf(e)===-1&&i.push(e)}function cm(i,e){const t=i.indexOf(e);t>-1&&i.splice(t,1)}const tn=(i,e,t)=>t>e?e:t<i?i:t;let mb=()=>{};const Zn={},SP=i=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(i);function xP(i){return typeof i=="object"&&i!==null}const wP=i=>/^0[^.\s]+$/u.test(i);function CP(i){let e;return()=>(e===void 0&&(e=i()),e)}const ar=i=>i,Zz=(i,e)=>t=>e(i(t)),df=(...i)=>i.reduce(Zz),Pu=(i,e,t)=>{const s=e-i;return s===0?1:(t-i)/s};class gb{constructor(){this.subscriptions=[]}add(e){return pb(this.subscriptions,e),()=>cm(this.subscriptions,e)}notify(e,t,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,s);else for(let n=0;n<r;n++){const o=this.subscriptions[n];o&&o(e,t,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const br=i=>i*1e3,tr=i=>i/1e3;function kP(i,e){return e?i*(1e3/e):0}const TP=(i,e,t)=>(((1-3*t+3*e)*i+(3*t-6*e))*i+3*e)*i,jz=1e-7,Iz=12;function qz(i,e,t,s,r){let n,o,l=0;do o=e+(t-e)/2,n=TP(o,s,r)-i,n>0?t=o:e=o;while(Math.abs(n)>jz&&++l<Iz);return o}function pf(i,e,t,s){if(i===e&&t===s)return ar;const r=n=>qz(n,0,1,i,t);return n=>n===0||n===1?n:TP(r(n),e,s)}const AP=i=>e=>e<=.5?i(2*e)/2:(2-i(2*(1-e)))/2,MP=i=>e=>1-i(1-e),EP=pf(.33,1.53,.69,.99),Ob=MP(EP),PP=AP(Ob),QP=i=>(i*=2)<1?.5*Ob(i):.5*(2-Math.pow(2,-10*(i-1))),_b=i=>1-Math.sin(Math.acos(i)),RP=MP(_b),LP=AP(_b),Wz=pf(.42,0,1,1),Uz=pf(0,0,.58,1),$P=pf(.42,0,.58,1),Yz=i=>Array.isArray(i)&&typeof i[0]!="number",BP=i=>Array.isArray(i)&&typeof i[0]=="number",Hz={linear:ar,easeIn:Wz,easeInOut:$P,easeOut:Uz,circIn:_b,circInOut:LP,circOut:RP,backIn:Ob,backInOut:PP,backOut:EP,anticipate:QP},Fz=i=>typeof i=="string",p2=i=>{if(BP(i)){mb(i.length===4);const[e,t,s,r]=i;return pf(e,t,s,r)}else if(Fz(i))return Hz[i];return i},Hd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Gz(i,e){let t=new Set,s=new Set,r=!1,n=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){o.has(d)&&(u.schedule(d),i()),d(l)}const u={schedule:(d,m=!1,g=!1)=>{const y=g&&r?t:s;return m&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{s.delete(d),o.delete(d)},process:d=>{if(l=d,r){n=!0;return}r=!0,[t,s]=[s,t],t.forEach(c),t.clear(),r=!1,n&&(n=!1,u.process(d))}};return u}const Kz=40;function DP(i,e){let t=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},n=()=>t=!0,o=Hd.reduce((C,A)=>(C[A]=Gz(n),C),{}),{setup:l,read:c,resolveKeyframes:u,preUpdate:d,update:m,preRender:g,render:_,postRender:y}=o,b=()=>{const C=Zn.useManualTiming?r.timestamp:performance.now();t=!1,Zn.useManualTiming||(r.delta=s?1e3/60:Math.max(Math.min(C-r.timestamp,Kz),1)),r.timestamp=C,r.isProcessing=!0,l.process(r),c.process(r),u.process(r),d.process(r),m.process(r),g.process(r),_.process(r),y.process(r),r.isProcessing=!1,t&&e&&(s=!1,i(b))},x=()=>{t=!0,s=!0,r.isProcessing||i(b)};return{schedule:Hd.reduce((C,A)=>{const P=o[A];return C[A]=(E,$=!1,z=!1)=>(t||x(),P.schedule(E,$,z)),C},{}),cancel:C=>{for(let A=0;A<Hd.length;A++)o[Hd[A]].cancel(C)},state:r,steps:o}}const{schedule:dt,cancel:Zo,state:Pi,steps:W0}=DP(typeof requestAnimationFrame<"u"?requestAnimationFrame:ar,!0);let Bp;function Jz(){Bp=void 0}const Ji={now:()=>(Bp===void 0&&Ji.set(Pi.isProcessing||Zn.useManualTiming?Pi.timestamp:performance.now()),Bp),set:i=>{Bp=i,queueMicrotask(Jz)}},zP=i=>e=>typeof e=="string"&&e.startsWith(i),NP=zP("--"),e8=zP("var(--"),vb=i=>e8(i)?t8.test(i.split("/*")[0].trim()):!1,t8=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function m2(i){return typeof i!="string"?!1:i.split("/*")[0].includes("var(--")}const Ah={test:i=>typeof i=="number",parse:parseFloat,transform:i=>i},Qu={...Ah,transform:i=>tn(0,1,i)},Fd={...Ah,default:1},Ou=i=>Math.round(i*1e5)/1e5,yb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function i8(i){return i==null}const s8=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bb=(i,e)=>t=>!!(typeof t=="string"&&s8.test(t)&&t.startsWith(i)||e&&!i8(t)&&Object.prototype.hasOwnProperty.call(t,e)),XP=(i,e,t)=>s=>{if(typeof s!="string")return s;const[r,n,o,l]=s.match(yb);return{[i]:parseFloat(r),[e]:parseFloat(n),[t]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},r8=i=>tn(0,255,i),U0={...Ah,transform:i=>Math.round(r8(i))},Ea={test:bb("rgb","red"),parse:XP("red","green","blue"),transform:({red:i,green:e,blue:t,alpha:s=1})=>"rgba("+U0.transform(i)+", "+U0.transform(e)+", "+U0.transform(t)+", "+Ou(Qu.transform(s))+")"};function n8(i){let e="",t="",s="",r="";return i.length>5?(e=i.substring(1,3),t=i.substring(3,5),s=i.substring(5,7),r=i.substring(7,9)):(e=i.substring(1,2),t=i.substring(2,3),s=i.substring(3,4),r=i.substring(4,5),e+=e,t+=t,s+=s,r+=r),{red:parseInt(e,16),green:parseInt(t,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Hv={test:bb("#"),parse:n8,transform:Ea.transform},mf=i=>({test:e=>typeof e=="string"&&e.endsWith(i)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${i}`}),Mo=mf("deg"),Gr=mf("%"),xe=mf("px"),o8=mf("vh"),a8=mf("vw"),g2={...Gr,parse:i=>Gr.parse(i)/100,transform:i=>Gr.transform(i*100)},Yl={test:bb("hsl","hue"),parse:XP("hue","saturation","lightness"),transform:({hue:i,saturation:e,lightness:t,alpha:s=1})=>"hsla("+Math.round(i)+", "+Gr.transform(Ou(e))+", "+Gr.transform(Ou(t))+", "+Ou(Qu.transform(s))+")"},qt={test:i=>Ea.test(i)||Hv.test(i)||Yl.test(i),parse:i=>Ea.test(i)?Ea.parse(i):Yl.test(i)?Yl.parse(i):Hv.parse(i),transform:i=>typeof i=="string"?i:i.hasOwnProperty("red")?Ea.transform(i):Yl.transform(i),getAnimatableNone:i=>{const e=qt.parse(i);return e.alpha=0,qt.transform(e)}},l8=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function h8(i){var e,t;return isNaN(i)&&typeof i=="string"&&(((e=i.match(yb))==null?void 0:e.length)||0)+(((t=i.match(l8))==null?void 0:t.length)||0)>0}const VP="number",ZP="color",c8="var",u8="var(",O2="${}",f8=/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 Ru(i){const e=i.toString(),t=[],s={color:[],number:[],var:[]},r=[];let n=0;const l=e.replace(f8,c=>(qt.test(c)?(s.color.push(n),r.push(ZP),t.push(qt.parse(c))):c.startsWith(u8)?(s.var.push(n),r.push(c8),t.push(c)):(s.number.push(n),r.push(VP),t.push(parseFloat(c))),++n,O2)).split(O2);return{values:t,split:l,indexes:s,types:r}}function jP(i){return Ru(i).values}function IP(i){const{split:e,types:t}=Ru(i),s=e.length;return r=>{let n="";for(let o=0;o<s;o++)if(n+=e[o],r[o]!==void 0){const l=t[o];l===VP?n+=Ou(r[o]):l===ZP?n+=qt.transform(r[o]):n+=r[o]}return n}}const d8=i=>typeof i=="number"?0:qt.test(i)?qt.getAnimatableNone(i):i;function p8(i){const e=jP(i);return IP(i)(e.map(d8))}const Sr={test:h8,parse:jP,createTransformer:IP,getAnimatableNone:p8};function Y0(i,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*(2/3-t)*6:i}function m8({hue:i,saturation:e,lightness:t,alpha:s}){i/=360,e/=100,t/=100;let r=0,n=0,o=0;if(!e)r=n=o=t;else{const l=t<.5?t*(1+e):t+e-t*e,c=2*t-l;r=Y0(c,l,i+1/3),n=Y0(c,l,i),o=Y0(c,l,i-1/3)}return{red:Math.round(r*255),green:Math.round(n*255),blue:Math.round(o*255),alpha:s}}function um(i,e){return t=>t>0?e:i}const kt=(i,e,t)=>i+(e-i)*t,H0=(i,e,t)=>{const s=i*i,r=t*(e*e-s)+s;return r<0?0:Math.sqrt(r)},g8=[Hv,Ea,Yl],O8=i=>g8.find(e=>e.test(i));function _2(i){const e=O8(i);if(!e)return!1;let t=e.parse(i);return e===Yl&&(t=m8(t)),t}const v2=(i,e)=>{const t=_2(i),s=_2(e);if(!t||!s)return um(i,e);const r={...t};return n=>(r.red=H0(t.red,s.red,n),r.green=H0(t.green,s.green,n),r.blue=H0(t.blue,s.blue,n),r.alpha=kt(t.alpha,s.alpha,n),Ea.transform(r))},Fv=new Set(["none","hidden"]);function _8(i,e){return Fv.has(i)?t=>t<=0?i:e:t=>t>=1?e:i}function v8(i,e){return t=>kt(i,e,t)}function Sb(i){return typeof i=="number"?v8:typeof i=="string"?vb(i)?um:qt.test(i)?v2:S8:Array.isArray(i)?qP:typeof i=="object"?qt.test(i)?v2:y8:um}function qP(i,e){const t=[...i],s=t.length,r=i.map((n,o)=>Sb(n)(n,e[o]));return n=>{for(let o=0;o<s;o++)t[o]=r[o](n);return t}}function y8(i,e){const t={...i,...e},s={};for(const r in t)i[r]!==void 0&&e[r]!==void 0&&(s[r]=Sb(i[r])(i[r],e[r]));return r=>{for(const n in s)t[n]=s[n](r);return t}}function b8(i,e){const t=[],s={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const n=e.types[r],o=i.indexes[n][s[n]],l=i.values[o]??0;t[r]=l,s[n]++}return t}const S8=(i,e)=>{const t=Sr.createTransformer(e),s=Ru(i),r=Ru(e);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?Fv.has(i)&&!r.values.length||Fv.has(e)&&!s.values.length?_8(i,e):df(qP(b8(s,r),r.values),t):um(i,e)};function WP(i,e,t){return typeof i=="number"&&typeof e=="number"&&typeof t=="number"?kt(i,e,t):Sb(i)(i,e)}const x8=i=>{const e=({timestamp:t})=>i(t);return{start:(t=!0)=>dt.update(e,t),stop:()=>Zo(e),now:()=>Pi.isProcessing?Pi.timestamp:Ji.now()}},UP=(i,e,t=10)=>{let s="";const r=Math.max(Math.round(e/t),2);for(let n=0;n<r;n++)s+=Math.round(i(n/(r-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},fm=2e4;function xb(i){let e=0;const t=50;let s=i.next(e);for(;!s.done&&e<fm;)e+=t,s=i.next(e);return e>=fm?1/0:e}function w8(i,e=100,t){const s=t({...i,keyframes:[0,e]}),r=Math.min(xb(s),fm);return{type:"keyframes",ease:n=>s.next(r*n).value/e,duration:tr(r)}}const C8=5;function YP(i,e,t){const s=Math.max(e-C8,0);return kP(t-i(s),e-s)}const Et={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},F0=.001;function k8({duration:i=Et.duration,bounce:e=Et.bounce,velocity:t=Et.velocity,mass:s=Et.mass}){let r,n,o=1-e;o=tn(Et.minDamping,Et.maxDamping,o),i=tn(Et.minDuration,Et.maxDuration,tr(i)),o<1?(r=u=>{const d=u*o,m=d*i,g=d-t,_=Gv(u,o),y=Math.exp(-m);return F0-g/_*y},n=u=>{const m=u*o*i,g=m*t+t,_=Math.pow(o,2)*Math.pow(u,2)*i,y=Math.exp(-m),b=Gv(Math.pow(u,2),o);return(-r(u)+F0>0?-1:1)*((g-_)*y)/b}):(r=u=>{const d=Math.exp(-u*i),m=(u-t)*i+1;return-F0+d*m},n=u=>{const d=Math.exp(-u*i),m=(t-u)*(i*i);return d*m});const l=5/i,c=A8(r,n,l);if(i=br(i),isNaN(c))return{stiffness:Et.stiffness,damping:Et.damping,duration:i};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:i}}}const T8=12;function A8(i,e,t){let s=t;for(let r=1;r<T8;r++)s=s-i(s)/e(s);return s}function Gv(i,e){return i*Math.sqrt(1-e*e)}const M8=["duration","bounce"],E8=["stiffness","damping","mass"];function y2(i,e){return e.some(t=>i[t]!==void 0)}function P8(i){let e={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...i};if(!y2(i,E8)&&y2(i,M8))if(e.velocity=0,i.visualDuration){const t=i.visualDuration,s=2*Math.PI/(t*1.2),r=s*s,n=2*tn(.05,1,1-(i.bounce||0))*Math.sqrt(r);e={...e,mass:Et.mass,stiffness:r,damping:n}}else{const t=k8({...i,velocity:0});e={...e,...t,mass:Et.mass},e.isResolvedFromDuration=!0}return e}function dm(i=Et.visualDuration,e=Et.bounce){const t=typeof i!="object"?{visualDuration:i,keyframes:[0,1],bounce:e}:i;let{restSpeed:s,restDelta:r}=t;const n=t.keyframes[0],o=t.keyframes[t.keyframes.length-1],l={done:!1,value:n},{stiffness:c,damping:u,mass:d,duration:m,velocity:g,isResolvedFromDuration:_}=P8({...t,velocity:-tr(t.velocity||0)}),y=g||0,b=u/(2*Math.sqrt(c*d)),x=o-n,w=tr(Math.sqrt(c/d)),k=Math.abs(x)<5;s||(s=k?Et.restSpeed.granular:Et.restSpeed.default),r||(r=k?Et.restDelta.granular:Et.restDelta.default);let C;if(b<1){const P=Gv(w,b);C=E=>{const $=Math.exp(-b*w*E);return o-$*((y+b*w*x)/P*Math.sin(P*E)+x*Math.cos(P*E))}}else if(b===1)C=P=>o-Math.exp(-w*P)*(x+(y+w*x)*P);else{const P=w*Math.sqrt(b*b-1);C=E=>{const $=Math.exp(-b*w*E),z=Math.min(P*E,300);return o-$*((y+b*w*x)*Math.sinh(z)+P*x*Math.cosh(z))/P}}const A={calculatedDuration:_&&m||null,next:P=>{const E=C(P);if(_)l.done=P>=m;else{let $=P===0?y:0;b<1&&($=P===0?br(y):YP(C,P,E));const z=Math.abs($)<=s,I=Math.abs(o-E)<=r;l.done=z&&I}return l.value=l.done?o:E,l},toString:()=>{const P=Math.min(xb(A),fm),E=UP($=>A.next(P*$).value,P,30);return P+"ms "+E},toTransition:()=>{}};return A}dm.applyToOptions=i=>{const e=w8(i,100,dm);return i.ease=e.ease,i.duration=br(e.duration),i.type="keyframes",i};function Kv({keyframes:i,velocity:e=0,power:t=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:n=500,modifyTarget:o,min:l,max:c,restDelta:u=.5,restSpeed:d}){const m=i[0],g={done:!1,value:m},_=z=>l!==void 0&&z<l||c!==void 0&&z>c,y=z=>l===void 0?c:c===void 0||Math.abs(l-z)<Math.abs(c-z)?l:c;let b=t*e;const x=m+b,w=o===void 0?x:o(x);w!==x&&(b=w-m);const k=z=>-b*Math.exp(-z/s),C=z=>w+k(z),A=z=>{const I=k(z),se=C(z);g.done=Math.abs(I)<=u,g.value=g.done?w:se};let P,E;const $=z=>{_(g.value)&&(P=z,E=dm({keyframes:[g.value,y(g.value)],velocity:YP(C,z,g.value),damping:r,stiffness:n,restDelta:u,restSpeed:d}))};return $(0),{calculatedDuration:null,next:z=>{let I=!1;return!E&&P===void 0&&(I=!0,A(z),$(z)),P!==void 0&&z>=P?E.next(z-P):(!I&&A(z),g)}}}function Q8(i,e,t){const s=[],r=t||Zn.mix||WP,n=i.length-1;for(let o=0;o<n;o++){let l=r(i[o],i[o+1]);if(e){const c=Array.isArray(e)?e[o]||ar:e;l=df(c,l)}s.push(l)}return s}function R8(i,e,{clamp:t=!0,ease:s,mixer:r}={}){const n=i.length;if(mb(n===e.length),n===1)return()=>e[0];if(n===2&&e[0]===e[1])return()=>e[1];const o=i[0]===i[1];i[0]>i[n-1]&&(i=[...i].reverse(),e=[...e].reverse());const l=Q8(e,s,r),c=l.length,u=d=>{if(o&&d<i[0])return e[0];let m=0;if(c>1)for(;m<i.length-2&&!(d<i[m+1]);m++);const g=Pu(i[m],i[m+1],d);return l[m](g)};return t?d=>u(tn(i[0],i[n-1],d)):u}function L8(i,e){const t=i[i.length-1];for(let s=1;s<=e;s++){const r=Pu(0,e,s);i.push(kt(t,1,r))}}function $8(i){const e=[0];return L8(e,i.length-1),e}function B8(i,e){return i.map(t=>t*e)}function D8(i,e){return i.map(()=>e||$P).splice(0,i.length-1)}function _u({duration:i=300,keyframes:e,times:t,ease:s="easeInOut"}){const r=Yz(s)?s.map(p2):p2(s),n={done:!1,value:e[0]},o=B8(t&&t.length===e.length?t:$8(e),i),l=R8(o,e,{ease:Array.isArray(r)?r:D8(e,r)});return{calculatedDuration:i,next:c=>(n.value=l(c),n.done=c>=i,n)}}const z8=i=>i!==null;function wb(i,{repeat:e,repeatType:t="loop"},s,r=1){const n=i.filter(z8),l=r<0||e&&t!=="loop"&&e%2===1?0:n.length-1;return!l||s===void 0?n[l]:s}const N8={decay:Kv,inertia:Kv,tween:_u,keyframes:_u,spring:dm};function HP(i){typeof i.type=="string"&&(i.type=N8[i.type])}class Cb{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const X8=i=>i/100;class kb extends Cb{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,r;const{motionValue:t}=this.options;t&&t.updatedAt!==Ji.now()&&this.tick(Ji.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(s=this.options).onStop)==null||r.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;HP(e);const{type:t=_u,repeat:s=0,repeatDelay:r=0,repeatType:n,velocity:o=0}=e;let{keyframes:l}=e;const c=t||_u;c!==_u&&typeof l[0]!="number"&&(this.mixKeyframes=df(X8,WP(l[0],l[1])),l=[0,100]);const u=c({...e,keyframes:l});n==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...l].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=xb(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+r,this.totalDuration=this.resolvedDuration*(s+1)-r,this.generator=u}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:s,totalDuration:r,mixKeyframes:n,mirroredGenerator:o,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:d,repeat:m,repeatType:g,repeatDelay:_,type:y,onUpdate:b,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const w=this.currentTime-u*(this.playbackSpeed>=0?1:-1),k=this.playbackSpeed>=0?w<0:w>r;this.currentTime=Math.max(w,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let C=this.currentTime,A=s;if(m){const z=Math.min(this.currentTime,r)/l;let I=Math.floor(z),se=z%1;!se&&z>=1&&(se=1),se===1&&I--,I=Math.min(I,m+1),!!(I%2)&&(g==="reverse"?(se=1-se,_&&(se-=_/l)):g==="mirror"&&(A=o)),C=tn(0,1,se)*l}const P=k?{done:!1,value:d[0]}:A.next(C);n&&(P.value=n(P.value));let{done:E}=P;!k&&c!==null&&(E=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&E);return $&&y!==Kv&&(P.value=wb(d,this.options,x,this.speed)),b&&b(P.value),$&&this.finish(),P}then(e,t){return this.finished.then(e,t)}get duration(){return tr(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tr(e)}get time(){return tr(this.currentTime)}set time(e){var t;e=br(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(t=this.driver)==null||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Ji.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tr(this.currentTime))}play(){var r,n;if(this.isStopped)return;const{driver:e=x8,startTime:t}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(n=(r=this.options).onPlay)==null||n.call(r);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=t??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ji.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",(t=(e=this.options).onComplete)==null||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(t=(e=this.options).onCancel)==null||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(t=this.driver)==null||t.stop(),e.observe(this)}}function V8(i){for(let e=1;e<i.length;e++)i[e]??(i[e]=i[e-1])}const Pa=i=>i*180/Math.PI,Jv=i=>{const e=Pa(Math.atan2(i[1],i[0]));return e1(e)},Z8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:i=>(Math.abs(i[0])+Math.abs(i[3]))/2,rotate:Jv,rotateZ:Jv,skewX:i=>Pa(Math.atan(i[1])),skewY:i=>Pa(Math.atan(i[2])),skew:i=>(Math.abs(i[1])+Math.abs(i[2]))/2},e1=i=>(i=i%360,i<0&&(i+=360),i),b2=Jv,S2=i=>Math.sqrt(i[0]*i[0]+i[1]*i[1]),x2=i=>Math.sqrt(i[4]*i[4]+i[5]*i[5]),j8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:S2,scaleY:x2,scale:i=>(S2(i)+x2(i))/2,rotateX:i=>e1(Pa(Math.atan2(i[6],i[5]))),rotateY:i=>e1(Pa(Math.atan2(-i[2],i[0]))),rotateZ:b2,rotate:b2,skewX:i=>Pa(Math.atan(i[4])),skewY:i=>Pa(Math.atan(i[1])),skew:i=>(Math.abs(i[1])+Math.abs(i[4]))/2};function t1(i){return i.includes("scale")?1:0}function i1(i,e){if(!i||i==="none")return t1(e);const t=i.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,r;if(t)s=j8,r=t;else{const l=i.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=Z8,r=l}if(!r)return t1(e);const n=s[e],o=r[1].split(",").map(q8);return typeof n=="function"?n(o):o[n]}const I8=(i,e)=>{const{transform:t="none"}=getComputedStyle(i);return i1(t,e)};function q8(i){return parseFloat(i.trim())}const Mh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Eh=new Set(Mh),w2=i=>i===Ah||i===xe,W8=new Set(["x","y","z"]),U8=Mh.filter(i=>!W8.has(i));function Y8(i){const e=[];return U8.forEach(t=>{const s=i.getValue(t);s!==void 0&&(e.push([t,s.get()]),s.set(t.startsWith("scale")?1:0))}),e}const Do={width:({x:i},{paddingLeft:e="0",paddingRight:t="0"})=>i.max-i.min-parseFloat(e)-parseFloat(t),height:({y:i},{paddingTop:e="0",paddingBottom:t="0"})=>i.max-i.min-parseFloat(e)-parseFloat(t),top:(i,{top:e})=>parseFloat(e),left:(i,{left:e})=>parseFloat(e),bottom:({y:i},{top:e})=>parseFloat(e)+(i.max-i.min),right:({x:i},{left:e})=>parseFloat(e)+(i.max-i.min),x:(i,{transform:e})=>i1(e,"x"),y:(i,{transform:e})=>i1(e,"y")};Do.translateX=Do.x;Do.translateY=Do.y;const za=new Set;let s1=!1,r1=!1,n1=!1;function FP(){if(r1){const i=Array.from(za).filter(s=>s.needsMeasurement),e=new Set(i.map(s=>s.element)),t=new Map;e.forEach(s=>{const r=Y8(s);r.length&&(t.set(s,r),s.render())}),i.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const r=t.get(s);r&&r.forEach(([n,o])=>{var l;(l=s.getValue(n))==null||l.set(o)})}),i.forEach(s=>s.measureEndState()),i.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}r1=!1,s1=!1,za.forEach(i=>i.complete(n1)),za.clear()}function GP(){za.forEach(i=>{i.readKeyframes(),i.needsMeasurement&&(r1=!0)})}function H8(){n1=!0,GP(),FP(),n1=!1}class Tb{constructor(e,t,s,r,n,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=s,this.motionValue=r,this.element=n,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(za.add(this),s1||(s1=!0,dt.read(GP),dt.resolveKeyframes(FP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:s,motionValue:r}=this;if(e[0]===null){const n=r==null?void 0:r.get(),o=e[e.length-1];if(n!==void 0)e[0]=n;else if(s&&t){const l=s.readValue(t,o);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=o),r&&n===void 0&&r.set(e[0])}V8(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),za.delete(this)}cancel(){this.state==="scheduled"&&(za.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const F8=i=>i.startsWith("--");function G8(i,e,t){F8(e)?i.style.setProperty(e,t):i.style[e]=t}const K8={};function KP(i,e){const t=CP(i);return()=>K8[e]??t()}const J8=KP(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),JP=KP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),nu=([i,e,t,s])=>`cubic-bezier(${i}, ${e}, ${t}, ${s})`,C2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nu([0,.65,.55,1]),circOut:nu([.55,0,1,.45]),backIn:nu([.31,.01,.66,-.59]),backOut:nu([.33,1.53,.69,.99])};function eQ(i,e){if(i)return typeof i=="function"?JP()?UP(i,e):"ease-out":BP(i)?nu(i):Array.isArray(i)?i.map(t=>eQ(t,e)||C2.easeOut):C2[i]}function eN(i,e,t,{delay:s=0,duration:r=300,repeat:n=0,repeatType:o="loop",ease:l="easeOut",times:c}={},u=void 0){const d={[e]:t};c&&(d.offset=c);const m=eQ(l,r);Array.isArray(m)&&(d.easing=m);const g={delay:s,duration:r,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:n+1,direction:o==="reverse"?"alternate":"normal"};return u&&(g.pseudoElement=u),i.animate(d,g)}function tQ(i){return typeof i=="function"&&"applyToOptions"in i}function tN({type:i,...e}){return tQ(i)&&JP()?i.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class iQ extends Cb{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:s,keyframes:r,pseudoElement:n,allowFlatten:o=!1,finalKeyframe:l,onComplete:c}=e;this.isPseudoElement=!!n,this.allowFlatten=o,this.options=e,mb(typeof e.type!="string");const u=tN(e);this.animation=eN(t,s,r,u,n),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){const d=wb(r,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(d):G8(t,s,d),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;(t=(e=this.animation).finish)==null||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,s,r;const e=(t=this.options)==null?void 0:t.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((r=(s=this.animation).commitStyles)==null||r.call(s))}get duration(){var t,s;const e=((s=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:s.call(t).duration)||0;return tr(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tr(e)}get time(){return tr(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=br(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&J8()?(this.animation.timeline=e,ar):t(this)}}const sQ={anticipate:QP,backInOut:PP,circInOut:LP};function iN(i){return i in sQ}function sN(i){typeof i.ease=="string"&&iN(i.ease)&&(i.ease=sQ[i.ease])}const G0=10;class rN extends iQ{constructor(e){sN(e),HP(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:s,onComplete:r,element:n,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}const l=new kb({...o,autoplay:!1}),c=Math.max(G0,Ji.now()-this.startTime),u=tn(0,G0,c-G0);t.setWithVelocity(l.sample(Math.max(0,c-u)).value,l.sample(c).value,u),l.stop()}}const k2=(i,e)=>e==="zIndex"?!1:!!(typeof i=="number"||Array.isArray(i)||typeof i=="string"&&(Sr.test(i)||i==="0")&&!i.startsWith("url("));function nN(i){const e=i[0];if(i.length===1)return!0;for(let t=0;t<i.length;t++)if(i[t]!==e)return!0}function oN(i,e,t,s){const r=i[0];if(r===null)return!1;if(e==="display"||e==="visibility")return!0;const n=i[i.length-1],o=k2(r,e),l=k2(n,e);return!o||!l?!1:nN(i)||(t==="spring"||tQ(t))&&s}function o1(i){i.duration=0,i.type="keyframes"}const aN=new Set(["opacity","clipPath","filter","transform"]),lN=CP(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function hN(i){var d;const{motionValue:e,name:t,repeatDelay:s,repeatType:r,damping:n,type:o}=i;if(!(((d=e==null?void 0:e.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:u}=e.owner.getProps();return lN()&&t&&aN.has(t)&&(t!=="transform"||!u)&&!c&&!s&&r!=="mirror"&&n!==0&&o!=="inertia"}const cN=40;class uN extends Cb{constructor({autoplay:e=!0,delay:t=0,type:s="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o="loop",keyframes:l,name:c,motionValue:u,element:d,...m}){var y;super(),this.stop=()=>{var b,x;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(x=this.keyframeResolver)==null||x.cancel()},this.createdAt=Ji.now();const g={autoplay:e,delay:t,type:s,repeat:r,repeatDelay:n,repeatType:o,name:c,motionValue:u,element:d,...m},_=(d==null?void 0:d.KeyframeResolver)||Tb;this.keyframeResolver=new _(l,(b,x,w)=>this.onKeyframesResolved(b,x,g,!w),c,u,d),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(e,t,s,r){var x,w;this.keyframeResolver=void 0;const{name:n,type:o,velocity:l,delay:c,isHandoff:u,onUpdate:d}=s;this.resolvedAt=Ji.now(),oN(e,n,o,l)||((Zn.instantAnimations||!c)&&(d==null||d(wb(e,s,t))),e[0]=e[e.length-1],o1(s),s.repeat=0);const g={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>cN?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:t,...s,keyframes:e},_=!u&&hN(g),y=(w=(x=g.motionValue)==null?void 0:x.owner)==null?void 0:w.current,b=_?new rN({...g,element:y}):new kb(g);b.finished.then(()=>{this.notifyFinished()}).catch(ar),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),H8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function rQ(i,e,t,s=0,r=1){const n=Array.from(i).sort((u,d)=>u.sortNodePosition(d)).indexOf(e),o=i.size,l=(o-1)*s;return typeof t=="function"?t(n,o):r===1?n*s:l-n*s}const fN=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function dN(i){const e=fN.exec(i);if(!e)return[,];const[,t,s,r]=e;return[`--${t??s}`,r]}function nQ(i,e,t=1){const[s,r]=dN(i);if(!s)return;const n=window.getComputedStyle(e).getPropertyValue(s);if(n){const o=n.trim();return SP(o)?parseFloat(o):o}return vb(r)?nQ(r,e,t+1):r}const pN={type:"spring",stiffness:500,damping:25,restSpeed:10},mN=i=>({type:"spring",stiffness:550,damping:i===0?2*Math.sqrt(550):30,restSpeed:10}),gN={type:"keyframes",duration:.8},ON={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_N=(i,{keyframes:e})=>e.length>2?gN:Eh.has(i)?i.startsWith("scale")?mN(e[1]):pN:ON,vN=i=>i!==null;function yN(i,{repeat:e,repeatType:t="loop"},s){const r=i.filter(vN),n=e&&t!=="loop"&&e%2===1?0:r.length-1;return r[n]}function oQ(i,e){if(i!=null&&i.inherit&&e){const{inherit:t,...s}=i;return{...e,...s}}return i}function Ab(i,e){const t=(i==null?void 0:i[e])??(i==null?void 0:i.default)??i;return t!==i?oQ(t,i):t}function bN({when:i,delay:e,delayChildren:t,staggerChildren:s,staggerDirection:r,repeat:n,repeatType:o,repeatDelay:l,from:c,elapsed:u,...d}){return!!Object.keys(d).length}const Mb=(i,e,t,s={},r,n)=>o=>{const l=Ab(s,i)||{},c=l.delay||s.delay||0;let{elapsed:u=0}=s;u=u-br(c);const d={keyframes:Array.isArray(t)?t:[null,t],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-u,onUpdate:g=>{e.set(g),l.onUpdate&&l.onUpdate(g)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:i,motionValue:e,element:n?void 0:r};bN(l)||Object.assign(d,_N(i,d)),d.duration&&(d.duration=br(d.duration)),d.repeatDelay&&(d.repeatDelay=br(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let m=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(o1(d),d.delay===0&&(m=!0)),(Zn.instantAnimations||Zn.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(m=!0,o1(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,m&&!n&&e.get()!==void 0){const g=yN(d.keyframes,l);if(g!==void 0){dt.update(()=>{d.onUpdate(g),d.onComplete()});return}}return l.isSync?new kb(d):new uN(d)};function T2(i){const e=[{},{}];return i==null||i.values.forEach((t,s)=>{e[0][s]=t.get(),e[1][s]=t.getVelocity()}),e}function Eb(i,e,t,s){if(typeof e=="function"){const[r,n]=T2(s);e=e(t!==void 0?t:i.custom,r,n)}if(typeof e=="string"&&(e=i.variants&&i.variants[e]),typeof e=="function"){const[r,n]=T2(s);e=e(t!==void 0?t:i.custom,r,n)}return e}function nh(i,e,t){const s=i.getProps();return Eb(s,e,t!==void 0?t:s.custom,i)}const aQ=new Set(["width","height","top","left","right","bottom",...Mh]),A2=30,SN=i=>!isNaN(parseFloat(i));class xN{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var n;const r=Ji.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((n=this.events.change)==null||n.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Ji.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=SN(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new gb);const s=this.events[e].add(t);return e==="change"?()=>{s(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,s){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Ji.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>A2)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,A2);return kP(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;(e=this.dependents)==null||e.clear(),(t=this.events.destroy)==null||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function mh(i,e){return new xN(i,e)}const a1=i=>Array.isArray(i);function wN(i,e,t){i.hasValue(e)?i.getValue(e).set(t):i.addValue(e,mh(t))}function CN(i){return a1(i)?i[i.length-1]||0:i}function kN(i,e){const t=nh(i,e);let{transitionEnd:s={},transition:r={},...n}=t||{};n={...n,...s};for(const o in n){const l=CN(n[o]);wN(i,o,l)}}const Ii=i=>!!(i&&i.getVelocity);function TN(i){return!!(Ii(i)&&i.add)}function l1(i,e){const t=i.getValue("willChange");if(TN(t))return t.add(e);if(!t&&Zn.WillChange){const s=new Zn.WillChange("auto");i.addValue("willChange",s),s.add(e)}}function Pb(i){return i.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const AN="framerAppearId",lQ="data-"+Pb(AN);function hQ(i){return i.props[lQ]}function MN({protectedKeys:i,needsAnimating:e},t){const s=i.hasOwnProperty(t)&&e[t]!==!0;return e[t]=!1,s}function cQ(i,e,{delay:t=0,transitionOverride:s,type:r}={}){let{transition:n,transitionEnd:o,...l}=e;const c=i.getDefaultTransition();n=n?oQ(n,c):c;const u=n==null?void 0:n.reduceMotion;s&&(n=s);const d=[],m=r&&i.animationState&&i.animationState.getState()[r];for(const g in l){const _=i.getValue(g,i.latestValues[g]??null),y=l[g];if(y===void 0||m&&MN(m,g))continue;const b={delay:t,...Ab(n||{},g)},x=_.get();if(x!==void 0&&!_.isAnimating&&!Array.isArray(y)&&y===x&&!b.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const A=hQ(i);if(A){const P=window.MotionHandoffAnimation(A,g,dt);P!==null&&(b.startTime=P,w=!0)}}l1(i,g);const k=u??i.shouldReduceMotion;_.start(Mb(g,_,y,k&&aQ.has(g)?{type:!1}:b,i,w));const C=_.animation;C&&d.push(C)}if(o){const g=()=>dt.update(()=>{o&&kN(i,o)});d.length?Promise.all(d).then(g):g()}return d}function h1(i,e,t={}){var c;const s=nh(i,e,t.type==="exit"?(c=i.presenceContext)==null?void 0:c.custom:void 0);let{transition:r=i.getDefaultTransition()||{}}=s||{};t.transitionOverride&&(r=t.transitionOverride);const n=s?()=>Promise.all(cQ(i,s,t)):()=>Promise.resolve(),o=i.variantChildren&&i.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:m,staggerDirection:g}=r;return EN(i,e,u,d,m,g,t)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[n,o]:[o,n];return u().then(()=>d())}else return Promise.all([n(),o(t.delay)])}function EN(i,e,t=0,s=0,r=0,n=1,o){const l=[];for(const c of i.variantChildren)c.notify("AnimationStart",e),l.push(h1(c,e,{...o,delay:t+(typeof s=="function"?0:s)+rQ(i.variantChildren,c,s,r,n)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(l)}function PN(i,e,t={}){i.notify("AnimationStart",e);let s;if(Array.isArray(e)){const r=e.map(n=>h1(i,n,t));s=Promise.all(r)}else if(typeof e=="string")s=h1(i,e,t);else{const r=typeof e=="function"?nh(i,e,t.custom):e;s=Promise.all(cQ(i,r,t))}return s.then(()=>{i.notify("AnimationComplete",e)})}const QN={test:i=>i==="auto",parse:i=>i},uQ=i=>e=>e.test(i),fQ=[Ah,xe,Gr,Mo,a8,o8,QN],M2=i=>fQ.find(uQ(i));function RN(i){return typeof i=="number"?i===0:i!==null?i==="none"||i==="0"||wP(i):!0}const LN=new Set(["brightness","contrast","saturate","opacity"]);function $N(i){const[e,t]=i.slice(0,-1).split("(");if(e==="drop-shadow")return i;const[s]=t.match(yb)||[];if(!s)return i;const r=t.replace(s,"");let n=LN.has(e)?1:0;return s!==t&&(n*=100),e+"("+n+r+")"}const BN=/\b([a-z-]*)\(.*?\)/gu,c1={...Sr,getAnimatableNone:i=>{const e=i.match(BN);return e?e.map($N).join(" "):i}},u1={...Sr,getAnimatableNone:i=>{const e=Sr.parse(i);return Sr.createTransformer(i)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},E2={...Ah,transform:Math.round},DN={rotate:Mo,rotateX:Mo,rotateY:Mo,rotateZ:Mo,scale:Fd,scaleX:Fd,scaleY:Fd,scaleZ:Fd,skew:Mo,skewX:Mo,skewY:Mo,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:Qu,originX:g2,originY:g2,originZ:xe},Qb={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,inset:xe,insetBlock:xe,insetBlockStart:xe,insetBlockEnd:xe,insetInline:xe,insetInlineStart:xe,insetInlineEnd:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,paddingBlock:xe,paddingBlockStart:xe,paddingBlockEnd:xe,paddingInline:xe,paddingInlineStart:xe,paddingInlineEnd:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,marginBlock:xe,marginBlockStart:xe,marginBlockEnd:xe,marginInline:xe,marginInlineStart:xe,marginInlineEnd:xe,fontSize:xe,backgroundPositionX:xe,backgroundPositionY:xe,...DN,zIndex:E2,fillOpacity:Qu,strokeOpacity:Qu,numOctaves:E2},zN={...Qb,color:qt,backgroundColor:qt,outlineColor:qt,fill:qt,stroke:qt,borderColor:qt,borderTopColor:qt,borderRightColor:qt,borderBottomColor:qt,borderLeftColor:qt,filter:c1,WebkitFilter:c1,mask:u1,WebkitMask:u1},dQ=i=>zN[i],NN=new Set([c1,u1]);function pQ(i,e){let t=dQ(i);return NN.has(t)||(t=Sr),t.getAnimatableNone?t.getAnimatableNone(e):void 0}const XN=new Set(["auto","none","0"]);function VN(i,e,t){let s=0,r;for(;s<i.length&&!r;){const n=i[s];typeof n=="string"&&!XN.has(n)&&Ru(n).values.length&&(r=i[s]),s++}if(r&&t)for(const n of e)i[n]=pQ(t,r)}class ZN extends Tb{constructor(e,t,s,r,n){super(e,t,s,r,n,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:s}=this;if(!t||!t.current)return;super.readKeyframes();for(let d=0;d<e.length;d++){let m=e[d];if(typeof m=="string"&&(m=m.trim(),vb(m))){const g=nQ(m,t.current);g!==void 0&&(e[d]=g),d===e.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!aQ.has(s)||e.length!==2)return;const[r,n]=e,o=M2(r),l=M2(n),c=m2(r),u=m2(n);if(c!==u&&Do[s]){this.needsMeasurement=!0;return}if(o!==l)if(w2(o)&&w2(l))for(let d=0;d<e.length;d++){const m=e[d];typeof m=="string"&&(e[d]=parseFloat(m))}else Do[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,s=[];for(let r=0;r<e.length;r++)(e[r]===null||RN(e[r]))&&s.push(r);s.length&&VN(e,s,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Do[s](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];r!==void 0&&e.getValue(s,r).jump(r,!1)}measureEndState(){var l;const{element:e,name:t,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const n=s.length-1,o=s[n];s[n]=Do[t](e.measureViewportBox(),window.getComputedStyle(e.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([c,u])=>{e.getValue(c).set(u)}),this.resolveNoneKeyframes()}}const jN=new Set(["opacity","clipPath","filter","transform"]);function mQ(i,e,t){if(i==null)return[];if(i instanceof EventTarget)return[i];if(typeof i=="string"){let s=document;const r=(t==null?void 0:t[i])??s.querySelectorAll(i);return r?Array.from(r):[]}return Array.from(i).filter(s=>s!=null)}const gQ=(i,e)=>e&&typeof i=="number"?e.transform(i):i;function IN(i){return xP(i)&&"offsetHeight"in i}const{schedule:Rb}=DP(queueMicrotask,!1),_r={x:!1,y:!1};function OQ(){return _r.x||_r.y}function qN(i){return i==="x"||i==="y"?_r[i]?null:(_r[i]=!0,()=>{_r[i]=!1}):_r.x||_r.y?null:(_r.x=_r.y=!0,()=>{_r.x=_r.y=!1})}function _Q(i,e){const t=mQ(i),s=new AbortController,r={passive:!0,...e,signal:s.signal};return[t,r,()=>s.abort()]}function WN(i){return!(i.pointerType==="touch"||OQ())}function UN(i,e,t={}){const[s,r,n]=_Q(i,t);return s.forEach(o=>{let l=!1,c=!1,u;const d=()=>{o.removeEventListener("pointerleave",y)},m=x=>{u&&(u(x),u=void 0),d()},g=x=>{l=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),c&&(c=!1,m(x))},_=()=>{l=!0,window.addEventListener("pointerup",g,r),window.addEventListener("pointercancel",g,r)},y=x=>{if(x.pointerType!=="touch"){if(l){c=!0;return}m(x)}},b=x=>{if(!WN(x))return;c=!1;const w=e(o,x);typeof w=="function"&&(u=w,o.addEventListener("pointerleave",y,r))};o.addEventListener("pointerenter",b,r),o.addEventListener("pointerdown",_,r)}),n}const vQ=(i,e)=>e?i===e?!0:vQ(i,e.parentElement):!1,Lb=i=>i.pointerType==="mouse"?typeof i.button!="number"||i.button<=0:i.isPrimary!==!1,YN=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function HN(i){return YN.has(i.tagName)||i.isContentEditable===!0}const FN=new Set(["INPUT","SELECT","TEXTAREA"]);function GN(i){return FN.has(i.tagName)||i.isContentEditable===!0}const Dp=new WeakSet;function P2(i){return e=>{e.key==="Enter"&&i(e)}}function K0(i,e){i.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const KN=(i,e)=>{const t=i.currentTarget;if(!t)return;const s=P2(()=>{if(Dp.has(t))return;K0(t,"down");const r=P2(()=>{K0(t,"up")}),n=()=>K0(t,"cancel");t.addEventListener("keyup",r,e),t.addEventListener("blur",n,e)});t.addEventListener("keydown",s,e),t.addEventListener("blur",()=>t.removeEventListener("keydown",s),e)};function Q2(i){return Lb(i)&&!OQ()}const R2=new WeakSet;function JN(i,e,t={}){const[s,r,n]=_Q(i,t),o=l=>{const c=l.currentTarget;if(!Q2(l)||R2.has(l))return;Dp.add(c),t.stopPropagation&&R2.add(l);const u=e(c,l),d=(_,y)=>{window.removeEventListener("pointerup",m),window.removeEventListener("pointercancel",g),Dp.has(c)&&Dp.delete(c),Q2(_)&&typeof u=="function"&&u(_,{success:y})},m=_=>{d(_,c===window||c===document||t.useGlobalTarget||vQ(c,_.target))},g=_=>{d(_,!1)};window.addEventListener("pointerup",m,r),window.addEventListener("pointercancel",g,r)};return s.forEach(l=>{(t.useGlobalTarget?window:l).addEventListener("pointerdown",o,r),IN(l)&&(l.addEventListener("focus",u=>KN(u,r)),!HN(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),n}function $b(i){return xP(i)&&"ownerSVGElement"in i}const zp=new WeakMap;let Eo;const yQ=(i,e,t)=>(s,r)=>r&&r[0]?r[0][i+"Size"]:$b(s)&&"getBBox"in s?s.getBBox()[e]:s[t],e7=yQ("inline","width","offsetWidth"),t7=yQ("block","height","offsetHeight");function i7({target:i,borderBoxSize:e}){var t;(t=zp.get(i))==null||t.forEach(s=>{s(i,{get width(){return e7(i,e)},get height(){return t7(i,e)}})})}function s7(i){i.forEach(i7)}function r7(){typeof ResizeObserver>"u"||(Eo=new ResizeObserver(s7))}function n7(i,e){Eo||r7();const t=mQ(i);return t.forEach(s=>{let r=zp.get(s);r||(r=new Set,zp.set(s,r)),r.add(e),Eo==null||Eo.observe(s)}),()=>{t.forEach(s=>{const r=zp.get(s);r==null||r.delete(e),r!=null&&r.size||Eo==null||Eo.unobserve(s)})}}const Np=new Set;let Hl;function o7(){Hl=()=>{const i={get width(){return window.innerWidth},get height(){return window.innerHeight}};Np.forEach(e=>e(i))},window.addEventListener("resize",Hl)}function a7(i){return Np.add(i),Hl||o7(),()=>{Np.delete(i),!Np.size&&typeof Hl=="function"&&(window.removeEventListener("resize",Hl),Hl=void 0)}}function L2(i,e){return typeof i=="function"?a7(i):n7(i,e)}function l7(i){return $b(i)&&i.tagName==="svg"}const h7=[...fQ,qt,Sr],c7=i=>h7.find(uQ(i)),$2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Fl=()=>({x:$2(),y:$2()}),B2=()=>({min:0,max:0}),ii=()=>({x:B2(),y:B2()}),u7=new WeakMap;function rg(i){return i!==null&&typeof i=="object"&&typeof i.start=="function"}function Lu(i){return typeof i=="string"||Array.isArray(i)}const Bb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Db=["initial",...Bb];function ng(i){return rg(i.animate)||Db.some(e=>Lu(i[e]))}function bQ(i){return!!(ng(i)||i.variants)}function f7(i,e,t){for(const s in e){const r=e[s],n=t[s];if(Ii(r))i.addValue(s,r);else if(Ii(n))i.addValue(s,mh(r,{owner:i}));else if(n!==r)if(i.hasValue(s)){const o=i.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=i.getStaticValue(s);i.addValue(s,mh(o!==void 0?o:r,{owner:i}))}}for(const s in t)e[s]===void 0&&i.removeValue(s);return e}const f1={current:null},SQ={current:!1},d7=typeof window<"u";function p7(){if(SQ.current=!0,!!d7)if(window.matchMedia){const i=window.matchMedia("(prefers-reduced-motion)"),e=()=>f1.current=i.matches;i.addEventListener("change",e),e()}else f1.current=!1}const D2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let pm={};function xQ(i){pm=i}function m7(){return pm}class g7{scrapeMotionValuesFromProps(e,t,s){return{}}constructor({parent:e,props:t,presenceContext:s,reducedMotionConfig:r,skipAnimations:n,blockInitialAnimation:o,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Tb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 _=Ji.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,dt.render(this.render,!1,!0))};const{latestValues:u,renderState:d}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=n,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=ng(t),this.isVariantNode=bQ(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:m,...g}=this.scrapeMotionValuesFromProps(t,{},this);for(const _ in g){const y=g[_];u[_]!==void 0&&Ii(y)&&y.set(u[_])}}mount(e){var t,s;if(this.hasBeenMounted)for(const r in this.initialValues)(t=this.values.get(r))==null||t.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=e,u7.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(SQ.current||p7(),this.shouldReduceMotion=f1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),Zo(this.notifyUpdate),Zo(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const s=this.features[t];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&jN.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:l,times:c,ease:u,duration:d}=t.accelerate,m=new iQ({element:this.current,name:e,keyframes:l,times:c,ease:u,duration:br(d)}),g=o(m);this.valueSubscriptions.set(e,()=>{g(),m.cancel()});return}const s=Eh.has(e);s&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&dt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let n;typeof window<"u"&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in pm){const t=pm[e];if(!t)continue;const{isEnabled:s,Feature:r}=t;if(!this.features[e]&&r&&s(this.props)&&(this.features[e]=new r(this)),this.features[e]){const n=this.features[e];n.isMounted?n.update():(n.mount(),n.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ii()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let s=0;s<D2.length;s++){const r=D2[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n="on"+r,o=e[n];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=f7(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const s=this.values.get(e);t!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&t!==void 0&&(s=mh(t===null?void 0:t,{owner:this}),this.addValue(e,s)),s}readValue(e,t){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(SP(s)||wP(s))?s=parseFloat(s):!c7(s)&&Sr.test(t)&&(s=pQ(e,t)),this.setBaseTarget(e,Ii(s)?s.get():s)),Ii(s)?s.get():s}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var n;const{initial:t}=this.props;let s;if(typeof t=="string"||typeof t=="object"){const o=Eb(this.props,t,(n=this.presenceContext)==null?void 0:n.custom);o&&(s=o[e])}if(t&&s!==void 0)return s;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Ii(r)?r:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new gb),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Rb.render(this.render)}}class wQ extends g7{constructor(){super(...arguments),this.KeyframeResolver=ZN}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){const s=e.style;return s?s[t]:void 0}removeValueFromRenderState(e,{vars:t,style:s}){delete t[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Ii(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class Fo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function CQ({top:i,left:e,right:t,bottom:s}){return{x:{min:e,max:t},y:{min:i,max:s}}}function O7({x:i,y:e}){return{top:e.min,right:i.max,bottom:e.max,left:i.min}}function _7(i,e){if(!e)return i;const t=e({x:i.left,y:i.top}),s=e({x:i.right,y:i.bottom});return{top:t.y,left:t.x,bottom:s.y,right:s.x}}function J0(i){return i===void 0||i===1}function d1({scale:i,scaleX:e,scaleY:t}){return!J0(i)||!J0(e)||!J0(t)}function xa(i){return d1(i)||kQ(i)||i.z||i.rotate||i.rotateX||i.rotateY||i.skewX||i.skewY}function kQ(i){return z2(i.x)||z2(i.y)}function z2(i){return i&&i!=="0%"}function mm(i,e,t){const s=i-t,r=e*s;return t+r}function N2(i,e,t,s,r){return r!==void 0&&(i=mm(i,r,s)),mm(i,t,s)+e}function p1(i,e=0,t=1,s,r){i.min=N2(i.min,e,t,s,r),i.max=N2(i.max,e,t,s,r)}function TQ(i,{x:e,y:t}){p1(i.x,e.translate,e.scale,e.originPoint),p1(i.y,t.translate,t.scale,t.originPoint)}const X2=.999999999999,V2=1.0000000000001;function v7(i,e,t,s=!1){const r=t.length;if(!r)return;e.x=e.y=1;let n,o;for(let l=0;l<r;l++){n=t[l],o=n.projectionDelta;const{visualElement:c}=n.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Kl(i,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,TQ(i,o)),s&&xa(n.latestValues)&&Kl(i,n.latestValues))}e.x<V2&&e.x>X2&&(e.x=1),e.y<V2&&e.y>X2&&(e.y=1)}function Gl(i,e){i.min=i.min+e,i.max=i.max+e}function Z2(i,e,t,s,r=.5){const n=kt(i.min,i.max,r);p1(i,e,t,n,s)}function Kl(i,e){Z2(i.x,e.x,e.scaleX,e.scale,e.originX),Z2(i.y,e.y,e.scaleY,e.scale,e.originY)}function AQ(i,e){return CQ(_7(i.getBoundingClientRect(),e))}function y7(i,e,t){const s=AQ(i,t),{scroll:r}=e;return r&&(Gl(s.x,r.offset.x),Gl(s.y,r.offset.y)),s}const b7={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},S7=Mh.length;function x7(i,e,t){let s="",r=!0;for(let n=0;n<S7;n++){const o=Mh[n],l=i[o];if(l===void 0)continue;let c=!0;if(typeof l=="number")c=l===(o.startsWith("scale")?1:0);else{const u=parseFloat(l);c=o.startsWith("scale")?u===1:u===0}if(!c||t){const u=gQ(l,Qb[o]);if(!c){r=!1;const d=b7[o]||o;s+=`${d}(${u}) `}t&&(e[o]=u)}}return s=s.trim(),t?s=t(e,r?"":s):r&&(s="none"),s}function zb(i,e,t){const{style:s,vars:r,transformOrigin:n}=i;let o=!1,l=!1;for(const c in e){const u=e[c];if(Eh.has(c)){o=!0;continue}else if(NP(c)){r[c]=u;continue}else{const d=gQ(u,Qb[c]);c.startsWith("origin")?(l=!0,n[c]=d):s[c]=d}}if(e.transform||(o||t?s.transform=x7(e,i.transform,t):s.transform&&(s.transform="none")),l){const{originX:c="50%",originY:u="50%",originZ:d=0}=n;s.transformOrigin=`${c} ${u} ${d}`}}function MQ(i,{style:e,vars:t},s,r){const n=i.style;let o;for(o in e)n[o]=e[o];r==null||r.applyProjectionStyles(n,s);for(o in t)n.setProperty(o,t[o])}function j2(i,e){return e.max===e.min?0:i/(e.max-e.min)*100}const zc={correct:(i,e)=>{if(!e.target)return i;if(typeof i=="string")if(xe.test(i))i=parseFloat(i);else return i;const t=j2(i,e.target.x),s=j2(i,e.target.y);return`${t}% ${s}%`}},w7={correct:(i,{treeScale:e,projectionDelta:t})=>{const s=i,r=Sr.parse(i);if(r.length>5)return s;const n=Sr.createTransformer(i),o=typeof r[0]!="number"?1:0,l=t.x.scale*e.x,c=t.y.scale*e.y;r[0+o]/=l,r[1+o]/=c;const u=kt(l,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),n(r)}},m1={borderRadius:{...zc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zc,borderTopRightRadius:zc,borderBottomLeftRadius:zc,borderBottomRightRadius:zc,boxShadow:w7};function EQ(i,{layout:e,layoutId:t}){return Eh.has(i)||i.startsWith("origin")||(e||t!==void 0)&&(!!m1[i]||i==="opacity")}function Nb(i,e,t){var o;const s=i.style,r=e==null?void 0:e.style,n={};if(!s)return n;for(const l in s)(Ii(s[l])||r&&Ii(r[l])||EQ(l,i)||((o=t==null?void 0:t.getValue(l))==null?void 0:o.liveStyle)!==void 0)&&(n[l]=s[l]);return n}function C7(i){return window.getComputedStyle(i)}class k7 extends wQ{constructor(){super(...arguments),this.type="html",this.renderInstance=MQ}readValueFromInstance(e,t){var s;if(Eh.has(t))return(s=this.projection)!=null&&s.isProjecting?t1(t):I8(e,t);{const r=C7(e),n=(NP(t)?r.getPropertyValue(t):r[t])||0;return typeof n=="string"?n.trim():n}}measureInstanceViewportBox(e,{transformPagePoint:t}){return AQ(e,t)}build(e,t,s){zb(e,t,s.transformTemplate)}scrapeMotionValuesFromProps(e,t,s){return Nb(e,t,s)}}const T7={offset:"stroke-dashoffset",array:"stroke-dasharray"},A7={offset:"strokeDashoffset",array:"strokeDasharray"};function M7(i,e,t=1,s=0,r=!0){i.pathLength=1;const n=r?T7:A7;i[n.offset]=`${-s}`,i[n.array]=`${e} ${t}`}const E7=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function PQ(i,{attrX:e,attrY:t,attrScale:s,pathLength:r,pathSpacing:n=1,pathOffset:o=0,...l},c,u,d){if(zb(i,l,u),c){i.style.viewBox&&(i.attrs.viewBox=i.style.viewBox);return}i.attrs=i.style,i.style={};const{attrs:m,style:g}=i;m.transform&&(g.transform=m.transform,delete m.transform),(g.transform||m.transformOrigin)&&(g.transformOrigin=m.transformOrigin??"50% 50%",delete m.transformOrigin),g.transform&&(g.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete m.transformBox);for(const _ of E7)m[_]!==void 0&&(g[_]=m[_],delete m[_]);e!==void 0&&(m.x=e),t!==void 0&&(m.y=t),s!==void 0&&(m.scale=s),r!==void 0&&M7(m,r,n,o,!1)}const QQ=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"]),RQ=i=>typeof i=="string"&&i.toLowerCase()==="svg";function P7(i,e,t,s){MQ(i,e,void 0,s);for(const r in e.attrs)i.setAttribute(QQ.has(r)?r:Pb(r),e.attrs[r])}function LQ(i,e,t){const s=Nb(i,e,t);for(const r in i)if(Ii(i[r])||Ii(e[r])){const n=Mh.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[n]=i[r]}return s}class Q7 extends wQ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ii}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Eh.has(t)){const s=dQ(t);return s&&s.default||0}return t=QQ.has(t)?t:Pb(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,s){return LQ(e,t,s)}build(e,t,s){PQ(e,t,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,t,s,r){P7(e,t,s,r)}mount(e){this.isSVGTag=RQ(e.tagName),super.mount(e)}}const R7=Db.length;function $Q(i){if(!i)return;if(!i.isControllingVariants){const t=i.parent?$Q(i.parent)||{}:{};return i.props.initial!==void 0&&(t.initial=i.props.initial),t}const e={};for(let t=0;t<R7;t++){const s=Db[t],r=i.props[s];(Lu(r)||r===!1)&&(e[s]=r)}return e}function BQ(i,e){if(!Array.isArray(e))return!1;const t=e.length;if(t!==i.length)return!1;for(let s=0;s<t;s++)if(e[s]!==i[s])return!1;return!0}const L7=[...Bb].reverse(),$7=Bb.length;function B7(i){return e=>Promise.all(e.map(({animation:t,options:s})=>PN(i,t,s)))}function D7(i){let e=B7(i),t=I2(),s=!0;const r=c=>(u,d)=>{var g;const m=nh(i,d,c==="exit"?(g=i.presenceContext)==null?void 0:g.custom:void 0);if(m){const{transition:_,transitionEnd:y,...b}=m;u={...u,...b,...y}}return u};function n(c){e=c(i)}function o(c){const{props:u}=i,d=$Q(i.parent)||{},m=[],g=new Set;let _={},y=1/0;for(let x=0;x<$7;x++){const w=L7[x],k=t[w],C=u[w]!==void 0?u[w]:d[w],A=Lu(C),P=w===c?k.isActive:null;P===!1&&(y=x);let E=C===d[w]&&C!==u[w]&&A;if(E&&s&&i.manuallyAnimateOnMount&&(E=!1),k.protectedKeys={..._},!k.isActive&&P===null||!C&&!k.prevProp||rg(C)||typeof C=="boolean")continue;if(w==="exit"&&k.isActive&&P!==!0){k.prevResolvedValues&&(_={..._,...k.prevResolvedValues});continue}const $=z7(k.prevProp,C);let z=$||w===c&&k.isActive&&!E&&A||x>y&&A,I=!1;const se=Array.isArray(C)?C:[C];let F=se.reduce(r(w),{});P===!1&&(F={});const{prevResolvedValues:R={}}=k,L={...R,...F},N=X=>{z=!0,g.has(X)&&(I=!0,g.delete(X)),k.needsAnimating[X]=!0;const W=i.getValue(X);W&&(W.liveStyle=!1)};for(const X in L){const W=F[X],U=R[X];if(_.hasOwnProperty(X))continue;let q=!1;a1(W)&&a1(U)?q=!BQ(W,U):q=W!==U,q?W!=null?N(X):g.add(X):W!==void 0&&g.has(X)?N(X):k.protectedKeys[X]=!0}k.prevProp=C,k.prevResolvedValues=F,k.isActive&&(_={..._,...F}),s&&i.blockInitialAnimation&&(z=!1);const Z=E&&$;z&&(!Z||I)&&m.push(...se.map(X=>{const W={type:w};if(typeof X=="string"&&s&&!Z&&i.manuallyAnimateOnMount&&i.parent){const{parent:U}=i,q=nh(U,X);if(U.enteringChildren&&q){const{delayChildren:D}=q.transition||{};W.delay=rQ(U.enteringChildren,i,D)}}return{animation:X,options:W}}))}if(g.size){const x={};if(typeof u.initial!="boolean"){const w=nh(i,Array.isArray(u.initial)?u.initial[0]:u.initial);w&&w.transition&&(x.transition=w.transition)}g.forEach(w=>{const k=i.getBaseTarget(w),C=i.getValue(w);C&&(C.liveStyle=!0),x[w]=k??null}),m.push({animation:x})}let b=!!m.length;return s&&(u.initial===!1||u.initial===u.animate)&&!i.manuallyAnimateOnMount&&(b=!1),s=!1,b?e(m):Promise.resolve()}function l(c,u){var m;if(t[c].isActive===u)return Promise.resolve();(m=i.variantChildren)==null||m.forEach(g=>{var _;return(_=g.animationState)==null?void 0:_.setActive(c,u)}),t[c].isActive=u;const d=o(c);for(const g in t)t[g].protectedKeys={};return d}return{animateChanges:o,setActive:l,setAnimateFunction:n,getState:()=>t,reset:()=>{t=I2()}}}function z7(i,e){return typeof e=="string"?e!==i:Array.isArray(e)?!BQ(e,i):!1}function Oa(i=!1){return{isActive:i,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function I2(){return{animate:Oa(!0),whileInView:Oa(),whileHover:Oa(),whileTap:Oa(),whileDrag:Oa(),whileFocus:Oa(),exit:Oa()}}function q2(i,e){i.min=e.min,i.max=e.max}function mr(i,e){q2(i.x,e.x),q2(i.y,e.y)}function W2(i,e){i.translate=e.translate,i.scale=e.scale,i.originPoint=e.originPoint,i.origin=e.origin}const DQ=1e-4,N7=1-DQ,X7=1+DQ,zQ=.01,V7=0-zQ,Z7=0+zQ;function es(i){return i.max-i.min}function j7(i,e,t){return Math.abs(i-e)<=t}function U2(i,e,t,s=.5){i.origin=s,i.originPoint=kt(e.min,e.max,i.origin),i.scale=es(t)/es(e),i.translate=kt(t.min,t.max,i.origin)-i.originPoint,(i.scale>=N7&&i.scale<=X7||isNaN(i.scale))&&(i.scale=1),(i.translate>=V7&&i.translate<=Z7||isNaN(i.translate))&&(i.translate=0)}function vu(i,e,t,s){U2(i.x,e.x,t.x,s?s.originX:void 0),U2(i.y,e.y,t.y,s?s.originY:void 0)}function Y2(i,e,t){i.min=t.min+e.min,i.max=i.min+es(e)}function I7(i,e,t){Y2(i.x,e.x,t.x),Y2(i.y,e.y,t.y)}function H2(i,e,t){i.min=e.min-t.min,i.max=i.min+es(e)}function gm(i,e,t){H2(i.x,e.x,t.x),H2(i.y,e.y,t.y)}function F2(i,e,t,s,r){return i-=e,i=mm(i,1/t,s),r!==void 0&&(i=mm(i,1/r,s)),i}function q7(i,e=0,t=1,s=.5,r,n=i,o=i){if(Gr.test(e)&&(e=parseFloat(e),e=kt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=kt(n.min,n.max,s);i===n&&(l-=e),i.min=F2(i.min,e,t,l,r),i.max=F2(i.max,e,t,l,r)}function G2(i,e,[t,s,r],n,o){q7(i,e[t],e[s],e[r],e.scale,n,o)}const W7=["x","scaleX","originX"],U7=["y","scaleY","originY"];function K2(i,e,t,s){G2(i.x,e,W7,t?t.x:void 0,s?s.x:void 0),G2(i.y,e,U7,t?t.y:void 0,s?s.y:void 0)}function J2(i){return i.translate===0&&i.scale===1}function NQ(i){return J2(i.x)&&J2(i.y)}function e5(i,e){return i.min===e.min&&i.max===e.max}function Y7(i,e){return e5(i.x,e.x)&&e5(i.y,e.y)}function t5(i,e){return Math.round(i.min)===Math.round(e.min)&&Math.round(i.max)===Math.round(e.max)}function XQ(i,e){return t5(i.x,e.x)&&t5(i.y,e.y)}function i5(i){return es(i.x)/es(i.y)}function s5(i,e){return i.translate===e.translate&&i.scale===e.scale&&i.originPoint===e.originPoint}function Zr(i){return[i("x"),i("y")]}function H7(i,e,t){let s="";const r=i.x.translate/e.x,n=i.y.translate/e.y,o=(t==null?void 0:t.z)||0;if((r||n||o)&&(s=`translate3d(${r}px, ${n}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),t){const{transformPerspective:u,rotate:d,rotateX:m,rotateY:g,skewX:_,skewY:y}=t;u&&(s=`perspective(${u}px) ${s}`),d&&(s+=`rotate(${d}deg) `),m&&(s+=`rotateX(${m}deg) `),g&&(s+=`rotateY(${g}deg) `),_&&(s+=`skewX(${_}deg) `),y&&(s+=`skewY(${y}deg) `)}const l=i.x.scale*e.x,c=i.y.scale*e.y;return(l!==1||c!==1)&&(s+=`scale(${l}, ${c})`),s||"none"}const VQ=["TopLeft","TopRight","BottomLeft","BottomRight"],F7=VQ.length,r5=i=>typeof i=="string"?parseFloat(i):i,n5=i=>typeof i=="number"||xe.test(i);function G7(i,e,t,s,r,n){r?(i.opacity=kt(0,t.opacity??1,K7(s)),i.opacityExit=kt(e.opacity??1,0,J7(s))):n&&(i.opacity=kt(e.opacity??1,t.opacity??1,s));for(let o=0;o<F7;o++){const l=`border${VQ[o]}Radius`;let c=o5(e,l),u=o5(t,l);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||n5(c)===n5(u)?(i[l]=Math.max(kt(r5(c),r5(u),s),0),(Gr.test(u)||Gr.test(c))&&(i[l]+="%")):i[l]=u}(e.rotate||t.rotate)&&(i.rotate=kt(e.rotate||0,t.rotate||0,s))}function o5(i,e){return i[e]!==void 0?i[e]:i.borderRadius}const K7=ZQ(0,.5,RP),J7=ZQ(.5,.95,ar);function ZQ(i,e,t){return s=>s<i?0:s>e?1:t(Pu(i,e,s))}function eX(i,e,t){const s=Ii(i)?i:mh(i);return s.start(Mb("",s,e,t)),s.animation}function $u(i,e,t,s={passive:!0}){return i.addEventListener(e,t,s),()=>i.removeEventListener(e,t)}const tX=(i,e)=>i.depth-e.depth;class iX{constructor(){this.children=[],this.isDirty=!1}add(e){pb(this.children,e),this.isDirty=!0}remove(e){cm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tX),this.isDirty=!1,this.children.forEach(e)}}function sX(i,e){const t=Ji.now(),s=({timestamp:r})=>{const n=r-t;n>=e&&(Zo(s),i(n-e))};return dt.setup(s,!0),()=>Zo(s)}function Xp(i){return Ii(i)?i.get():i}class rX{constructor(){this.members=[]}add(e){pb(this.members,e);for(let t=this.members.length-1;t>=0;t--){const s=this.members[t];if(s===e||s===this.lead||s===this.prevLead)continue;const r=s.instance;r&&r.isConnected===!1&&s.isPresent!==!1&&!s.snapshot&&cm(this.members,s)}e.scheduleRender()}remove(e){if(cm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){const t=this.members.findIndex(r=>e===r);if(t===0)return!1;let s;for(let r=t;r>=0;r--){const n=this.members[r],o=n.instance;if(n.isPresent!==!1&&(!o||o.isConnected!==!1)){s=n;break}}return s?(this.promote(s),!0):!1}promote(e,t){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender();const r=s.options.layoutDependency,n=e.options.layoutDependency;if(!(r!==void 0&&n!==void 0&&r===n)){const c=s.instance;c&&c.isConnected===!1&&!s.snapshot||(e.resumeFrom=s,t&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}const{crossfade:l}=e.options;l===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:s}=e;t.onExitComplete&&t.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Vp={hasAnimatedSinceResize:!0,hasEverUpdated:!1},e_=["","X","Y","Z"],nX=1e3;let oX=0;function t_(i,e,t,s){const{latestValues:r}=e;r[i]&&(t[i]=r[i],e.setStaticValue(i,0),s&&(s[i]=0))}function jQ(i){if(i.hasCheckedOptimisedAppear=!0,i.root===i)return;const{visualElement:e}=i.options;if(!e)return;const t=hQ(e);if(window.MotionHasOptimisedAnimation(t,"transform")){const{layout:r,layoutId:n}=i.options;window.MotionCancelOptimisedAnimation(t,"transform",dt,!(r||n))}const{parent:s}=i;s&&!s.hasCheckedOptimisedAppear&&jQ(s)}function IQ({attachResizeListener:i,defaultParent:e,measureScroll:t,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},l=e==null?void 0:e()){this.id=oX++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hX),this.nodes.forEach(dX),this.nodes.forEach(pX),this.nodes.forEach(cX)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new iX)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new gb),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=$b(o)&&!l7(o),this.instance=o;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),i){let d,m=0;const g=()=>this.root.updateBlockedByResize=!1;dt.read(()=>{m=window.innerWidth}),i(o,()=>{const _=window.innerWidth;_!==m&&(m=_,this.root.updateBlockedByResize=!0,d&&d(),d=sX(g,250),Vp.hasAnimatedSinceResize&&(Vp.hasAnimatedSinceResize=!1,this.nodes.forEach(h5)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeLayoutChanged:g,layout:_})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||u.getDefaultTransition()||vX,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=u.getProps(),w=!this.targetLayout||!XQ(this.targetLayout,_),k=!m&&g;if(this.options.layoutRoot||this.resumeFrom||k||m&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...Ab(y,"layout"),onPlay:b,onComplete:x};(u.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,k)}else m||h5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=_})}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,this.eventHandlers.clear(),Zo(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(mX),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&&jQ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const m=this.path[d];m.shouldResetTransform=!0,m.updateScroll("snapshot"),m.options.layoutRoot&&m.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(a5);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(l5);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(fX),this.nodes.forEach(aX),this.nodes.forEach(lX)):this.nodes.forEach(l5),this.clearAllSnapshots();const l=Ji.now();Pi.delta=tn(0,1e3/60,l-Pi.timestamp),Pi.timestamp=l,Pi.isProcessing=!0,W0.update.process(Pi),W0.preRender.process(Pi),W0.render.process(Pi),Pi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Rb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uX),this.sharedNodes.forEach(gX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!es(this.snapshot.measuredBox.x)&&!es(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ii(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:t(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!NQ(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;o&&this.instance&&(l||xa(this.latestValues)||d)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),yX(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return ii();const l=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(bX))){const{scroll:d}=this.root;d&&(Gl(l.x,d.offset.x),Gl(l.y,d.offset.y))}return l}removeElementScroll(o){var c;const l=ii();if(mr(l,o),(c=this.scroll)!=null&&c.wasRoot)return l;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:m,options:g}=d;d!==this.root&&m&&g.layoutScroll&&(m.wasRoot&&mr(l,o),Gl(l.x,m.offset.x),Gl(l.y,m.offset.y))}return l}applyTransform(o,l=!1){const c=ii();mr(c,o);for(let u=0;u<this.path.length;u++){const d=this.path[u];!l&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Kl(c,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xa(d.latestValues)&&Kl(c,d.latestValues)}return xa(this.latestValues)&&Kl(c,this.latestValues),c}removeTransform(o){const l=ii();mr(l,o);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!xa(u.latestValues))continue;d1(u.latestValues)&&u.updateSnapshot();const d=ii(),m=u.measurePageBox();mr(d,m),K2(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return xa(this.latestValues)&&K2(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Pi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var _;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(o||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(_=this.parent)!=null&&_.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:m}=this.options;if(!this.layout||!(d||m))return;this.resolvedRelativeTargetAt=Pi.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ii(),this.targetWithTransforms=ii()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),I7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):mr(this.target,this.layout.layoutBox),TQ(this.target,this.targetDelta)):mr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||d1(this.parent.latestValues)||kQ(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,l,c){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ii(),this.relativeTargetOrigin=ii(),gm(this.relativeTargetOrigin,l,c),mr(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var y;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Pi.timestamp&&(c=!1),c)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;mr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;v7(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ii());const{target:_}=o;if(!_){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(W2(this.prevProjectionDelta.x,this.projectionDelta.x),W2(this.prevProjectionDelta.y,this.projectionDelta.y)),vu(this.projectionDelta,this.layoutCorrected,_,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!s5(this.projectionDelta.x,this.prevProjectionDelta.x)||!s5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",_))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Fl(),this.projectionDelta=Fl(),this.projectionDeltaWithTransform=Fl()}setAnimationOrigin(o,l=!1){const c=this.snapshot,u=c?c.latestValues:{},d={...this.latestValues},m=Fl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const g=ii(),_=c?c.source:void 0,y=this.layout?this.layout.source:void 0,b=_!==y,x=this.getStack(),w=!x||x.members.length<=1,k=!!(b&&!w&&this.options.crossfade===!0&&!this.path.some(_X));this.animationProgress=0;let C;this.mixTargetDelta=A=>{const P=A/1e3;c5(m.x,o.x,P),c5(m.y,o.y,P),this.setTargetDelta(m),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(gm(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),OX(this.relativeTarget,this.relativeTargetOrigin,g,P),C&&Y7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=ii()),mr(C,this.relativeTarget)),b&&(this.animationValues=d,G7(d,u,this.latestValues,P,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Zo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Vp.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=mh(0)),this.motionValue.jump(0,!1),this.currentAnimation=eX(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),o.onUpdate&&o.onUpdate(d)},onStop:()=>{},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(nX),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:d}=o;if(!(!l||!c||!u)){if(this!==o&&this.layout&&u&&qQ(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||ii();const m=es(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+m;const g=es(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+g}mr(l,c),Kl(l,d),vu(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new rX),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 l;const{layoutId:o}=this.options;return o?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:o}=this.options;return o?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),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:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&t_("z",o,u,this.animationValues);for(let d=0;d<e_.length;d++)t_(`rotate${e_[d]}`,o,u,this.animationValues),t_(`skew${e_[d]}`,o,u,this.animationValues);o.render();for(const d in u)o.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);o.scheduleRender()}applyProjectionStyles(o,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=Xp(l==null?void 0:l.pointerEvents)||"",o.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=Xp(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!xa(this.latestValues)&&(o.transform=c?c({},""):"none",this.hasProjected=!1);return}o.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let m=H7(this.projectionDeltaWithTransform,this.treeScale,d);c&&(m=c(d,m)),o.transform=m;const{x:g,y:_}=this.projectionDelta;o.transformOrigin=`${g.origin*100}% ${_.origin*100}% 0`,u.animationValues?o.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:o.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const y in m1){if(d[y]===void 0)continue;const{correct:b,applyTo:x,isCSSVariable:w}=m1[y],k=m==="none"?d[y]:b(d[y],u);if(x){const C=x.length;for(let A=0;A<C;A++)o[x[A]]=k}else w?this.options.visualElement.renderState.vars[y]=k:o[y]=k}this.options.layoutId&&(o.pointerEvents=u===this?Xp(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(a5),this.root.sharedNodes.clear()}}}function aX(i){i.updateLayout()}function lX(i){var t;const e=((t=i.resumeFrom)==null?void 0:t.snapshot)||i.snapshot;if(i.isLead()&&i.layout&&e&&i.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=i.layout,{animationType:n}=i.options,o=e.source!==i.layout.source;n==="size"?Zr(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],_=es(g);g.min=s[m].min,g.max=g.min+_}):qQ(n,e.layoutBox,s)&&Zr(m=>{const g=o?e.measuredBox[m]:e.layoutBox[m],_=es(s[m]);g.max=g.min+_,i.relativeTarget&&!i.currentAnimation&&(i.isProjectionDirty=!0,i.relativeTarget[m].max=i.relativeTarget[m].min+_)});const l=Fl();vu(l,s,e.layoutBox);const c=Fl();o?vu(c,i.applyTransform(r,!0),e.measuredBox):vu(c,s,e.layoutBox);const u=!NQ(l);let d=!1;if(!i.resumeFrom){const m=i.getClosestProjectingParent();if(m&&!m.resumeFrom){const{snapshot:g,layout:_}=m;if(g&&_){const y=ii();gm(y,e.layoutBox,g.layoutBox);const b=ii();gm(b,s,_.layoutBox),XQ(y,b)||(d=!0),m.options.layoutRoot&&(i.relativeTarget=b,i.relativeTargetOrigin=y,i.relativeParent=m)}}}i.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:c,layoutDelta:l,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(i.isLead()){const{onExitComplete:s}=i.options;s&&s()}i.options.transition=void 0}function hX(i){i.parent&&(i.isProjecting()||(i.isProjectionDirty=i.parent.isProjectionDirty),i.isSharedProjectionDirty||(i.isSharedProjectionDirty=!!(i.isProjectionDirty||i.parent.isProjectionDirty||i.parent.isSharedProjectionDirty)),i.isTransformDirty||(i.isTransformDirty=i.parent.isTransformDirty))}function cX(i){i.isProjectionDirty=i.isSharedProjectionDirty=i.isTransformDirty=!1}function uX(i){i.clearSnapshot()}function a5(i){i.clearMeasurements()}function l5(i){i.isLayoutDirty=!1}function fX(i){const{visualElement:e}=i.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),i.resetTransform()}function h5(i){i.finishAnimation(),i.targetDelta=i.relativeTarget=i.target=void 0,i.isProjectionDirty=!0}function dX(i){i.resolveTargetDelta()}function pX(i){i.calcProjection()}function mX(i){i.resetSkewAndRotation()}function gX(i){i.removeLeadSnapshot()}function c5(i,e,t){i.translate=kt(e.translate,0,t),i.scale=kt(e.scale,1,t),i.origin=e.origin,i.originPoint=e.originPoint}function u5(i,e,t,s){i.min=kt(e.min,t.min,s),i.max=kt(e.max,t.max,s)}function OX(i,e,t,s){u5(i.x,e.x,t.x,s),u5(i.y,e.y,t.y,s)}function _X(i){return i.animationValues&&i.animationValues.opacityExit!==void 0}const vX={duration:.45,ease:[.4,0,.1,1]},f5=i=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(i),d5=f5("applewebkit/")&&!f5("chrome/")?Math.round:ar;function p5(i){i.min=d5(i.min),i.max=d5(i.max)}function yX(i){p5(i.x),p5(i.y)}function qQ(i,e,t){return i==="position"||i==="preserve-aspect"&&!j7(i5(e),i5(t),.2)}function bX(i){var e;return i!==i.root&&((e=i.scroll)==null?void 0:e.wasRoot)}const SX=IQ({attachResizeListener:(i,e)=>$u(i,"resize",e),measureScroll:()=>{var i,e;return{x:document.documentElement.scrollLeft||((i=document.body)==null?void 0:i.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),i_={current:void 0},WQ=IQ({measureScroll:i=>({x:i.scrollLeft,y:i.scrollTop}),defaultParent:()=>{if(!i_.current){const i=new SX({});i.mount(window),i.setOptions({layoutScroll:!0}),i_.current=i}return i_.current},resetTransform:(i,e)=>{i.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:i=>window.getComputedStyle(i).position==="fixed"}),UQ=Y.createContext({transformPagePoint:i=>i,isStatic:!1,reducedMotion:"never"});function xX(i=!0){const e=Y.useContext(db);if(e===null)return[!0,null];const{isPresent:t,onExitComplete:s,register:r}=e,n=Y.useId();Y.useEffect(()=>{if(i)return r(n)},[i]);const o=Y.useCallback(()=>i&&s&&s(n),[n,s,i]);return!t&&s?[!1,o]:[!0]}const YQ=Y.createContext({strict:!1}),m5={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let g5=!1;function wX(){if(g5)return;const i={};for(const e in m5)i[e]={isEnabled:t=>m5[e].some(s=>!!t[s])};xQ(i),g5=!0}function HQ(){return wX(),m7()}function CX(i){const e=HQ();for(const t in i)e[t]={...e[t],...i[t]};xQ(e)}const kX=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","propagate","ignoreStrict","viewport"]);function Om(i){return i.startsWith("while")||i.startsWith("drag")&&i!=="draggable"||i.startsWith("layout")||i.startsWith("onTap")||i.startsWith("onPan")||i.startsWith("onLayout")||kX.has(i)}let FQ=i=>!Om(i);function TX(i){typeof i=="function"&&(FQ=e=>e.startsWith("on")?!Om(e):i(e))}try{TX(require("@emotion/is-prop-valid").default)}catch{}function AX(i,e,t){const s={};for(const r in i)r==="values"&&typeof i.values=="object"||(FQ(r)||t===!0&&Om(r)||!e&&!Om(r)||i.draggable&&r.startsWith("onDrag"))&&(s[r]=i[r]);return s}const og=Y.createContext({});function MX(i,e){if(ng(i)){const{initial:t,animate:s}=i;return{initial:t===!1||Lu(t)?t:void 0,animate:Lu(s)?s:void 0}}return i.inherit!==!1?e:{}}function EX(i){const{initial:e,animate:t}=MX(i,Y.useContext(og));return Y.useMemo(()=>({initial:e,animate:t}),[O5(e),O5(t)])}function O5(i){return Array.isArray(i)?i.join(" "):i}const Xb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GQ(i,e,t){for(const s in e)!Ii(e[s])&&!EQ(s,t)&&(i[s]=e[s])}function PX({transformTemplate:i},e){return Y.useMemo(()=>{const t=Xb();return zb(t,e,i),Object.assign({},t.vars,t.style)},[e])}function QX(i,e){const t=i.style||{},s={};return GQ(s,t,i),Object.assign(s,PX(i,e)),s}function RX(i,e){const t={},s=QX(i,e);return i.drag&&i.dragListener!==!1&&(t.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=i.drag===!0?"none":`pan-${i.drag==="x"?"y":"x"}`),i.tabIndex===void 0&&(i.onTap||i.onTapStart||i.whileTap)&&(t.tabIndex=0),t.style=s,t}const KQ=()=>({...Xb(),attrs:{}});function LX(i,e,t,s){const r=Y.useMemo(()=>{const n=KQ();return PQ(n,e,RQ(s),i.transformTemplate,i.style),{...n.attrs,style:{...n.style}}},[e]);if(i.style){const n={};GQ(n,i.style,i),r.style={...n,...r.style}}return r}const $X=["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 Vb(i){return typeof i!="string"||i.includes("-")?!1:!!($X.indexOf(i)>-1||/[A-Z]/u.test(i))}function BX(i,e,t,{latestValues:s},r,n=!1,o){const c=(o??Vb(i)?LX:RX)(e,s,r,i),u=AX(e,typeof i=="string",n),d=i!==Y.Fragment?{...u,...c,ref:t}:{},{children:m}=e,g=Y.useMemo(()=>Ii(m)?m.get():m,[m]);return Y.createElement(i,{...d,children:g})}function DX({scrapeMotionValuesFromProps:i,createRenderState:e},t,s,r){return{latestValues:zX(t,s,r,i),renderState:e()}}function zX(i,e,t,s){const r={},n=s(i,{});for(const g in n)r[g]=Xp(n[g]);let{initial:o,animate:l}=i;const c=ng(i),u=bQ(i);e&&u&&!c&&i.inherit!==!1&&(o===void 0&&(o=e.initial),l===void 0&&(l=e.animate));let d=t?t.initial===!1:!1;d=d||o===!1;const m=d?l:o;if(m&&typeof m!="boolean"&&!rg(m)){const g=Array.isArray(m)?m:[m];for(let _=0;_<g.length;_++){const y=Eb(i,g[_]);if(y){const{transitionEnd:b,transition:x,...w}=y;for(const k in w){let C=w[k];if(Array.isArray(C)){const A=d?C.length-1:0;C=C[A]}C!==null&&(r[k]=C)}for(const k in b)r[k]=b[k]}}}return r}const JQ=i=>(e,t)=>{const s=Y.useContext(og),r=Y.useContext(db),n=()=>DX(i,e,s,r);return t?n():Xz(n)},NX=JQ({scrapeMotionValuesFromProps:Nb,createRenderState:Xb}),XX=JQ({scrapeMotionValuesFromProps:LQ,createRenderState:KQ}),VX=Symbol.for("motionComponentSymbol");function ZX(i,e,t){const s=Y.useRef(t);Y.useInsertionEffect(()=>{s.current=t});const r=Y.useRef(null);return Y.useCallback(n=>{var l;n&&((l=i.onMount)==null||l.call(i,n)),e&&(n?e.mount(n):e.unmount());const o=s.current;if(typeof o=="function")if(n){const c=o(n);typeof c=="function"&&(r.current=c)}else r.current?(r.current(),r.current=null):o(n);else o&&(o.current=n)},[e])}const eR=Y.createContext({});function Il(i){return i&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"current")}function jX(i,e,t,s,r,n){var C,A;const{visualElement:o}=Y.useContext(og),l=Y.useContext(YQ),c=Y.useContext(db),u=Y.useContext(UQ),d=u.reducedMotion,m=u.skipAnimations,g=Y.useRef(null),_=Y.useRef(!1);s=s||l.renderer,!g.current&&s&&(g.current=s(i,{visualState:e,parent:o,props:t,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d,skipAnimations:m,isSVG:n}),_.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const y=g.current,b=Y.useContext(eR);y&&!y.projection&&r&&(y.type==="html"||y.type==="svg")&&IX(g.current,t,r,b);const x=Y.useRef(!1);Y.useInsertionEffect(()=>{y&&x.current&&y.update(t,c)});const w=t[lQ],k=Y.useRef(!!w&&!((C=window.MotionHandoffIsComplete)!=null&&C.call(window,w))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,w)));return Vz(()=>{_.current=!0,y&&(x.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),k.current&&y.animationState&&y.animationState.animateChanges())}),Y.useEffect(()=>{y&&(!k.current&&y.animationState&&y.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,w)}),k.current=!1),y.enteringChildren=void 0)}),y}function IX(i,e,t,s){const{layoutId:r,layout:n,drag:o,dragConstraints:l,layoutScroll:c,layoutRoot:u,layoutCrossfade:d}=e;i.projection=new t(i.latestValues,e["data-framer-portal-id"]?void 0:tR(i.parent)),i.projection.setOptions({layoutId:r,layout:n,alwaysMeasureLayout:!!o||l&&Il(l),visualElement:i,animationType:typeof n=="string"?n:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:c,layoutRoot:u})}function tR(i){if(i)return i.options.allowProjection!==!1?i.projection:tR(i.parent)}function s_(i,{forwardMotionProps:e=!1,type:t}={},s,r){s&&CX(s);const n=t?t==="svg":Vb(i),o=n?XX:NX;function l(u,d){let m;const g={...Y.useContext(UQ),...u,layoutId:qX(u)},{isStatic:_}=g,y=EX(u),b=o(u,_);if(!_&&bP){WX();const x=UX(g);m=x.MeasureLayout,y.visualElement=jX(i,b,g,r,x.ProjectionNode,n)}return M.jsxs(og.Provider,{value:y,children:[m&&y.visualElement?M.jsx(m,{visualElement:y.visualElement,...g}):null,BX(i,u,ZX(b,y.visualElement,d),b,_,e,n)]})}l.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const c=Y.forwardRef(l);return c[VX]=i,c}function qX({layoutId:i}){const e=Y.useContext(yP).id;return e&&i!==void 0?e+"-"+i:i}function WX(i,e){Y.useContext(YQ).strict}function UX(i){const e=HQ(),{drag:t,layout:s}=e;if(!t&&!s)return{};const r={...t,...s};return{MeasureLayout:t!=null&&t.isEnabled(i)||s!=null&&s.isEnabled(i)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function YX(i,e){if(typeof Proxy>"u")return s_;const t=new Map,s=(n,o)=>s_(n,o,i,e),r=(n,o)=>s(n,o);return new Proxy(r,{get:(n,o)=>o==="create"?s:(t.has(o)||t.set(o,s_(o,void 0,i,e)),t.get(o))})}const HX=(i,e)=>e.isSVG??Vb(i)?new Q7(e):new k7(e,{allowProjection:i!==Y.Fragment});class FX extends Fo{constructor(e){super(e),e.animationState||(e.animationState=D7(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();rg(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let GX=0;class KX extends Fo{constructor(){super(...arguments),this.id=GX++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const JX={animation:{Feature:FX},exit:{Feature:KX}};function gf(i){return{point:{x:i.pageX,y:i.pageY}}}const eV=i=>e=>Lb(e)&&i(e,gf(e));function yu(i,e,t,s){return $u(i,e,eV(t),s)}const iR=({current:i})=>i?i.ownerDocument.defaultView:null,_5=(i,e)=>Math.abs(i-e);function tV(i,e){const t=_5(i.x,e.x),s=_5(i.y,e.y);return Math.sqrt(t**2+s**2)}const v5=new Set(["auto","scroll"]);class sR{constructor(e,t,{transformPagePoint:s,contextWindow:r=window,dragSnapToOrigin:n=!1,distanceThreshold:o=3,element:l}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=_=>{this.handleScroll(_.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=n_(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,b=tV(_.offset,{x:0,y:0})>=this.distanceThreshold;if(!y&&!b)return;const{point:x}=_,{timestamp:w}=Pi;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;y||(k&&k(this.lastMoveEvent,_),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,_)},this.handlePointerMove=(_,y)=>{this.lastMoveEvent=_,this.lastMoveEventInfo=r_(y,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(_,y)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:w}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=n_(_.type==="pointercancel"?this.lastMoveEventInfo:r_(y,this.transformPagePoint),this.history);this.startEvent&&b&&b(_,k),x&&x(_,k)},!Lb(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=r||window;const c=gf(e),u=r_(c,this.transformPagePoint),{point:d}=u,{timestamp:m}=Pi;this.history=[{...d,timestamp:m}];const{onSessionStart:g}=t;g&&g(e,n_(u,this.history)),this.removeListeners=df(yu(this.contextWindow,"pointermove",this.handlePointerMove),yu(this.contextWindow,"pointerup",this.handlePointerUp),yu(this.contextWindow,"pointercancel",this.handlePointerUp)),l&&this.startScrollTracking(l)}startScrollTracking(e){let t=e.parentElement;for(;t;){const s=getComputedStyle(t);(v5.has(s.overflowX)||v5.has(s.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const s=e===window,r=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:r.x-t.x,y:r.y-t.y};n.x===0&&n.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,r),dt.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Zo(this.updatePoint)}}function r_(i,e){return e?{point:e(i.point)}:i}function y5(i,e){return{x:i.x-e.x,y:i.y-e.y}}function n_({point:i},e){return{point:i,delta:y5(i,rR(e)),offset:y5(i,iV(e)),velocity:sV(e,.1)}}function iV(i){return i[0]}function rR(i){return i[i.length-1]}function sV(i,e){if(i.length<2)return{x:0,y:0};let t=i.length-1,s=null;const r=rR(i);for(;t>=0&&(s=i[t],!(r.timestamp-s.timestamp>br(e)));)t--;if(!s)return{x:0,y:0};s===i[0]&&i.length>2&&r.timestamp-s.timestamp>br(e)*2&&(s=i[1]);const n=tr(r.timestamp-s.timestamp);if(n===0)return{x:0,y:0};const o={x:(r.x-s.x)/n,y:(r.y-s.y)/n};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function rV(i,{min:e,max:t},s){return e!==void 0&&i<e?i=s?kt(e,i,s.min):Math.max(i,e):t!==void 0&&i>t&&(i=s?kt(t,i,s.max):Math.min(i,t)),i}function b5(i,e,t){return{min:e!==void 0?i.min+e:void 0,max:t!==void 0?i.max+t-(i.max-i.min):void 0}}function nV(i,{top:e,left:t,bottom:s,right:r}){return{x:b5(i.x,t,r),y:b5(i.y,e,s)}}function S5(i,e){let t=e.min-i.min,s=e.max-i.max;return e.max-e.min<i.max-i.min&&([t,s]=[s,t]),{min:t,max:s}}function oV(i,e){return{x:S5(i.x,e.x),y:S5(i.y,e.y)}}function aV(i,e){let t=.5;const s=es(i),r=es(e);return r>s?t=Pu(e.min,e.max-s,i.min):s>r&&(t=Pu(i.min,i.max-r,e.min)),tn(0,1,t)}function lV(i,e){const t={};return e.min!==void 0&&(t.min=e.min-i.min),e.max!==void 0&&(t.max=e.max-i.min),t}const g1=.35;function hV(i=g1){return i===!1?i=0:i===!0&&(i=g1),{x:x5(i,"left","right"),y:x5(i,"top","bottom")}}function x5(i,e,t){return{min:w5(i,e),max:w5(i,t)}}function w5(i,e){return typeof i=="number"?i:i[e]||0}const cV=new WeakMap;class uV{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ii(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:s}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const n=m=>{t&&this.snapToCursor(gf(m).point),this.stopAnimation()},o=(m,g)=>{const{drag:_,dragPropagation:y,onDragStart:b}=this.getProps();if(_&&!y&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qN(_),!this.openDragLock))return;this.latestPointerEvent=m,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zr(w=>{let k=this.getAxisMotionValue(w).get()||0;if(Gr.test(k)){const{projection:C}=this.visualElement;if(C&&C.layout){const A=C.layout.layoutBox[w];A&&(k=es(A)*(parseFloat(k)/100))}}this.originPoint[w]=k}),b&&dt.update(()=>b(m,g),!1,!0),l1(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g;const{dragPropagation:_,dragDirectionLock:y,onDirectionLock:b,onDrag:x}=this.getProps();if(!_&&!this.openDragLock)return;const{offset:w}=g;if(y&&this.currentDirection===null){this.currentDirection=dV(w),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",g.point,w),this.updateAxis("y",g.point,w),this.visualElement.render(),x&&dt.update(()=>x(m,g),!1,!0)},c=(m,g)=>{this.latestPointerEvent=m,this.latestPanInfo=g,this.stop(m,g),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:m}=this.getProps();(m||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:d}=this.getProps();this.panSession=new sR(e,{onSessionStart:n,onStart:o,onMove:l,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:s,contextWindow:iR(this.visualElement),element:this.visualElement.current})}stop(e,t){const s=e||this.latestPointerEvent,r=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!r||!s)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:l}=this.getProps();l&&dt.postRender(()=>l(s,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,s){const{drag:r}=this.getProps();if(!s||!Gd(e,r,this.currentDirection))return;const n=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=rV(o,this.constraints[e],this.elastic[e])),n.set(o)}resolveConstraints(){var n;const{dragConstraints:e,dragElastic:t}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(n=this.visualElement.projection)==null?void 0:n.layout,r=this.constraints;e&&Il(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=nV(s.layoutBox,e):this.constraints=!1,this.elastic=hV(t),r!==this.constraints&&!Il(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&Zr(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=lV(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Il(e))return!1;const s=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const n=y7(s,r.root,this.visualElement.getTransformPagePoint());let o=oV(r.layout.layoutBox,n);if(t){const l=t(O7(o));this.hasMutatedConstraints=!!l,l&&(o=CQ(l))}return o}startAnimation(e){const{drag:t,dragMomentum:s,dragElastic:r,dragTransition:n,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},u=Zr(d=>{if(!Gd(d,t,this.currentDirection))return;let m=c&&c[d]||{};o&&(m={min:0,max:0});const g=r?200:1e6,_=r?40:1e7,y={type:"inertia",velocity:s?e[d]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...n,...m};return this.startAxisValueAnimation(d,y)});return Promise.all(u).then(l)}startAxisValueAnimation(e,t){const s=this.getAxisMotionValue(e);return l1(this.visualElement,e),s.start(Mb(e,s,0,t,this.visualElement,!1))}stopAnimation(){Zr(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),r=s[t];return r||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){Zr(t=>{const{drag:s}=this.getProps();if(!Gd(t,s,this.currentDirection))return;const{projection:r}=this.visualElement,n=this.getAxisMotionValue(t);if(r&&r.layout){const{min:o,max:l}=r.layout.layoutBox[t],c=n.get()||0;n.set(e[t]-kt(o,l,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:s}=this.visualElement;if(!Il(t)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Zr(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();r[o]=aV({min:c,max:c},this.constraints[o])}});const{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Zr(o=>{if(!Gd(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:u}=this.constraints[o];l.set(kt(c,u,r[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cV.set(this.visualElement,this);const e=this.visualElement.current,t=yu(e,"pointerdown",u=>{const{drag:d,dragListener:m=!0}=this.getProps(),g=u.target,_=g!==e&&GN(g);d&&m&&!_&&this.start(u)});let s;const r=()=>{const{dragConstraints:u}=this.getProps();Il(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=fV(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:n}=this.visualElement,o=n.addEventListener("measure",r);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),dt.read(r);const l=$u(window,"resize",()=>this.scalePositionWithinConstraints()),c=n.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:d})=>{this.isDragging&&d&&(Zr(m=>{const g=this.getAxisMotionValue(m);g&&(this.originPoint[m]+=u[m].translate,g.set(g.get()+u[m].translate))}),this.visualElement.render())}));return()=>{l(),t(),o(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:o=g1,dragMomentum:l=!0}=e;return{...e,drag:t,dragDirectionLock:s,dragPropagation:r,dragConstraints:n,dragElastic:o,dragMomentum:l}}}function C5(i){let e=!0;return()=>{if(e){e=!1;return}i()}}function fV(i,e,t){const s=L2(i,C5(t)),r=L2(e,C5(t));return()=>{s(),r()}}function Gd(i,e,t){return(e===!0||e===i)&&(t===null||t===i)}function dV(i,e=10){let t=null;return Math.abs(i.y)>e?t="y":Math.abs(i.x)>e&&(t="x"),t}class pV extends Fo{constructor(e){super(e),this.removeGroupControls=ar,this.removeListeners=ar,this.controls=new uV(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ar}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const o_=i=>(e,t)=>{i&&dt.update(()=>i(e,t),!1,!0)};class mV extends Fo{constructor(){super(...arguments),this.removePointerDownListener=ar}onPointerDown(e){this.session=new sR(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iR(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:o_(e),onStart:o_(t),onMove:o_(s),onEnd:(n,o)=>{delete this.session,r&&dt.postRender(()=>r(n,o))}}}mount(){this.removePointerDownListener=yu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let a_=!1;class gV extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:s,layoutId:r}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),s&&s.register&&r&&s.register(n),a_&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Vp.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:s,drag:r,isPresent:n}=this.props,{projection:o}=s;return o&&(o.isPresent=n,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),a_=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==n?o.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?o.promote():o.relegate()||dt.postRender(()=>{const l=o.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Rb.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:s}=this.props,{projection:r}=e;a_=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nR(i){const[e,t]=xX(),s=Y.useContext(yP);return M.jsx(gV,{...i,layoutGroup:s,switchLayoutGroup:Y.useContext(eR),isPresent:e,safeToRemove:t})}const OV={pan:{Feature:mV},drag:{Feature:pV,ProjectionNode:WQ,MeasureLayout:nR}};function k5(i,e,t){const{props:s}=i;i.animationState&&s.whileHover&&i.animationState.setActive("whileHover",t==="Start");const r="onHover"+t,n=s[r];n&&dt.postRender(()=>n(e,gf(e)))}class _V extends Fo{mount(){const{current:e}=this.node;e&&(this.unmount=UN(e,(t,s)=>(k5(this.node,s,"Start"),r=>k5(this.node,r,"End"))))}unmount(){}}class vV extends Fo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=df($u(this.node.current,"focus",()=>this.onFocus()),$u(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function T5(i,e,t){const{props:s}=i;if(i.current instanceof HTMLButtonElement&&i.current.disabled)return;i.animationState&&s.whileTap&&i.animationState.setActive("whileTap",t==="Start");const r="onTap"+(t==="End"?"":t),n=s[r];n&&dt.postRender(()=>n(e,gf(e)))}class yV extends Fo{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:s}=this.node.props;this.unmount=JN(e,(r,n)=>(T5(this.node,n,"Start"),(o,{success:l})=>T5(this.node,o,l?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const O1=new WeakMap,l_=new WeakMap,bV=i=>{const e=O1.get(i.target);e&&e(i)},SV=i=>{i.forEach(bV)};function xV({root:i,...e}){const t=i||document;l_.has(t)||l_.set(t,{});const s=l_.get(t),r=JSON.stringify(e);return s[r]||(s[r]=new IntersectionObserver(SV,{root:i,...e})),s[r]}function wV(i,e,t){const s=xV(e);return O1.set(i,t),s.observe(i),()=>{O1.delete(i),s.unobserve(i)}}const CV={some:0,all:1};class kV extends Fo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:s,amount:r="some",once:n}=e,o={root:t?t.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:CV[r]},l=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,n&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:m}=this.node.getProps(),g=u?d:m;g&&g(c)};return wV(this.node.current,o,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(TV(e,t))&&this.startObserver()}unmount(){}}function TV({viewport:i={}},{viewport:e={}}={}){return t=>i[t]!==e[t]}const AV={inView:{Feature:kV},tap:{Feature:yV},focus:{Feature:vV},hover:{Feature:_V}},MV={layout:{ProjectionNode:WQ,MeasureLayout:nR}},EV={...JX,...AV,...OV,...MV},oR=YX(EV,HX);function PV({roadmap:i,state:e,todos:t}){var m;const{connected:s}=ff(),r=(i==null?void 0:i.progress_percent)??0,n=(i==null?void 0:i.current_phase)??(e==null?void 0:e.currentPhase)??"--",o=((m=i==null?void 0:i.phases.find(g=>g.number===i.current_phase))==null?void 0:m.name)??"",l=(e==null?void 0:e.blockers.filter(g=>!g.includes("RESOLVED")).length)??0,c=(t==null?void 0:t.pending.length)??0,u=(i==null?void 0:i.completed_phases)??0,d=(i==null?void 0:i.phase_count)??0;return M.jsxs("div",{className:"border-b border-border pb-6",children:[M.jsxs("div",{className:"flex items-center justify-between mb-4",children:[M.jsx("span",{className:"font-mono text-[10px] uppercase tracking-widest text-muted-foreground",children:"Milestone Progress"}),M.jsxs("div",{className:"flex items-center gap-4",children:[M.jsxs("span",{className:"font-mono text-[10px] text-muted-foreground tabular-nums",children:[u,"/",d," phases"]}),M.jsx("span",{className:`inline-block h-1.5 w-1.5 ${s?"bg-success":"bg-danger"}`,title:s?"Connected":"Disconnected"})]})]}),M.jsx("div",{className:"h-1 w-full bg-muted mb-5",children:M.jsx(oR.div,{className:"h-full bg-accent",initial:{width:0},animate:{width:`${r}%`},transition:{duration:.6,ease:"easeOut"}})}),M.jsxs("div",{className:"flex items-end gap-10",children:[M.jsxs("div",{children:[M.jsx("span",{className:"font-mono text-3xl font-bold tabular-nums text-foreground leading-none",children:r}),M.jsx("span",{className:"font-mono text-sm text-muted-foreground ml-1",children:"%"})]}),M.jsxs("div",{className:"border-l border-border pl-10",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Current"}),M.jsxs("div",{className:"flex items-baseline gap-2",children:[M.jsx("span",{className:"font-mono text-sm font-bold text-accent",children:n}),M.jsx("span",{className:"text-sm text-foreground/80",children:o})]})]}),M.jsxs("div",{className:"ml-auto flex items-end gap-8",children:[M.jsxs("div",{className:"text-right",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Blockers"}),M.jsx("span",{className:`font-mono text-xl font-bold tabular-nums ${l>0?"text-danger":"text-muted-foreground"}`,children:l})]}),M.jsxs("div",{className:"text-right",children:[M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest text-muted-foreground block mb-1",children:"Todos"}),M.jsx("span",{className:`font-mono text-xl font-bold tabular-nums ${c>0?"text-warning":"text-muted-foreground"}`,children:c})]})]})]})]})}function A5(i){switch(i){case"complete":return"bg-success";case"partial":return"bg-accent";default:return"bg-muted-foreground"}}function QV({phaseName:i,phaseNumber:e,completedPlans:t,totalPlans:s,status:r,roadmapComplete:n,isCurrent:o,onClick:l,onToggleComplete:c}){const u=s>0?Math.round(t/s*100):0;return M.jsxs("button",{type:"button",onClick:()=>l(e),className:`group w-full text-left transition-colors border-b border-border ${o?"bg-card-hover border-l-2 border-l-accent":"hover:bg-card-hover border-l-2 border-l-transparent"}`,children:[M.jsxs("div",{className:"flex items-center gap-3 px-4 py-3",children:[c?M.jsx("input",{type:"checkbox",checked:n,onChange:d=>{d.stopPropagation(),c(e,d.target.checked)},onClick:d=>d.stopPropagation(),className:"h-3 w-3 shrink-0 cursor-pointer accent-accent",title:n?"Mark incomplete":"Mark complete"}):M.jsx("span",{className:`inline-block h-1.5 w-1.5 shrink-0 ${A5(r)}`}),M.jsx("span",{className:`font-mono text-xs font-bold tabular-nums ${o?"text-accent":"text-muted-foreground"}`,children:e}),M.jsx("span",{className:"truncate text-xs text-foreground/90",children:i}),M.jsxs("span",{className:"ml-auto shrink-0 font-mono text-[10px] text-muted-foreground tabular-nums",children:[t,"/",s]})]}),M.jsx("div",{className:"h-px w-full bg-muted",children:M.jsx(oR.div,{className:`h-full ${A5(r)}`,initial:{width:0},animate:{width:`${u}%`},transition:{duration:.5,ease:"easeOut"}})})]})}function RV({phases:i,currentPhase:e,onPhaseClick:t,onToggleComplete:s}){return M.jsxs("div",{className:"flex flex-col gap-1",children:[M.jsxs("div",{className:"flex items-center justify-between px-4 pb-2",children:[M.jsx("span",{className:"font-mono text-xs uppercase tracking-widest text-muted-foreground",children:"Phases"}),M.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:i.length})]}),M.jsx("div",{className:"flex flex-col gap-1",children:i.length===0?M.jsxs("div",{className:"flex flex-col items-center gap-3 px-4 py-10 text-center",children:[M.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:"No project initialized yet."}),M.jsxs("span",{className:"font-mono text-xs text-muted-foreground",children:["Run"," ",M.jsx("code",{className:"rounded-sm bg-muted px-1.5 py-0.5 text-accent",children:"/maxsim:new-project"})," ","in Claude Code to get started."]})]}):i.map(r=>M.jsx(QV,{phaseNumber:r.number,phaseName:r.name,completedPlans:r.summaryCount,totalPlans:r.planCount,status:r.diskStatus,roadmapComplete:r.roadmapComplete,isCurrent:r.number===e,onClick:t,onToggleComplete:s},r.number))})]})}function aR(i){var e,t,s="";if(typeof i=="string"||typeof i=="number")s+=i;else if(typeof i=="object")if(Array.isArray(i)){var r=i.length;for(e=0;e<r;e++)i[e]&&(t=aR(i[e]))&&(s&&(s+=" "),s+=t)}else for(t in i)i[t]&&(s&&(s+=" "),s+=t);return s}function LV(){for(var i,e,t=0,s="",r=arguments.length;t<r;t++)(i=arguments[t])&&(e=aR(i))&&(s&&(s+=" "),s+=e);return s}const $V=(i,e)=>{const t=new Array(i.length+e.length);for(let s=0;s<i.length;s++)t[s]=i[s];for(let s=0;s<e.length;s++)t[i.length+s]=e[s];return t},BV=(i,e)=>({classGroupId:i,validator:e}),lR=(i=new Map,e=null,t)=>({nextPart:i,validators:e,classGroupId:t}),_m="-",M5=[],DV="arbitrary..",zV=i=>{const e=XV(i),{conflictingClassGroups:t,conflictingClassGroupModifiers:s}=i;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return NV(o);const l=o.split(_m),c=l[0]===""&&l.length>1?1:0;return hR(l,c,e)},getConflictingClassGroupIds:(o,l)=>{if(l){const c=s[o],u=t[o];return c?u?$V(u,c):c:u||M5}return t[o]||M5}}},hR=(i,e,t)=>{if(i.length-e===0)return t.classGroupId;const r=i[e],n=t.nextPart.get(r);if(n){const u=hR(i,e+1,n);if(u)return u}const o=t.validators;if(o===null)return;const l=e===0?i.join(_m):i.slice(e).join(_m),c=o.length;for(let u=0;u<c;u++){const d=o[u];if(d.validator(l))return d.classGroupId}},NV=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=i.slice(1,-1),t=e.indexOf(":"),s=e.slice(0,t);return s?DV+s:void 0})(),XV=i=>{const{theme:e,classGroups:t}=i;return VV(t,e)},VV=(i,e)=>{const t=lR();for(const s in i){const r=i[s];Zb(r,t,s,e)}return t},Zb=(i,e,t,s)=>{const r=i.length;for(let n=0;n<r;n++){const o=i[n];ZV(o,e,t,s)}},ZV=(i,e,t,s)=>{if(typeof i=="string"){jV(i,e,t);return}if(typeof i=="function"){IV(i,e,t,s);return}qV(i,e,t,s)},jV=(i,e,t)=>{const s=i===""?e:cR(e,i);s.classGroupId=t},IV=(i,e,t,s)=>{if(WV(i)){Zb(i(s),e,t,s);return}e.validators===null&&(e.validators=[]),e.validators.push(BV(t,i))},qV=(i,e,t,s)=>{const r=Object.entries(i),n=r.length;for(let o=0;o<n;o++){const[l,c]=r[o];Zb(c,cR(e,l),t,s)}},cR=(i,e)=>{let t=i;const s=e.split(_m),r=s.length;for(let n=0;n<r;n++){const o=s[n];let l=t.nextPart.get(o);l||(l=lR(),t.nextPart.set(o,l)),t=l}return t},WV=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,UV=i=>{if(i<1)return{get:()=>{},set:()=>{}};let e=0,t=Object.create(null),s=Object.create(null);const r=(n,o)=>{t[n]=o,e++,e>i&&(e=0,s=t,t=Object.create(null))};return{get(n){let o=t[n];if(o!==void 0)return o;if((o=s[n])!==void 0)return r(n,o),o},set(n,o){n in t?t[n]=o:r(n,o)}}},_1="!",E5=":",YV=[],P5=(i,e,t,s,r)=>({modifiers:i,hasImportantModifier:e,baseClassName:t,maybePostfixModifierPosition:s,isExternal:r}),HV=i=>{const{prefix:e,experimentalParseClassName:t}=i;let s=r=>{const n=[];let o=0,l=0,c=0,u;const d=r.length;for(let b=0;b<d;b++){const x=r[b];if(o===0&&l===0){if(x===E5){n.push(r.slice(c,b)),c=b+1;continue}if(x==="/"){u=b;continue}}x==="["?o++:x==="]"?o--:x==="("?l++:x===")"&&l--}const m=n.length===0?r:r.slice(c);let g=m,_=!1;m.endsWith(_1)?(g=m.slice(0,-1),_=!0):m.startsWith(_1)&&(g=m.slice(1),_=!0);const y=u&&u>c?u-c:void 0;return P5(n,_,g,y)};if(e){const r=e+E5,n=s;s=o=>o.startsWith(r)?n(o.slice(r.length)):P5(YV,!1,o,void 0,!0)}if(t){const r=s;s=n=>t({className:n,parseClassName:r})}return s},FV=i=>{const e=new Map;return i.orderSensitiveModifiers.forEach((t,s)=>{e.set(t,1e6+s)}),t=>{const s=[];let r=[];for(let n=0;n<t.length;n++){const o=t[n],l=o[0]==="[",c=e.has(o);l||c?(r.length>0&&(r.sort(),s.push(...r),r=[]),s.push(o)):r.push(o)}return r.length>0&&(r.sort(),s.push(...r)),s}},GV=i=>({cache:UV(i.cacheSize),parseClassName:HV(i),sortModifiers:FV(i),...zV(i)}),KV=/\s+/,JV=(i,e)=>{const{parseClassName:t,getClassGroupId:s,getConflictingClassGroupIds:r,sortModifiers:n}=e,o=[],l=i.trim().split(KV);let c="";for(let u=l.length-1;u>=0;u-=1){const d=l[u],{isExternal:m,modifiers:g,hasImportantModifier:_,baseClassName:y,maybePostfixModifierPosition:b}=t(d);if(m){c=d+(c.length>0?" "+c:c);continue}let x=!!b,w=s(x?y.substring(0,b):y);if(!w){if(!x){c=d+(c.length>0?" "+c:c);continue}if(w=s(y),!w){c=d+(c.length>0?" "+c:c);continue}x=!1}const k=g.length===0?"":g.length===1?g[0]:n(g).join(":"),C=_?k+_1:k,A=C+w;if(o.indexOf(A)>-1)continue;o.push(A);const P=r(w,x);for(let E=0;E<P.length;++E){const $=P[E];o.push(C+$)}c=d+(c.length>0?" "+c:c)}return c},eZ=(...i)=>{let e=0,t,s,r="";for(;e<i.length;)(t=i[e++])&&(s=uR(t))&&(r&&(r+=" "),r+=s);return r},uR=i=>{if(typeof i=="string")return i;let e,t="";for(let s=0;s<i.length;s++)i[s]&&(e=uR(i[s]))&&(t&&(t+=" "),t+=e);return t},tZ=(i,...e)=>{let t,s,r,n;const o=c=>{const u=e.reduce((d,m)=>m(d),i());return t=GV(u),s=t.cache.get,r=t.cache.set,n=l,l(c)},l=c=>{const u=s(c);if(u)return u;const d=JV(c,t);return r(c,d),d};return n=o,(...c)=>n(eZ(...c))},iZ=[],Jt=i=>{const e=t=>t[i]||iZ;return e.isThemeGetter=!0,e},fR=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,dR=/^\((?:(\w[\w-]*):)?(.+)\)$/i,sZ=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,rZ=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nZ=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,oZ=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,aZ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,lZ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,bo=i=>sZ.test(i),Ne=i=>!!i&&!Number.isNaN(Number(i)),So=i=>!!i&&Number.isInteger(Number(i)),h_=i=>i.endsWith("%")&&Ne(i.slice(0,-1)),Tn=i=>rZ.test(i),pR=()=>!0,hZ=i=>nZ.test(i)&&!oZ.test(i),jb=()=>!1,cZ=i=>aZ.test(i),uZ=i=>lZ.test(i),fZ=i=>!Se(i)&&!we(i),dZ=i=>Go(i,OR,jb),Se=i=>fR.test(i),_a=i=>Go(i,_R,hZ),Q5=i=>Go(i,bZ,Ne),pZ=i=>Go(i,yR,pR),mZ=i=>Go(i,vR,jb),R5=i=>Go(i,mR,jb),gZ=i=>Go(i,gR,uZ),Kd=i=>Go(i,bR,cZ),we=i=>dR.test(i),Nc=i=>Ha(i,_R),OZ=i=>Ha(i,vR),L5=i=>Ha(i,mR),_Z=i=>Ha(i,OR),vZ=i=>Ha(i,gR),Jd=i=>Ha(i,bR,!0),yZ=i=>Ha(i,yR,!0),Go=(i,e,t)=>{const s=fR.exec(i);return s?s[1]?e(s[1]):t(s[2]):!1},Ha=(i,e,t=!1)=>{const s=dR.exec(i);return s?s[1]?e(s[1]):t:!1},mR=i=>i==="position"||i==="percentage",gR=i=>i==="image"||i==="url",OR=i=>i==="length"||i==="size"||i==="bg-size",_R=i=>i==="length",bZ=i=>i==="number",vR=i=>i==="family-name",yR=i=>i==="number"||i==="weight",bR=i=>i==="shadow",SZ=()=>{const i=Jt("color"),e=Jt("font"),t=Jt("text"),s=Jt("font-weight"),r=Jt("tracking"),n=Jt("leading"),o=Jt("breakpoint"),l=Jt("container"),c=Jt("spacing"),u=Jt("radius"),d=Jt("shadow"),m=Jt("inset-shadow"),g=Jt("text-shadow"),_=Jt("drop-shadow"),y=Jt("blur"),b=Jt("perspective"),x=Jt("aspect"),w=Jt("ease"),k=Jt("animate"),C=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...A(),we,Se],E=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],z=()=>[we,Se,c],I=()=>[bo,"full","auto",...z()],se=()=>[So,"none","subgrid",we,Se],F=()=>["auto",{span:["full",So,we,Se]},So,we,Se],R=()=>[So,"auto",we,Se],L=()=>["auto","min","max","fr",we,Se],N=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],Q=()=>["auto",...z()],X=()=>[bo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],W=()=>[bo,"screen","full","dvw","lvw","svw","min","max","fit",...z()],U=()=>[bo,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],q=()=>[i,we,Se],D=()=>[...A(),L5,R5,{position:[we,Se]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ie=()=>["auto","cover","contain",_Z,dZ,{size:[we,Se]}],ce=()=>[h_,Nc,_a],he=()=>["","none","full",u,we,Se],de=()=>["",Ne,Nc,_a],ge=()=>["solid","dashed","dotted","double"],Ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ye=()=>[Ne,h_,L5,R5],pt=()=>["","none",y,we,Se],Ft=()=>["none",Ne,we,Se],Gt=()=>["none",Ne,we,Se],oi=()=>[Ne,we,Se],Pe=()=>[bo,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tn],breakpoint:[Tn],color:[pR],container:[Tn],"drop-shadow":[Tn],ease:["in","out","in-out"],font:[fZ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tn],shadow:[Tn],spacing:["px",Ne],text:[Tn],"text-shadow":[Tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",bo,Se,we,x]}],container:["container"],columns:[{columns:[Ne,Se,we,l]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:I()}],"inset-x":[{"inset-x":I()}],"inset-y":[{"inset-y":I()}],start:[{"inset-s":I(),start:I()}],end:[{"inset-e":I(),end:I()}],"inset-bs":[{"inset-bs":I()}],"inset-be":[{"inset-be":I()}],top:[{top:I()}],right:[{right:I()}],bottom:[{bottom:I()}],left:[{left:I()}],visibility:["visible","invisible","collapse"],z:[{z:[So,"auto",we,Se]}],basis:[{basis:[bo,"full","auto",l,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,bo,"auto","initial","none",Se]}],grow:[{grow:["",Ne,we,Se]}],shrink:[{shrink:["",Ne,we,Se]}],order:[{order:[So,"first","last","none",we,Se]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":R()}],"col-end":[{"col-end":R()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":R()}],"row-end":[{"row-end":R()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":L()}],"auto-rows":[{"auto-rows":L()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...N(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...N()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":N()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:Q()}],mx:[{mx:Q()}],my:[{my:Q()}],ms:[{ms:Q()}],me:[{me:Q()}],mbs:[{mbs:Q()}],mbe:[{mbe:Q()}],mt:[{mt:Q()}],mr:[{mr:Q()}],mb:[{mb:Q()}],ml:[{ml:Q()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],"inline-size":[{inline:["auto",...W()]}],"min-inline-size":[{"min-inline":["auto",...W()]}],"max-inline-size":[{"max-inline":["none",...W()]}],"block-size":[{block:["auto",...U()]}],"min-block-size":[{"min-block":["auto",...U()]}],"max-block-size":[{"max-block":["none",...U()]}],w:[{w:[l,"screen",...X()]}],"min-w":[{"min-w":[l,"screen","none",...X()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[o]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",t,Nc,_a]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,yZ,pZ]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",h_,Se]}],"font-family":[{font:[OZ,mZ,e]}],"font-features":[{"font-features":[Se]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,we,Se]}],"line-clamp":[{"line-clamp":[Ne,"none",we,Q5]}],leading:[{leading:[n,...z()]}],"list-image":[{"list-image":["none",we,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",we,_a]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Ne,"auto",we,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},So,we,Se],radial:["",we,Se],conic:[So,we,Se]},vZ,gZ]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-bs":[{"border-bs":q()}],"border-color-be":[{"border-be":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,we,Se]}],"outline-w":[{outline:["",Ne,Nc,_a]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",d,Jd,Kd]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",m,Jd,Kd]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Ne,_a]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",g,Jd,Kd]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Ne,we,Se]}],"mix-blend":[{"mix-blend":[...Ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":ye()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":ye()}],"mask-image-t-to-pos":[{"mask-t-to":ye()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":ye()}],"mask-image-r-to-pos":[{"mask-r-to":ye()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":ye()}],"mask-image-b-to-pos":[{"mask-b-to":ye()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":ye()}],"mask-image-l-to-pos":[{"mask-l-to":ye()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":ye()}],"mask-image-x-to-pos":[{"mask-x-to":ye()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":ye()}],"mask-image-y-to-pos":[{"mask-y-to":ye()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[we,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":ye()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":A()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":ye()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,Se]}],filter:[{filter:["","none",we,Se]}],blur:[{blur:pt()}],brightness:[{brightness:[Ne,we,Se]}],contrast:[{contrast:[Ne,we,Se]}],"drop-shadow":[{"drop-shadow":["","none",_,Jd,Kd]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Ne,we,Se]}],"hue-rotate":[{"hue-rotate":[Ne,we,Se]}],invert:[{invert:["",Ne,we,Se]}],saturate:[{saturate:[Ne,we,Se]}],sepia:[{sepia:["",Ne,we,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",we,Se]}],"backdrop-blur":[{"backdrop-blur":pt()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,we,Se]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,we,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,we,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,we,Se]}],"backdrop-invert":[{"backdrop-invert":["",Ne,we,Se]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,we,Se]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,we,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,we,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",we,Se]}],ease:[{ease:["linear","initial",w,we,Se]}],delay:[{delay:[Ne,we,Se]}],animate:[{animate:["none",k,we,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[b,we,Se]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ft()}],"rotate-x":[{"rotate-x":Ft()}],"rotate-y":[{"rotate-y":Ft()}],"rotate-z":[{"rotate-z":Ft()}],scale:[{scale:Gt()}],"scale-x":[{"scale-x":Gt()}],"scale-y":[{"scale-y":Gt()}],"scale-z":[{"scale-z":Gt()}],"scale-3d":["scale-3d"],skew:[{skew:oi()}],"skew-x":[{"skew-x":oi()}],"skew-y":[{"skew-y":oi()}],transform:[{transform:[we,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,Se]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Ne,Nc,_a,Q5]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},xZ=tZ(SZ);function vt(...i){return xZ(LV(i))}function wZ(i){const[e,t]=Y.useState(null),[s,r]=Y.useState(!1),[n,o]=Y.useState(null),{lastChange:l}=ff(),c=Y.useCallback(async()=>{if(!i){t(null),r(!1),o(null);return}r(!0),o(null);try{const u=await fetch(`/api/phase/${encodeURIComponent(i)}`);if(!u.ok){const m=await u.json().catch(()=>({}));throw new Error(m.error||`Failed to fetch phase ${i} (${u.status})`)}const d=await u.json();t(d)}catch(u){o(u instanceof Error?u.message:"Unknown error")}finally{r(!1)}},[i]);return Y.useEffect(()=>{c()},[c]),Y.useEffect(()=>{l>0&&c()},[l,c]),{plans:(e==null?void 0:e.plans)??[],context:(e==null?void 0:e.context)??null,research:(e==null?void 0:e.research)??null,loading:s,error:n,refetch:c}}function CZ({tasks:i,planPath:e,planContent:t,onContentChange:s}){const r=Y.useCallback(async n=>{const o=i[n];if(!o)return;let l=t;const c=o.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),d=new RegExp(`<name>\\s*${c}\\s*</name>`).exec(l);if(d){const m=l.slice(d.index),g=m.match(/<done>([\s\S]*?)<\/done>/);if(g){const _=g[1],y=d.index+m.indexOf(g[0]),b=y+g[0].length,x=/^\s*\[x\]/i.test(_);let w;x?w=_.replace(/^\s*\[x\]\s*/i,""):w=`[x] ${_.trim()}`,l=l.slice(0,y)+`<done>${w}</done>`+l.slice(b)}}if(l!==t){s(l);try{const g=e.replace(/^\.planning[\\/]/,"").split(/[\\/]/);await fetch(`/api/plan/${g.join("/")}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({content:l})})}catch(m){console.error("[task-list] Failed to write checkbox change:",m)}}},[i,e,t,s]);return i.length===0?M.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No tasks defined"}):M.jsx("div",{className:"space-y-1",children:i.map((n,o)=>M.jsxs("div",{className:vt("flex items-start gap-2 py-1 px-2 rounded-md transition-colors","hover:bg-muted/50",n.completed&&"opacity-60"),children:[M.jsx("button",{type:"button",onClick:()=>r(o),className:vt("mt-0.5 flex-shrink-0 w-4 h-4 rounded-sm border transition-colors","focus:outline-none focus:ring-2 focus:ring-accent/50",n.completed?"bg-success border-success text-background":"border-muted-foreground hover:border-accent"),"aria-label":`Toggle ${n.name}`,children:n.completed&&M.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",children:M.jsx("path",{d:"M3 8l3 3 7-7"})})}),M.jsxs("div",{className:"flex-1 min-w-0",children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:vt("text-sm font-sans",n.completed&&"line-through text-muted-foreground"),children:n.name}),M.jsx("span",{className:vt("text-xs px-1.5 py-0.5 rounded-sm font-mono",n.type.startsWith("checkpoint")?"bg-warning/20 text-warning":"bg-muted text-muted-foreground"),children:n.type})]}),n.files.length>0&&M.jsx("div",{className:"mt-0.5",children:n.files.map((l,c)=>M.jsx("span",{className:"text-xs font-mono text-muted-foreground mr-2",children:l},c))})]})]},o))})}function kZ({plan:i,onEdit:e}){const[t,s]=Y.useState(i.content),r=i.frontmatter,n=r.plan??"?",o=r.wave,l=r.autonomous,c=r.depends_on??[],u=r.files_modified??[];let d="";const m=i.content.match(/<objective>([\s\S]*?)<\/objective>/);if(m){const y=m[1].trim().split(`
|
|
50
50
|
`)[0];d=y.length>120?y.slice(0,117)+"...":y}const g=Y.useCallback(_=>{s(_)},[]);return M.jsxs("div",{className:"border border-border bg-card transition-colors hover:bg-card-hover",children:[M.jsxs("div",{className:"flex items-center justify-between border-b border-border px-4 py-3",children:[M.jsxs("div",{className:"flex items-center gap-3",children:[M.jsxs("span",{className:"font-mono text-sm font-bold text-accent tabular-nums",children:["#",String(n).padStart(2,"0")]}),o!==void 0&&M.jsxs("span",{className:"font-mono text-[9px] uppercase tracking-widest px-1.5 py-0.5 border border-accent/20 text-accent/70",children:["Wave ",o]}),l&&M.jsx("span",{className:"font-mono text-[9px] uppercase tracking-widest px-1.5 py-0.5 border border-success/20 text-success",children:"Auto"})]}),M.jsx("button",{type:"button",onClick:()=>e(i.path),className:vt("font-mono text-[10px] uppercase tracking-widest px-3 py-1","border border-border text-muted-foreground","hover:border-accent hover:text-accent","transition-colors"),children:"Edit"})]}),M.jsxs("div",{className:"px-4 py-3",children:[d&&M.jsx("p",{className:"text-sm text-muted-foreground mb-3 leading-relaxed",children:d}),M.jsxs("div",{className:"flex gap-4 mb-3 font-mono text-[10px] text-muted-foreground",children:[c.length>0&&M.jsxs("span",{children:["deps: ",c.join(", ")]}),u.length>0&&M.jsxs("span",{children:[u.length," file",u.length!==1?"s":""]}),M.jsxs("span",{children:[i.tasks.length," task",i.tasks.length!==1?"s":""]})]}),M.jsx(CZ,{tasks:i.tasks,planPath:i.path,planContent:t,onContentChange:g})]})]})}function v1(){return v1=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)({}).hasOwnProperty.call(t,s)&&(i[s]=t[s])}return i},v1.apply(null,arguments)}function TZ(i,e){if(i==null)return{};var t={};for(var s in i)if({}.hasOwnProperty.call(i,s)){if(e.indexOf(s)!==-1)continue;t[s]=i[s]}return t}let y1=[],SR=[];(()=>{let i="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<i.length;e++)(e%2?SR:y1).push(t=t+i[e])})();function AZ(i){if(i<768)return!1;for(let e=0,t=y1.length;;){let s=e+t>>1;if(i<y1[s])t=s;else if(i>=SR[s])e=s+1;else return!0;if(e==t)return!1}}function $5(i){return i>=127462&&i<=127487}const B5=8205;function MZ(i,e,t=!0,s=!0){return(t?xR:EZ)(i,e,s)}function xR(i,e,t){if(e==i.length)return e;e&&wR(i.charCodeAt(e))&&CR(i.charCodeAt(e-1))&&e--;let s=c_(i,e);for(e+=D5(s);e<i.length;){let r=c_(i,e);if(s==B5||r==B5||t&&AZ(r))e+=D5(r),s=r;else if($5(r)){let n=0,o=e-2;for(;o>=0&&$5(c_(i,o));)n++,o-=2;if(n%2==0)break;e+=2}else break}return e}function EZ(i,e,t){for(;e>0;){let s=xR(i,e-2,t);if(s<e)return s;e--}return 0}function c_(i,e){let t=i.charCodeAt(e);if(!CR(t)||e+1==i.length)return t;let s=i.charCodeAt(e+1);return wR(s)?(t-55296<<10)+(s-56320)+65536:t}function wR(i){return i>=56320&&i<57344}function CR(i){return i>=55296&&i<56320}function D5(i){return i<65536?1:2}let Ke=class kR{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,s){[e,t]=gh(this,e,t);let r=[];return this.decompose(0,e,r,2),s.length&&s.decompose(0,s.length,r,3),this.decompose(t,this.length,r,1),jr.from(r,this.length-(t-e)+s.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=gh(this,e,t);let s=[];return this.decompose(e,t,s,0),jr.from(s,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),s=this.length-this.scanIdentical(e,-1),r=new bu(this),n=new bu(e);for(let o=t,l=t;;){if(r.next(o),n.next(o),o=0,r.lineBreak!=n.lineBreak||r.done!=n.done||r.value!=n.value)return!1;if(l+=r.value.length,r.done||l>=s)return!0}}iter(e=1){return new bu(this,e)}iterRange(e,t=this.length){return new TR(this,e,t)}iterLines(e,t){let s;if(e==null)s=this.iter();else{t==null&&(t=this.lines+1);let r=this.line(e).from;s=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new AR(s)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?kR.empty:e.length<=32?new zt(e):jr.from(zt.split(e,[]))}};class zt extends Ke{constructor(e,t=PZ(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,s,r){for(let n=0;;n++){let o=this.text[n],l=r+o.length;if((t?s:l)>=e)return new QZ(r,l,s,o);r=l+1,s++}}decompose(e,t,s,r){let n=e<=0&&t>=this.length?this:new zt(z5(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(r&1){let o=s.pop(),l=Zp(n.text,o.text.slice(),0,n.length);if(l.length<=32)s.push(new zt(l,o.length+n.length));else{let c=l.length>>1;s.push(new zt(l.slice(0,c)),new zt(l.slice(c)))}}else s.push(n)}replace(e,t,s){if(!(s instanceof zt))return super.replace(e,t,s);[e,t]=gh(this,e,t);let r=Zp(this.text,Zp(s.text,z5(this.text,0,e)),t),n=this.length+s.length-(t-e);return r.length<=32?new zt(r,n):jr.from(zt.split(r,[]),n)}sliceString(e,t=this.length,s=`
|
|
51
51
|
`){[e,t]=gh(this,e,t);let r="";for(let n=0,o=0;n<=t&&o<this.text.length;o++){let l=this.text[o],c=n+l.length;n>e&&o&&(r+=s),e<c&&t>n&&(r+=l.slice(Math.max(0,e-n),t-n)),n=c+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let s=[],r=-1;for(let n of e)s.push(n),r+=n.length+1,s.length==32&&(t.push(new zt(s,r)),s=[],r=-1);return r>-1&&t.push(new zt(s,r)),t}}class jr extends Ke{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let s of e)this.lines+=s.lines}lineInner(e,t,s,r){for(let n=0;;n++){let o=this.children[n],l=r+o.length,c=s+o.lines-1;if((t?c:l)>=e)return o.lineInner(e,t,s,r);r=l+1,s=c+1}}decompose(e,t,s,r){for(let n=0,o=0;o<=t&&n<this.children.length;n++){let l=this.children[n],c=o+l.length;if(e<=c&&t>=o){let u=r&((o<=e?1:0)|(c>=t?2:0));o>=e&&c<=t&&!u?s.push(l):l.decompose(e-o,t-o,s,u)}o=c+1}}replace(e,t,s){if([e,t]=gh(this,e,t),s.lines<this.lines)for(let r=0,n=0;r<this.children.length;r++){let o=this.children[r],l=n+o.length;if(e>=n&&t<=l){let c=o.replace(e-n,t-n,s),u=this.lines-o.lines+c.lines;if(c.lines<u>>4&&c.lines>u>>6){let d=this.children.slice();return d[r]=c,new jr(d,this.length-(t-e)+s.length)}return super.replace(n,l,c)}n=l+1}return super.replace(e,t,s)}sliceString(e,t=this.length,s=`
|
|
52
52
|
`){[e,t]=gh(this,e,t);let r="";for(let n=0,o=0;n<this.children.length&&o<=t;n++){let l=this.children[n],c=o+l.length;o>e&&n&&(r+=s),e<c&&t>o&&(r+=l.sliceString(e-o,t-o,s)),o=c+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof jr))return 0;let s=0,[r,n,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,n+=t){if(r==o||n==l)return s;let c=this.children[r],u=e.children[n];if(c!=u)return s+c.scanIdentical(u,t);s+=c.length+1}}static from(e,t=e.reduce((s,r)=>s+r.length+1,-1)){let s=0;for(let _ of e)s+=_.lines;if(s<32){let _=[];for(let y of e)y.flatten(_);return new zt(_,t)}let r=Math.max(32,s>>5),n=r<<1,o=r>>1,l=[],c=0,u=-1,d=[];function m(_){let y;if(_.lines>n&&_ instanceof jr)for(let b of _.children)m(b);else _.lines>o&&(c>o||!c)?(g(),l.push(_)):_ instanceof zt&&c&&(y=d[d.length-1])instanceof zt&&_.lines+y.lines<=32?(c+=_.lines,u+=_.length+1,d[d.length-1]=new zt(y.text.concat(_.text),y.length+1+_.length)):(c+_.lines>r&&g(),c+=_.lines,u+=_.length+1,d.push(_))}function g(){c!=0&&(l.push(d.length==1?d[0]:jr.from(d,u)),u=-1,c=d.length=0)}for(let _ of e)m(_);return g(),l.length==1?l[0]:new jr(l,t)}}Ke.empty=new zt([""],0);function PZ(i){let e=-1;for(let t of i)e+=t.length+1;return e}function Zp(i,e,t=0,s=1e9){for(let r=0,n=0,o=!0;n<i.length&&r<=s;n++){let l=i[n],c=r+l.length;c>=t&&(c>s&&(l=l.slice(0,s-r)),r<t&&(l=l.slice(t-r)),o?(e[e.length-1]+=l,o=!1):e.push(l)),r=c+1}return e}function z5(i,e,t){return Zp(i,[""],e,t)}class bu{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof zt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let s=this.nodes.length-1,r=this.nodes[s],n=this.offsets[s],o=n>>1,l=r instanceof zt?r.text.length:r.children.length;if(o==(t>0?l:0)){if(s==0)return this.done=!0,this.value="",this;t>0&&this.offsets[s-1]++,this.nodes.pop(),this.offsets.pop()}else if((n&1)==(t>0?0:1)){if(this.offsets[s]+=t,e==0)return this.lineBreak=!0,this.value=`
|