@oeronteros-1/opencode-orchestra 1.0.23 → 1.0.25
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/README.md +9 -3
- package/dashboard-dist/assets/{index-DMvE5MHc.js → index-Dc5lp8wX.js} +2 -2
- package/dashboard-dist/index.html +1 -1
- package/dist/agents/build.js +4 -0
- package/dist/agents/build.js.map +1 -1
- package/dist/agents/editor.d.ts +3 -0
- package/dist/agents/editor.js +12 -0
- package/dist/agents/editor.js.map +1 -0
- package/dist/agents/integrator.d.ts +3 -0
- package/dist/agents/integrator.js +12 -0
- package/dist/agents/integrator.js.map +1 -0
- package/dist/agents/lead.js +3 -1
- package/dist/agents/lead.js.map +1 -1
- package/dist/agents/workers.js +1 -6
- package/dist/agents/workers.js.map +1 -1
- package/dist/cli.d.ts +8 -2
- package/dist/cli.js +120 -33
- package/dist/cli.js.map +1 -1
- package/dist/config/schema.d.ts +2 -0
- package/dist/config/schema.js +6 -0
- package/dist/config/schema.js.map +1 -1
- package/dist/diagnostics/doctor.js +35 -5
- package/dist/diagnostics/doctor.js.map +1 -1
- package/dist/index.js +38 -5
- package/dist/index.js.map +1 -1
- package/dist/orchestration/ownership.d.ts +7 -0
- package/dist/orchestration/ownership.js +45 -0
- package/dist/orchestration/ownership.js.map +1 -0
- package/dist/orchestration/worktree-adapter.d.ts +3 -0
- package/dist/orchestration/worktree-adapter.js +45 -0
- package/dist/orchestration/worktree-adapter.js.map +1 -0
- package/dist/orchestration/worktrees.d.ts +22 -0
- package/dist/orchestration/worktrees.js +27 -0
- package/dist/orchestration/worktrees.js.map +1 -0
- package/dist/plugin-status.js +1 -1
- package/dist/plugin-status.js.map +1 -1
- package/dist/prompts/load.js +1 -1
- package/dist/prompts/load.js.map +1 -1
- package/dist/routing/planner.d.ts +14 -1
- package/dist/routing/planner.js +23 -1
- package/dist/routing/planner.js.map +1 -1
- package/dist/tools.js +41 -0
- package/dist/tools.js.map +1 -1
- package/package.json +16 -2
- package/prompts/lead.md +1 -0
- package/schema/opencode-orchestra.schema.json +2 -0
|
@@ -6,7 +6,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
6
6
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,Ce=t.unstable_now,we=t.unstable_getCurrentPriorityLevel,Te=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,Ae=t.log,je=t.unstable_setDisableYieldValue,Me=null,Ne=null;function Pe(e){if(typeof Ae==`function`&&je(e),Ne&&typeof Ne.setStrictMode==`function`)try{Ne.setStrictMode(Me,e)}catch{}}var Fe=Math.clz32?Math.clz32:R,Le=Math.log,Re=Math.LN2;function R(e){return e>>>=0,e===0?32:31-(Le(e)/Re|0)|0}var z=256,ze=262144,Be=4194304;function Ve(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function He(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ve(n))):i=Ve(o):i=Ve(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ve(n))):i=Ve(o)):i=Ve(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ue(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function We(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Ge(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function Ke(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Je(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Fe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Ye(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Ye(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Fe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Xe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ze(e,t){var n=t&-t;return n=n&42?1:Qe(n),(n&(e.suspendedLanes|t))===0?n:0}function Qe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function et(){var e=P.p;return e===0?(e=window.event,e===void 0?32:Cp(e.type)):e}function tt(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var nt=Math.random().toString(36).slice(2),rt=`__reactFiber$`+nt,it=`__reactProps$`+nt,at=`__reactContainer$`+nt,ot=`__reactEvents$`+nt,st=`__reactListeners$`+nt,ct=`__reactHandles$`+nt,lt=`__reactResources$`+nt,ut=`__reactMarker$`+nt;function dt(e){delete e[rt],delete e[it],delete e[ot],delete e[st],delete e[ct]}function ft(e){var t=e[rt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[at]||n[rt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bf(e);e!==null;){if(n=e[rt])return n;e=bf(e)}return t}e=n,n=e.parentNode}return null}function pt(e){if(e=e[rt]||e[at]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ht(e){var t=e[lt];return t||=e[lt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function gt(e){e[ut]=!0}var _t=new Set,vt={};function yt(e,t){bt(e,t),bt(e+`Capture`,t)}function bt(e,t){for(vt[e]=t,e=0;e<t.length;e++)_t.add(t[e])}var xt=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]*$`),St={},Ct={};function wt(e){return ve.call(Ct,e)?!0:ve.call(St,e)?!1:xt.test(e)?Ct[e]=!0:(St[e]=!0,!1)}function Tt(e,t,n){if(wt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Et(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Dt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Ot(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function kt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function At(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function jt(e){if(!e._valueTracker){var t=kt(e)?`checked`:`value`;e._valueTracker=At(e,t,``+e[t])}}function Mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=kt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Nt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Pt=/[\n"\\]/g;function Ft(e){return e.replace(Pt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function It(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Ot(t)):e.value!==``+Ot(t)&&(e.value=``+Ot(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Rt(e,o,Ot(n)):Rt(e,o,Ot(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Ot(s):e.removeAttribute(`name`)}function Lt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){jt(e);return}n=n==null?``:``+Ot(n),t=t==null?n:``+Ot(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),jt(e)}function Rt(e,t,n){t===`number`&&Nt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function zt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Ot(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Bt(e,t,n){if(t!=null&&(t=``+Ot(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Ot(n)}function Vt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(M(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Ot(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),jt(e)}function Ht(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ut=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 Wt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Ut.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Gt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Wt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Wt(e,o,t[o])}function Kt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var qt=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`]]),Jt=/^[\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 Yt(e){return Jt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Xt(){}var Zt=null;function Qt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $t=null,en=null;function tn(e){var t=pt(e);if(t&&(e=t.stateNode)){var n=e[it]||null;a:switch(e=t.stateNode,t.type){case`input`:if(It(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Ft(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[it]||null;if(!a)throw Error(i(90));It(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Mt(r)}break a;case`textarea`:Bt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&zt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,($t!==null||en!==null)&&(Du(),$t&&(t=$t,e=en,en=$t=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[it]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var on=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return dn=i.slice(e,1<r?1-r:void 0)}function pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mn(){return!0}function hn(){return!1}function gn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?mn:hn,this.isPropagationStopped=hn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=f({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=f({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(f({},wn,{dataTransfer:0})),Dn=gn(f({},yn,{relatedTarget:0})),On=gn(f({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(f({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(f({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(f({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(f({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(f({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(f({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(f({},wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Vn=gn(f({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={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 tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){$t?en?en.push(r):en=[r]:$t=r,t=Pd(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){Dd(e,0)}function or(e){if(Mt(mt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var ur=`oninput`in document;if(!ur){var dr=document.createElement(`div`);dr.setAttribute(`oninput`,`return;`),ur=typeof dr.oninput==`function`}lr=ur}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function fr(){rr&&(rr.detachEvent(`onpropertychange`,pr),ir=rr=null)}function pr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,Qt(e)),rn(ar,t)}}function mr(e,t,n){e===`focusin`?(fr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function hr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function gr(e,t){if(e===`click`)return or(t)}function _r(e,t){if(e===`input`||e===`change`)return or(t)}function vr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var yr=typeof Object.is==`function`?Object.is:vr;function br(e,t){if(yr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ve.call(t,i)||!yr(e[i],t[i]))return!1}return!0}function xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sr(e,t){var n=xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=xr(n)}}function Cr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Nt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Nt(e.document)}return t}function Tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Er=on&&`documentMode`in document&&11>=document.documentMode,Dr=null,Or=null,kr=null,Ar=!1;function jr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ar||Dr==null||Dr!==Nt(r)||(r=Dr,`selectionStart`in r&&Tr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),kr&&br(kr,r)||(kr=r,r=Pd(Or,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Dr)))}function Mr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Nr={animationend:Mr(`Animation`,`AnimationEnd`),animationiteration:Mr(`Animation`,`AnimationIteration`),animationstart:Mr(`Animation`,`AnimationStart`),transitionrun:Mr(`Transition`,`TransitionRun`),transitionstart:Mr(`Transition`,`TransitionStart`),transitioncancel:Mr(`Transition`,`TransitionCancel`),transitionend:Mr(`Transition`,`TransitionEnd`)},Pr={},Fr={};on&&(Fr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Nr.animationend.animation,delete Nr.animationiteration.animation,delete Nr.animationstart.animation),`TransitionEvent`in window||delete Nr.transitionend.transition);function Ir(e){if(Pr[e])return Pr[e];if(!Nr[e])return e;var t=Nr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fr)return Pr[e]=t[n];return e}var Lr=Ir(`animationend`),Rr=Ir(`animationiteration`),zr=Ir(`animationstart`),Br=Ir(`transitionrun`),Vr=Ir(`transitionstart`),Hr=Ir(`transitioncancel`),Ur=Ir(`transitionend`),Wr=new Map,Gr=`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(` `);Gr.push(`scrollEnd`);function Kr(e,t){Wr.set(e,t),yt(t,[e])}var qr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Jr=[],Yr=0,Xr=0;function Zr(){for(var e=Yr,t=Xr=Yr=0;t<e;){var n=Jr[t];Jr[t++]=null;var r=Jr[t];Jr[t++]=null;var i=Jr[t];Jr[t++]=null;var a=Jr[t];if(Jr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ti(n,i,a)}}function Qr(e,t,n,r){Jr[Yr++]=e,Jr[Yr++]=t,Jr[Yr++]=n,Jr[Yr++]=r,Xr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $r(e,t,n,r){return Qr(e,t,n,r),ni(e)}function ei(e,t){return Qr(e,null,null,t),ni(e)}function ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Fe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ni(e){if(50<vu)throw vu=0,yu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ri={};function ii(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ai(e,t,n,r){return new ii(e,t,n,r)}function oi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=ai(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ci(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function li(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)oi(e)&&(s=1);else if(typeof e==`string`)s=Qf(e,n,ie.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case E:return e=ai(31,n,t,a),e.elementType=E,e.lanes=o,e;case g:return ui(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ai(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ai(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ai(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ai(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ui(e,t,n,r){return e=ai(7,e,r,t),e.lanes=n,e}function di(e,t,n){return e=ai(6,e,null,t),e.lanes=n,e}function fi(e){var t=ai(18,null,null,0);return t.stateNode=e,t}function pi(e,t,n){return t=ai(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var mi=new WeakMap;function hi(e,t){if(typeof e==`object`&&e){var n=mi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},mi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var gi=[],_i=0,vi=null,yi=0,bi=[],xi=0,Si=null,Ci=1,wi=``;function Ti(e,t){gi[_i++]=yi,gi[_i++]=vi,vi=e,yi=t}function Ei(e,t,n){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Si=e;var r=Ci;e=wi;var i=32-Fe(r)-1;r&=~(1<<i),n+=1;var a=32-Fe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ci=1<<32-Fe(t)+i|n<<i|r,wi=a+e}else Ci=1<<a|n<<i|r,wi=e}function Di(e){e.return!==null&&(Ti(e,1),Ei(e,1,0))}function Oi(e){for(;e===vi;)vi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null;for(;e===Si;)Si=bi[--xi],bi[xi]=null,wi=bi[--xi],bi[xi]=null,Ci=bi[--xi],bi[xi]=null}function ki(e,t){bi[xi++]=Ci,bi[xi++]=wi,bi[xi++]=Si,Ci=t.id,wi=t.overflow,Si=e}var Ai=null,ji=null,Mi=!1,Ni=null,Pi=!1,Fi=Error(i(519));function Ii(e){throw Hi(hi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Fi}function Li(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[rt]=e,t[it]=r,n){case`dialog`:W(`cancel`,t),W(`close`,t);break;case`iframe`:case`object`:case`embed`:W(`load`,t);break;case`video`:case`audio`:for(n=0;n<Td.length;n++)W(Td[n],t);break;case`source`:W(`error`,t);break;case`img`:case`image`:case`link`:W(`error`,t),W(`load`,t);break;case`details`:W(`toggle`,t);break;case`input`:W(`invalid`,t),Lt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:W(`invalid`,t);break;case`textarea`:W(`invalid`,t),Vt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Bd(t.textContent,n)?(r.popover!=null&&(W(`beforetoggle`,t),W(`toggle`,t)),r.onScroll!=null&&W(`scroll`,t),r.onScrollEnd!=null&&W(`scrollend`,t),r.onClick!=null&&(t.onclick=Xt),t=!0):t=!1,t||Ii(e,!0)}function Ri(e){for(Ai=e.return;Ai;)switch(Ai.tag){case 5:case 31:case 13:Pi=!1;return;case 27:case 3:Pi=!0;return;default:Ai=Ai.return}}function zi(e){if(e!==Ai)return!1;if(!Mi)return Ri(e),Mi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Qd(e.type,e.memoizedProps)),n=!n),n&&ji&&Ii(e),Ri(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=yf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ji=yf(e)}else t===27?(t=ji,sf(e.type)?(e=vf,vf=null,ji=e):ji=t):ji=Ai?_f(e.stateNode.nextSibling):null;return!0}function Bi(){ji=Ai=null,Mi=!1}function Vi(){var e=Ni;return e!==null&&(au===null?au=e:au.push.apply(au,e),Ni=null),e}function Hi(e){Ni===null?Ni=[e]:Ni.push(e)}var Ui=ne(null),Wi=null,Gi=null;function Ki(e,t,n){I(Ui,t._currentValue),t._currentValue=n}function qi(e){e._currentValue=Ui.current,re(Ui)}function Ji(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Yi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Ji(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Ji(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Xi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;yr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===se.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sp]:e.push(sp))}a=a.return}e!==null&&Yi(t,e,n,r),t.flags|=262144}function Zi(e){for(e=e.firstContext;e!==null;){if(!yr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qi(e){Wi=e,Gi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function $i(e){return ta(Wi,e)}function ea(e,t){return Wi===null&&Qi(e),ta(e,t)}function ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Gi===null){if(e===null)throw Error(i(308));Gi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gi=Gi.next=t;return n}var na=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ra=t.unstable_scheduleCallback,ia=t.unstable_NormalPriority,aa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function oa(){return{controller:new na,data:new Map,refCount:0}}function sa(e){e.refCount--,e.refCount===0&&ra(ia,function(){e.controller.abort()})}var ca=null,la=0,ua=0,da=null;function fa(e,t){if(ca===null){var n=ca=[];la=0,ua=yd(),da={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return la++,t.then(pa,pa),t}function pa(){if(--la===0&&ca!==null){da!==null&&(da.status=`fulfilled`);var e=ca;ca=null,ua=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ma(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var ha=N.S;N.S=function(e,t){cu=Ce(),typeof t==`object`&&t&&typeof t.then==`function`&&fa(e,t),ha!==null&&ha(e,t)};var ga=ne(null);function _a(){var e=ga.current;return e===null?Ul.pooledCache:e}function va(e,t){t===null?I(ga,ga.current):I(ga,t.pool)}function ya(){var e=_a();return e===null?null:{parent:aa._currentValue,pool:e}}var ba=Error(i(460)),xa=Error(i(474)),Sa=Error(i(542)),Ca={then:function(){}};function wa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ta(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xt,Xt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e;default:if(typeof t.status==`string`)t.then(Xt,Xt);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ka(e),e}throw Da=t,ba}}function Ea(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Da=e,ba):e}}var Da=null;function Oa(){if(Da===null)throw Error(i(459));var e=Da;return Da=null,e}function ka(e){if(e===ba||e===Sa)throw Error(i(483))}var Aa=null,ja=0;function Ma(e){var t=ja;return ja+=1,Aa===null&&(Aa=[]),Ta(Aa,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=si(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=di(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Ea(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=li(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=pi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ui(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=di(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=li(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case h:return t=pi(t,e.mode,n),t.return=e,t;case T:return t=Ea(t),f(e,t,n)}if(M(t)||k(t))return t=ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Ma(t),n);if(t.$$typeof===b)return f(e,ea(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Ea(n),p(e,t,n,r)}if(M(n)||k(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Ma(n),r);if(n.$$typeof===b)return p(e,t,ea(e,n),r);Ia(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Ea(r),_(e,t,n,r,i)}if(M(r)||k(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Ma(r),i);if(r.$$typeof===b)return _(e,t,n,ea(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Mi&&Ti(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return Mi&&Ti(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),Mi&&Ti(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Mi&&Ti(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Mi&&Ti(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Mi&&Ti(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ea(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=ui(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=li(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=pi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ea(o),x(e,r,o,c)}if(M(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Ma(o),c);if(o.$$typeof===b)return x(e,r,ea(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=di(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ja=0;var i=x(e,t,n,r);return Aa=null,i}catch(t){if(t===ba||t===Sa)throw t;var a=ai(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var B=La(!0),Ra=La(!1),za=!1;function Ba(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Va(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ha(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ni(e),ti(e,null,n),t}return Qr(e,r,t,n),ni(e)}function Wa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}function Ga(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ka=!1;function qa(){if(Ka){var e=da;if(e!==null)throw e}}function Ja(e,t,n,r){Ka=!1;var i=e.updateQueue;za=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Gl&p)===p:(r&p)===p){p!==0&&p===ua&&(Ka=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:za=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),$l|=o,e.lanes=o,e.memoizedState=d}}function Ya(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Xa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ya(n[e],t)}var Za=ne(null),Qa=ne(0);function $a(e,t){e=Zl,I(Qa,e),I(Za,t),Zl=e|t.baseLanes}function eo(){I(Qa,Zl),I(Za,Za.current)}function to(){Zl=Qa.current,re(Za),re(Qa)}var no=ne(null),ro=null;function io(e){var t=e.alternate;I(lo,lo.current&1),I(no,e),ro===null&&(t===null||Za.current!==null||t.memoizedState!==null)&&(ro=e)}function ao(e){I(lo,lo.current),I(no,e),ro===null&&(ro=e)}function oo(e){e.tag===22?(I(lo,lo.current),I(no,e),ro===null&&(ro=e)):so(e)}function so(){I(lo,lo.current),I(no,no.current)}function co(e){re(no),ro===e&&(ro=null),re(lo)}var lo=ne(0);function uo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mf(n)||hf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=0,V=null,po=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return fo=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Bs:Vs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){N.H=H;var t=po!==null&&po.next!==null;if(fo=0,mo=po=V=null,ho=!1,yo=0,bo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&Zi(e)&&(ic=!0))}function Eo(e,t,n,r){V=e;var a=0;do{if(go&&(bo=null),yo=0,go=!1,25<=a)throw Error(i(301));if(a+=1,mo=po=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=Hs,o=t(n,r)}while(go);return o}function Do(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(po===null?null:po.memoizedState)!==e&&(V.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}fo=0,mo=po=V=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?V.memoizedState=mo=e:mo=mo.next=e,mo}function Mo(){if(po===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=po.next;var t=mo===null?V.memoizedState:mo.next;if(t!==null)mo=t,po=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));po=e,e={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null},mo===null?V.memoizedState=mo=e:mo=mo.next=e}return mo}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Ta(bo,e,t),t=V,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Bs:Vs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===b)return $i(e)}throw Error(i(438,String(e)))}function Io(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=D;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),po,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(fo&f)===f:(Gl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ua&&(d=!0);else if((fo&p)===p){u=u.next,p===ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,$l|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,$l|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!yr(o,e.memoizedState)&&(ic=!0,d&&(n=da,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);yr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vo(e,t,n){var r=V,a=Mo(),o=Mi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!yr((po||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,fs(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||fo&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=No(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yr(e,n)}catch{return!0}}function Ko(e){var t=ei(e,2);t!==null&&Su(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){Pe(!0);try{n()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,zo(e,po,typeof r==`function`?r:Lo)}function Yo(e,t,n,r,a){if(Ls(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Xo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Zo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Zo(e,t,a)}catch(n){$o(e,t,n)}}function Zo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Qo(e,t,n)},function(n){return $o(e,t,n)}):Qo(e,t,n)}function Qo(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(Mi){var n=Ul.formState;if(n!==null){a:{var r=V;if(Mi){if(ji){b:{for(var i=ji,a=Pi;i.nodeType!==8;){if(!a){i=null;break b}if(i=_f(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ji=_f(i.nextSibling),r=i.data===`F!`;break a}}Ii(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ps.bind(null,V,r),r.dispatch=n,r=qo(!1),a=Is.bind(null,V,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function rs(e){return is(Mo(),po,e)}function is(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===ba?Sa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,ss(9,{destroy:void 0},as.bind(null,i,n),null)),[r,a,e]}function as(e,t){e.action=t}function os(e){var t=Mo(),n=po;if(n!==null)return is(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ss(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=No(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function cs(){return Mo().memoizedState}function ls(e,t,n,r){var i=jo();V.flags|=e,i.memoizedState=ss(1|t,{destroy:void 0},n,r===void 0?null:r)}function us(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;po!==null&&r!==null&&Co(r,po.memoizedState.deps)?i.memoizedState=ss(t,a,n,r):(V.flags|=e,i.memoizedState=ss(1|t,a,n,r))}function ds(e,t){ls(8390656,8,e,t)}function fs(e,t){us(2048,8,e,t)}function ps(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=No(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ms(e){var t=Mo().memoizedState;return ps({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function hs(e,t){return us(4,2,e,t)}function gs(e,t){return us(4,4,e,t)}function _s(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vs(e,t,n){n=n==null?null:n.concat([e]),us(4,4,_s.bind(null,t,e),n)}function ys(){}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r}function Ss(e,t,n){return n===void 0||fo&1073741824&&!(Gl&261930)?e.memoizedState=t:(e.memoizedState=n,e=xu(),V.lanes|=e,$l|=e,n)}function Cs(e,t,n,r){return yr(n,t)?n:Za.current===null?!(fo&42)||fo&1073741824&&!(Gl&261930)?(ic=!0,e.memoizedState=n):(e=xu(),V.lanes|=e,$l|=e,t):(e=Ss(e,n,r),yr(e,t)||(ic=!0),e)}function ws(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,Is(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ma(c,r),bu(e)):Fs(e,t,r,bu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},bu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,ee,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ee,baseState:ee,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:ee},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},bu())}function ks(){return $i(sp)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=bu();e=Ha(n);var r=Ua(t,e,n);r!==null&&(Su(r,t,n),Wa(r,t,n)),t={cache:oa()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=bu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=$r(e,t,n,r),n!==null&&(Su(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,bu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,yr(s,o))return Qr(e,t,i,0),Ul===null&&Zr(),!1}catch{}if(n=$r(e,t,i,r),n!==null)return Su(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:yd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=$r(e,n,r,2),t!==null&&Su(t,e,2)}function Ls(e){var t=e.alternate;return e===V||t!==null&&t===V}function Rs(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xe(e,n)}}var H={readContext:$i,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};H.useEffectEvent=So;var Bs={readContext:$i,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:$i,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){Pe(!0);try{n(t)}finally{Pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,V,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=jo();if(Mi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));Gl&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Wo.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=Ul.identifierPrefix;if(Mi){var n=wi,r=Ci;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Is.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=Ms.bind(null,V)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:$i,use:Fo,useCallback:bs,useContext:$i,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Ro,useRef:cs,useState:function(){return Ro(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){return Cs(Mo(),po.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){return Jo(Mo(),po,e,t)},useMemoCache:Io,useCacheRefresh:js};Vs.useEffectEvent=ms;var Hs={readContext:$i,use:Fo,useCallback:bs,useContext:$i,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Bo,useRef:cs,useState:function(){return Bo(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){var n=Mo();return po===null?Ss(n,e,t):Cs(n,po.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:os,useActionState:os,useOptimistic:function(e,t){var n=Mo();return po===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,po,e,t)},useMemoCache:Io,useCacheRefresh:js};Hs.useEffectEvent=ms;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ha(r);i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(Su(t,e,r),Wa(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=bu(),i=Ha(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ua(e,i,r),t!==null&&(Su(t,e,r),Wa(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=bu(),r=Ha(n);r.tag=2,t!=null&&(r.callback=t),t=Ua(e,r,n),t!==null&&(Su(t,e,n),Wa(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!br(n,r)||!br(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){qr(e)}function Ys(e){console.error(e)}function Xs(e){qr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ha(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ha(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(U===null?U=new Set([this]):U.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Xi(t,n,a,!0),n=no.current,n!==null){switch(n.tag){case 31:case 13:return ro===null?Pu():n.alternate===null&&Ql===0&&(Ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),$u(e,r,a)),!1;case 22:return n.flags|=65536,r===Ca?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),$u(e,r,a)),!1}throw Error(i(435,n.tag))}return $u(e,r,a),Pu(),!1}if(Mi)return t=no.current,t===null?(r!==Fi&&(t=Error(i(423),{cause:r}),Hi(hi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=hi(r,n),a=$s(e.stateNode,r,a),Ga(e,a),Ql!==4&&(Ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Fi&&(e=Error(i(422),{cause:r}),Hi(hi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=hi(o,n),iu===null?iu=[o]:iu.push(o),Ql!==4&&(Ql=2),t===null)return!0;r=hi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ga(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(U===null||!U.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ga(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?Ra(t,null,n,r):B(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Qi(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(Mi&&s&&Di(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!oi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=li(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?br:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=si(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(br(a,r)&&e.ref===t.ref){if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&va(t,a===null?null:a.cachePool),a===null?eo():$a(t,a),oo(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&va(t,null),eo(),so(t)):(va(t,a.cachePool),$a(t,a),so(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=_a();return a=a===null?null:{parent:aa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&va(t,null),eo(),oo(t),e!==null&&Xi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return B(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,co(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Mi){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(ao(t),(e=ji)?(e=pf(e,Pi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(ao(t),a){if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(ic||Xi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Ul,r!==null&&(s=Ze(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ei(e,s),Su(r,e,s),rc;Pu(),t=pc(e,t,n)}else e=o.treeContext,ji=_f(s.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=fc(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return Qi(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ic?(ko(e,t,i),Ac(e,t,i)):(Mi&&r&&Di(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return Qi(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ic?(ko(e,t,a),Ac(e,t,a)):(Mi&&r&&Di(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(Qi(t),t.stateNode===null){var a=ri,o=n.contextType;typeof o==`object`&&o&&(a=$i(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ba(t),o=n.contextType,a.context=typeof o==`object`&&o?$i(o):ri,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ja(t,r,a,i),qa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=ri,typeof u==`object`&&u&&(o=$i(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),za=!1;var f=t.memoizedState;a.state=f,Ja(t,r,a,i),qa(),l=t.memoizedState,s||f!==l||za?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=za||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Va(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ri,typeof l==`object`&&l&&(c=$i(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),za=!1,f=t.memoizedState,a.state=f,Ja(t,r,a,i),qa();var p=t.memoizedState;o!==d||f!==p||za||e!==null&&e.dependencies!==null&&Zi(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=za||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Zi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=B(t,e.child,null,i),t.child=B(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Bi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:ya()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=nu),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(lo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Mi){if(a?io(t):so(t),(e=ji)?(e=pf(e,Pi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Si===null?null:{id:Ci,overflow:wi},retryLane:536870912,hydrationErrors:null},n=fi(e),n.return=t,t.child=n,Ai=t,ji=null)):e=null,e===null)throw Ii(t);return hf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(so(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=ui(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(io(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(io(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(so(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=ui(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,B(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(so(t),t.child=e.child,t.flags|=128,t=null);else if(io(t),hf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Hi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Xi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Ul,s!==null&&(r=Ze(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ei(e,r),Su(s,e,r),rc;mf(c)||Pu(),t=Ec(e,t,n)}else mf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ji=_f(c.nextSibling),Ai=t,Mi=!0,Ni=null,Pi=!1,e!==null&&ki(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(so(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=si(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=ui(c,a,n,null),c.flags|=2):c=si(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=ya():(l=aa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(io(t),n=e.child,e=n.sibling,n=si(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=ai(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return B(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ji(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=lo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,I(lo,o),ac(e,t,r,n),r=Mi?yi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&uo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&uo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$l|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Xi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Zi(e)))}function Mc(e,t,n){switch(t.tag){case 3:L(t,t.stateNode.containerInfo),Ki(t,aa,e.memoizedState.cache),Bi();break;case 27:case 5:le(t);break;case 4:L(t,t.stateNode.containerInfo);break;case 10:Ki(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(io(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(io(t),t.flags|=128,null);io(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Xi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),I(lo,lo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ki(t,aa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}}else ic=!1,Mi&&t.flags&1048576&&Ei(t,yi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ea(t.elementType),t.type=e,typeof e==`function`)oi(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=oc(null,t,e,r,n);break a}if(a===w){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=j(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(L(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Va(e,t),Ja(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ki(t,aa,r),r!==o.cache&&Yi(t,[aa],n,!0),qa(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}if(r!==a){a=hi(Error(i(424)),t),Hi(a),t=yc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ji=_f(e.firstChild),Ai=t,Mi=!0,Ni=null,Pi=!0,n=Ra(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Bi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Rf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mi||(n=t.type,e=t.pendingProps,r=Yd(oe.current).createElement(n),r[rt]=t,r[it]=e,Ud(r,n,e),gt(r),t.stateNode=r):t.memoizedState=Rf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return le(t),e===null&&Mi&&(r=t.stateNode=xf(t.type,t.pendingProps,oe.current),Ai=t,Pi=!0,a=ji,sf(t.type)?(vf=a,ji=_f(r.firstChild)):ji=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mi&&((a=r=ji)&&(r=df(r,t.type,t.pendingProps,Pi),r===null?a=!1:(t.stateNode=r,Ai=t,ji=_f(r.firstChild),Pi=!1,a=!0)),a||Ii(t)),le(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Qd(a,o)?r=null:s!==null&&Qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),sp._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&Mi&&((e=n=ji)&&(n=ff(n,t.pendingProps,Pi),n===null?e=!1:(t.stateNode=n,Ai=t,ji=null,e=!0)),e||Ii(t)),null;case 13:return Cc(e,t,n);case 4:return L(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=B(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ki(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Qi(t),a=$i(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return Qi(t),r=$i(aa),e===null?(a=_a(),a===null&&(a=Ul,o=oa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ba(t),Ki(t,aa,a)):((e.lanes&n)!==0&&(Va(e,t),Ja(t,null,null,n),qa()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ki(t,aa,r),r!==a.cache&&Yi(t,[aa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ki(t,aa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(ju())e.flags|=8192;else throw Da=Ca,xa}}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!$f(t)){if(ju())e.flags|=8192;else throw Da=Ca,xa}}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ge(),e.lanes|=t,ru|=t)}function Rc(e,t){if(!Mi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(Oi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),qi(aa),ce(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(zi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Vi())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(ue(t),n=oe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=ie.current,zi(t)?Li(t,e):(e=xf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(ue(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=ie.current,zi(t))Li(t,o);else{var s=Yd(oe.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[rt]=t,o[it]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ud(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,zi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ai,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[rt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Ii(t,!0)}else e=Yd(e).createTextNode(r),e[rt]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=zi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(co(t),t):(co(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=zi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[rt]=t}else Bi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Vi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(co(t),t):(co(t),null)}return co(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return ce(),e===null&&Ad(t.stateNode.containerInfo),zc(t),null;case 10:return qi(t.type),zc(t),null;case 19:if(re(lo),r=t.memoizedState,r===null)return zc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Rc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ci(n,e),n=n.sibling;return I(lo,lo.current&1|2),Mi&&Ti(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ce()>lu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Mi)return zc(t),null}else 2*Ce()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ce(),e.sibling=null,n=lo.current,I(lo,a?n&1|2:n&1),Mi&&Ti(t,r.treeForkCount),e);case 22:case 23:return co(t),to(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&re(ga),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qi(aa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Oi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qi(aa),ce(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(co(t),t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(co(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Bi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(lo),null;case 4:return ce(),null;case 10:return qi(t.type),null;case 22:case 23:return co(t),to(),e!==null&&re(ga),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qi(aa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Oi(t),t.tag){case 3:qi(aa),ce();break;case 26:case 27:case 5:ue(t);break;case 4:ce();break;case 31:t.memoizedState!==null&&co(t);break;case 13:co(t);break;case 19:re(lo);break;case 10:qi(t.type);break;case 22:case 23:co(t),to(),e!==null&&re(ga);break;case 24:qi(aa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Qu(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Qu(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xa(t,n)}catch(t){Qu(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Qu(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Qu(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Qu(e,t,n)}else n.current=null}}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Qu(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[it]=t}catch(t){Qu(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xt));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[rt]=e,t[it]=n}catch(t){Qu(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,qd=gp,e=wr(e),Tr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},gp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Qu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)uf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:uf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Qu(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Qu(n,n.return,e)}}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xa(e,t)}catch(e){Qu(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=nd.bind(null,n),gf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,!!(n.subtreeFlags&8772)):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&dt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(Ne&&typeof Ne.onCommitFiberUnmount==`function`)try{Ne.onCommitFiberUnmount(Me,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;sf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),Sf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null){if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){Qu(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){Qu(n,t,e)}}break;case 18:ul!==null&&(dl?(e=ul,cf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hp(e)):cf(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hp(e)}catch(e){Qu(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hp(e)}catch(e){Qu(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=rd.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(sf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ut]||o[rt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Ud(o,r,n),o[rt]=e,gt(o),r=o;break a;case`link`:var s=Xf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Ud(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Xf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Ud(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[rt]=e,gt(o),r=o}e.stateNode=r}else Zf(a,e.type,e.stateNode)}else e.stateNode=Gf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Zf(a,e.type,e.stateNode):Gf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Ht(a,``)}catch(t){Qu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Qu(e,e.return,t)}}break;case 3:if(Yf=null,a=yl,yl=Tf(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(t){Qu(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=Tf(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(su=Ce()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Qu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Qu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?lf(m,!0):lf(l.stateNode,!1)}catch(e){Qu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ht(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){Qu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:Sf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Qu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ya(c[i],s)}catch(e){Qu(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&sa(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&sa(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Qu(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&ep(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=Tf(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:sa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=$i(aa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return $i(aa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,Wl=null,Gl=0,Kl=0,ql=null,Jl=!1,Yl=!1,Xl=!1,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=0,iu=null,au=null,ou=!1,su=0,cu=0,lu=1/0,uu=null,U=null,du=0,fu=null,pu=null,mu=0,hu=0,gu=null,_u=null,vu=0,yu=null;function bu(){return Hl&2&&Gl!==0?Gl&-Gl:N.T===null?et():yd()}function xu(){if(nu===0){if(!(Gl&536870912)||Mi){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),nu=e}else nu=536870912}return e=no.current,e!==null&&(e.flags|=32),nu}function Su(e,t,n){(e===Ul&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)&&(ku(e,0),Eu(e,Gl,nu,!1)),qe(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(eu|=n),Ql===4&&Eu(e,Gl,nu,!1)),dd(e))}function Cu(e,t,n){if(Hl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ue(e,t),a=r?Lu(e,t):Fu(e,t,!0),o=r;do{if(a===0){Yl&&!r&&Eu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Tu(n)){a=Fu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=iu;var l=c.current.memoizedState.isDehydrated;if(l&&(ku(c,s).flags|=256),s=Fu(c,s,!1),s!==2){if(Xl&&!l){c.errorRecoveryDisabledLanes|=o,eu|=o,a=4;break a}o=au,au=a,o!==null&&(au===null?au=o:au.push.apply(au,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){ku(e,0),Eu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Eu(r,t,nu,!Jl);break a;case 2:au=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=su+300-Ce(),10<a)){if(Eu(r,t,nu,!Jl),He(r,0,!0)!==0)break a;mu=t,r.timeoutHandle=tf(wu.bind(null,r,n,au,uu,ou,t,nu,eu,ru,Jl,o,`Throttled`,-0,0),a);break a}wu(r,n,au,uu,ou,t,nu,eu,ru,Jl,o,null,-0,0)}break}while(1);dd(e)}function wu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xt},Pl(t,a,d);var m=(a&62914560)===a?su-Ce():(a&4194048)===a?cu-Ce():0;if(m=np(d,m),m!==null){mu=a,e.cancelPendingCommit=m(Wu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Eu(e,a,o,!l);return}}Wu(e,t,a,n,r,i,o,s,c)}function Tu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!yr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Eu(e,t,n,r){t&=~tu,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Fe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Ye(e,n,t)}function Du(){return Hl&6?!0:(fd(0,!1),!1)}function Ou(){if(Wl!==null){if(Kl===0)var e=Wl.return;else e=Wl,Gi=Wi=null,Ao(e),Aa=null,ja=0,e=Wl;for(;e!==null;)Hc(e.alternate,e),e=e.return;Wl=null}}function ku(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,nf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),mu=0,Ou(),Ul=e,Wl=n=si(e.current,null),Gl=t,Kl=0,ql=null,Jl=!1,Yl=Ue(e,t),Xl=!1,ru=nu=tu=eu=$l=Ql=0,au=iu=null,ou=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Fe(r),a=1<<i;t|=e[i],r&=~a}return Zl=t,Zr(),n}function Au(e,t){V=null,N.H=H,t===ba||t===Sa?(t=Oa(),Kl=3):t===xa?(t=Oa(),Kl=4):Kl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ql=t,Wl===null&&(Ql=1,Zs(e,hi(t,e.current)))}function ju(){var e=no.current;return e===null?!0:(Gl&4194048)===Gl?ro===null:(Gl&62914560)===Gl||Gl&536870912?e===ro:!1}function Mu(){var e=N.H;return N.H=H,e===null?H:e}function Nu(){var e=N.A;return N.A=Bl,e}function Pu(){Ql=4,Jl||(Gl&4194048)!==Gl&&no.current!==null||(Yl=!0),!($l&134217727)&&!(eu&134217727)||Ul===null||Eu(Ul,Gl,nu,!1)}function Fu(e,t,n){var r=Hl;Hl|=2;var i=Mu(),a=Nu();(Ul!==e||Gl!==t)&&(uu=null,ku(e,t)),t=!1;var o=Ql;a:do try{if(Kl!==0&&Wl!==null){var s=Wl,c=ql;switch(Kl){case 8:Ou(),o=6;break a;case 3:case 2:case 9:case 6:no.current===null&&(t=!0);var l=Kl;if(Kl=0,ql=null,Vu(e,s,c,l),n&&Yl){o=0;break a}break;default:l=Kl,Kl=0,ql=null,Vu(e,s,c,l)}}Iu(),o=Ql;break}catch(t){Au(e,t)}while(1);return t&&e.shellSuspendCounter++,Gi=Wi=null,Hl=r,N.H=i,N.A=a,Wl===null&&(Ul=null,Gl=0,Zr()),o}function Iu(){for(;Wl!==null;)zu(Wl)}function Lu(e,t){var n=Hl;Hl|=2;var r=Mu(),a=Nu();Ul!==e||Gl!==t?(uu=null,lu=Ce()+500,ku(e,t)):Yl=Ue(e,t);a:do try{if(Kl!==0&&Wl!==null){t=Wl;var o=ql;b:switch(Kl){case 1:Kl=0,ql=null,Vu(e,t,o,1);break;case 2:case 9:if(wa(o)){Kl=0,ql=null,Bu(t);break}t=function(){Kl!==2&&Kl!==9||Ul!==e||(Kl=7),dd(e)},o.then(t,t);break a;case 3:Kl=7;break a;case 4:Kl=5;break a;case 7:wa(o)?(Kl=0,ql=null,Bu(t)):(Kl=0,ql=null,Vu(e,t,o,7));break;case 5:var s=null;switch(Wl.tag){case 26:s=Wl.memoizedState;case 5:case 27:var c=Wl;if(s?$f(s):c.stateNode.complete){Kl=0,ql=null;var l=c.sibling;if(l!==null)Wl=l;else{var u=c.return;u===null?Wl=null:(Wl=u,Hu(u))}break b}}Kl=0,ql=null,Vu(e,t,o,5);break;case 6:Kl=0,ql=null,Vu(e,t,o,6);break;case 8:Ou(),Ql=6;break a;default:throw Error(i(462))}}Ru();break}catch(t){Au(e,t)}while(1);return Gi=Wi=null,N.H=r,N.A=a,Hl=n,Wl===null?(Ul=null,Gl=0,Zr(),Ql):0}function Ru(){for(;Wl!==null&&!xe();)zu(Wl)}function zu(e){var t=Nc(e.alternate,e,Zl);e.memoizedProps=e.pendingProps,t===null?Hu(e):Wl=t}function Bu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,Gl);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,Gl);break;case 5:Ao(t);default:Hc(n,t),t=Wl=ci(t,Zl),t=Nc(n,t,Zl)}e.memoizedProps=e.pendingProps,t===null?Hu(e):Wl=t}function Vu(e,t,n,r){Gi=Wi=null,Ao(t),Aa=null,ja=0;var i=t.return;try{if(nc(e,i,t,n,Gl)){Ql=1,Zs(e,hi(n,e.current)),Wl=null;return}}catch(t){if(i!==null)throw Wl=i,t;Ql=1,Zs(e,hi(n,e.current)),Wl=null;return}t.flags&32768?(Mi||r===1?e=!0:Yl||Gl&536870912?e=!1:(Jl=e=!0,(r===2||r===9||r===3||r===6)&&(r=no.current,r!==null&&r.tag===13&&(r.flags|=16384))),Uu(t,e)):Hu(t)}function Hu(e){var t=e;do{if(t.flags&32768){Uu(t,Jl);return}e=t.return;var n=Bc(t.alternate,t,Zl);if(n!==null){Wl=n;return}if(t=t.sibling,t!==null){Wl=t;return}Wl=t=e}while(t!==null);Ql===0&&(Ql=5)}function Uu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,Wl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Wl=e;return}Wl=e=n}while(e!==null);Ql=6,Wl=null}function Wu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Yu();while(du!==0);if(Hl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Xr,Je(e,n,o,s,c,l),e===Ul&&(Wl=Ul=null,Gl=0),pu=t,fu=e,mu=n,hu=o,gu=a,_u=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,id(De,function(){return Xu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=N.T,N.T=null,a=P.p,P.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,P.p=a,N.T=r}}du=1,Gu(),Ku(),qu()}}function Gu(){if(du===1){du=0;var e=fu,t=pu,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Jd,o=wr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Cr(s.ownerDocument.documentElement,s)){if(c!==null&&Tr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Sr(s,h),v=Sr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gp=!!qd,Jd=qd=null}finally{Hl=i,P.p=r,N.T=n}}e.current=t,du=2}}function Ku(){if(du===2){du=0;var e=fu,t=pu,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,P.p=r,N.T=n}}du=3}}function qu(){if(du===4||du===3){du=0,Se();var e=fu,t=pu,n=mu,r=_u;t.subtreeFlags&10256||t.flags&10256?du=5:(du=0,pu=fu=null,Ju(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(U=null),$e(n),t=t.stateNode,Ne&&typeof Ne.onCommitFiberRoot==`function`)try{Ne.onCommitFiberRoot(Me,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}mu&3&&Yu(),dd(e),i=e.pendingLanes,n&261930&&i&42?e===yu?vu++:(vu=0,yu=e):vu=0,fd(0,!1)}}function Ju(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,sa(t)))}function Yu(){return Gu(),Ku(),qu(),Xu()}function Xu(){if(du!==5)return!1;var e=fu,t=hu;hu=0;var n=$e(mu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=gu,gu=null;var o=fu,s=mu;if(du=0,pu=fu=null,mu=0,Hl&6)throw Error(i(331));var c=Hl;if(Hl|=4,Ll(o.current),kl(o,o.current,s,n),Hl=c,fd(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot==`function`)try{Ne.onPostCommitFiberRoot(Me,o)}catch{}return!0}finally{P.p=a,N.T=r,Ju(e,t)}}function Zu(e,t,n){t=hi(n,t),t=$s(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(qe(e,2),dd(e))}function Qu(e,t,n){if(e.tag===3)Zu(e,e,n);else for(;t!==null;){if(t.tag===3){Zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(U===null||!U.has(r))){e=hi(n,e),n=ec(2),r=Ua(t,n,2),r!==null&&(tc(n,r,t,e),qe(r,2),dd(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Xl=!0,i.add(n),e=ed.bind(null,e,t,n),t.then(e,e))}function ed(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(Gl&n)===n&&(Ql===4||Ql===3&&(Gl&62914560)===Gl&&300>Ce()-su?!(Hl&2)&&ku(e,0):tu|=n,ru===Gl&&(ru=0)),dd(e)}function td(e,t){t===0&&(t=Ge()),e=ei(e,t),e!==null&&(qe(e,t),dd(e))}function nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function rd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),td(e,n)}function id(e,t){return ye(e,t)}var ad=null,od=null,sd=!1,cd=!1,ld=!1,ud=0;function dd(e){e!==od&&e.next===null&&(od===null?ad=od=e:od=od.next=e),cd=!0,sd||(sd=!0,vd())}function fd(e,t){if(!ld&&cd){ld=!0;do for(var n=!1,r=ad;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Fe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,_d(r,a))}else a=Gl,a=He(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ue(r,a)||(n=!0,_d(r,a))}r=r.next}while(n);ld=!1}}function pd(){md()}function md(){cd=sd=!1;var e=0;ud!==0&&ef()&&(e=ud);for(var t=Ce(),n=null,r=ad;r!==null;){var i=r.next,a=hd(r,t);a===0?(r.next=null,n===null?ad=i:n.next=i,i===null&&(od=n)):(n=r,(e!==0||a&3)&&(cd=!0)),r=i}du!==0&&du!==5||fd(e,!1),ud!==0&&(ud=0)}function hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Fe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=We(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=Gl,n=He(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ue(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),$e(n)){case 2:case 8:n=Ee;break;case 32:n=De;break;case 268435456:n=ke;break;default:n=De}return r=gd.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function gd(e,t){if(du!==0&&du!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Yu()&&e.callbackNode!==n)return null;var r=Gl;return r=He(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Cu(e,r,t),hd(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?gd.bind(null,e):null)}function _d(e,t){if(Yu())return null;Cu(e,t,!0)}function vd(){af(function(){Hl&6?ye(Te,pd):md()})}function yd(){if(ud===0){var e=ua;e===0&&(e=z,z<<=1,!(z&261888)&&(z=256)),ud=e}return ud}function bd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Yt(``+e)}function xd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Sd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=bd((i[it]||null).action),o=r.submitter;o&&(t=(t=o[it]||null)?bd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ud!==0){var e=o?xd(i,o):new FormData(i);Es(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?xd(i,o):new FormData(i),Es(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Cd=0;Cd<Gr.length;Cd++){var wd=Gr[Cd];Kr(wd.toLowerCase(),`on`+(wd[0].toUpperCase()+wd.slice(1)))}Kr(Lr,`onAnimationEnd`),Kr(Rr,`onAnimationIteration`),Kr(zr,`onAnimationStart`),Kr(`dblclick`,`onDoubleClick`),Kr(`focusin`,`onFocus`),Kr(`focusout`,`onBlur`),Kr(Br,`onTransitionRun`),Kr(Vr,`onTransitionStart`),Kr(Hr,`onTransitionCancel`),Kr(Ur,`onTransitionEnd`),bt(`onMouseEnter`,[`mouseout`,`mouseover`]),bt(`onMouseLeave`,[`mouseout`,`mouseover`]),bt(`onPointerEnter`,[`pointerout`,`pointerover`]),bt(`onPointerLeave`,[`pointerout`,`pointerover`]),yt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),yt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),yt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),yt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),yt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Td=`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(` `),Ed=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Td));function Dd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){qr(e)}i.currentTarget=null,a=c}}}}function W(e,t){var n=t[ot];n===void 0&&(n=t[ot]=new Set);var r=e+`__bubble`;n.has(r)||(jd(t,e,2,!1),n.add(r))}function Od(e,t,n){var r=0;t&&(r|=4),jd(n,e,r,t)}var kd=`_reactListening`+Math.random().toString(36).slice(2);function Ad(e){if(!e[kd]){e[kd]=!0,_t.forEach(function(t){t!==`selectionchange`&&(Ed.has(t)||Od(t,!1,e),Od(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[kd]||(t[kd]=!0,Od(`selectionchange`,!1,t))}}function jd(e,t,n,r){switch(Cp(t)){case 2:var i=_p;break;case 8:i=vp;break;default:i=yp}n=i.bind(null,t,n,e),i=void 0,!sn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Md(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ft(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}rn(function(){var r=a,i=Qt(n),s=[];a:{var c=Wr.get(e);if(c!==void 0){var l=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:l=In;break;case`focusin`:u=`focus`,l=Dn;break;case`focusout`:u=`blur`,l=Dn;break;case`beforeblur`:case`afterblur`:l=Dn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Rn;break;case Lr:case Rr:case zr:l=On;break;case Ur:l=zn;break;case`scroll`:case`scrollend`:l=bn;break;case`wheel`:l=Bn;break;case`copy`:case`cut`:case`paste`:l=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Ln;break;case`toggle`:case`beforetoggle`:l=Vn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=an(m,p),g!=null&&d.push(Nd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Zt&&(u=n.relatedTarget||n.fromElement)&&(ft(u)||u[at]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ft(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:mt(l),h=u==null?c:mt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ft(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Fd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Id(s,c,l,d,!1),u!==null&&f!==null&&Id(s,f,u,d,!0)}}a:{if(c=r?mt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=sr;else if(tr(c)){if(cr)v=_r;else{v=hr;var y=mr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Kt(r.elementType)&&(v=sr):v=gr;if(v&&=v(e,r)){nr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Rt(c,`number`,c.value)}switch(y=r?mt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Dr=y,Or=r,kr=null);break;case`focusout`:kr=Or=Dr=null;break;case`mousedown`:Ar=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Ar=!1,jr(s,n,i);break;case`selectionchange`:if(Er)break;case`keydown`:case`keyup`:jr(s,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Pd(r,x),0<y.length&&(x=new An(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Pd(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Sd(s,e,r,n,i)}Dd(s,t)})}function Nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=an(e,n),i!=null&&r.unshift(Nd(e,i,a)),i=an(e,t),i!=null&&r.push(Nd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Fd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Id(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=an(n,a),l!=null&&o.unshift(Nd(n,l,c))):i||(l=an(n,a),l!=null&&o.push(Nd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ld=/\r\n?/g,Rd=/\u0000|\uFFFD/g;function zd(e){return(typeof e==`string`?e:``+e).replace(Ld,`
|
|
9
|
-
`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:W(`beforetoggle`,e),W(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=qt.get(n)||n,Tt(e,n,r))}}function Hd(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[it]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}}}function Ud(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:W(`error`,e),W(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Vd(e,t,o,s,n,null)}}a&&Vd(e,t,`srcSet`,n.srcSet,n,null),r&&Vd(e,t,`src`,n.src,n,null);return;case`input`:W(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Vd(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in W(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Vd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in W(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Vd(e,t,s,c,n,null)}Vt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Vd(e,t,l,r,n,null)}return;case`dialog`:W(`beforetoggle`,e),W(`toggle`,e),W(`cancel`,e),W(`close`,e);break;case`iframe`:case`object`:W(`load`,e);break;case`video`:case`audio`:for(r=0;r<Td.length;r++)W(Td[r],e);break;case`image`:W(`error`,e),W(`load`,e);break;case`details`:W(`toggle`,e);break;case`embed`:case`source`:case`link`:W(`error`,e),W(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Vd(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Hd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Vd(e,t,c,r,n,null))}function Wd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Vd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Vd(e,t,p,m,r,f)}}It(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Vd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Vd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Vd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Vd(e,t,s,a,r,o)}Bt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Vd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Vd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Vd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Vd(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Hd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Hd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Vd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Vd(e,t,f,p,r,m)}function Gd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Kd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Gd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var qd=null,Jd=null;function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Zd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $d=null;function ef(){var e=window.event;return e&&e.type===`popstate`?e!==$d&&($d=e,!0):($d=null,!1)}var tf=typeof setTimeout==`function`?setTimeout:void 0,nf=typeof clearTimeout==`function`?clearTimeout:void 0,rf=typeof Promise==`function`?Promise:void 0,af=typeof queueMicrotask==`function`?queueMicrotask:rf===void 0?tf:function(e){return rf.resolve(null).then(e).catch(of)};function of(e){setTimeout(function(){throw e})}function sf(e){return e===`head`}function cf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sf(e.ownerDocument.body)}n=i}while(n);Hp(t)}function lf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function uf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:uf(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function df(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[ut])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=_f(e.nextSibling),e===null)break}return null}function ff(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_f(e.nextSibling),e===null))return null;return e}function pf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_f(e.nextSibling),e===null))return null;return e}function mf(e){return e.data===`$?`||e.data===`$~`}function hf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function _f(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var vf=null;function yf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _f(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function xf(e,t,n){switch(t=Yd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var Cf=new Map,wf=new Set;function Tf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ef=P.d;P.d={f:Df,r:Of,D:jf,C:Mf,L:Nf,m:Pf,X:If,S:Ff,M:Lf};function Df(){var e=Ef.f(),t=Du();return e||t}function Of(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):Ef.r(e)}var kf=typeof document>`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ht(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);gt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=oe.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Ft(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),gt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Ft(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,gt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Yf=null;function Xf(e,t,n){if(Yf===null){var r=new Map,i=Yf=new Map;i.set(n,r)}else i=Yf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ut]||a[rt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Zf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&tp===0&&(tp=62500*Kd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sp={$$typeof:b,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function cp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function up(e){return e?(e=ri,e):ri}function dp(e,t,n,r,i,a){i=up(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(Su(n,e,t),Wa(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&Su(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=bu();t=Qe(t);var n=ei(e,t);n!==null&&Su(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function vp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function yp(e,t,n,r){if(gp){var i=bp(r);if(i===null)Md(e,t,r,xp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Fe(o);s.entanglements[1]|=c,o&=~c}dd(a),!(Hl&6)&&(lu=Ce()+500,fd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&Su(s,a,2),Du(),pp(a,2)}if(a=bp(r),a===null&&Md(e,t,r,xp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Md(e,t,r,null,n)}}function bp(e){return e=Qt(e),Sp(e)}var xp=null;function Sp(e){if(xp=null,e=ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xp=e,null}function Cp(e){switch(e){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(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var wp=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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 Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=pt(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,tt(e.priority,function(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,tt(e.priority,function(){hp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){wp=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[it]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(Sp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dp(n,bu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Du(),t[at]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.8`)throw Error(i(527,Kp,`19.2.8`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Me=Jp.inject(qp),Ne=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lp(e,1,!1,null,null,n,r,null,o,s,c,Up),e[at]=t.current,Ad(e),new Wp(t)}})),La=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ia()}))(),B=e=>typeof e==`string`,Ra=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},za=e=>e==null?``:String(e),Ba=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Va=/###/g,Ha=e=>e&&e.includes(`###`)?e.replace(Va,`.`):e,Ua=e=>!e||B(e),Wa=(e,t,n)=>{let r=B(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ua(e))return{};let t=Ha(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ua(e)?{}:{obj:e,k:Ha(r[i])}},Ga=(e,t,n)=>{let{obj:r,k:i}=Wa(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Wa(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Wa(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Ka=(e,t,n,r)=>{let{obj:i,k:a}=Wa(e,t,Object);i[a]=i[a]||[],i[a].push(n)},qa=(e,t)=>{let{obj:n,k:r}=Wa(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Ja=(e,t,n)=>{let r=qa(e,n);return r===void 0?qa(t,n):r},Ya=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ya(e[r],t[r],n):e[r]=t[r]);return e},Xa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Za={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Qa=e=>B(e)?e.replace(/[&<>"'\/]/g,e=>Za[e]):e,$a=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},eo=[` `,`,`,`?`,`!`,`;`],to=new $a(20),no=(e,t,n)=>{t||=``,n||=``;let r=eo.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=to.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},ro=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},io=e=>e?.replace(/_/g,`-`),ao={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},oo=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ao,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>B(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),B(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},so=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},co=class extends so{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):B(n)&&i?o.push(...n.split(i)):o.push(n)));let s=qa(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!B(n)?s:ro(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ga(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(B(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=qa(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ya(s,n,i):s={...s,...n},Ga(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},lo={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},uo=Symbol(`i18next/PATH_KEY`);function fo(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===uo?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function V(e,t){let{[uo]:n}=e(fo()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var po=e=>!B(e)&&typeof e!=`boolean`&&typeof e!=`number`,mo=class e extends so{constructor(e,t={}){super(),Ba([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=oo.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=po(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!no(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:B(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:B(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=V(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?V(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!B(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=po(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(B(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:po(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&B(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=B(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!B(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=B(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=lo.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return B(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?V(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!B(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(B(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!B(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ho=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oo.create(`languageUtils`)}getScriptPartFromCode(e){if(e=io(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=io(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(B(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),B(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return B(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):B(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},go={zero:0,one:1,two:2,few:3,many:4,other:5},_o={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vo=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=oo.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=io(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_o;if(!e.match(/-|_/))return _o;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>go[e]-go[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yo=(e,t,n,r=`.`,i=!0)=>{let a=Ja(e,t,n);return!a&&i&&B(n)&&(a=ro(e,n,r),a===void 0&&(a=ro(t,n,r))),a},bo=e=>e.replace(/\$/g,`$$$$`),xo=class{constructor(e={}){this.logger=oo.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Qa:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Xa(i):a||`{{`,this.suffix=o?Xa(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Xa(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Xa(l):``,this.nestingPrefix=d?Xa(d):f||Xa(`$t(`),this.nestingSuffix=p?Xa(p):m||Xa(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=yo(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yo(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=B(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!B(a)&&!this.useRawValueToEscape&&(a=za(a));let s=t.safeValue(a);if(e=e.replace(i[0],bo(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Xa(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!B(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!B(i))return i;B(i)||(i=za(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},So=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Co=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(io(r),i),t[o]=s),s(n)}},wo=e=>(t,n,r)=>e(io(n),r)(t),To=class{constructor(e={}){this.logger=oo.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Co:wo;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Co(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=So(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Eo=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Do=class extends so{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=oo.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Ka(n.loaded,[i],a),Eo(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();B(e)&&(e=this.languageUtils.toResolveHierarchy(e)),B(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Oo=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ko=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ao=()=>{},jo=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Mo=class e extends so{constructor(e={},t){if(super(),this.options=ko(e),this.services={},this.logger=oo,this.modules={external:[]},jo(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(B(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Oo();this.options={...n,...this.options,...ko(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?oo.init(r(this.modules.logger),this.options):oo.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:To;let t=new ho(this.options);this.store=new co(this.options.resources,this.options);let n=this.services;n.logger=oo,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new vo(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new xo(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Do(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new mo(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Ao,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Ra(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ao){let n=t,r=B(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Ra();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Ao,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&lo.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Ra();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=B(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(B(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=V(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=V(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=V(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return B(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Ra();return this.options.ns?(B(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Ra();B(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ho(Oo());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ao){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new co(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Oo().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new xo(n)}return a.translator=new mo(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Mo.createInstance,Mo.dir,Mo.init,Mo.loadResources,Mo.reloadResources,Mo.use,Mo.changeLanguage,Mo.getFixedT,Mo.t,Mo.exists,Mo.setDefaultNamespace,Mo.hasLoadedNamespace,Mo.loadNamespaces,Mo.loadLanguages;var No=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Bo(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Po={},Fo=(e,t,n,r)=>{Bo(n)&&Po[n]||(Bo(n)&&(Po[n]=new Date),No(e,t,n,r))},Io=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Lo=(e,t,n)=>{e.loadNamespaces(t,Io(e,n))},Ro=(e,t,n,r)=>{if(Bo(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Lo(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Io(e,r))},zo=(e,t,n={})=>!t.languages||!t.languages.length?(Fo(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Bo=e=>typeof e==`string`,Vo=e=>typeof e==`object`&&!!e,Ho=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Uo={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Wo=e=>Uo[e],Go={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ho,Wo),transDefaultProps:void 0},Ko=(e={})=>{Go={...Go,...e}},qo=()=>Go,Jo,Yo=e=>{Jo=e},Xo=()=>Jo,Zo={type:`3rdParty`,init(e){Ko(e.options.react),Yo(e)}},Qo=(0,R.createContext)(),$o=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},es=Ni(),ts={t:(e,t)=>{if(Bo(t))return t;if(Vo(t)&&Bo(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},ns=()=>()=>{},rs=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,R.useContext)(Qo)||{},a=n||r||Xo();a&&!a.reportNamespaces&&(a.reportNamespaces=new $o),a||Fo(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,R.useMemo)(()=>({...qo(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Bo(l)?[l]:l||[`translation`],d=(0,R.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,R.useRef)(0),p=(0,R.useCallback)(e=>{if(!a)return ns;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,R.useRef)(),h=(0,R.useCallback)(()=>{if(!a)return ts;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>zo(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,R.useState)(0),{t:v,ready:y}=(0,es.useSyncExternalStore)(p,h,h);(0,R.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?Ro(a,t.lng,d,e):Lo(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,R.useRef)(null),S=(0,R.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,R.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(Fo(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y){let e=!1;try{e=!1}catch{}throw e&&Fo(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?Ro(a,t.lng,d,n):Lo(a,d,n)})}return w};Mo.use(Zo).init({resources:{ru:{translation:{overview:`Обзор`,activity:`Журнал`,models:`Модели`,agents:`Агенты`,settings:`Настройка`,live:`Локально`,sessions:`Сессии`,calls:`Вызовы`,tokens:`Токены`,cost:`Стоимость`,usage:`Использование за 30 дней`,recent:`Последняя активность`,noData:`Данные появятся после первого запуска агентов Orchestra.`,export:`Экспорт`,exportFailed:`Не удалось экспортировать`,close:`Закрыть`,monthProjection:`Прогноз месяца`,monthToDate:`потрачено за месяц`,aheadOfPace:`впереди среднего темпа`,anomaly:`Всплеск расхода`,anomalyNote:`выше базовой линии`,storeTexts:`Хранить тексты промптов и ответов (для отладки)`}},en:{translation:{overview:`Overview`,activity:`Activity`,models:`Models`,agents:`Agents`,settings:`Settings`,live:`Local`,sessions:`Sessions`,calls:`Calls`,tokens:`Tokens`,cost:`Cost`,usage:`Usage over 30 days`,recent:`Recent activity`,noData:`Data will appear after Orchestra agents run for the first time.`,export:`Export`,exportFailed:`Export failed`,close:`Close`,monthProjection:`Month projection`,monthToDate:`spent this month`,aheadOfPace:`ahead of average pace`,anomaly:`Spend spike`,anomalyNote:`above baseline`,storeTexts:`Store prompt and reply texts (for debugging)`}}},lng:localStorage.getItem(`orchestra-language`)===`en`?`en`:`ru`,fallbackLng:`ru`,interpolation:{escapeValue:!1}});var is=Mo,as={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},os=(0,R.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:c,secondaryColor:l,disableSecondaryOpacity:u=!1,...d},f)=>{let p=n===void 0?void 0:r?Number(n)*24/Number(t):n,m=p===void 0?{}:{strokeWidth:p,stroke:`currentColor`},h={ref:f,...as,width:t,height:t,color:c||e,className:i,...m,...d},g=[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!u?n.opacity:void 0,a=l?{...n.stroke===void 0?{fill:r?l:c||e}:{stroke:r?l:c||e}}:{};return(0,R.createElement)(t,{...n,...m,...a,opacity:i,key:n.key})});return(0,R.createElement)(`svg`,h,g)});os.displayName=`HugeiconsIcon`;var ss=[[`path`,{d:`M4.31802 19.682C3 18.364 3 16.2426 3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7 14L9.79289 11.2071C10.1834 10.8166 10.8166 10.8166 11.2071 11.2071L12.7929 12.7929C13.1834 13.1834 13.8166 13.1834 14.2071 12.7929L17 10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],cs=[[`path`,{d:`M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ls=[[`path`,{d:`M3.5 9.5V18.5C3.5 18.9659 3.5 19.1989 3.57612 19.3827C3.67761 19.6277 3.87229 19.8224 4.11732 19.9239C4.30109 20 4.53406 20 5 20C5.46594 20 5.69891 20 5.88268 19.9239C6.12771 19.8224 6.32239 19.6277 6.42388 19.3827C6.5 19.1989 6.5 18.9659 6.5 18.5V9.5C6.5 9.03406 6.5 8.80109 6.42388 8.61732C6.32239 8.37229 6.12771 8.17761 5.88268 8.07612C5.69891 8 5.46594 8 5 8C4.53406 8 4.30109 8 4.11732 8.07612C3.87229 8.17761 3.67761 8.37229 3.57612 8.61732C3.5 8.80109 3.5 9.03406 3.5 9.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.5 5.5V18.4995C10.5 18.9654 10.5 19.1984 10.5761 19.3822C10.6776 19.6272 10.8723 19.8219 11.1173 19.9234C11.3011 19.9995 11.5341 19.9995 12 19.9995C12.4659 19.9995 12.6989 19.9995 12.8827 19.9234C13.1277 19.8219 13.3224 19.6272 13.4239 19.3822C13.5 19.1984 13.5 18.9654 13.5 18.4995V5.5C13.5 5.03406 13.5 4.80109 13.4239 4.61732C13.3224 4.37229 13.1277 4.17761 12.8827 4.07612C12.6989 4 12.4659 4 12 4C11.5341 4 11.3011 4 11.1173 4.07612C10.8723 4.17761 10.6776 4.37229 10.5761 4.61732C10.5 4.80109 10.5 5.03406 10.5 5.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M17.5 12.5V18.5C17.5 18.9659 17.5 19.1989 17.5761 19.3827C17.6776 19.6277 17.8723 19.8224 18.1173 19.9239C18.3011 20 18.5341 20 19 20C19.4659 20 19.6989 20 19.8827 19.9239C20.1277 19.8224 20.3224 19.6277 20.4239 19.3827C20.5 19.1989 20.5 18.9659 20.5 18.5V12.5C20.5 12.0341 20.5 11.8011 20.4239 11.6173C20.3224 11.3723 20.1277 11.1776 19.8827 11.0761C19.6989 11 19.4659 11 19 11C18.5341 11 18.3011 11 18.1173 11.0761C17.8723 11.1776 17.6776 11.3723 17.5761 11.6173C17.5 11.8011 17.5 12.0341 17.5 12.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],us=[[`path`,{d:`M14 18C18.4183 18 22 14.4183 22 10C22 5.58172 18.4183 2 14 2C9.58172 2 6 5.58172 6 10C6 14.4183 9.58172 18 14 18Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3.15657 11C2.42523 12.1176 2 13.4535 2 14.8888C2 18.8162 5.18378 22 9.11116 22C10.5465 22 11.8824 21.5748 13 20.8434`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M15.7712 8.20524C15.555 7.29311 14.4546 6.47004 13.1337 7.08579C11.8128 7.70154 11.603 9.68269 13.601 9.89315C14.5041 9.98828 15.0928 9.78277 15.6319 10.3641C16.1709 10.9454 16.2711 12.562 14.8931 12.9977C13.5151 13.4334 12.1506 12.7526 12.002 11.786M13.9862 6.00421V6.87325M13.9862 13.1318V14.0042`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],ds=[[`path`,{d:`M13.6903 19.4567C13.5 18.9973 13.5 18.4149 13.5 17.25C13.5 16.0851 13.5 15.5027 13.6903 15.0433C13.944 14.4307 14.4307 13.944 15.0433 13.6903C15.5027 13.5 16.0851 13.5 17.25 13.5C18.4149 13.5 18.9973 13.5 19.4567 13.6903C20.0693 13.944 20.556 14.4307 20.8097 15.0433C21 15.5027 21 16.0851 21 17.25C21 18.4149 21 18.9973 20.8097 19.4567C20.556 20.0693 20.0693 20.556 19.4567 20.8097C18.9973 21 18.4149 21 17.25 21C16.0851 21 15.5027 21 15.0433 20.8097C14.4307 20.556 13.944 20.0693 13.6903 19.4567Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13.6903 8.95671C13.5 8.49728 13.5 7.91485 13.5 6.75C13.5 5.58515 13.5 5.00272 13.6903 4.54329C13.944 3.93072 14.4307 3.44404 15.0433 3.1903C15.5027 3 16.0851 3 17.25 3C18.4149 3 18.9973 3 19.4567 3.1903C20.0693 3.44404 20.556 3.93072 20.8097 4.54329C21 5.00272 21 5.58515 21 6.75C21 7.91485 21 8.49728 20.8097 8.95671C20.556 9.56928 20.0693 10.056 19.4567 10.3097C18.9973 10.5 18.4149 10.5 17.25 10.5C16.0851 10.5 15.5027 10.5 15.0433 10.3097C14.4307 10.056 13.944 9.56928 13.6903 8.95671Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M3.1903 19.4567C3 18.9973 3 18.4149 3 17.25C3 16.0851 3 15.5027 3.1903 15.0433C3.44404 14.4307 3.93072 13.944 4.54329 13.6903C5.00272 13.5 5.58515 13.5 6.75 13.5C7.91485 13.5 8.49728 13.5 8.95671 13.6903C9.56928 13.944 10.056 14.4307 10.3097 15.0433C10.5 15.5027 10.5 16.0851 10.5 17.25C10.5 18.4149 10.5 18.9973 10.3097 19.4567C10.056 20.0693 9.56928 20.556 8.95671 20.8097C8.49728 21 7.91485 21 6.75 21C5.58515 21 5.00272 21 4.54329 20.8097C3.93072 20.556 3.44404 20.0693 3.1903 19.4567Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M3.1903 8.95671C3 8.49728 3 7.91485 3 6.75C3 5.58515 3 5.00272 3.1903 4.54329C3.44404 3.93072 3.93072 3.44404 4.54329 3.1903C5.00272 3 5.58515 3 6.75 3C7.91485 3 8.49728 3 8.95671 3.1903C9.56928 3.44404 10.056 3.93072 10.3097 4.54329C10.5 5.00272 10.5 5.58515 10.5 6.75C10.5 7.91485 10.5 8.49728 10.3097 8.95671C10.056 9.56928 9.56928 10.056 8.95671 10.3097C8.49728 10.5 7.91485 10.5 6.75 10.5C5.58515 10.5 5.00272 10.5 4.54329 10.3097C3.93072 10.056 3.44404 9.56928 3.1903 8.95671Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],fs=[[`path`,{d:`M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 12H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 7.5L17 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M7.125 7.5H7M7.25 7.5C7.25 7.63807 7.13807 7.75 7 7.75C6.86193 7.75 6.75 7.63807 6.75 7.5C6.75 7.36193 6.86193 7.25 7 7.25C7.13807 7.25 7.25 7.36193 7.25 7.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M11 16.5L17 16.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M7.125 16.5H7M7.25 16.5C7.25 16.6381 7.13807 16.75 7 16.75C6.86193 16.75 6.75 16.6381 6.75 16.5C6.75 16.3619 6.86193 16.25 7 16.25C7.13807 16.25 7.25 16.3619 7.25 16.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],ps=[[`path`,{d:`M16.9504 12.1817C17.1981 12.814 16.5076 13.5726 15.1267 15.0899C13.6702 16.6902 12.9201 17.4904 12 17.5C11.0799 17.4904 10.3298 16.6902 8.87331 15.0899C7.49239 13.5726 6.80193 12.814 7.04964 12.1817C7.05868 12.1586 7.06851 12.1359 7.0791 12.1135C7.34928 11.542 8.24477 11.5029 10 11.5002V4.99998C10 4.53501 10 4.30253 10.0511 4.11179C10.1898 3.59414 10.5941 3.1898 11.1118 3.05111C11.3025 3 11.535 3 12 3C12.4649 3 12.6974 3 12.8882 3.05111C13.4058 3.1898 13.8102 3.59414 13.9489 4.11179C14 4.30253 14 4.53501 14 4.99998V11.5002C15.7552 11.5029 16.6507 11.542 16.9209 12.1135C16.9315 12.1359 16.9413 12.1586 16.9504 12.1817Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M5.00006 21H19.0001`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ms=[[`path`,{d:`M7 8.37931H11.5M17 8.37931H14.5M11.5 8.37931H14.5M11.5 8.37931V7M14.5 8.37931C13.9725 10.2656 12.8679 12.0487 11.6071 13.6158M8.39286 17C9.41205 16.0628 10.5631 14.9134 11.6071 13.6158M11.6071 13.6158C10.9643 12.8621 10.0643 11.6426 9.80714 11.0909M11.6071 13.6158L13.5357 15.6207`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}]],hs=[[`path`,{d:`M21.5 14.0784C20.3003 14.7189 18.9301 15.0821 17.4751 15.0821C12.7491 15.0821 8.91792 11.2509 8.91792 6.52485C8.91792 5.06986 9.28105 3.69968 9.92163 2.5C5.66765 3.49698 2.5 7.31513 2.5 11.8731C2.5 17.1899 6.8101 21.5 12.1269 21.5C16.6849 21.5 20.503 18.3324 21.5 14.0784Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],gs=[[`path`,{d:`M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],_s=[[`path`,{d:`M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}]],vs=[[`path`,{d:`M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 2C11.6227 2.33333 11.0945 3.2 12 4M12 20C12.3773 20.3333 12.9055 21.2 12 22M19.5 4.50271C18.9685 4.46982 17.9253 4.72293 18.0042 5.99847M5.49576 17.5C5.52865 18.0315 5.27555 19.0747 4 18.9958M5.00271 4.5C4.96979 5.03202 5.22315 6.0763 6.5 5.99729M18 17.5026C18.5315 17.4715 19.5747 17.7108 19.4958 18.9168M22 12C21.6667 11.6227 20.8 11.0945 20 12M4 11.5C3.66667 11.8773 2.8 12.4055 2 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]],ys=e=>e.type===`checkbox`,bs=e=>e.type===`file`,xs=e=>e instanceof Date,Ss=e=>e==null,Cs=e=>typeof e==`object`,ws=e=>!Ss(e)&&!Array.isArray(e)&&Cs(e)&&!xs(e),Ts=e=>ws(e)&&e.target?ys(e.target)?e.target.checked:bs(e.target)?e.target.files:e.target.value:e,Es=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),Ds=e=>{let t=e.constructor&&e.constructor.prototype;return ws(t)&&t.hasOwnProperty(`isPrototypeOf`)},Os=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function ks(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(Os&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(ws(e)&&Ds(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ks(e[t]));return r}var As={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},js={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Ms={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},Ns=`root`,Ps=[`__proto__`,`constructor`,`prototype`],Fs=/^\w*$/,Is=e=>Fs.test(e),Ls=e=>e===void 0,Rs=/[.[\]'"]/,zs=e=>e.split(Rs).filter(Boolean),H=(e,t,n)=>{if(!t||!ws(e))return n;let r=Is(t)?[t]:zs(t);if(r.some(e=>Ps.includes(e)))return n;let i=r.reduce((e,t)=>Ss(e)?void 0:e[t],e);return Ls(i)||i===e?Ls(e[t])?n:e[t]:i},Bs=e=>typeof e==`boolean`,Vs=e=>typeof e==`function`,Hs=(e,t,n)=>{let r=-1,i=Is(t)?[t]:zs(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=ws(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Ps.includes(t))return;e[t]=a,e=e[t]}},Us=R.createContext(null);Us.displayName=`HookFormControlContext`;var Ws=()=>R.useContext(Us),Gs=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==js.all&&(t._proxyFormState[i]=!r||js.all),n&&(n[i]=!0),e[i]}});return i},Ks=Os?R.useLayoutEffect:R.useEffect,qs=e=>Ss(e)||!Cs(e),Js=(e,t)=>t.length===0&&!Array.isArray(e)&&!Ds(e);function Ys(e,t,n=new WeakMap){if(e===t)return!0;if(qs(e)||qs(t))return Object.is(e,t);if(xs(e)&&xs(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Js(e,r)||Js(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(xs(r)&&xs(e)||(ws(r)||Array.isArray(r))&&(ws(e)||Array.isArray(e))?!Ys(r,e,n):!Object.is(r,e))return!1}}return!0}function Xs(){let e=R.useRef(!1),t=R.useRef(void 0);return{resyncIfNeeded:R.useCallback((n,r,i)=>{if(n&&e.current){let e=r();Ys(t.current,e)||i(e)}e.current=!0},[]),snapshot:R.useCallback((e,n)=>{e&&(t.current=ks(n()))},[])}}function Zs(e){let t=Ws(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=R.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:l,snapshot:u}=Xs();return Ks(()=>{let e=()=>({...n._formState,defaultValues:n._defaultValues});l(!r,e,s);let t=n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{t(),u(!r,e)}},[i,r,a,l,u]),R.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),R.useMemo(()=>Gs(o,n,c.current,!1),[o,n])}var Qs=e=>typeof e==`string`,$s=(e,t,n,r,i)=>Qs(e)?(r&&t.watch.add(e),H(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),H(n,e))):(r&&(t.watchAll=!0),n);function ec(e){let t=Ws(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=R.useRef(i),l=R.useRef(s),u=R.useRef(void 0),d=R.useRef(n),f=R.useRef(r);l.current=s;let[p,m]=R.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=R.useCallback(e=>{let t=$s(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=R.useCallback(e=>{if(!a){let t=$s(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);Ys(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:_,snapshot:v}=Xs(),y=R.useRef(g);y.current=g;let b=R.useRef(h);b.current=h,Ks(()=>{d.current!==n||!Ys(f.current,r)?(d.current=n,f.current=r,y.current()):_(!a,()=>b.current(),e=>{m(e),u.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y.current(e.values)}});return()=>{e(),v(!a,()=>b.current())}},[n,o,r,a,_,v]),R.useEffect(()=>n._removeUnmounted());let x=d.current!==n,S=f.current,C=R.useMemo(()=>{if(a)return null;let e=!x&&!Ys(S,r);return x||e?h():null},[a,x,r,S,h]);return C===null?p:C}function tc(e){let t=Ws(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=Es(i._names.array,n),l=ec({control:i,name:n,defaultValue:R.useMemo(()=>H(i._formValues,n,H(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=Zs({control:i,name:n,exact:s}),d=R.useRef(e),f=R.useRef(null),p=R.useRef(i.register(n,{...e.rules,value:l,...Bs(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!H(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!H(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!H(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!H(u.validatingFields,n)},error:{enumerable:!0,get:()=>H(u.errors,n)}}),[u,n]),h=R.useCallback(e=>{let t=Ts(e);return H(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Ts(e),name:n},type:As.CHANGE})},[n,i]),g=R.useCallback(()=>p.current.onBlur({target:{value:H(i._formValues,n),name:n},type:As.BLUR}),[n,i._formValues]),_=R.useCallback(e=>{e&&(f.current={focus:()=>Vs(e.focus)&&e.focus(),select:()=>Vs(e.select)&&e.select(),setCustomValidity:t=>Vs(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Vs(e.reportValidity)&&e.reportValidity()});let t=H(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current)},[i._fields,n]),v=R.useMemo(()=>({name:n,value:l,...Bs(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return R.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Bs(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=H(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=ks(H(a?i._defaultValues:i._options.values||i._defaultValues,n,H(i._options.defaultValues,n,d.current.defaultValue)));Hs(i._defaultValues,n,e),Ls(H(i._formValues,n))&&Hs(i._formValues,n,e)}if(!c&&i.register(n),f.current){let e=H(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),R.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),R.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var nc=e=>e.render(tc(e)),rc=e=>({isOnSubmit:!e||e===js.onSubmit,isOnBlur:e===js.onBlur,isOnChange:e===js.onChange,isOnAll:e===js.all,isOnTouch:e===js.onTouched}),ic=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},ac=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?H(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(ac(a,t))break}else if((ws(a)||Array.isArray(a))&&ac(a,t))break}}},oc=(e,t,n)=>{let r=H(e,n),i=Array.isArray(r)?r:[];return Hs(i,Ns,t[n]),Hs(e,n,i),e},sc=e=>ws(e)&&!Object.keys(e).length,cc=e=>{if(!Os)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lc=e=>e.type===`radio`,uc=e=>e instanceof RegExp,dc=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},fc={value:!1,isValid:!1},pc={value:!0,isValid:!0},mc=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ls(e[0].attributes.value)?Ls(e[0].value)||e[0].value===``?pc:{value:e[0].value,isValid:!0}:pc:fc}return fc},hc={isValid:!1,value:null},gc=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,hc):hc;function _c(e,t,n=`validate`){if(Qs(e)||Array.isArray(e)&&e.every(Qs)||Bs(e)&&!e)return{type:n,message:Qs(e)?e:``,ref:t}}var vc=e=>ws(e)&&!uc(e)?e:{value:e,message:``},yc=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=H(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=Bs(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=lc(o),C=ys(o),w=S||C,T=(g||bs(o))&&Ls(o.value)&&Ls(v)||cc(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=dc.bind(null,h,r,x),D=(e,t,n,r=Ms.maxLength,i=Ms.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||Ss(v))||Bs(v)&&!v||C&&!mc(s).isValid||S&&!gc(s).isValid)){let{value:e,message:t}=Qs(c)?{value:!!c,message:c}:vc(c);if(e&&(x[h]={type:Ms.required,message:t,ref:y,...E(Ms.required,t)},!r))return b(t),x}if(!T&&(!Ss(d)||!Ss(f))){let e,t,n=vc(f),i=vc(d);if(!Ss(v)&&!xs(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;Ss(n.value)||(e=r>n.value),Ss(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Qs(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),Qs(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,Ms.max,Ms.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(Qs(v)||a&&Array.isArray(v))){let e=vc(l),t=vc(u),n=!Ss(e.value)&&v.length>+e.value,i=!Ss(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&Qs(v)){let{value:e,message:t}=vc(p);if(uc(e)&&!v.match(e)&&(x[h]={type:Ms.pattern,message:t,ref:o,...E(Ms.pattern,t)},!r))return b(t),x}if(m){if(Vs(m)){let e=_c(await m(v,n),y);if(e&&(x[h]={...e,...E(Ms.validate,e.message)},!r))return b(e.message),x}else if(ws(m)){let e={};for(let t in m){if(!sc(e)&&!r)break;let i=_c(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!sc(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},bc=e=>Array.isArray(e)?e:[e],xc=e=>Array.isArray(e)?e.filter(Boolean):[];function Sc(e,t){let n=t.length-1,r=0;for(;r<n;){if(Ss(e)){e=void 0;break}e=e[t[r]],r++}return e}function Cc(e){for(let t in e)if(e.hasOwnProperty(t)&&!Ls(e[t]))return!1;return!0}function wc(e,t){if(Qs(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:Is(t)?[t]:zs(t);if(n.some(e=>Ps.includes(String(e))))return e;let r=n.length===1?e:Sc(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(ws(r)&&sc(r)||Array.isArray(r)&&Cc(r))&&wc(e,n.slice(0,-1)),e}var Tc=e=>{let t={};for(let n of Object.keys(e))if(Cs(e[n])&&e[n]!==null&&!xs(e[n])){let r=Tc(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},Ec=R.createContext(null);Ec.displayName=`HookFormContext`;var Dc=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function Oc(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&ws(i)&&a){let e=Oc(i,a);ws(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var kc=e=>e.type===`select-multiple`,Ac=e=>lc(e)||ys(e),jc=e=>cc(e)&&e.isConnected;function Mc(e){return Array.isArray(e)||ws(e)}function Nc(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];Mc(o)&&Mc(H(t,a))?Nc(o,t,a,r):r.push(a)}return r}var Pc=e=>{for(let t in e)if(Vs(e[t]))return!0;return!1};function Fc(e){return Array.isArray(e)||ws(e)&&!Pc(e)}function Ic(e){return!!(e&&`_f`in e)}function Lc(e){return Array.isArray(e)?!e.some(e=>!Ls(e)):!Object.keys(e).length}function Rc(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function zc(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];Fc(i)&&(!Array.isArray(i)||!Ic(a))?(t[r]=Array.isArray(i)?[]:{},zc(i,t[r],a),Lc(t[r])&&Rc(t,r)):Ls(i)||(t[r]=!0)}return t}function Bc(e,t,n,r){n||=zc(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];Fc(a)&&(!Array.isArray(a)||!Ic(o))?(Ls(t)||qs(n[i])?n[i]=zc(a,Array.isArray(a)?[]:{},o):Bc(a,Ss(t)?{}:t[i],n[i],o),Lc(n[i])&&Rc(n,i)):Ys(a,t[i])?Rc(n,i):n[i]=!0}return n}var Vc=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ls(e)?e:t?e===``?NaN:e&&+e:n&&Qs(e)?new Date(e):r?r(e):e;function Hc(e){let t=e.ref;return bs(t)?t.files:lc(t)?gc(e.refs).value:kc(t)?[...t.selectedOptions].map(({value:e})=>e):ys(t)?mc(e.refs).value:Vc(t.value,e)}var Uc=(e,t,n,r)=>{let i={};for(let n of e){let e=H(t,n);e&&Hs(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Wc=e=>Ls(e)?e:uc(e)?e.source:ws(e)?uc(e.value)?e.value.source:e.value:e,Gc=`AsyncFunction`,Kc=e=>{if(!e||!e.validate)return!1;if(Vs(e.validate))return e.validate.constructor.name===Gc;if(ws(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===Gc)return!0}return!1},qc=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Jc(e,t,n){let r=H(e,n);if(r||Is(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=H(t,r),o=H(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Yc=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||js.all))},Xc=(e,t,n)=>!e||!t||e===t||bc(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),Zc=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,Qc=(e,t)=>{let n=H(e,t);!xc(n).length&&!n?.root&&wc(e,t)},$c={mode:js.onSubmit,reValidateMode:js.onChange,shouldFocusError:!0},el=`form`,tl=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},nl={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function rl(e={}){let t={...$c,...e},n={...ks(nl),isLoading:Vs(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(ws(t.defaultValues)||ws(t.values))&&ks(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:ks(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=rc(t.mode),f=rc(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:Dc(),state:Dc()},_=0,v=t.criteriaMode===js.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=sc((await j()).errors),e===_&&x()):i=await P({fields:r,onlyCheckValid:!0,eventType:As.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?Hs(n.validatingFields,e,r):wc(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!sc(n.validatingFields)}))},S=()=>{n.dirtyFields=Bc(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,!o.actionArrayLengths.has(e)){let t=H(r,e);o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0)}if(u&&Array.isArray(H(r,e))){let t=s(H(r,e),c.argA,c.argB);l&&Hs(r,e,t)}if(u&&Array.isArray(H(n.errors,e))){let t=H(n.errors,e),r=t.root,i=s(t,c.argA,c.argB)||t;r&&(i.root=r),l&&Hs(n.errors,e,i),Qc(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray(H(n.touchedFields,e))){let t=s(H(n.touchedFields,e),c.argA,c.argB);l&&Hs(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:F(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Hs(a,e,i)},w=(e,t)=>{Hs(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=Is(e)?[e]:zs(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=Ss(n)?n:n[i],r=Ss(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=e=>{if(!o.actionArrayLengths.size)return!1;let t=Is(e)?[e]:zs(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(Ss(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a]}return!1},O=(t,c,l,u)=>{let d=H(r,t);if(d){if(E(t)||D(t))return;let r=Ls(H(a,t)),f=H(a,t,Ls(l)?H(i,t):l);Ls(f)||u&&u.defaultChecked||c?Hs(a,t,c?f:Hc(d._f)):re(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(F()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!Ls(H(a,t))&&ic(t,s)&&(o.watch=!0))}},k=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=Ys(H(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||F(),u=d!==f.isDirty),d=!!H(n.dirtyFields,e),t===n.isDirty?t?wc(n.dirtyFields,e):Hs(n.dirtyFields,e,!0):tl(n.dirtyFields,Bc(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=H(n.touchedFields,e);t||(Hs(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},A=(e,r,i,a)=>{let o=H(n.errors,e),s=(m.isValid||h.isValid)&&Bs(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?Hs(n.errors,e,i):wc(n.errors,e),n.errors={...n.errors}),(i?!Ys(o,i):o)||!sc(a)||s){let t={...a,...s&&Bs(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},j=async e=>(x(e,!0),await t.resolver(a,t.context,Uc(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),M=async e=>{let{errors:t}=await j(e);if(x(e),e){for(let r of e){let e=H(t,r);e?s.array.has(r)&&ws(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?oc(n.errors,{[r]:e},r):Hs(n.errors,r,e):wc(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},N=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(ws(i))for(let e in i){let t=i[e];t&&fe(`${el}.${e}`,{message:Qs(t.message)?t.message:``,type:t.type||Ms.validate})}else Qs(i)||!i?fe(el,{message:i||``,type:Ms.validate}):de(el);return i}return!0},P=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await N({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&Kc(u._f),d=m.validatingFields||m.isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await yc(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(H(f,r.name)?o?oc(n.errors,f,r.name):Hs(n.errors,r.name,f[r.name]):wc(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!sc(d)&&await P({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ee=()=>{for(let e of s.unMount){let t=H(r,e);t&&(t._f.refs?t._f.refs.every(e=>!jc(e)):!jc(t._f.ref))&&ge(e)}s.unMount=new Set},F=(e,t)=>(e&&t&&Hs(a,e,t),!Ys(o.mount?a:i,i)),te=(e,t,n)=>$s(e,s,{...o.mount?a:Ls(t)||Qs(e)?i:t},n,t),ne=e=>xc(H(o.mount?a:i,e,t.shouldUnregister?H(i,e,[]):[])),re=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=H(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&Hs(a,e,Vc(t,n)),l=cc(n.ref)&&Ss(t)?``:t,kc(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?ys(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):bs(n.ref)?n.ref.value=``:(n.ref.value=l,!n.ref.type&&!o&&!s&&g.state.next({name:e,values:i?a:ks(a)})))}(n.shouldDirty||n.shouldTouch)&&k(e,l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&ce(e,{delayError:n.delayError})},I=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:ks(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let l=t[a],u=e+`.`+a,d=H(r,u);(s.array.has(e)||ws(l)||d&&!d._f)&&!xs(l)?I(u,l,n,i,o,c):re(u,l,n,i,o,c)}},ie=(e,t,i,c,l=!1)=>{let u=H(r,e),d=s.array.has(e),f=c?t:ks(t),p=Ys(H(a,e),f);if(p||Hs(a,e,f),d)g.array.next({name:e,values:c?a:ks(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:F(e,f)}));else{let t=Array.isArray(f)&&!f.length||sc(f),n=!p&&!l;!u||u._f||Ss(f)||t?re(e,f,i,c,l,n):I(e,f,i,c,l,n)}if(!p&&!l){let t=ic(e,s),r=c?a:ks(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},ae=(e,t,n={})=>ie(e,t,n,!1),oe=(e,t={})=>{let r=Vs(e)?e(a):e;if(!Ys(a,r)){a={...a,...r};let e=Tc(r);for(let n of s.mount)n in e&&ie(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},se=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=H(r,p),S=e=>{_=Number.isNaN(e)||xs(e)&&isNaN(e.getTime())||Ys(e,H(a,p,e))};if(y){let o,C,w=l.type?Hc(y._f):Ts(i),T=i.type===As.BLUR||i.type===As.FOCUS_OUT,E=!qc(y._f)&&!e.validate&&!t.resolver&&!H(n.errors,p)&&!y._f.deps,D=E||Zc(T,H(n.touchedFields,p),n.isSubmitted,f,d),O=ic(p,s,T);if(Hs(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let M=k(p,w,T),ee=!sc(M)||O;if(!T&&g.state.next({name:p,type:i.type,...u?{values:ks(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),ee&&g.state.next({name:p,...O?{}:M});if(!t.resolver&&e.validate&&await N({name:p,eventType:i.type}),!T&&O&&g.state.next({...n}),t.resolver){let{errors:e}=await j([p]);if(x([p]),S(w),!_){!sc(M)&&g.state.next(M);return}let t=Jc(n.errors,r,p),i=Jc(e,r,t.name||p);o=i.error,p=i.name,C=sc(e)}else x([p],!0),o=(await yc(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await P({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&ce(y._f.deps),A(p,C,o,M))}},L=(e,t)=>{if(H(n.errors,t)&&e.focus)return e.focus(),1},ce=async(e,i={})=>{let a,o,u=bc(e);if(t.resolver){let t=await M(Ls(e)?e:u);a=sc(t),o=e?!u.some(e=>H(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=H(r,e);return await P({fields:t&&t._f?{[e]:t}:t,eventType:As.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&b()):o=a=await P({fields:r,name:e,eventType:As.TRIGGER});if(i.delayError&&t.delayError&&Qs(e)){let r=H(n.errors,e);r?(wc(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!Qs(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&ac(r,L,e?u:s.mount),o},le=(e,t)=>{let r={...o.mount?a:i};return t&&(r=Oc(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Ls(e)?r:Qs(e)?H(r,e):e.map(e=>H(r,e))},ue=(e,t)=>({invalid:!!H((t||n).errors,e),isDirty:!!H((t||n).dirtyFields,e),error:H((t||n).errors,e),isValidating:!!H(n.validatingFields,e),isTouched:!!H((t||n).touchedFields,e)}),de=e=>{let t=e?bc(e):void 0;t?.forEach(e=>wc(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},fe=(e,t,i)=>{let a=(H(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=H(n.errors,e)||{};Hs(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},pe=(e,t)=>{if(Vs(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||te(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return te(e,t,!0)},me=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(Xc(e.name,t.name,e.exact)&&Yc(t,e.formState||m,Ee,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},he=e=>(o.mount=!0,h={...h,...e.formState},me({...e,formState:{...p,...e.formState}})),ge=(e,o={})=>{for(let c of e?bc(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(wc(r,c),wc(a,c)),!o.keepError&&wc(n.errors,c),!o.keepDirty&&wc(n.dirtyFields,c),!o.keepTouched&&wc(n.touchedFields,c),!o.keepIsValidating&&wc(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&wc(i,c);g.state.next({values:ks(a)}),g.state.next({...n,...o.keepDirty?{isDirty:F()}:{}}),!o.keepIsValid&&b()},_e=({disabled:e,name:t})=>{if(Bs(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},ve=(e,n={})=>{let a=H(r,e),c=Bs(n.disabled)||Bs(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return Hs(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?_e({disabled:Bs(n.disabled)?n.disabled:t.disabled,name:e}):O(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Wc(n.min),max:Wc(n.max),minLength:Wc(n.minLength),maxLength:Wc(n.maxLength),pattern:Wc(n.pattern)}:{},name:e,onChange:se,onBlur:se,ref:c=>{if(c){s.registerName.add(e),ve(e,n),s.registerName.delete(e),a=H(r,e);let t=Ls(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=Ac(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(jc),t,...Array.isArray(H(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),Hs(r,e,{_f:u}),O(e,!1,void 0,t)}else a=H(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(Es(s.array,e)&&o.action)&&s.unMount.add(e)}}},ye=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&ac(r,L,s.mount),be=e=>{Bs(e)&&(g.state.next({disabled:e}),ac(r,(t,n)=>{let i=H(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},xe=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=ks(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await j();x(),n.errors=e,u=ks(t)}else await P({fields:r,eventType:As.SUBMIT});if(s.disabled.size)for(let e of s.disabled)wc(u,e);if(wc(n.errors,Ns),sc(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),ye(),setTimeout(ye);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sc(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},Se=(e,t={})=>{H(r,e)&&(Ls(t.defaultValue)?ae(e,ks(H(i,e))):(ae(e,t.defaultValue),Hs(i,e,ks(t.defaultValue))),t.keepTouched||wc(n.touchedFields,e),t.keepDirty||(wc(n.dirtyFields,e),n.isDirty=t.defaultValue?F(e,ks(H(i,e))):F()),t.keepError||(wc(n.errors,e),m.isValid&&b()),g.state.next({...n}))},Ce=(e,c={})=>{let l=e?ks(e):i,u=ks(l),d=sc(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Nc(Bc(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=H(n.dirtyFields,t),r=H(a,t),i=H(f,t);e&&!Ls(r)?Hs(f,t,r):!e&&!Ls(i)&&ae(t,i)}}else{if(Os&&Ls(e))for(let e of s.mount){let t=H(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(cc(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)ae(e,H(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?ks(i):{},c.keepFieldsRef)for(let e of s.mount)Hs(a,e,H(f,e))}else a=ks(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!sc(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?F():!!(c.keepDefaultValues&&!Ys(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?Bc(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?Bc(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},we=(e,n)=>Ce(Vs(e)?e(a):e,{...t.resetOptions,...n}),Te=(e,t={})=>{let n=H(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Vs(e.select)&&e.select()})}},Ee=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};g.state.subscribe({next:Ee});let De={control:{register:ve,unregister:ge,getFieldState:ue,handleSubmit:xe,setError:fe,_subscribe:me,_runSchema:j,_updateIsValidating:x,_focusError:ye,_getWatch:te,_getDirty:F,_setValid:b,_setFieldArray:C,_setDisabledField:_e,_setErrors:T,_getFieldArray:ne,_reset:Ce,_resetDefaultValues:()=>Vs(t.defaultValues)&&t.defaultValues().then(e=>{we(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:be,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=rc(t.mode),f=rc(t.reValidateMode)}},subscribe:he,trigger:ce,register:ve,handleSubmit:xe,watch:pe,setValue:ae,setValues:oe,getValues:le,reset:we,resetField:Se,resetDefaultValues:(e,t={})=>{if(i=ks(e),!t.keepDirty){let e=Bc(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!sc(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:de,unregister:ge,setError:fe,setFocus:Te,getFieldState:ue};return{...De,formControl:De}}function il(e={}){let t=R.useRef(void 0),n=R.useRef(void 0),r=R.useRef(e.formControl),[i,a]=R.useState(()=>({...ks(nl),isLoading:Vs(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Vs(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Vs(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=rl(e);t.current={...r,formState:i}}}let o=t.current.control;o._options=e;let{resyncIfNeeded:s,snapshot:c}=Xs();return Ks(()=>{let e=()=>({...o._formState,defaultValues:o._defaultValues});s(!0,e,a);let t=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,()=>{t(),c(!0,e)}},[o,s,c]),R.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),R.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),R.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),R.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),R.useEffect(()=>{e.values&&!Ys(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),R.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=R.useMemo(()=>Gs(i,o),[o,i]),t.current}var al=(e,t,n)=>{if(e&&`reportValidity`in e){let r=H(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},ol=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?al(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>al(t,n,e))}},sl=(e,t)=>{t.shouldUseNativeValidation&&ol(e,t);let n={};for(let r in e){let i=H(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.refs?i.refs[0]:i&&i.ref});if(cl(t.names||Object.keys(e),r)){let e=Object.assign({},H(n,r));Hs(e,`root`,a),Hs(n,r,e)}else Hs(n,r,a)}return n},cl=(e,t)=>{let n=ll(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>ll(e).match(`^${n}\\.\\d+`))};function ll(e){return e.replace(/[\[\]]/g,``)}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function dl(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function fl(e,t){for(var n=Object.create(null);e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(`unionErrors`in r){var s=r.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=dc(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function pl(e,t){for(var n=Object.create(null),r=function(){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(ul({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=dc(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function ml(e,t,n){if(n===void 0&&(n={}),function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(dl(function(){function i(e){return a.shouldUseNativeValidation&&ol({},a),{errors:{},values:n.raw?Object.assign({},r):e}}var o=e;return n.mode===`sync`?i(o.parse(r,t)):Promise.resolve(o.parseAsync(r,t)).then(i)},function(e){if(function(e){var t;return!(e==null||(t=e._zod)==null||(t=t.traits)==null||!t.has(`$ZodError`))}(e))return{values:{},errors:sl(pl(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_def`in e&&typeof e._def==`object`}(e))return function(r,i,a){try{return Promise.resolve(dl(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&ol({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:sl(fl(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}function hl(e){return gl(e)||typeof e==`function`||_l(e)}function gl(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function _l(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function vl(e,t){return e==null?null:hl(e)?R.createElement(e,t):e}function yl(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?vl(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:vl(n.cell,t.getContext())}return`header`in e&&e.header?vl(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?vl(e.footer.column.columnDef.footer,e.footer.getContext()):null}function bl({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function xl(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Sl=[],Cl=0,{link:wl,unlink:Tl,propagate:El,checkDirty:Dl,shallowPropagate:Ol}=bl({update(e){return e._update()},notify(e){Sl[Al++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Pl(e))}}),kl=0,Al=0,jl,Ml=0;function Nl(e){try{++Ml,e()}finally{--Ml||Fl()}}function Pl(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Tl(n,e)}function Fl(){if(!(Ml>0)){for(;kl<Al;){let e=Sl[kl];Sl[kl++]=void 0,e.notify()}kl=0,Al=0}}function Il(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return jl!==void 0&&wl(i,jl,Cl),i._snapshot},subscribe(e){let t=xl(e),n={current:!1},r=Ll(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=jl,o=t?.compare??Object.is;if(n)jl=i,++Cl,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{jl=a,n&&(i.flags&=-5),Pl(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Dl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ol(e)}}else e&32&&(i.flags=e&-33);return jl!==void 0&&wl(i,jl,Cl),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(El(e),Ol(e),Fl())}},i}function Ll(e){let t=()=>{let t=jl;jl=n,++Cl,n.depsTail=void 0,n.flags=6;try{return e()}finally{jl=t,n.flags&=-5,Pl(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Dl(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Pl(this)}};return t(),n}function Rl(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=zl(e);if(n.length!==zl(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function zl(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function Bl(e,t){return e===t}function Vl(e,t=e=>e,n){let r=n?.compare??Bl,i=(0,R.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,R.useCallback)(()=>e.get(),[e]);return(0,Fi.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Hl(e){let t=Vl(e.source,e.selector,{compare:Rl});return typeof e.children==`function`?e.children(t):e.children}function Ul(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function Wl(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return(!a||!i(o,t))&&(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function Gl(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{(!n||!t(r,e))&&i(e)})}}function Kl(){return Wl({createAtom:Il,batch:Nl})}function ql(e,t){return typeof e==`function`?e(t):e}function Jl(e){if(Array.isArray(e))return e.map(Jl);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?Yl():{},r=Object.keys(e);for(let t=0;t<r.length;t++){let i=r[t];Object.defineProperty(n,i,{configurable:!0,enumerable:!0,value:Jl(e[i]),writable:!0})}return n}return e}function Yl(){return Object.create(null)}function Xl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zl(e,t){return n=>{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>ql(n,e))}}function Ql(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function $l(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var eu=3;function tu(e,t){return nu(e,t,eu)}function nu(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!Ql(e)||!Ql(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=$l(e),i=$l(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e<r.length;e++){let i=r[e];if(!Object.prototype.propertyIsEnumerable.call(t,i)||!nu(a[i],o[i],n-1))return!1}return!0}function ru(e,t,n,r=tu){let i=`on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`,a=e.options[i];a&&a(e=>{let t=ql(n,e);return r(e,t)?e:t})}function iu(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var au=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e<l.length;e++)if(l[e]!==o[e]){u=!0;break}}return n?.(u),u?(o=l,a?.(),s=e(...l??[]),r?.(s),s):s}};function ou(e){let t=!1;return()=>{if(!t){t=!0;return}e()}}function su({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o=()=>{if(!r)return;let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))},s={onAfterUpdate:()=>{o()}};return au({...a,...s})}function cu(e,t=`_`){let[n,r]=e.split(t);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function lu(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=cu(r);t[n]=a?su({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function uu(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=cu(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=su({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function U(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function du(e){return e.row.getValue(e.column.id)}function fu(e){return e.getValue()??e.table.options.renderFallbackValue}function pu(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var mu={assignCellPrototype:(e,t)=>{uu(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>du(e)},cell_renderValue:{fn:e=>fu(e)},cell_getContext:{fn:e=>pu(e),memoDeps:e=>[e]}})}};function hu(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignHeaderPrototype?.(e._headerPrototype,e)}return e._headerPrototype}function gu(e,t,n){let r=hu(e),i=Object.create(r);i.colSpan=0,i.column=t,i.depth=n.depth,i.headerGroup=null,i.id=n.id??t.id,i.index=n.index,i.isPlaceholder=!!n.isPlaceholder,i.placeholderId=n.placeholderId,i.rowSpan=0,i.subHeaders=[];let a=e._headerInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function _u(){return{start:[],end:[]}}function vu(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{start:r}=e.atoms.columnPinning?.get()??_u(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&U(t,`getIsVisible`,Ou)&&i.push(t)}return Iu(t,i,e,`start`)}function yu(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{end:r}=e.atoms.columnPinning?.get()??_u(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&U(t,`getIsVisible`,Ou)&&i.push(t)}return Iu(t,i,e,`end`)}function bu(e){let t=e.getAllColumns(),n=U(e,`getVisibleLeafColumns`,ku),{start:r,end:i}=e.atoms.columnPinning?.get()??_u();if(r.length||i.length){let e=[...r,...i];n=n.filter(t=>!e.includes(t.id))}return Iu(t,n,e,`center`)}function xu(e){let{start:t}=e.atoms.columnPinning?.get()??_u(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function Su(e){let{end:t}=e.atoms.columnPinning?.get()??_u(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function Cu(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??_u();if(!t.length&&!n.length)return e.getAllLeafColumns();let r=[...t,...n];return e.getAllLeafColumns().filter(e=>!r.includes(e.id))}function wu(e){return U(e,`getStartLeafColumns`,xu).filter(e=>U(e,`getIsVisible`,Ou))}function Tu(e){return U(e,`getEndLeafColumns`,Su).filter(e=>U(e,`getIsVisible`,Ou))}function Eu(e){return U(e,`getCenterLeafColumns`,Cu).filter(e=>U(e,`getIsVisible`,Ou))}function Du(e,t){return t?t===`start`?U(e,`getStartVisibleLeafColumns`,wu):t===`end`?U(e,`getEndVisibleLeafColumns`,Tu):U(e,`getCenterVisibleLeafColumns`,Eu):U(e,`getVisibleLeafColumns`,ku)}function Ou(e){let t=e.table.atoms.columnVisibility?.get();if(!t)return!0;let n=e.columns;return n.length?n.some(e=>U(e,`getIsVisible`,Ou)):(Xl(t,e.id)?t[e.id]:void 0)??!0}function ku(e){return e.getAllLeafColumns().filter(e=>U(e,`getIsVisible`,Ou))}function Au(e,t=1){let n=t;for(let r=0;r<e.length;r++){let i=e[r];U(i,`getIsVisible`,Ou)&&i.columns.length&&(n=Math.max(n,Au(i.columns,t+1)))}return n}function ju(e,t){return e?`${e}_${t}`:String(t)}function Mu(e,t,n,r){let i=e??``;return t&&(i=i?`${i}_${t}`:String(t)),n&&(i=i?`${i}_${n}`:n),r&&(i=i?`${i}_${r}`:r),i}function Nu(e,t){let n=0;for(let r=0;r<e.length;r++)e[r].column===t&&n++;return n}function Pu(e,t,n,r,i,a){let o={depth:t,id:ju(r,t),headers:[]},s=[];for(let i=0;i<e.length;i++){if(!(i in e))continue;let a=e[i],c=s[s.length-1],l=a.column.depth===o.depth,u,d=!1;if(l&&a.column.parent?u=a.column.parent:(u=a.column,d=!0),c&&c.column===u)c.subHeaders.push(a);else{let e=gu(n,u,{id:Mu(r,t,u.id,a.id),isPlaceholder:d,placeholderId:d?String(Nu(s,u)):void 0,depth:t,index:s.length});e.subHeaders.push(a),s.push(e)}o.headers.push(a),a.headerGroup=o}for(let e=0;e<a.length;e++)a[e](o);i.push(o),t>0&&Pu(s,t-1,n,r,i,a)}function Fu(e){for(let t=0;t<e.length;t++){let n=e[t];if(!U(n.column,`getIsVisible`,Ou))continue;let r=0;if(n.subHeaders.length){Fu(n.subHeaders);for(let e=0;e<n.subHeaders.length;e++){let t=n.subHeaders[e];U(t.column,`getIsVisible`,Ou)&&(r+=t.colSpan)}}else r=1;if(n.colSpan=r,n.isPlaceholder&&n.subHeaders.length===1&&n.subHeaders[0].column===n.column){let e=1,t=n.subHeaders[0];for(;t;)t.rowSpan=0,e++,t=t.subHeaders.length===1&&t.subHeaders[0].column===n.column?t.subHeaders[0]:void 0;n.rowSpan=e}else n.rowSpan=1}}function Iu(e,t,n,r){let i=Au(e),a=[],o=n._headerGroupInstanceInitFns,s=Array(t.length);for(let e=0;e<t.length;e++)e in t&&(s[e]=gu(n,t[e],{depth:i,index:e}));return Pu(s,i-1,n,r,a,o),a.reverse(),Fu(a[0]?.headers??[]),a}function Lu(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignColumnPrototype?.(e._columnPrototype,e)}return e._columnPrototype}function Ru(e,t,n,r){let i={...e.getDefaultColumnDef(),...t},a=i.accessorKey,o=a===void 0?void 0:String(a),s=i.id??o?.replaceAll(`.`,`_`)??(typeof i.header==`string`?i.header:void 0),c;if(i.accessorFn)c=i.accessorFn;else if(a!==void 0){if(typeof a==`string`&&a.includes(`.`)){let e=a.split(`.`);c=t=>{let n=t;for(let t=0;t<e.length;t++){let r=e[t];n=n?.[r]}return n}}else c=e=>e[i.accessorKey]}if(!s)throw Error();let l=Lu(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e<d.length;e++)d[e](u);return u}function zu(e){let t=e.atoms.columnOrder?.get();return n=>{let r=[];if(!t?.length)r=n;else{let e=new Map;for(let t=0;t<n.length;t++){let r=n[t];e.set(r.id,r)}for(let n=0;n<t.length;n++){let i=t[n],a=e.get(i);a&&(r.push(a),e.delete(i))}for(let t=0;t<n.length;t++){let i=n[t];e.has(i.id)&&r.push(i)}}return Bu(e,r)}}function Bu(e,t){let n=e.atoms.grouping?.get()??[],{groupedColumnMode:r}=e.options;if(!n.length||!r)return t;let i=t.filter(e=>!n.includes(e.id));if(r===`remove`)return i;let a=new Map;for(let e=0;e<t.length;e++){let n=t[e];a.set(n.id,n)}let o=[];for(let e=0;e<n.length;e++){let t=a.get(n[e]);t&&o.push(t)}return[...o,...i]}function Vu(e){return[e,...e.columns.flatMap(e=>e.getFlatColumns())]}function Hu(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return U(e.table,`getOrderColumns`,zu)(t)}return[e]}function Uu(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function Wu(e,t,n,r=0){let i=Array(t.length);for(let a=0;a<t.length;a++){if(!(a in t))continue;let o=t[a],s=Ru(e,o,r,n),c=o;s.columns=c.columns?Wu(e,c.columns,s,r+1):[],i[a]=s}return i}function Gu(e){return Wu(e,e.options.columns)}function Ku(e){return e.getAllColumns().flatMap(e=>e.getFlatColumns())}function qu(e){let t=Yl(),n=e.getAllFlatColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Ju(e){let t=e.getAllColumns().flatMap(e=>e.getLeafColumns());return U(e,`getOrderColumns`,zu)(t)}function Yu(e){let t=Yl(),n=e.getAllLeafColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Xu(e,t){return e.getAllFlatColumnsById()[t]}var Zu={assignColumnPrototype:(e,t)=>{uu(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Vu(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>Hu(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{lu(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>Uu(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>Gu(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>Ku(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>qu(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>Ju(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>Yu(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>Xu(e,t)}})}};function Qu(e,t){for(let n=0;n<e.subHeaders.length;n++)Qu(e.subHeaders[n],t);t.push(e)}function $u(e){let t=[];return Qu(e,t),t}function ed(e){return{column:e.column,header:e,table:e.column.table}}function td(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??_u(),r=e.getAllColumns(),i=U(e,`getVisibleLeafColumns`,ku);if(!t.length&&!n.length)return Iu(r,i,e);let a=e.getAllLeafColumnsById(),o=[];for(let e=0;e<t.length;e++){let n=a[t[e]];n&&U(n,`getIsVisible`,Ou)&&o.push(n)}let s=[];for(let e=0;e<n.length;e++){let t=a[n[e]];t&&U(t,`getIsVisible`,Ou)&&s.push(t)}let c=i.filter(e=>!t.includes(e.id)&&!n.includes(e.id));return Iu(r,[...o,...c,...s],e)}function nd(e){return[...e.getHeaderGroups()].reverse()}function rd(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e<t.length;e++){let r=t[e].headers;for(let e=0;e<r.length;e++)n.push(r[e])}return n}function id(e){let t=e.getHeaderGroups()[0]?.headers??[],n=[];for(let e=0;e<t.length;e++){let r=t[e].getLeafHeaders();for(let e=0;e<r.length;e++)n.push(r[e])}return n}var ad={assignHeaderPrototype:(e,t)=>{uu(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>$u(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>ed(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{lu(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>td(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>nd(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>rd(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>id(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function od(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignRowPrototype?.(e._rowPrototype,e)}return e._rowPrototype}var sd=(e,t,n,r,i,a,o)=>{let s=od(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=Yl(),c._valuesCache=Yl(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e<l.length;e++)l[e](c);return c};function cd(){return[]}function ld(e,t){ru(e,`cellSelection`,t?cd():Jl(e.initialState.cellSelection)??cd())}function ud(e){e.atoms.cellSelection&&(e.options.autoResetAll??e.options.autoResetCellSelection??!0)&&e._reactivity.schedule(()=>ld(e))}function dd(e){e.atoms.expanded&&(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding)&&e._reactivity.schedule(()=>fd(e))}function fd(e,t){let n=e.initialState.expanded;ru(e,`expanded`,t?Yl():n===!0||Object.assign(Yl(),Jl(n??{})))}var pd=0;function md(e){if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if((e.atoms.pagination?.get()?.pageIndex??pd)===pd)return;_d(e,!0)}}function hd(e,t){ru(e,`pagination`,t)}function gd(e,t){hd(e,n=>{let r=ql(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})}function _d(e,t){gd(e,t?pd:e.initialState.pagination?.pageIndex??pd)}function vd(e,t){ru(e,`sorting`,t)}function yd(e,t){vd(e,t?[]:Jl(e.initialState.sorting??[]))}function bd(e){e.atoms.sorting&&(e.options.autoResetAll??e.options.autoResetSorting??!1)&&yd(e)}function xd(){return e=>su({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>Cd(e,e.options.data),onAfterUpdate:ou(()=>{dd(e),md(e),bd(e),ud(e)})})}function Sd(e,t,n,r=0,i){let a=[];for(let o=0;o<n.length;o++){let s=n[o],c=sd(e,e.getRowId(s,o,i),s,o,r,void 0,i?.id);t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(s,o),c.originalSubRows?.length&&(c.subRows=Sd(e,t,c.originalSubRows,r+1,c)))}return a}function Cd(e,t){let n={rows:[],flatRows:[],rowsById:Yl()};return n.rows=Sd(e,n,t),n}function wd(e){return e._rowModels.coreRowModel||(e._rowModels.coreRowModel=e.options.features.coreRowModel?.(e)??xd()(e)),e._rowModels.coreRowModel()}function Td(e){return e.getCoreRowModel()}function Ed(e){return e._rowModels.filteredRowModel||(e._rowModels.filteredRowModel=e.options.features.filteredRowModel?.(e)),e.options.manualFiltering||!e._rowModels.filteredRowModel?e.getPreFilteredRowModel():e._rowModels.filteredRowModel()}function Dd(e){return e.getFilteredRowModel()}function W(e){return e._rowModels.groupedRowModel||(e._rowModels.groupedRowModel=e.options.features.groupedRowModel?.(e)),e.options.manualGrouping||!e._rowModels.groupedRowModel?e.getPreGroupedRowModel():e._rowModels.groupedRowModel()}function Od(e){return e.getGroupedRowModel()}function kd(e){return e._rowModels.sortedRowModel||(e._rowModels.sortedRowModel=e.options.features.sortedRowModel?.(e)),e.options.manualSorting||!e._rowModels.sortedRowModel?e.getPreSortedRowModel():e._rowModels.sortedRowModel()}function Ad(e){return e.getSortedRowModel()}function jd(e){return e._rowModels.expandedRowModel||(e._rowModels.expandedRowModel=e.options.features.expandedRowModel?.(e)),e.options.manualExpanding||!e._rowModels.expandedRowModel?e.getPreExpandedRowModel():e._rowModels.expandedRowModel()}function Md(e){return e.getExpandedRowModel()}function Nd(e){return e._rowModels.paginatedRowModel||(e._rowModels.paginatedRowModel=e.options.features.paginatedRowModel?.(e)),e.options.manualPagination||!e._rowModels.paginatedRowModel?e.getPrePaginatedRowModel():e._rowModels.paginatedRowModel()}function Pd(e){return e.getPaginatedRowModel()}var Fd={constructTableAPIs:e=>{lu(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>wd(e)},table_getPreFilteredRowModel:{fn:()=>Td(e)},table_getFilteredRowModel:{fn:()=>Ed(e)},table_getPreGroupedRowModel:{fn:()=>Dd(e)},table_getGroupedRowModel:{fn:()=>W(e)},table_getPreSortedRowModel:{fn:()=>Od(e)},table_getSortedRowModel:{fn:()=>kd(e)},table_getPreExpandedRowModel:{fn:()=>Ad(e)},table_getExpandedRowModel:{fn:()=>jd(e)},table_getPrePaginatedRowModel:{fn:()=>Md(e)},table_getPaginatedRowModel:{fn:()=>Nd(e)},table_getRowModel:{fn:()=>Pd(e)}})}};function Id(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignCellPrototype?.(e._cellPrototype,e)}return e._cellPrototype}function Ld(e,t,n){let r=Id(n),i=Object.create(r);i.column=e,i.id=`${t.id}_${e.id}`,i.row=t;let a=n._cellInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function Rd(e){let t=e.table.getRowsInDisplayOrder(),n=e._displayIndexCache;return t[n]===e?n:-1}function zd(e){let t=e.getPrePaginatedRowModel().rows;if(e.options.paginateExpandedRows===!1){let e=[],n=t=>{t._displayIndexCache=e.length,e.push(t),t.subRows.length&&t.getIsExpanded?.()&&t.subRows.forEach(n)};return t.forEach(n),e}for(let e=0;e<t.length;e++)t[e]._displayIndexCache=e;return t}function Bd(e,t){if(Xl(e._valuesCache,t))return e._valuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return e._valuesCache[t]=n.accessorFn(e.original,e.index),e._valuesCache[t]}function Vd(e,t){if(Xl(e._uniqueValuesCache,t))return e._uniqueValuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return n.columnDef.getUniqueValues?(e._uniqueValuesCache[t]=n.columnDef.getUniqueValues(e.original,e.index),e._uniqueValuesCache[t]):(e._uniqueValuesCache[t]=[e.getValue(t)],e._uniqueValuesCache[t])}function Hd(e,t){return e.getValue(t)??e.table.options.renderFallbackValue}function Ud(e){return iu(e.subRows,e=>e.subRows)}function Wd(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e<t.length;e++)n=Math.max(n,t[e].depth);return n}function Gd(e){if(e.parentId)return e.table.getCoreRowModel().rowsById[e.parentId]??e.table.getRow(e.parentId,!0)}function Kd(e){let t=[],n=e;for(;;){let e=n.getParentRow();if(!e)break;t.push(e),n=e}return t.reverse()}function qd(e){let t=e.table.getAllLeafColumns(),n=e._cellsCache;n||=e._cellsCache=new WeakMap;let r=Array(t.length);for(let i=0;i<t.length;i++){let a=t[i],o=n.get(a);o||(o=Ld(a,e,e.table),n.set(a,o)),r[i]=o}return r}function Jd(e){let t=Yl(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];t[r.column.id]=r}return t}function Yd(e,t,n,r){return t.options.getRowId?.(e,n,r)??(r?`${r.id}.${n}`:String(n))}function Xd(e,t,n){let r=(n?e.getPrePaginatedRowModel():e.getRowModel()).rowsById[t];if(!r&&(r=e.getCoreRowModel().rowsById[t],!r))throw Error();return r}var Zd={assignRowPrototype:(e,t)=>{uu(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>Rd(e)},row_getAllCellsByColumnId:{fn:e=>Jd(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>qd(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>Ud(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>Gd(e)},row_getParentRows:{fn:e=>Kd(e)},row_getUniqueValues:{fn:(e,t)=>Vd(e,t)},row_getValue:{fn:(e,t)=>Bd(e,t)},row_renderValue:{fn:(e,t)=>Hd(e,t)}})},constructTableAPIs:e=>{lu(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>zd(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>Yd(t,e,n,r)},table_getRow:{fn:(t,n)=>Xd(e,t,n)},table_getMaxSubRowDepth:{fn:()=>Wd(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function Qd(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function $d(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{Qd(e,t,n),e._reactivity.commit?.()})}function ef(e){let t=Jl(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r];e.baseAtoms[i].set(t[i])}});let n=Object.values(e._features);for(let t=0;t<n.length;t++)n[t].resetTableInstanceData?.(e)}function tf(e,t){let{features:n,atoms:r,initialState:i}=e.options;if(!e.options.mergeOptions)return{...e.options,...t,features:n,atoms:r,initialState:i};let a=e.options.mergeOptions(e.options,t),o={...Object.getOwnPropertyDescriptors(a)};return Object.defineProperties(Object.create(Object.getPrototypeOf(a)),{...o,features:{value:n,enumerable:!0,configurable:!0,writable:!0},atoms:{value:r,enumerable:!0,configurable:!0,writable:!0},initialState:{value:i,enumerable:!0,configurable:!0,writable:!0}})}function nf(e,t,n){let r=tf(e,ql(t,e.options));e.optionsStore?e.optionsStore.set(()=>r):e.options=r,n?.syncExternalState!==!1&&$d(e,r.state??null)}var rf={coreCellsFeature:mu,coreColumnsFeature:Zu,coreHeadersFeature:ad,coreRowModelsFeature:Fd,coreRowsFeature:Zd,coreTablesFeature:{constructTableAPIs:e=>{lu(`coreTablesFeature`,e,{table_reset:{fn:()=>ef(e)},table_setOptions:{fn:t=>nf(e,t)}})}}};function af(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},columns:e=>e,display:e=>e,group:e=>e}}function of(e){return e}function sf(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=cf(e);if(n.length!==cf(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function cf(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function lf(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),Jl(t)}function uf(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...rf,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=lf(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e<x.length;e++){let n=x[e];v.baseAtoms[n]=t.createWritableAtom(v.initialState[n],{debugName:`table/baseAtoms/${n}`}),v.atoms[n]=t.createReadonlyAtom(()=>{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&Xl(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}Qd(v),v.store=Ul(t.createReadonlyAtom(()=>{let e={};for(let t=0;t<x.length;t++){let n=x[t];e[n]=v.atoms[n].get()}return e},{compare:sf,debugName:`table/store`}));for(let e=0;e<y.length;e++){let t=y[e];t.initTableInstanceData?.(v),t.initCellInstanceData&&v._cellInstanceInitFns.push(t.initCellInstanceData.bind(t)),t.initColumnInstanceData&&v._columnInstanceInitFns.push(t.initColumnInstanceData.bind(t)),t.initHeaderGroupInstanceData&&v._headerGroupInstanceInitFns.push(t.initHeaderGroupInstanceData.bind(t)),t.initHeaderInstanceData&&v._headerInstanceInitFns.push(t.initHeaderInstanceData.bind(t)),t.initRowInstanceData&&v._rowInstanceInitFns.push(t.initRowInstanceData.bind(t)),t.constructTableAPIs?.(v)}return v}function df(){return Yl()}function ff(){return{size:150,minSize:20,maxSize:2**53-1}}function pf(e){let t=ff(),n=e.table.atoms.columnSizing?.get(),r=n&&Xl(n,e.id)?n[e.id]:void 0;return Math.min(Math.max(e.columnDef.minSize??t.minSize,r??e.columnDef.size??t.size),e.columnDef.maxSize??t.maxSize)}function mf(e){let t=Yl(),n=Yl(),r=Array(e.length),i=0;for(let n=0;n<e.length;n++){let a=e[n],o=U(a,`getSize`,pf);r[n]=o,t[a.id]=i,i+=o}let a=0;for(let t=e.length-1;t>=0;t--)n[e[t].id]=a,a+=r[t];return{starts:t,afters:n}}function hf(e){return{all:mf(Du(e)),center:mf(Du(e,`center`)),start:mf(Du(e,`start`)),end:mf(Du(e,`end`))}}function gf(e){return e===`start`?`start`:e===`end`?`end`:e===`center`?`center`:`all`}function _f(e,t){return U(e.table,`getColumnOffsets`,hf)[gf(t)].starts[e.id]??0}function vf(e,t){return U(e.table,`getColumnOffsets`,hf)[gf(t)].afters[e.id]??0}function yf(e){Cf(e.table,t=>{let n=Yl(),r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];a!==e.id&&(n[a]=t[a])}return n})}function bf(e){if(!e.subHeaders.length)return pf(e.column);let t=0;for(let n=0;n<e.subHeaders.length;n++)t+=bf(e.subHeaders[n]);return t}function xf(e){return bf(e)}function Sf(e){if(e.index>0){let t=e.headerGroup?.headers[e.index-1];if(t)return U(t,`getStart`,Sf)+U(t,`getSize`,xf)}return 0}function Cf(e,t){e.options.onColumnSizingChange?.(t)}function wf(e,t){Cf(e,t?Yl():Object.assign(Yl(),Jl(e.initialState.columnSizing??{})))}function Tf(e){return e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Ef(e){return U(e,`getStartHeaderGroups`,vu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Df(e){return U(e,`getCenterHeaderGroups`,bu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Of(e){return U(e,`getEndHeaderGroups`,yu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}var kf={getInitialState:e=>({columnSizing:df(),...e}),getDefaultColumnDef:()=>ff(),getDefaultTableOptions:e=>({onColumnSizingChange:Zl(`columnSizing`,e)}),assignColumnPrototype:(e,t)=>{uu(`columnSizingFeature`,e,t,{column_getSize:{fn:e=>pf(e),memoDeps:e=>[t.options.columns,t.atoms.columnSizing?.get()?.[e.id]]},column_getStart:{fn:(e,t)=>_f(e,t)},column_getAfter:{fn:(e,t)=>vf(e,t)},column_resetSize:{fn:e=>yf(e)}})},assignHeaderPrototype:(e,t)=>{uu(`columnSizingFeature`,e,t,{header_getSize:{fn:e=>xf(e),memoDeps:e=>[t.options.columns,e.column.columns.length>0?t.atoms.columnSizing?.get():t.atoms.columnSizing?.get()?.[e.column.id]]},header_getStart:{fn:e=>Sf(e),memoDeps:()=>[t.options.columns,t.atoms.columnSizing?.get(),t.atoms.columnOrder?.get(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get(),t.atoms.grouping?.get(),t.options.groupedColumnMode]}})},constructTableAPIs:e=>{lu(`columnSizingFeature`,e,{table_getColumnOffsets:{fn:()=>hf(e),memoDeps:()=>[e.options.columns,e.atoms.columnSizing?.get(),e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnSizing:{fn:t=>Cf(e,t)},table_resetColumnSizing:{fn:t=>wf(e,t)},table_getTotalSize:{fn:()=>Tf(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getStartTotalSize:{fn:()=>Ef(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getCenterTotalSize:{fn:()=>Df(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getEndTotalSize:{fn:()=>Of(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]}})}},Af=typeof window>`u`?R.useEffect:R.useLayoutEffect;function jf(e,t){let[{table:n,rootSource:r}]=(0,R.useState)(()=>{let t=uf({...e,features:{coreReactivityFeature:Kl(),...e.features}});return t.Subscribe=(e=>Hl({...e,source:e.source??t.store})),t.FlexRender=yl,{table:t,rootSource:Gl(t.store,Rl)}}),i=n;nf(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=Vl(r,t,{compare:Rl});return Af(()=>{r.markCommitted(o),$d(i,a??null,Rl)}),(0,R.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var Mf=Fa();function Nf(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function Pf(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function Ff(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var If=(e,t)=>Math.abs(e-t)<1.01,Lf=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Rf,zf=()=>{if(Rf!==void 0)return Rf;if(typeof navigator>`u`)return Rf=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Rf=!0;let e=navigator.maxTouchPoints;return Rf=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Bf=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Vf=e=>e,Hf=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Uf=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(Bf(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(Bf(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},Wf={passive:!0},Gf=typeof window>`u`||`onscrollend`in window,Kf=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Gf,o=0,s=a?null:Lf(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Wf),a&&r.addEventListener(`scrollend`,u,Wf),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u)}},qf=(e,t)=>Kf(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),Jf=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Yf=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},Xf=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Vf,rangeExtractor:Hf,onChange:()=>{},measureElement:Jf,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Pf(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!zf()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,Wf),e.addEventListener(`touchend`,n,Wf),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(zf()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Pf(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Pf(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=Nf(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Pf(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=$f(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Pf(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(e<0||e>=this.options.count)return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=Pf(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return Ff(t[Zf(0,t.length-1,r?e=>n[e*2]:e=>Ff(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e===0?!1:zf()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&If(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},Zf=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function Qf(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function $f(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=Qf(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=Zf(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var ep=typeof document<`u`?R.useLayoutEffect:R.useEffect;function tp({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n=`transform`,...r}){let i=R.useReducer(e=>e+1,0)[1],a=R.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});a.current.enabled=t,a.current.mode=n;let o=e=>{let t=a.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}},s=e=>{let t=a.current;if(!t.enabled||!t.container)return;o(e);let n=!!e.options.horizontal,r=t.mode===`transform`,i=n?`left`:`top`,s=e.options.scrollMargin,c=e.getVirtualItems();for(let a of c){let o=a.start-s,c=e.elementsCache.get(a.key);c&&t.lastPositions.get(c)!==o&&(t.lastPositions.set(c,o),r?c.style.transform=n?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:c.style[i]=`${o}px`)}},c={...r,onChange:(t,n)=>{var o;let c=a.current,l=!0;if(c.enabled){s(t);let e=t.range,n=c.prevRange;l=!n||n.isScrolling!==t.isScrolling||n.startIndex!==e?.startIndex||n.endIndex!==e?.endIndex,l&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}l&&(e&&n?(0,Mf.flushSync)(i):i()),(o=r.onChange)==null||o.call(r,t,n)}},[l]=R.useState(()=>{let e=new Xf(c);return Object.assign(e,{containerRef:t=>{let n=a.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return l.setOptions(c),ep(()=>l._didMount(),[]),ep(()=>(o(l),l._willUpdate())),ep(()=>{s(l)}),l}function np(e){return tp({observeElementRect:Uf,observeElementOffset:qf,scrollToFn:Yf,...e})}var rp=(0,R.createContext)({});function ip(e){let t=(0,R.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ap=typeof window<`u`?R.useLayoutEffect:R.useEffect,op=(0,R.createContext)(null);function sp(e,t){e.indexOf(t)===-1&&e.push(t)}function cp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var lp=(e,t,n)=>n>t?t:n<e?e:n,up={},dp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fp=e=>typeof e==`object`&&!!e,pp=e=>/^0[^.\s]+$/u.test(e);function mp(e){let t;return()=>(t===void 0&&(t=e()),t)}var hp=e=>e,gp=(...e)=>e.reduce((e,t)=>n=>t(e(n))),_p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},vp=class{constructor(){this.subscriptions=[]}add(e){return sp(this.subscriptions,e),()=>cp(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},yp=e=>e*1e3,bp=e=>e/1e3,xp=(e,t)=>t?1e3/t*e:0,Sp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cp=1e-7,wp=12;function Tp(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Sp(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Cp&&++s<wp);return o}function Ep(e,t,n,r){if(e===t&&n===r)return hp;let i=t=>Tp(t,0,1,e,n);return e=>e===0||e===1?e:Sp(i(e),t,r)}var Dp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Op=e=>t=>1-e(1-t),kp=Ep(.33,1.53,.69,.99),Ap=Op(kp),jp=Dp(Ap),Mp=e=>e>=1?1:(e*=2)<1?.5*Ap(e):.5*(2-2**(-10*(e-1))),Np=e=>1-Math.sin(Math.acos(e)),Pp=Op(Np),Fp=Dp(Np),Ip=Ep(.42,0,1,1),Lp=Ep(0,0,.58,1),Rp=Ep(.42,0,.58,1),zp=e=>Array.isArray(e)&&typeof e[0]!=`number`,Bp=e=>Array.isArray(e)&&typeof e[0]==`number`,Vp={linear:hp,easeIn:Ip,easeInOut:Rp,easeOut:Lp,circIn:Np,circInOut:Fp,circOut:Pp,backIn:Ap,backInOut:jp,backOut:kp,anticipate:Mp},Hp=e=>typeof e==`string`,Up=e=>{if(Bp(e)){e.length;let[t,n,r,i]=e;return Ep(t,n,r,i)}return Hp(e)?(Vp[e],`${e}`,Vp[e]):e},Wp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Gp(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Kp=40;function qp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Wp.reduce((e,t)=>(e[t]=Gp(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=up.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Kp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Wp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Wp.length;t++)o[Wp[t]].cancel(e)},state:i,steps:o}}var{schedule:Jp,cancel:Yp,state:Xp,steps:Zp}=qp(typeof requestAnimationFrame<`u`?requestAnimationFrame:hp,!0),Qp;function $p(){Qp=void 0}var em={now:()=>(Qp===void 0&&em.set(Xp.isProcessing||up.useManualTiming?Xp.timestamp:performance.now()),Qp),set:e=>{Qp=e,queueMicrotask($p)}},tm=e=>t=>typeof t==`string`&&t.startsWith(e),nm=tm(`--`),rm=tm(`var(--`),im=e=>rm(e)?am.test(e.split(`/*`)[0].trim()):!1,am=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function om(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var sm={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},cm={...sm,transform:e=>lp(0,1,e)},lm={...sm,default:1},um=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fm(e){return e==null}var pm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mm=(e,t)=>n=>!!(typeof n==`string`&&pm.test(n)&&n.startsWith(e)||t&&!fm(n)&&Object.prototype.hasOwnProperty.call(n,t)),hm=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(dm);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},gm=e=>lp(0,255,e),_m={...sm,transform:e=>Math.round(gm(e))},vm={test:mm(`rgb`,`red`),parse:hm(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+_m.transform(e)+`, `+_m.transform(t)+`, `+_m.transform(n)+`, `+um(cm.transform(r))+`)`};function ym(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var bm={test:mm(`#`),parse:ym,transform:vm.transform},xm=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sm=xm(`deg`),Cm=xm(`%`),G=xm(`px`),wm=xm(`vh`),Tm=xm(`vw`),Em={...Cm,parse:e=>Cm.parse(e)/100,transform:e=>Cm.transform(e*100)},Dm={test:mm(`hsl`,`hue`),parse:hm(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Cm.transform(um(t))+`, `+Cm.transform(um(n))+`, `+um(cm.transform(r))+`)`},Om={test:e=>vm.test(e)||bm.test(e)||Dm.test(e),parse:e=>vm.test(e)?vm.parse(e):Dm.test(e)?Dm.parse(e):bm.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?vm.transform(e):Dm.transform(e),getAnimatableNone:e=>{let t=Om.parse(e);return t.alpha=0,Om.transform(t)}},km=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Am(e){return isNaN(e)&&typeof e==`string`&&(e.match(dm)?.length||0)+(e.match(km)?.length||0)>0}var jm=`number`,Mm=`color`,Nm=`var`,Pm=`var(`,Fm="${}",Im=/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 Lm(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Im,e=>(Om.test(e)?(r.color.push(a),i.push(Mm),n.push(Om.parse(e))):e.startsWith(Pm)?(r.var.push(a),i.push(Nm),n.push(e)):(r.number.push(a),i.push(jm),n.push(parseFloat(e))),++a,Fm)).split(Fm),indexes:r,types:i}}function Rm(e){return Lm(e).values}function zm({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===jm?um(r[a]):e===Mm?Om.transform(r[a]):r[a]}return i}}function Bm(e){return zm(Lm(e))}var Vm=e=>typeof e==`number`?0:Om.test(e)?Om.getAnimatableNone(e):e,Hm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Vm(e);function Um(e){let t=Lm(e);return zm(t)(t.values.map((e,n)=>Hm(e,t.split[n])))}var Wm={test:Am,parse:Rm,createTransformer:Bm,getAnimatableNone:Um};function Gm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Km({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Gm(s,r,e+1/3),a=Gm(s,r,e),o=Gm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function qm(e,t){return n=>n>0?t:e}var Jm=(e,t,n)=>e+(t-e)*n,Ym=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xm=[bm,vm,Dm],Zm=e=>Xm.find(t=>t.test(e));function Qm(e){let t=Zm(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Dm&&(n=Km(n)),n}var $m=(e,t)=>{let n=Qm(e),r=Qm(t);if(!n||!r)return qm(e,t);let i={...n};return e=>(i.red=Ym(n.red,r.red,e),i.green=Ym(n.green,r.green,e),i.blue=Ym(n.blue,r.blue,e),i.alpha=Jm(n.alpha,r.alpha,e),vm.transform(i))},eh=new Set([`none`,`hidden`]);function th(e,t){return eh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nh(e,t){return n=>Jm(e,t,n)}function rh(e){return typeof e==`number`?nh:typeof e==`string`?im(e)?qm:Om.test(e)?$m:nee:Array.isArray(e)?ih:typeof e==`object`?Om.test(e)?$m:eee:qm}function ih(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rh(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eee(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rh(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function tee(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var nee=(e,t)=>{let n=Wm.createTransformer(t),r=Lm(e),i=Lm(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?eh.has(e)&&!i.values.length||eh.has(t)&&!r.values.length?th(e,t):gp(ih(tee(r,i),i.values),n):(`${e}${t}`,qm(e,t))};function ah(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Jm(e,t,n):rh(e)(e,t)}var oh=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Jp.update(t,e),stop:()=>Yp(t),now:()=>Xp.isProcessing?Xp.timestamp:em.now()}},sh=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ch=2e4;function lh(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function uh(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(lh(r),ch);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:bp(i)}}var dh={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function fh(e,t){return e*Math.sqrt(1-t*t)}var ph=12;function mh(e,t,n){let r=n;for(let n=1;n<ph;n++)r-=e(r)/t(r);return r}var hh=.001;function gh({duration:e=dh.duration,bounce:t=dh.bounce,velocity:n=dh.velocity,mass:r=dh.mass}){let i,a;dh.maxDuration;let o=1-t;o=lp(dh.minDamping,dh.maxDamping,o),e=lp(dh.minDuration,dh.maxDuration,bp(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=fh(t,o),c=Math.exp(-i);return hh-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=fh(t**2,o);return(-i(t)+hh>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=mh(i,a,s);if(e=yp(e),isNaN(c))return{stiffness:dh.stiffness,damping:dh.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var _h=[`duration`,`bounce`],vh=[`stiffness`,`damping`,`mass`];function yh(e,t){return t.some(t=>e[t]!==void 0)}function bh(e){let t={velocity:dh.velocity,stiffness:dh.stiffness,damping:dh.damping,mass:dh.mass,isResolvedFromDuration:!1,...e};if(!yh(e,vh)&&yh(e,_h)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*lp(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:dh.mass,stiffness:i,damping:a}}else{let n=gh({...e,velocity:0});t={...t,...n,mass:dh.mass},t.isResolvedFromDuration=!0}}return t}function xh(e=dh.visualDuration,t=dh.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=bh({...n,velocity:-bp(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=bp(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?dh.restSpeed.granular:dh.restSpeed.default,i||=v?dh.restDelta.granular:dh.restDelta.default;let y,b,x,S,C,w;if(h<1)x=fh(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>yp(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=yp(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=yp(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(lh(T),ch),t=sh(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}xh.applyToOptions=e=>{let t=uh(e,100,xh);return e.ease=t.ease,e.duration=yp(t.duration),e.type=`keyframes`,e};var Sh=5;function Ch(e,t,n){let r=Math.max(t-Sh,0);return xp(n-e(r),t-r)}function wh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=xh({keyframes:[f.value,m(f.value)],velocity:Ch(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Th(e,t,n){let r=[],i=n||up.mix||ah,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=gp(Array.isArray(t)?t[n]||hp:t,a)),r.push(a)}return r}function Eh(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Th(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=_p(e[r],e[r+1],n);return s[r](i)};return n?t=>l(lp(e[0],e[a-1],t)):l}function Dh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=_p(0,t,r);e.push(Jm(n,1,i))}}function Oh(e){let t=[0];return Dh(t,e.length-1),t}function kh(e,t){return e.map(e=>e*t)}function Ah(e,t){return e.map(()=>t||Rp).splice(0,e.length-1)}function jh({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=zp(r)?r.map(Up):Up(r),a={done:!1,value:t[0]},o=Eh(kh(n&&n.length===t.length?n:Oh(t),e),t,{ease:Array.isArray(i)?i:Ah(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Mh=e=>e!==null;function Nh(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mh),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ph={decay:wh,inertia:wh,tween:jh,keyframes:jh,spring:xh};function Fh(e){typeof e.type==`string`&&(e.type=Ph[e.type])}var Ih=class{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)}},Lh=e=>e/100,Rh=class extends Ih{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==em.now()&&this.tick(em.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fh(e);let{type:t=jh,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jh;s!==jh&&typeof o[0]!=`number`&&(this.mixKeyframes=gp(Lh,ah(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=lh(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=lp(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wh&&(b.value=Nh(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return bp(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bp(e)}get time(){return bp(this.currentTime)}set time(e){e=yp(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Ch(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(em.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=bp(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=oh,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(em.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Bh=e=>e*180/Math.PI,Vh=e=>Uh(Bh(Math.atan2(e[1],e[0]))),Hh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vh,rotateZ:Vh,skewX:e=>Bh(Math.atan(e[1])),skewY:e=>Bh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uh=e=>(e%=360,e<0&&(e+=360),e),Wh=Vh,Gh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gh,scaleY:Kh,scale:e=>(Gh(e)+Kh(e))/2,rotateX:e=>Uh(Bh(Math.atan2(e[6],e[5]))),rotateY:e=>Uh(Bh(Math.atan2(-e[2],e[0]))),rotateZ:Wh,rotate:Wh,skewX:e=>Bh(Math.atan(e[4])),skewY:e=>Bh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jh(e){return+!!e.includes(`scale`)}function Yh(e,t){if(!e||e===`none`)return Jh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qh,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hh,i=t}if(!i)return Jh(t);let a=r[t],o=i[1].split(`,`).map(Zh);return typeof a==`function`?a(o):o[a]}var Xh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yh(n,t)};function Zh(e){return parseFloat(e.trim())}var Qh=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$h=new Set([...Qh,`pathRotation`]),eg=e=>e===sm||e===G,ree=new Set([`x`,`y`,`z`]),iee=Qh.filter(e=>!ree.has(e));function aee(e){let t=[];return iee.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var tg={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yh(t,`x`),y:(e,{transform:t})=>Yh(t,`y`)};tg.translateX=tg.x,tg.translateY=tg.y;var ng=new Set,rg=!1,ig=!1,ag=!1;function og(){if(ig){let e=Array.from(ng).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=aee(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ig=!1,rg=!1,ng.forEach(e=>e.complete(ag)),ng.clear()}function sg(){ng.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ig=!0)})}function cg(){ag=!0,sg(),og(),ag=!1}var lg=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ng.add(this),rg||(rg=!0,Jp.read(sg),Jp.resolveKeyframes(og))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ng.delete(this)}cancel(){this.state===`scheduled`&&(ng.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ug=e=>e.startsWith(`--`);function dg(e,t,n){ug(t)?e.style.setProperty(t,n):e.style[t]=n}var fg={};function pg(e,t){let n=mp(e);return()=>fg[t]??n()}var mg=pg(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),hg=pg(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),gg=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_g={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:gg([0,.65,.55,1]),circOut:gg([.55,0,1,.45]),backIn:gg([.31,.01,.66,-.59]),backOut:gg([.33,1.53,.69,.99])};function vg(e,t){if(e)return typeof e==`function`?hg()?sh(e,t):`ease-out`:Bp(e)?gg(e):Array.isArray(e)?e.map(e=>vg(e,t)||_g.easeOut):_g[e]}function yg(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=vg(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function bg(e){return typeof e==`function`&&`applyToOptions`in e}function xg({type:e,...t}){return bg(e)&&hg()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Sg=class extends Ih{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=xg(e);this.animation=yg(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nh(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),dg(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return bp(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bp(e)}get time(){return bp(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yp(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&mg()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),hp):r(this)}},Cg={anticipate:Mp,backInOut:jp,circInOut:Fp};function wg(e){return e in Cg}function Tg(e){typeof e.ease==`string`&&wg(e.ease)&&(e.ease=Cg[e.ease])}var Eg=10,Dg=class extends Sg{constructor(e){Tg(e),Fh(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rh({...a,autoplay:!1}),s=Math.max(Eg,em.now()-this.startTime),c=lp(0,Eg,s-Eg),l=o.sample(s).value,{name:u}=this.options;i&&u&&dg(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Og=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Wm.test(e)||e===`0`)&&!e.startsWith(`url(`));function kg(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ag(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Og(i,t),s=Og(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:kg(e)||(n===`spring`||bg(n))&&r}function jg(e){e.duration=0,e.type=`keyframes`}var Mg=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ng=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pg(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ng.test(e[t]))return!0;return!1}var Fg=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ig=mp(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Lg(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ig()&&n&&(Mg.has(n)||Fg.has(n)&&Pg(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Rg=40,zg=class extends Ih{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=em.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||lg;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=em.now();let u=!0;Ag(e,i,a,o)||(u=!1,(up.instantAnimations||!s)&&l?.(Nh(e,n,t)),e[0]=e[e.length-1],jg(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Rg?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Lg(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Dg({...d,element:p})}catch{m=new Rh(d)}else m=new Rh(d);m.finished.then(()=>{this.notifyFinished()}).catch(hp),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),cg()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Bg(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Vg=30,Hg=e=>!isNaN(parseFloat(e)),Ug={current:void 0},Wg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=em.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=em.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Hg(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 vp);let n=this.events[e].add(t);return e===`change`?()=>{n(),Jp.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ug.current&&Ug.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=em.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Vg);return xp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gg(e,t){return new Wg(e,t)}function Kg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function qg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Kg(n,e)}var Jg={type:`spring`,stiffness:500,damping:25,restSpeed:10},Yg=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xg={type:`keyframes`,duration:.8},Zg={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Qg=(e,{keyframes:t})=>t.length>2?Xg:$h.has(e)?e.startsWith(`scale`)?Yg(t[1]):Jg:Zg,$g=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function e_(e){for(let t in e)if(!$g.has(t))return!0;return!1}var t_=(e,t,n,r={},i,a)=>o=>{let s=qg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=yp(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};e_(s)||Object.assign(u,Qg(e,u)),u.duration&&=yp(u.duration),u.repeatDelay&&=yp(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jg(u),u.delay===0&&(d=!0)),(up.instantAnimations||up.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jg(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nh(u.keyframes,s);if(e!==void 0){Jp.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rh(u):new zg(u)},n_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r_(e){let t=n_.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function i_(e,t,n=1){`${e}`;let[r,i]=r_(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return dp(e)?parseFloat(e):e}return im(i)?i_(i,t,n+1):i}function a_(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function o_(e,t,n,r){if(typeof t==`function`){let[i,a]=a_(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=a_(r);t=t(n===void 0?e.custom:n,i,a)}return t}function s_(e,t,n){let r=e.getProps();return o_(r,t,n===void 0?r.custom:n,e)}var c_=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qh]),l_=e=>Array.isArray(e);function u_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gg(n))}function d_(e){return l_(e)?e[e.length-1]||0:e}function f_(e,t){let{transitionEnd:n={},transition:r={},...i}=s_(e,t)||{};i={...i,...n};for(let t in i)u_(e,t,d_(i[t]))}var p_=e=>!!(e&&e.getVelocity);function m_(e){return!!(p_(e)&&e.add)}function h_(e,t){let n=e.getValue(`willChange`);if(m_(n))return n.add(t);if(!n&&up.WillChange){let n=new up.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function g_(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var __=`data-`+g_(`framerAppearId`);function v_(e){return e.props[__]}function y_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Kg(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&y_(f,t))continue;let o={delay:n,...qg(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Jp.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=v_(e);if(n){let e=window.MotionHandoffAnimation(n,t,Jp);e!==null&&(o.startTime=e,p=!0)}}h_(e,t);let m=l??e.shouldReduceMotion;r.start(t_(t,r,i,m&&c_.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Jp.update(()=>{o&&f_(e,o)});d.length?Promise.all(d).then(t):t()}return d}function x_(e,t,n={}){let r=s_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(b_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return S_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function S_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(x_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Bg(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function C_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>x_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=x_(e,t,n);else{let i=typeof t==`function`?s_(e,t,n.custom):t;r=Promise.all(b_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var w_={test:e=>e===`auto`,parse:e=>e},T_=e=>t=>t.test(e),E_=[sm,G,Cm,Sm,Tm,wm,w_],D_=e=>E_.find(T_(e));function O_(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||pp(e)}var k_=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function A_(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(dm)||[];if(!r)return e;let i=n.replace(r,``),a=+!!k_.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var j_=/\b([a-z-]*)\(.*?\)/gu,M_={...Wm,getAnimatableNone:e=>{let t=e.match(j_);return t?t.map(A_).join(` `):e}},N_={...Wm,getAnimatableNone:e=>{let t=Wm.parse(e);return Wm.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},P_={...sm,transform:Math.round},F_={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:Sm,pathRotation:Sm,rotateX:Sm,rotateY:Sm,rotateZ:Sm,scale:lm,scaleX:lm,scaleY:lm,scaleZ:lm,skew:Sm,skewX:Sm,skewY:Sm,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:cm,originX:Em,originY:Em,originZ:G,zIndex:P_,fillOpacity:cm,strokeOpacity:cm,numOctaves:P_},I_={...F_,color:Om,backgroundColor:Om,outlineColor:Om,fill:Om,stroke:Om,borderColor:Om,borderTopColor:Om,borderRightColor:Om,borderBottomColor:Om,borderLeftColor:Om,filter:M_,WebkitFilter:M_,mask:N_,WebkitMask:N_},L_=e=>I_[e],R_=new Set([M_,N_]);function z_(e,t){let n=L_(e);return R_.has(n)||(n=Wm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var oee=new Set([`auto`,`none`,`0`]);function see(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!oee.has(t)&&Lm(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=z_(n,i)}var cee=class extends lg{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),im(r))){let i=i_(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!c_.has(n)||e.length!==2)return;let[r,i]=e,a=D_(r),o=D_(i);if(om(r)!==om(i)&&tg[n]){this.needsMeasurement=!0;return}if(a!==o){if(eg(a)&&eg(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else tg[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||O_(e[t]))&&n.push(t);n.length&&see(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=tg[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},B_=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function V_(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var H_=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function lee(e){return fp(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:U_,cancel:uee}=qp(queueMicrotask,!1),W_={x:!1,y:!1};function G_(){return W_.x||W_.y}function K_(e){return e===`x`||e===`y`?W_[e]?null:(W_[e]=!0,()=>{W_[e]=!1}):W_.x||W_.y?null:(W_.x=W_.y=!0,()=>{W_.x=W_.y=!1})}function q_(e,t){let n=V_(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function J_(e){return!(e.pointerType===`touch`||G_())}function Y_(e,t,n={}){let[r,i,a]=q_(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!J_(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var X_=(e,t)=>t?e===t||X_(e,t.parentElement):!1,Z_=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Q_=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function $_(e){return Q_.has(e.tagName)||e.isContentEditable===!0}var ev=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function tv(e){return ev.has(e.tagName)||e.isContentEditable===!0}var nv=new WeakSet;function rv(e){return t=>{t.key===`Enter`&&e(t)}}function iv(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var av=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=rv(()=>{if(nv.has(n))return;iv(n,`down`);let e=rv(()=>{iv(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>iv(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ov(e){return Z_(e)&&!G_()}var sv=new WeakSet;function cv(e,t,n={}){let[r,i,a]=q_(e,n),o=e=>{let r=e.currentTarget;if(!ov(e)||sv.has(e))return;nv.add(r),n.stopPropagation&&sv.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),nv.has(r)&&nv.delete(r),ov(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||X_(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),lee(e)&&(e.addEventListener(`focus`,e=>av(e,i)),!$_(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function lv(e){return fp(e)&&`ownerSVGElement`in e}var uv=new WeakMap,dv,fv=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:lv(r)&&`getBBox`in r?r.getBBox()[t]:r[n],pv=fv(`inline`,`width`,`offsetWidth`),mv=fv(`block`,`height`,`offsetHeight`);function hv({target:e,borderBoxSize:t}){uv.get(e)?.forEach(n=>{n(e,{get width(){return pv(e,t)},get height(){return mv(e,t)}})})}function gv(e){e.forEach(hv)}function _v(){typeof ResizeObserver>`u`||(dv=new ResizeObserver(gv))}function vv(e,t){dv||_v();let n=V_(e);return n.forEach(e=>{let n=uv.get(e);n||(n=new Set,uv.set(e,n)),n.add(t),dv?.observe(e)}),()=>{n.forEach(e=>{let n=uv.get(e);n?.delete(t),n?.size||dv?.unobserve(e)})}}var yv=new Set,bv;function xv(){bv=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yv.forEach(t=>t(e))},window.addEventListener(`resize`,bv)}function Sv(e){return yv.add(e),bv||xv(),()=>{yv.delete(e),!yv.size&&typeof bv==`function`&&(window.removeEventListener(`resize`,bv),bv=void 0)}}function Cv(e,t){return typeof e==`function`?Sv(e):vv(e,t)}var wv={value:null,addProjectionMetrics:null};function Tv(e){return lv(e)&&e.tagName===`svg`}var Ev=[...E_,Om,Wm],Dv=e=>Ev.find(T_(e)),Ov=()=>({translate:0,scale:1,origin:0,originPoint:0}),kv=()=>({x:Ov(),y:Ov()}),Av=()=>({min:0,max:0}),jv=()=>({x:Av(),y:Av()}),Mv=new WeakMap;function Nv(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Pv(e){return typeof e==`string`||Array.isArray(e)}var Fv=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Iv=[`initial`,...Fv];function Lv(e){return Nv(e.animate)||Iv.some(t=>Pv(e[t]))}function Rv(e){return!!(Lv(e)||e.variants)}function zv(e,t,n){for(let r in t){let i=t[r],a=n[r];if(p_(i))e.addValue(r,i);else if(p_(a))e.addValue(r,Gg(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Gg(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Bv={current:null},Vv={current:!1},Hv=typeof window<`u`;function Uv(){if(Vv.current=!0,Hv){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Bv.current=e.matches;e.addEventListener(`change`,t),t()}else Bv.current=!1}}var Wv=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Gv={};function Kv(e){Gv=e}function qv(){return Gv}var Jv=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=lg,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=()=>{let e=em.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Jp.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Lv(t),this.isVariantNode=Rv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&p_(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Mv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Vv.current||Uv(),this.shouldReduceMotion=Bv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Yp(this.notifyUpdate),Yp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),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&&Mg.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Sg({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:yp(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=$h.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Jp.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Gv){let t=Gv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jv()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Wv.length;t++){let n=Wv[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zv(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Gg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(dp(n)||pp(n))?n=parseFloat(n):!Dv(n)&&Wm.test(t)&&(n=z_(e,t)),this.setBaseTarget(e,p_(n)?n.get():n)),p_(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=o_(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!p_(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new vp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){U_.render(this.render)}},Yv=class extends Jv{constructor(){super(...arguments),this.KeyframeResolver=cee}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;p_(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Xv=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Zv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $v(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ey(e){return e===void 0||e===1}function ty({scale:e,scaleX:t,scaleY:n}){return!ey(e)||!ey(t)||!ey(n)}function ny(e){return ty(e)||ry(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ry(e){return iy(e.x)||iy(e.y)}function iy(e){return e&&e!==`0%`}function ay(e,t,n){return n+t*(e-n)}function oy(e,t,n,r,i){return i!==void 0&&(e=ay(e,i,r)),ay(e,n,r)+t}function sy(e,t=0,n=1,r,i){e.min=oy(e.min,t,n,r,i),e.max=oy(e.max,t,n,r,i)}function cy(e,{x:t,y:n}){sy(e.x,t.translate,t.scale,t.originPoint),sy(e.y,n.translate,n.scale,n.originPoint)}var ly=.999999999999,uy=1.0000000000001;function dy(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(fy(e.x,-a.scroll.offset.x),fy(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,cy(e,o)),r&&ny(a.latestValues)&&hy(e,a.latestValues,a.layout?.layoutBox))}t.x<uy&&t.x>ly&&(t.x=1),t.y<uy&&t.y>ly&&(t.y=1)}function fy(e,t){e.min+=t,e.max+=t}function py(e,t,n,r,i=.5){sy(e,t,n,Jm(e.min,e.max,i),r)}function my(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function hy(e,t,n){let r=n??e;py(e.x,my(t.x,r.x),t.scaleX,t.scale,t.originX),py(e.y,my(t.y,r.y),t.scaleY,t.scale,t.originY)}function gy(e,t){return Zv($v(e.getBoundingClientRect(),t))}function _y(e,t,n){let r=gy(e,n),{scroll:i}=t;return i&&(fy(r.x,i.offset.x),fy(r.y,i.offset.y)),r}var vy={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},yy=Qh.length;function by(e,t,n){let r=``,i=!0;for(let a=0;a<yy;a++){let o=Qh[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=H_(s,F_[o]);if(!c){i=!1;let t=vy[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${H_(a,F_.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function xy(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($h.has(e)){o=!0;continue}if(nm(e)){i[e]=n;continue}{let t=H_(n,F_[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=by(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Sy(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Cy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var wy={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(G.test(e))e=parseFloat(e);else return e}return`${Cy(e,t.target.x)}% ${Cy(e,t.target.y)}%`}},Ty={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Wm.parse(e);if(i.length>5)return r;let a=Wm.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Jm(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ey={borderRadius:{...wy,applyTo:[...B_]},borderTopLeftRadius:wy,borderTopRightRadius:wy,borderBottomLeftRadius:wy,borderBottomRightRadius:wy,boxShadow:Ty};function Dy(e,{layout:t,layoutId:n}){return $h.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ey[e]||e===`opacity`)}function Oy(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(p_(r[t])||i&&p_(i[t])||Dy(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ky(e){return window.getComputedStyle(e)}var Ay=class extends Yv{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Sy}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if($h.has(t))return this.projection?.isProjecting?Jh(t):Xh(e,t);{let n=ky(e),r=(nm(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return gy(e,t)}build(e,t,n){xy(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Oy(e,t,n)}},jy={offset:`stroke-dashoffset`,array:`stroke-dasharray`},My={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ny(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?jy:My;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Py=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Fy(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(xy(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Py)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ny(d,i,a,o,!1)}var Iy=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`]),Ly=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ry(e,t,n,r){Sy(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Iy.has(n)?n:g_(n),t.attrs[n])}function zy(e,t,n){let r=Oy(e,t,n);for(let n in e)if(p_(e[n])||p_(t[n])){let t=Qh.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var By=class extends Yv{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=jv}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($h.has(t)){let e=L_(t);return e&&e.default||0}if(Py.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Iy.has(t)?t:g_(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return zy(e,t,n)}build(e,t,n){Fy(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ry(e,t,n,r)}mount(e){this.isSVGTag=Ly(e.tagName),super.mount(e)}},Vy=Iv.length;function Hy(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Hy(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Vy;n++){let r=Iv[n],i=e.props[r];(Pv(i)||i===!1)&&(t[r]=i)}return t}function Uy(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Wy=[...Fv].reverse(),Gy=Fv.length;function Ky(e){return t=>Promise.all(t.map(({animation:t,options:n})=>C_(e,t,n)))}function qy(e){let t=Ky(e),n=Xy(),r=!0,i=!1,a=t=>(n,r)=>{let i=s_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Hy(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Gy;t++){let p=Wy[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Pv(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Nv(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Jy(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=l_(t)&&l_(n)?!Uy(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=s_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Bg(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=s_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xy(),i=!0}}}function Jy(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Uy(t,e):!1}function Yy(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xy(){return{animate:Yy(!0),whileInView:Yy(),whileHover:Yy(),whileTap:Yy(),whileDrag:Yy(),whileFocus:Yy(),exit:Yy()}}function Zy(e,t){e.min=t.min,e.max=t.max}function Qy(e,t){Zy(e.x,t.x),Zy(e.y,t.y)}function $y(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eb=.9999,tb=1.0001,nb=-.01,rb=.01;function ib(e){return e.max-e.min}function ab(e,t,n){return Math.abs(e-t)<=n}function ob(e,t,n,r=.5){e.origin=r,e.originPoint=Jm(t.min,t.max,e.origin),e.scale=ib(n)/ib(t),e.translate=Jm(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eb&&e.scale<=tb||isNaN(e.scale))&&(e.scale=1),(e.translate>=nb&&e.translate<=rb||isNaN(e.translate))&&(e.translate=0)}function sb(e,t,n,r){ob(e.x,t.x,n.x,r?r.originX:void 0),ob(e.y,t.y,n.y,r?r.originY:void 0)}function cb(e,t,n,r=0){e.min=(r?Jm(n.min,n.max,r):n.min)+t.min,e.max=e.min+ib(t)}function lb(e,t,n,r){cb(e.x,t.x,n.x,r?.x),cb(e.y,t.y,n.y,r?.y)}function ub(e,t,n,r=0){let i=r?Jm(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+ib(t)}function db(e,t,n,r){ub(e.x,t.x,n.x,r?.x),ub(e.y,t.y,n.y,r?.y)}function fb(e,t,n,r,i){return e-=t,e=ay(e,1/n,r),i!==void 0&&(e=ay(e,1/i,r)),e}function pb(e,t=0,n=1,r=.5,i,a=e,o=e){if(Cm.test(t)&&(t=parseFloat(t),t=Jm(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Jm(a.min,a.max,r);e===a&&(s-=t),e.min=fb(e.min,t,n,s,i),e.max=fb(e.max,t,n,s,i)}function mb(e,t,[n,r,i],a,o){pb(e,t[n],t[r],t[i],t.scale,a,o)}var hb=[`x`,`scaleX`,`originX`],gb=[`y`,`scaleY`,`originY`];function _b(e,t,n,r){mb(e.x,t,hb,n?n.x:void 0,r?r.x:void 0),mb(e.y,t,gb,n?n.y:void 0,r?r.y:void 0)}function vb(e){return e.translate===0&&e.scale===1}function yb(e){return vb(e.x)&&vb(e.y)}function bb(e,t){return e.min===t.min&&e.max===t.max}function xb(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function Sb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Cb(e,t){return Sb(e.x,t.x)&&Sb(e.y,t.y)}function wb(e){return ib(e.x)/ib(e.y)}function Tb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Eb(e){return[e(`x`),e(`y`)]}function Db(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ob=B_.length,kb=e=>typeof e==`string`?parseFloat(e):e,Ab=e=>typeof e==`number`||G.test(e);function jb(e,t,n,r,i,a){i?(e.opacity=Jm(0,n.opacity??1,Nb(r)),e.opacityExit=Jm(t.opacity??1,0,Pb(r))):a&&(e.opacity=Jm(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ob;i++){let a=B_[i],o=Mb(t,a),s=Mb(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Ab(o)===Ab(s)?(e[a]=Math.max(Jm(kb(o),kb(s),r),0),(Cm.test(s)||Cm.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Jm(t.rotate||0,n.rotate||0,r))}function Mb(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Nb=Fb(0,.5,Pp),Pb=Fb(.5,.95,hp);function Fb(e,t,n){return r=>r<e?0:r>t?1:n(_p(e,t,r))}function dee(e,t,n){let r=p_(e)?e:Gg(e);return r.start(t_(``,r,t,n)),r.animation}function Ib(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var fee=(e,t)=>e.depth-t.depth,pee=class{constructor(){this.children=[],this.isDirty=!1}add(e){sp(this.children,e),this.isDirty=!0}remove(e){cp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fee),this.isDirty=!1,this.children.forEach(e)}};function mee(e,t){let n=em.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Yp(r),e(a-t))};return Jp.setup(r,!0),()=>Yp(r)}function Lb(e){return p_(e)?e.get():e}var hee=class{constructor(){this.members=[]}add(e){sp(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(cp(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(cp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Rb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zb={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Bb=[``,`X`,`Y`,`Z`],gee=1e3,_ee=0;function Vb(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Hb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=v_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Jp,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hb(r)}function Ub({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=_ee++,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,wv.value&&(zb.nodes=zb.calculatedTargetDeltas=zb.calculatedProjections=0),this.nodes.forEach(bee),this.nodes.forEach(qb),this.nodes.forEach(Jb),this.nodes.forEach(xee),wv.addProjectionMetrics&&wv.addProjectionMetrics(zb)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new pee)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new vp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=lv(t)&&!Tv(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Jp.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=mee(i,250),Rb.hasAnimatedSinceResize&&(Rb.hasAnimatedSinceResize=!1,this.nodes.forEach(Kb)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||tx,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Cb(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...qg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Kb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yp(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(Yb),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Cee),this.nodes.forEach(Wb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wee),this.nodes.forEach(Tee),this.nodes.forEach(vee),this.nodes.forEach(yee)):this.nodes.forEach(Gb),this.clearAllSnapshots();let e=em.now();Xp.delta=lp(0,1e3/60,e-Xp.timestamp),Xp.timestamp=e,Xp.isProcessing=!0,Zp.update.process(Xp),Zp.preRender.process(Xp),Zp.render.process(Xp),Xp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,U_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(See),this.sharedNodes.forEach(Xb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Jp.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Jp.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ib(this.snapshot.measuredBox.x)&&!ib(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=jv(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!yb(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ny(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ax(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return jv();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sx))){let{scroll:e}=this.root;e&&(fy(t.x,e.offset.x),fy(t.y,e.offset.y))}return t}removeElementScroll(e){let t=jv();if(Qy(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Qy(t,e),fy(t.x,i.offset.x),fy(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||jv();Qy(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(fy(r.x,-n.scroll.offset.x),fy(r.y,-n.scroll.offset.y)),ny(n.latestValues)&&hy(r,n.latestValues,n.layout?.layoutBox)}return ny(this.latestValues)&&hy(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=jv();Qy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ny(n.latestValues))continue;let r;n.instance&&(ty(n.latestValues)&&n.updateSnapshot(),r=jv(),Qy(r,n.measurePageBox())),_b(t,n.latestValues,n.snapshot?.layoutBox,r)}return ny(this.latestValues)&&_b(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}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!==Xp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Xp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jv(),this.targetWithTransforms=jv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qy(this.target,this.layout.layoutBox),cy(this.target,this.targetDelta)):Qy(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),wv.value&&zb.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ty(this.parent.latestValues)||ry(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jv(),this.relativeTargetOrigin=jv(),db(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Qy(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Xp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Qy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;dy(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=jv());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($y(this.prevProjectionDelta.x,this.projectionDelta.x),$y(this.prevProjectionDelta.y,this.projectionDelta.y)),sb(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Tb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Tb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),wv.value&&zb.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kv(),this.projectionDelta=kv(),this.projectionDeltaWithTransform=kv()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=kv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=jv(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(ex));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=Jm(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=Jm(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Zb(o.x,e.x,n),Zb(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(db(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),$b(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&xb(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=jv(),Qy(f,this.relativeTarget)),c&&(this.animationValues=a,jb(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Yp(this.pendingAnimation),void 0),this.pendingAnimation=Jp.update(()=>{Rb.hasAnimatedSinceResize=!0,this.motionValue||=Gg(0),this.motionValue.jump(0,!1),this.currentAnimation=dee(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gee),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ox(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||jv();let t=ib(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ib(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Qy(t,n),hy(t,i),sb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new hee),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Vb(`z`,e,r,this.animationValues);for(let t=0;t<Bb.length;t++)Vb(`rotate${Bb[t]}`,e,r,this.animationValues),Vb(`skew${Bb[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Lb(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Lb(t?.pointerEvents)||``),this.hasProjected&&!ny(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Db(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ey){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ey[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Lb(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Wb),this.root.sharedNodes.clear()}}}function vee(e){e.updateLayout()}function yee(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Eb(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=ib(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Zy(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ox(i,t.layoutBox,n)&&Eb(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=ib(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=kv();sb(o,n,t.layoutBox);let s=kv();a?sb(s,e.applyTransform(r,!0),t.measuredBox):sb(s,n,t.layoutBox);let c=!yb(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=jv();db(s,t.layoutBox,i.layoutBox,o);let c=jv();db(c,n,a.layoutBox,o),Cb(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function bee(e){wv.value&&zb.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function xee(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function See(e){e.clearSnapshot()}function Wb(e){e.clearMeasurements()}function Cee(e){e.isLayoutDirty=!0,e.updateLayout()}function Gb(e){e.isLayoutDirty=!1}function wee(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Tee(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Kb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qb(e){e.resolveTargetDelta()}function Jb(e){e.calcProjection()}function Yb(e){e.resetSkewAndRotation()}function Xb(e){e.removeLeadSnapshot()}function Zb(e,t,n){e.translate=Jm(t.translate,0,n),e.scale=Jm(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qb(e,t,n,r){e.min=Jm(t.min,n.min,r),e.max=Jm(t.max,n.max,r)}function $b(e,t,n,r){Qb(e.x,t.x,n.x,r),Qb(e.y,t.y,n.y,r)}function ex(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var tx={duration:.45,ease:[.4,0,.1,1]},nx=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rx=nx(`applewebkit/`)&&!nx(`chrome/`)?Math.round:hp;function ix(e){e.min=rx(e.min),e.max=rx(e.max)}function ax(e){ix(e.x),ix(e.y)}function ox(e,t,n){return e===`position`||e===`preserve-aspect`&&!ab(wb(t),wb(n),.2)}function sx(e){return e!==e.root&&e.scroll?.wasRoot}var cx=Ub({attachResizeListener:(e,t)=>Ib(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),lx={current:void 0},ux=Ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lx.current){let e=new cx({});e.mount(window),e.setOptions({layoutScroll:!0}),lx.current=e}return lx.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),dx=(0,R.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function fx(e=!0){let t=(0,R.useContext)(op);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,R.useId)();(0,R.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,R.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var px=(0,R.createContext)({strict:!1}),mx={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`]},hx=!1;function gx(){if(hx)return;let e={};for(let t in mx)e[t]={isEnabled:e=>mx[t].some(t=>!!e[t])};Kv(e),hx=!0}function _x(){return gx(),qv()}function vx(e){let t=_x();for(let n in e)t[n]={...t[n],...e[n]};Kv(t)}var yx=(0,R.createContext)({});function bx(e,t){if(Lv(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Pv(t)?t:void 0,animate:Pv(n)?n:void 0}}return e.inherit===!1?{}:t}function xx(e){let{initial:t,animate:n}=bx(e,(0,R.useContext)(yx));return(0,R.useMemo)(()=>({initial:t,animate:n}),[Sx(t),Sx(n)])}function Sx(e){return Array.isArray(e)?e.join(` `):e}var Cx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wx(e,t,n){for(let r in t)!p_(t[r])&&!Dy(r,n)&&(e[r]=t[r])}function Tx({transformTemplate:e},t){return(0,R.useMemo)(()=>{let n=Cx();return xy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ex(e,t){let n=e.style||{},r={};return wx(r,n,e),Object.assign(r,Tx(e,t)),r}function Dx(e,t){let n={},r=Ex(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ox=()=>({...Cx(),attrs:{}});function kx(e,t,n,r){let i=(0,R.useMemo)(()=>{let n=Ox();return Fy(n,t,Ly(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};wx(t,e.style,e),i.style={...t,...i.style}}return i}var Ax=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`.split(`.`));function jx(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Ax.has(e)}function Mx(e,t){return e.startsWith(`on`)?!jx(e):t?.(e)??!jx(e)}function Nx(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(p_(e[a])||(Mx(a,r)||n===!0&&jx(a)||!t&&!jx(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Px=[`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 Fx(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Px.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ix(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Fx(e)?kx:Dx)(t,r,i,e),l=Nx(t,typeof e==`string`,a,s),u=e===R.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,R.useMemo)(()=>p_(d)?d.get():d,[d]);return(0,R.createElement)(e,{...u,children:f})}function Lx({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Rx(n,r,i,e),renderState:t()}}function Rx(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Lb(a[e]);let{initial:o,animate:s}=e,c=Lv(e),l=Rv(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Nv(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=o_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var zx=e=>(t,n)=>{let r=(0,R.useContext)(yx),i=(0,R.useContext)(op),a=()=>Lx(e,t,r,i);return n?a():ip(a)},Bx=zx({scrapeMotionValuesFromProps:Oy,createRenderState:Cx}),Vx=zx({scrapeMotionValuesFromProps:zy,createRenderState:Ox}),Hx=Symbol.for(`motionComponentSymbol`);function Ux(e,t,n){let r=(0,R.useRef)(n);(0,R.useInsertionEffect)(()=>{r.current=n});let i=(0,R.useRef)(null);return(0,R.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Wx=(0,R.createContext)({});function Gx(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Kx(e,t,n,r,i,a){let{visualElement:o}=(0,R.useContext)(yx),s=(0,R.useContext)(px),c=(0,R.useContext)(op),l=(0,R.useContext)(dx),u=l.reducedMotion,d=l.skipAnimations,f=(0,R.useRef)(null),p=(0,R.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,R.useContext)(Wx);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&qx(f.current,n,i,h);let g=(0,R.useRef)(!1);(0,R.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[__],v=(0,R.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return ap(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,R.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function qx(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Jx(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Gx(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Jx(e){if(e)return e.options.allowProjection===!1?Jx(e.parent):e.projection}function Yx(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vx(r);let a=n?n===`svg`:Fx(e),o=a?Vx:Bx;function s(n,s){let c,l={...(0,R.useContext)(dx),...n,layoutId:Xx(n)},{isStatic:u,isValidProp:d}=l,f=xx(n),p=o(n,u);if(!u&&typeof window<`u`){Zx(l,r);let t=Qx(l);c=t.MeasureLayout,f.visualElement=Kx(e,p,l,i,t.ProjectionNode,a)}return(0,z.jsxs)(yx.Provider,{value:f,children:[c&&f.visualElement?(0,z.jsx)(c,{visualElement:f.visualElement,...l}):null,Ix(e,n,Ux(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,R.forwardRef)(s);return c[Hx]=e,c}function Xx({layoutId:e}){let t=(0,R.useContext)(rp).id;return t&&e!==void 0?t+`-`+e:e}function Zx(e,t){(0,R.useContext)(px).strict}function Qx(e){let{drag:t,layout:n}=_x();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $x(e,t){if(typeof Proxy>`u`)return Yx;let n=new Map,r=(n,r)=>Yx(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Yx(a,void 0,e,t)),n.get(a))})}var eS=(e,t)=>t.isSVG??Fx(e)?new By(t):new Ay(t,{allowProjection:e!==R.Fragment}),tS=class extends Xv{constructor(e){super(e),e.animationState||=qy(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Nv(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},nS=0,rS={animation:{Feature:tS},exit:{Feature:class extends Xv{constructor(){super(...arguments),this.id=nS++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=s_(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function iS(e){return{point:{x:e.pageX,y:e.pageY}}}var aS=e=>t=>Z_(t)&&e(t,iS(t));function oS(e,t,n,r){return Ib(e,t,aS(n),r)}var sS=({current:e})=>e?e.ownerDocument.defaultView:null,cS=(e,t)=>Math.abs(e-t);function lS(e,t){let n=cS(e.x,t.x),r=cS(e.y,t.y);return Math.sqrt(n**2+r**2)}var uS=new Set([`auto`,`scroll`]),dS=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=fS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=mS(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=lS(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Xp;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=fS(t,this.transformPagePoint),Jp.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=mS(e.type===`pointercancel`?this.lastMoveEventInfo:fS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Z_(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=fS(iS(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Xp;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,mS(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=gp(oS(this.contextWindow,`pointermove`,this.handlePointerMove,d),oS(this.contextWindow,`pointerup`,this.handlePointerUp,d),oS(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(uS.has(e.overflowX)||uS.has(e.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){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Jp.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yp(this.updatePoint)}};function fS(e,t){return t?{point:t(e.point)}:e}function pS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mS({point:e},t){return{point:e,delta:pS(e,gS(t)),offset:pS(e,hS(t)),velocity:_S(t,.1)}}function hS(e){return e[0]}function gS(e){return e[e.length-1]}function _S(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=gS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yp(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>yp(t)*2&&(r=e[1]);let a=bp(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function vS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Jm(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Jm(n,e,r.max):Math.min(e,n)),e}function yS(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function bS(e,{top:t,left:n,bottom:r,right:i}){return{x:yS(e.x,n,i),y:yS(e.y,t,r)}}function xS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function SS(e,t){return{x:xS(e.x,t.x),y:xS(e.y,t.y)}}function CS(e,t){let n=.5,r=ib(e),i=ib(t);return i>r?n=_p(t.min,t.max-r,e.min):r>i&&(n=_p(e.min,e.max-i,t.min)),lp(0,1,n)}function wS(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var TS=.35;function ES(e=TS){return e===!1?e=0:e===!0&&(e=TS),{x:DS(e,`left`,`right`),y:DS(e,`top`,`bottom`)}}function DS(e,t,n){return{min:OS(e,t),max:OS(e,n)}}function OS(e,t){return typeof e==`number`?e:e[t]||0}var kS=new WeakMap,AS=class{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=jv(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(iS(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K_(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Eb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cm.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=ib(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Jp.update(()=>i(e,t),!1,!0),h_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=PS(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Jp.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new dS(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:sS(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Jp.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&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,n){let{drag:r}=this.getProps();if(!n||!NS(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=vS(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Gx(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?bS(n.layoutBox,e):!1,this.elastic=ES(t),r!==this.constraints&&!Gx(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Eb(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=wS(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gx(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=_y(n,r.root,this.visualElement.getTransformPagePoint()),a=SS(r.layout.layoutBox,i);if(t){let e=t(Qv(a));this.hasMutatedConstraints=!!e,e&&(a=Zv(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Eb(o=>{if(!NS(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return h_(this.visualElement,e),n.start(t_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Eb(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Eb(t=>{let{drag:n}=this.getProps();if(!NS(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Jm(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gx(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Eb(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=CS({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Eb(t=>{if(!NS(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Jm(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kS.set(this.visualElement,this);let e=this.visualElement.current,t=oS(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&tv(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Gx(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=MS(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Jp.read(r);let o=Ib(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Eb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=TS,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function jS(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function MS(e,t,n){let r=Cv(e,jS(n)),i=Cv(t,jS(n));return()=>{r(),i()}}function NS(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PS(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var FS=class extends Xv{constructor(e){super(e),this.removeGroupControls=hp,this.removeListeners=hp,this.controls=new AS(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hp}update(){let{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()}},IS=e=>(t,n)=>{e&&Jp.update(()=>e(t,n),!1,!0)},LS=class extends Xv{constructor(){super(...arguments),this.removePointerDownListener=hp}onPointerDown(e){this.session=new dS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sS(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:IS(e),onStart:IS(t),onMove:IS(n),onEnd:(e,t)=>{delete this.session,r&&Jp.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=oS(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},RS=!1,zS=class extends R.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),RS&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),RS=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Jp.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),U_.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;RS=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function BS(e){let[t,n]=fx(),r=(0,R.useContext)(rp);return(0,z.jsx)(zS,{...e,layoutGroup:r,switchLayoutGroup:(0,R.useContext)(Wx),isPresent:t,safeToRemove:n})}var VS={pan:{Feature:LS},drag:{Feature:FS,ProjectionNode:ux,MeasureLayout:BS}};function HS(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Jp.postRender(()=>i(t,iS(t)))}var US=class extends Xv{mount(){let{current:e}=this.node;e&&(this.unmount=Y_(e,(e,t)=>(HS(this.node,t,`Start`),e=>HS(this.node,e,`End`))))}unmount(){}},WS=class extends Xv{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=gp(Ib(this.node.current,`focus`,()=>this.onFocus()),Ib(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function GS(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Jp.postRender(()=>i(t,iS(t)))}var KS=class extends Xv{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=cv(e,(e,t)=>(GS(this.node,t,`Start`),(e,{success:t})=>GS(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},qS=new WeakMap,JS=new WeakMap,YS=e=>{let t=qS.get(e.target);t&&t(e)},XS=e=>{e.forEach(YS)};function ZS({root:e,...t}){let n=e||document;JS.has(n)||JS.set(n,{});let r=JS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XS,{root:e,...t})),r[i]}function QS(e,t,n){let r=ZS(t);return qS.set(e,n),r.observe(e),()=>{qS.delete(e),r.unobserve(e)}}var $S={some:0,all:1},eC=class extends Xv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$S[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=QS(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tC(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function tC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var nC={inView:{Feature:eC},tap:{Feature:KS},focus:{Feature:WS},hover:{Feature:US}},rC={layout:{ProjectionNode:ux,MeasureLayout:BS}},iC=$x({...rS,...nC,...VS,...rC},eS);function aC(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=aC(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function oC(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=aC(e))&&(r&&(r+=` `),r+=t);return r}var sC=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function cC(e){return typeof e==`string`&&sC.includes(e)}var lC=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function uC(e){return typeof e==`string`&&lC.has(e)}function dC(e){return typeof e==`string`&&e.startsWith(`data-`)}function fC(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uC(n)||dC(n))&&(t[n]=e[n]);return t}function pC(e){if(e==null)return null;if((0,R.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return fC(t)}return typeof e==`object`&&!Array.isArray(e)?fC(e):null}function mC(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uC(n)||dC(n)||cC(n))&&(t[n]=e[n]);return t}function hC(e){return e==null?null:(0,R.isValidElement)(e)?mC(e.props):typeof e==`object`&&!Array.isArray(e)?mC(e):null}var gC=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_C.apply(null,arguments)}function vC(e,t){if(e==null)return{};var n,r,i=yC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bC=(0,R.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=vC(e,gC),d=a||{width:r,height:i,x:0,y:0},f=oC(`recharts-surface`,o);return R.createElement(`svg`,_C({},mC(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),R.createElement(`title`,null,c),R.createElement(`desc`,null,l),n)}),xC=[`children`,`className`];function SC(){return SC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SC.apply(null,arguments)}function CC(e,t){if(e==null)return{};var n,r,i=wC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TC=R.forwardRef((e,t)=>{var n=e.children,r=e.className,i=CC(e,xC),a=oC(`recharts-layer`,r);return R.createElement(`g`,SC({className:a},mC(i),{ref:t}),n)});function EC(e){return e===`__proto__`}var DC=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function OC(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:DC.test(e);default:return!1}}function kC(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function AC(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(AC).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function jC(e){if(Array.isArray(e))return e.map(kC);if(typeof e==`symbol`)return[e];e=AC(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function MC(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(EC(t))return n;let r=e[t];return r===void 0?OC(t)&&!Object.hasOwn(e,t)?MC(e,jC(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=kC(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return NC(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),EC(t))return n;let r=e[t];return r===void 0?n:r}}}function NC(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||EC(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var PC=4;function FC(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:PC),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function IC(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+FC(i)+n},``)}var LC=e=>e===0?0:e>0?1:-1,RC=e=>typeof e==`number`&&e!=+e,zC=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,K=e=>(typeof e==`number`||e instanceof Number)&&!RC(e),BC=e=>K(e)||typeof e==`string`,VC=0,HC=e=>{var t=++VC;return`${e||``}${t}`},UC=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!K(e)&&typeof e!=`string`)return n;var i;if(zC(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return RC(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},WC=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function GC(e,t,n){return K(e)&&K(t)?FC(e+n*(t-e)):t}function KC(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):MC(e,t))===n)}var qC=e=>e==null,JC=e=>qC(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function YC(e){return e!=null}function XC(){}function ZC(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QC(Object(n),!0).forEach(function(t){ew(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ew(e,t,n){return(t=tw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){var t=nw(e,`string`);return typeof t==`symbol`?t:t+``}function nw(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rw=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=ZC(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?$C({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?$C({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?$C({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?$C({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?$C({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?$C({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?$C({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?$C({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(K(n.x)||zC(n.x))&&(K(n.y)||zC(n.y))?$C({x:c+UC(n.x,g),y:l+UC(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):$C({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},iw=[`top`,`left`,`right`,`bottom`];function aw(e){return e==null?!1:typeof e==`object`||iw.includes(e)}var ow=(0,R.createContext)(null);function sw(e){return function(){return e}}var cw=Math.PI,lw=2*cw,uw=1e-6,dw=lw-uw;function fw(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function pw(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return fw;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var mw=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?fw:pw(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>uw){if(!(Math.abs(u*s-c*l)>uw)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cw-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>uw&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>uw||Math.abs(this._y1-l)>uw)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%lw+lw),d>dw?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>uw&&this._append`A${n},${n},0,${+(d>=cw)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};mw.prototype;function hw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new mw(t)}Array.prototype.slice;function gw(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function _w(e){this._context=e}_w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function vw(e){return new _w(e)}function yw(e){return e[0]}function bw(e){return e[1]}function xw(e,t){var n=sw(!0),r=null,i=vw,a=null,o=hw(s);e=typeof e==`function`?e:e===void 0?yw:sw(e),t=typeof t==`function`?t:t===void 0?bw:sw(t);function s(s){var c,l=(s=gw(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:sw(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function Sw(e,t,n){var r=null,i=sw(!0),a=null,o=vw,s=null,c=hw(l);e=typeof e==`function`?e:e===void 0?yw:sw(+e),t=typeof t==`function`?t:sw(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?bw:sw(+n);function l(l){var u,d,f,p=(l=gw(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return xw().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:sw(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:sw(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:sw(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Cw=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function ww(e){return new Cw(e,!0)}function Tw(e){return new Cw(e,!1)}function Ew(){}function Dw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ow(e){this._context=e}Ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Dw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kw(e){return new Ow(e)}function Aw(e){this._context=e}Aw.prototype={areaStart:Ew,areaEnd:Ew,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jw(e){return new Aw(e)}function Mw(e){this._context=e}Mw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nw(e){return new Mw(e)}function Pw(e){this._context=e}Pw.prototype={areaStart:Ew,areaEnd:Ew,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Fw(e){return new Pw(e)}function Iw(e){return e<0?-1:1}function Lw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Iw(a)+Iw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Rw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Bw(e){this._context=e}Bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zw(this,this._t0,Rw(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zw(this,Rw(this,n=Lw(this,e,t)),n);break;default:zw(this,this._t0,n=Lw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Vw(e){this._context=new Hw(e)}(Vw.prototype=Object.create(Bw.prototype)).point=function(e,t){Bw.prototype.point.call(this,t,e)};function Hw(e){this._context=e}Hw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Uw(e){return new Bw(e)}function Ww(e){return new Vw(e)}function Gw(e){this._context=e}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Kw(e),i=Kw(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Kw(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qw(e){return new Gw(e)}function Jw(e,t){this._context=e,this._t=t}Jw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Yw(e){return new Jw(e,.5)}function Xw(e){return new Jw(e,0)}function Zw(e){return new Jw(e,1)}function Qw(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function $w(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function eT(e,t){return e[t]}function tT(e){let t=[];return t.key=e,t}function nT(){var e=sw([]),t=$w,n=Qw,r=eT;function i(i){var a=Array.from(e.apply(this,arguments),tT),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=gw(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:sw(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:sw(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?$w:typeof e==`function`?e:sw(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Qw,i):n},i}function rT(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Qw(e,t)}}function iT(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Qw(e,t)}}function aT(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Qw(e,t)}}var oT=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,sT=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,R.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{cC(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},cT=(e,t,n)=>r=>(e(t,n,r),null),lT=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];cC(i)&&typeof a==`function`&&(r||={},r[i]=cT(a,t,n))}),r};function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uT(Object(n),!0).forEach(function(t){fT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e){var t=mT(e,`string`);return typeof t==`symbol`?t:t+``}function mT(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hT(e,t){var n=dT({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function gT(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function _T(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function vT(e){return e}function yT(e){return function(t){return MC(t,e)}}function bT(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function xT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ST(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function CT(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var wT=`[object RegExp]`,TT=`[object String]`,ET=`[object Number]`,DT=`[object Boolean]`,OT=`[object Arguments]`,kT=`[object Symbol]`,AT=`[object Date]`,jT=`[object Map]`,MT=`[object Set]`,NT=`[object Array]`,PT=`[object Function]`,FT=`[object ArrayBuffer]`,IT=`[object Object]`,LT=`[object Error]`,RT=`[object DataView]`,zT=`[object Uint8Array]`,BT=`[object Uint8ClampedArray]`,VT=`[object Uint16Array]`,HT=`[object Uint32Array]`,UT=`[object BigUint64Array]`,WT=`[object Int8Array]`,GT=`[object Int16Array]`,KT=`[object Int32Array]`,qT=`[object BigInt64Array]`,JT=`[object Float32Array]`,YT=`[object Float64Array]`,XT=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function ZT(e){return XT.Buffer!==void 0&&XT.Buffer.isBuffer(e)}function QT(e,t){return $T(e,void 0,e,new Map,t)}function $T(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(bT(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=$T(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,$T(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add($T(a,void 0,n,r,i));return t}if(ZT(e))return e.subarray();if(xT(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=$T(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),eE(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),eE(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,eE(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(typeof e==`object`&&Eee(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),eE(t,e,n,r,i),t}return e}function eE(e,t,n=e,r,i){let a=[...Object.keys(t),...ST(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=$T(t[s],s,n,r,i))}}function Eee(e){switch(CT(e)){case OT:case NT:case FT:case RT:case DT:case AT:case JT:case YT:case WT:case GT:case KT:case jT:case ET:case IT:case wT:case MT:case TT:case kT:case zT:case BT:case VT:case HT:return!0;default:return!1}}function Dee(e){return $T(e,void 0,e,new Map,void 0)}function tE(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function nE(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function rE(e,t,n){return typeof n==`function`?iE(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?iE(t,r,e,s,!1):!!c},new Map,!0):rE(e,t,()=>void 0)}function iE(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Oee(e,t,n,r);case`function`:return Object.keys(t).length>0?iE(e,{...t},n,r,i):tE(e,t);default:return nE(e)&&i?typeof t!=`string`||t===``:tE(e,t)}}function Oee(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return aE(e,t,n,r);if(t instanceof Map)return kee(e,t,n,r);if(t instanceof Set)return Aee(e,t,n,r);let i=Object.keys(t);if(e==null||bT(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!bT(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function kee(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function aE(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Aee(e,t,n,r){return t.size===0||e instanceof Set&&aE([...e],[...t],n,r)}function oE(e,t){return rE(e,t,()=>void 0)}function jee(e){return e=Dee(e),t=>oE(t,e)}function Mee(e,t){return QT(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(CT(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),eE(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case ET:case TT:case DT:{let t=new e.constructor(e?.valueOf());return eE(t,e),t}case OT:{let t={};return eE(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Nee(e){return Mee(e)}var Pee=/^(?:0|[1-9]\d*)$/;function sE(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Pee.test(e)}}function Fee(e){return typeof e==`object`&&!!e&&CT(e)===`[object Arguments]`}function Iee(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&OC(t)&&!(t in Object(e))?jC(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Fee(r))&&sE(t)&&t<r.length))return!1;r=r[t]}return!0}function Lee(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=kC(e)}return t=Nee(t),function(n){let r=MC(n,e);return r===void 0?Iee(n,e):t===void 0?r===void 0:oE(r,t)}}function Ree(e){if(e==null)return vT;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Lee(e[0],e[1]):jee(e);case`string`:case`symbol`:case`number`:return yT(e)}}function zee(e){return Number.isSafeInteger(e)&&e>=0}function cE(e){return e!=null&&typeof e!=`function`&&zee(e.length)}function Bee(e){return typeof e==`object`&&!!e}function Vee(e){return Bee(e)&&cE(e)}function lE(e,t=vT){return Vee(e)?gT(Array.from(e),_T(Ree(t),1)):[]}function Hee(e,t,n){return t===!0?lE(e,n):typeof t==`function`?lE(e,t):e}var uE=(0,R.createContext)(null),Uee=e=>e,dE=()=>{var e=(0,R.useContext)(uE);return e?e.store.dispatch:Uee},fE=()=>{},Wee=()=>fE,Gee=(e,t)=>e===t;function q(e){var t=(0,R.useContext)(uE),n=(0,R.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:fE,[t,e]);return(0,Fi.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Wee,t?t.store.getState:fE,t?t.store.getState:fE,n,Gee)}function Kee(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function qee(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var pE=e=>Array.isArray(e)?e:[e];function Jee(e){let t=Array.isArray(e[0])?e[0]:e;return qee(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Yee(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Xee=class{constructor(e){this.value=e}deref(){return this.value}},mE=typeof WeakRef>`u`?Xee:WeakRef,Zee=0,hE=1;function gE(){return{s:Zee,v:void 0,o:null,p:null}}function Qee(e){return e instanceof mE?e.deref():e}function _E(e,t={}){let n=gE(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=gE(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=gE(),e.set(n,t)):t=r}}let s=t,c;if(t.s===hE)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Qee(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new mE(c):c}return s.s=hE,s.v=c,c}return o.clearCache=()=>{n=gE(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function $ee(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Kee(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=_E,argsMemoizeOptions:u=[]}={...n,...a},d=pE(c),f=pE(u),p=Jee(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Yee(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var J=$ee(_E);function ete(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function vE(e,t,n){return nE(n)&&(typeof t==`number`&&cE(n)&&sE(t)&&t<n.length||typeof t==`string`&&t in n)?tE(n[t],e):!1}function yE(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var tte=(e,t,n)=>{if(e!==t){let r=yE(e),i=yE(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function bE(e){return typeof e==`symbol`||e instanceof Symbol}var nte=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rte=/^\w*$/;function ite(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||bE(e)?!0:typeof e==`string`&&(rte.test(e)||!nte.test(e))||t!=null&&Object.hasOwn(t,e)}function ate(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||ite(e)?e:{key:e,path:jC(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=tte(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function xE(e,...t){let n=t.length;return n>1&&vE(e,t[0],t[1])?t=[]:n>2&&vE(t[0],t[1],t[2])&&(t=[t[0]]),ate(e,ete(t),[`asc`])}var SE=e=>e.legend.settings,ote=e=>e.legend.size;J([e=>e.legend.payload,SE],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?xE(r,n):r});function ste(e,t){return wE(e)||ute(e,t)||lte(e,t)||cte()}function cte(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
9
|
+
`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ht(e,``+r);break;case`className`:Et(e,`class`,r);break;case`tabIndex`:Et(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Et(e,n,r);break;case`style`:Gt(e,r,o);break;case`data`:if(t!==`object`){Et(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`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}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Yt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Yt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:W(`beforetoggle`,e),W(`toggle`,e),Tt(e,`popover`,r);break;case`xlinkActuate`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Dt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Dt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Tt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=qt.get(n)||n,Tt(e,n,r))}}function Hd(e,t,n,r,a,o){switch(n){case`style`:Gt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ht(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ht(e,``+r);break;case`onScroll`:r!=null&&W(`scroll`,e);break;case`onScrollEnd`:r!=null&&W(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Xt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!vt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[it]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Tt(e,n,r)}}}function Ud(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:W(`error`,e),W(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Vd(e,t,o,s,n,null)}}a&&Vd(e,t,`srcSet`,n.srcSet,n,null),r&&Vd(e,t,`src`,n.src,n,null);return;case`input`:W(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Vd(e,t,r,d,n,null)}}Lt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in W(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Vd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&zt(e,!!r,n,!0):zt(e,!!r,t,!1);return;case`textarea`:for(s in W(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Vd(e,t,s,c,n,null)}Vt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Vd(e,t,l,r,n,null)}return;case`dialog`:W(`beforetoggle`,e),W(`toggle`,e),W(`cancel`,e),W(`close`,e);break;case`iframe`:case`object`:W(`load`,e);break;case`video`:case`audio`:for(r=0;r<Td.length;r++)W(Td[r],e);break;case`image`:W(`error`,e),W(`load`,e);break;case`details`:W(`toggle`,e);break;case`embed`:case`source`:case`link`:W(`error`,e),W(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Vd(e,t,u,r,n,null)}return;default:if(Kt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Hd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Vd(e,t,c,r,n,null))}function Wd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Vd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Vd(e,t,p,m,r,f)}}It(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Vd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Vd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?zt(e,!!n,n?[]:``,!1):zt(e,!!n,t,!0)):zt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Vd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Vd(e,t,s,a,r,o)}Bt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Vd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Vd(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Vd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Vd(e,t,u,p,r,m)}return;default:if(Kt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Hd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Hd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Vd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Vd(e,t,f,p,r,m)}function Gd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Kd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Gd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var qd=null,Jd=null;function Yd(e){return e.nodeType===9?e:e.ownerDocument}function Xd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Zd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var $d=null;function ef(){var e=window.event;return e&&e.type===`popstate`?e!==$d&&($d=e,!0):($d=null,!1)}var tf=typeof setTimeout==`function`?setTimeout:void 0,nf=typeof clearTimeout==`function`?clearTimeout:void 0,rf=typeof Promise==`function`?Promise:void 0,af=typeof queueMicrotask==`function`?queueMicrotask:rf===void 0?tf:function(e){return rf.resolve(null).then(e).catch(of)};function of(e){setTimeout(function(){throw e})}function sf(e){return e===`head`}function cf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Sf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Sf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ut]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Sf(e.ownerDocument.body)}n=i}while(n);Hp(t)}function lf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function uf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:uf(n),dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function df(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[ut])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=_f(e.nextSibling),e===null)break}return null}function ff(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_f(e.nextSibling),e===null))return null;return e}function pf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_f(e.nextSibling),e===null))return null;return e}function mf(e){return e.data===`$?`||e.data===`$~`}function hf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function _f(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var vf=null;function yf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _f(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function xf(e,t,n){switch(t=Yd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Sf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);dt(e)}var Cf=new Map,wf=new Set;function Tf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ef=P.d;P.d={f:Df,r:Of,D:jf,C:Mf,L:Nf,m:Pf,X:If,S:Ff,M:Lf};function Df(){var e=Ef.f(),t=Du();return e||t}function Of(e){var t=pt(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):Ef.r(e)}var kf=typeof document>`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Ft(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ft(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ft(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ft(n.imageSizes)+`"]`)):i+=`[href="`+Ft(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),gt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ft(r)+`"][href="`+Ft(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),gt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ht(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);gt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ht(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),gt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=oe.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ht(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ht(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ht(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Ft(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),gt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Ft(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ft(n.href)+`"]`);if(r)return t.instance=r,gt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),gt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,gt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),gt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,gt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),gt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Jf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Yf=null;function Xf(e,t,n){if(Yf===null){var r=new Map,i=Yf=new Map;i.set(n,r)}else i=Yf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ut]||a[rt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Zf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,gt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),gt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&tp===0&&(tp=62500*Kd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sp={$$typeof:b,Provider:null,Consumer:null,_currentValue:ee,_currentValue2:ee,_threadCount:0};function cp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=Ke(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ke(0),this.hiddenUpdates=Ke(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ai(3,null,null,t),e.current=a,a.stateNode=e,t=oa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ba(a),e}function up(e){return e?(e=ri,e):ri}function dp(e,t,n,r,i,a){i=up(i),r.context===null?r.context=i:r.pendingContext=i,r=Ha(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ua(e,r,t),n!==null&&(Su(n,e,t),Wa(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ei(e,67108864);t!==null&&Su(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=bu();t=Qe(t);var n=ei(e,t);n!==null&&Su(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function vp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function yp(e,t,n,r){if(gp){var i=bp(r);if(i===null)Md(e,t,r,xp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=pt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ve(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Fe(o);s.entanglements[1]|=c,o&=~c}dd(a),!(Hl&6)&&(lu=Ce()+500,fd(0,!1))}}break;case 31:case 13:s=ei(a,2),s!==null&&Su(s,a,2),Du(),pp(a,2)}if(a=bp(r),a===null&&Md(e,t,r,xp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Md(e,t,r,null,n)}}function bp(e){return e=Qt(e),Sp(e)}var xp=null;function Sp(e){if(xp=null,e=ft(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xp=e,null}function Cp(e){switch(e){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(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var wp=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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 Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=pt(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=ft(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,tt(e.priority,function(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,tt(e.priority,function(){hp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Zt=r,n.target.dispatchEvent(r),Zt=null}else return t=pt(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){wp=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sp(r||n)===null)continue;break}var a=pt(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[it]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[it]||null)s=o.formAction;else if(Sp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dp(n,bu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Du(),t[at]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.8`)throw Error(i(527,Kp,`19.2.8`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Me=Jp.inject(qp),Ne=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lp(e,1,!1,null,null,n,r,null,o,s,c,Up),e[at]=t.current,Ad(e),new Wp(t)}})),La=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ia()}))(),B=e=>typeof e==`string`,Ra=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},za=e=>e==null?``:String(e),Ba=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Va=/###/g,Ha=e=>e&&e.includes(`###`)?e.replace(Va,`.`):e,Ua=e=>!e||B(e),Wa=(e,t,n)=>{let r=B(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(Ua(e))return{};let t=Ha(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ua(e)?{}:{obj:e,k:Ha(r[i])}},Ga=(e,t,n)=>{let{obj:r,k:i}=Wa(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Wa(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Wa(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Ka=(e,t,n,r)=>{let{obj:i,k:a}=Wa(e,t,Object);i[a]=i[a]||[],i[a].push(n)},qa=(e,t)=>{let{obj:n,k:r}=Wa(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Ja=(e,t,n)=>{let r=qa(e,n);return r===void 0?qa(t,n):r},Ya=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(Object.prototype.hasOwnProperty.call(e,r)?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ya(e[r],t[r],n):e[r]=t[r]);return e},Xa=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Za={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Qa=e=>B(e)?e.replace(/[&<>"'\/]/g,e=>Za[e]):e,$a=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},eo=[` `,`,`,`?`,`!`,`;`],to=new $a(20),no=(e,t,n)=>{t||=``,n||=``;let r=eo.filter(e=>!t.includes(e)&&!n.includes(e));if(r.length===0)return!0;let i=to.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},ro=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].includes(typeof t)&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},io=e=>e?.replace(/_/g,`-`),ao={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},oo=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||ao,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(e=e.map(e=>B(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g,` `):e),B(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},so=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}once(e,t){let n=(...r)=>{t(...r),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n(e,...t)})}},co=class extends so{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.includes(`.`)?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):B(n)&&i?o.push(...n.split(i)):o.push(n)));let s=qa(this.data,o);return!s&&!t&&!n&&e.includes(`.`)&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!B(n)?s:ro(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.includes(`.`)&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ga(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)(B(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(`.`)&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=qa(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ya(s,n,i):s={...s,...n},Ga(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},lo={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},uo=Symbol(`i18next/PATH_KEY`);function fo(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===uo?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function V(e,t){let{[uo]:n}=e(fo()),r=t?.keySeparator??`.`,i=t?.nsSeparator??`:`,a=t?.enableSelector===`strict`;if(n.length>1&&i){let e=t?.ns,o=a?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(o&&(a?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(r)}`}return n.join(r)}var po=e=>!B(e)&&typeof e!=`boolean`&&typeof e!=`number`,mo=class e extends so{constructor(e,t={}){super(),Ba([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=oo.create(`translator`),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=po(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.includes(n),o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!no(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:B(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.includes(a[0]))&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:B(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=V(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(e=>typeof e==`function`?V(e,{...this.options,...i}):String(e));let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!B(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=po(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&!_.includes(O)&&!(B(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;t[e]=x&&!m?this.translate(r,{...i,defaultValue:po(T)?T[e]:void 0,joinArrays:!1,ns:c}):this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&B(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,b&&!c?`${s}${this.pluralResolver.getSuffix(d,i.count,i)}`:s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=B(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!B(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=B(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=lo.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return B(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>typeof e==`function`?V(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!B(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(B(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!this.checkedLoadedFor[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(this.checkedLoadedFor[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.startsWith(i)&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.startsWith(i)&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!B(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r={...r,count:e.count}),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith(`defaultValue`)&&e[t]!==void 0)return!0;return!1}},ho=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oo.create(`languageUtils`)}getScriptPartFromCode(e){if(e=io(e),!e||!e.includes(`-`))return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=io(e),!e||!e.includes(`-`))return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(B(e)&&e.includes(`-`)){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>e===r?!0:!e.includes(`-`)&&!r.includes(`-`)?!1:!!(e.includes(`-`)&&!r.includes(`-`)&&e.slice(0,e.indexOf(`-`))===r||e.startsWith(r)&&r.length>1))}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),B(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return B(e)&&(e.includes(`-`)||e.includes(`_`))?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):B(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.includes(e)||i(this.formatLanguageCode(e))}),r}},go={zero:0,one:1,two:2,few:3,many:4,other:5},_o={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vo=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=oo.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=io(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(typeof Intl>`u`)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_o;if(!e.match(/-|_/))return _o;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>go[e]-go[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yo=(e,t,n,r=`.`,i=!0)=>{let a=Ja(e,t,n);return!a&&i&&B(n)&&(a=ro(e,n,r),a===void 0&&(a=ro(t,n,r))),a},bo=e=>e.replace(/\$/g,`$$$$`),xo=class{constructor(e={}){this.logger=oo.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Qa:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?Xa(i):a||`{{`,this.suffix=o?Xa(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u?Xa(u):`-`,this.unescapeSuffix=this.unescapePrefix?``:l?Xa(l):``,this.nestingPrefix=d?Xa(d):f||Xa(`$t(`),this.nestingSuffix=p?Xa(p):m||Xa(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(!e.includes(this.formatSeparator)){let i=yo(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yo(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&typeof e==`string`&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=B(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!B(a)&&!this.useRawValueToEscape&&(a=za(a));let s=t.safeValue(a);if(e=e.replace(i[0],bo(s)),u?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let r=e.split(RegExp(`${Xa(n)}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||(s?.length??0)%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.includes(this.prefix)&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!B(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/s.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!B(i))return i;B(i)||(i=za(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},So=e=>{let t=e.toLowerCase().trim(),n={};if(e.includes(`(`)){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].slice(0,-1);t===`currency`&&!i.includes(`:`)?n.currency||=i.trim():t===`relativetime`&&!i.includes(`:`)?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},Co=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(io(r),i),t[o]=s),s(n)}},wo=e=>(t,n,r)=>e(io(n),r)(t),To=class{constructor(e={}){this.logger=oo.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?Co:wo;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Co(t)}format(e,t,n,r={}){if(!t||e==null)return e;let i=t.split(this.formatSeparator),a=[];for(let e=0;e<i.length;e++){let t=i[e];for(;t.indexOf(`(`)>-1&&!t.includes(`)`)&&e+1<i.length;)t=`${t}${this.formatSeparator}${i[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:i,formatOptions:a}=So(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},Eo=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},Do=class extends so{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=oo.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Ka(n.loaded,[i],a),Eo(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read(e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();B(e)&&(e=this.languageUtils.toResolveHierarchy(e)),B(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},Oo=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),ko=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes(`cimode`)&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),Ao=()=>{},jo=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},Mo=class e extends so{constructor(e={},t){if(super(),this.options=ko(e),this.services={},this.logger=oo,this.modules={external:[]},jo(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&(B(e.ns)?e.defaultNS=e.ns:e.ns.includes(`translation`)||(e.defaultNS=e.ns[0]));let n=Oo();this.options={...n,...this.options,...ko(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?oo.init(r(this.modules.logger),this.options):oo.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:To;let t=new ho(this.options);this.store=new co(this.options.resources,this.options);let n=this.services;n.logger=oo,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new vo(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=r(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new xo(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new Do(r(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=r(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=r(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new mo(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=Ao,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=Ra(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=Ao){let n=t,r=B(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=Ra();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=Ao,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&lo.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&![`cimode`,`dev`].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(![`cimode`,`dev`].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=Ra();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=B(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(B(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n,r){let i=r?.scopeNs,a=(e,t,...r)=>{let o;o=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(r)),o.lng=o.lng||a.lng,o.lngs=o.lngs||a.lngs;let s=o.ns!==void 0&&o.ns!==null;o.ns=o.ns||a.ns,o.keyPrefix!==``&&(o.keyPrefix=o.keyPrefix||n||a.keyPrefix);let c={...this.options,...o};Array.isArray(i)&&!s&&(c.ns=i),typeof o.keyPrefix==`function`&&(o.keyPrefix=V(o.keyPrefix,c));let l=this.options.keySeparator||`.`,u;return o.keyPrefix&&Array.isArray(e)?u=e.map(e=>(typeof e==`function`&&(e=V(e,c)),`${o.keyPrefix}${l}${e}`)):(typeof e==`function`&&(e=V(e,c)),u=o.keyPrefix?`${o.keyPrefix}${l}${e}`:e),this.t(u,o)};return B(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=Ra();return this.options.ns?(B(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=Ra();B(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>!r.includes(e)&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new ho(Oo());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.includes(n.getLanguagePartFromCode(e))||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=Ao){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new co(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...Oo().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new xo(n)}return a.translator=new mo(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();Mo.createInstance,Mo.dir,Mo.init,Mo.loadResources,Mo.reloadResources,Mo.use,Mo.changeLanguage,Mo.getFixedT,Mo.t,Mo.exists,Mo.setDefaultNamespace,Mo.hasLoadedNamespace,Mo.loadNamespaces,Mo.loadLanguages;var No=(e,t,n,r)=>{let i=[n,{code:t,...r||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,`warn`,`react-i18next::`,!0);Bo(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},Po={},Fo=(e,t,n,r)=>{Bo(n)&&Po[n]||(Bo(n)&&(Po[n]=new Date),No(e,t,n,r))},Io=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Lo=(e,t,n)=>{e.loadNamespaces(t,Io(e,n))},Ro=(e,t,n,r)=>{if(Bo(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Lo(e,n,r);n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,Io(e,r))},zo=(e,t,n={})=>!t.languages||!t.languages.length?(Fo(t,`NO_LANGUAGES`,`i18n.languages were undefined or empty`,{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}),Bo=e=>typeof e==`string`,Vo=e=>typeof e==`object`&&!!e,Ho=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Uo={"&":`&`,"&":`&`,"<":`<`,"<":`<`,">":`>`,">":`>`,"'":`'`,"'":`'`,""":`"`,""":`"`," ":` `," ":` `,"©":`©`,"©":`©`,"®":`®`,"®":`®`,"…":`…`,"…":`…`,"/":`/`,"/":`/`},Wo=e=>Uo[e],Go={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(Ho,Wo),transDefaultProps:void 0},Ko=(e={})=>{Go={...Go,...e}},qo=()=>Go,Jo,Yo=e=>{Jo=e},Xo=()=>Jo,Zo={type:`3rdParty`,init(e){Ko(e.options.react),Yo(e)}},Qo=(0,R.createContext)(),$o=class{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}},es=Ni(),ts={t:(e,t)=>{if(Bo(t))return t;if(Vo(t)&&Bo(t.defaultValue))return t.defaultValue;if(typeof e==`function`)return``;if(Array.isArray(e)){let t=e[e.length-1];return typeof t==`function`?``:t}return e},ready:!1},ns=()=>()=>{},rs=(e,t={})=>{let{i18n:n}=t,{i18n:r,defaultNS:i}=(0,R.useContext)(Qo)||{},a=n||r||Xo();a&&!a.reportNamespaces&&(a.reportNamespaces=new $o),a||Fo(a,`NO_I18NEXT_INSTANCE`,`useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.`);let o=(0,R.useMemo)(()=>({...qo(),...a?.options?.react,...t}),[a,t]),{useSuspense:s,keyPrefix:c}=o,l=e||i||a?.options?.defaultNS,u=Bo(l)?[l]:l||[`translation`],d=(0,R.useMemo)(()=>u,u);a?.reportNamespaces?.addUsedNamespaces?.(d);let f=(0,R.useRef)(0),p=(0,R.useCallback)(e=>{if(!a)return ns;let{bindI18n:t,bindI18nStore:n}=o,r=()=>{f.current+=1,e()};return t&&a.on(t,r),n&&a.store.on(n,r),()=>{t&&t.split(` `).forEach(e=>a.off(e,r)),n&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,o]),m=(0,R.useRef)(),h=(0,R.useCallback)(()=>{if(!a)return ts;let e=!!(a.isInitialized||a.initializedStoreOnce)&&d.every(e=>zo(e,a,o)),n=t.lng||a.language,r=f.current,i=m.current;if(i&&i.ready===e&&i.lng===n&&i.keyPrefix===c&&i.revision===r)return i;let s={t:a.getFixedT(n,o.nsMode===`fallback`?d:d[0],c,{scopeNs:d}),ready:e,lng:n,keyPrefix:c,revision:r};return m.current=s,s},[a,d,c,o,t.lng]),[g,_]=(0,R.useState)(0),{t:v,ready:y}=(0,es.useSyncExternalStore)(p,h,h);(0,R.useEffect)(()=>{if(a&&!y&&!s){let e=()=>_(e=>e+1);t.lng?Ro(a,t.lng,d,e):Lo(a,d,e)}},[a,t.lng,d,y,s,g]);let b=a||{},x=(0,R.useRef)(null),S=(0,R.useRef)(),C=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let n=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(n,`__original`))try{Object.defineProperty(n,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch{}return n},w=(0,R.useMemo)(()=>{let e=b,t=e?.language,n=e;e&&(x.current&&x.current.__original===e&&S.current===t?n=x.current:(n=C(e),x.current=n,S.current=t));let r=!y&&!s?(...e)=>(Fo(a,`USE_T_BEFORE_READY`,`useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t.`),v(...e)):v,i=[r,n,y];return i.t=r,i.i18n=n,i.ready=y,i},[v,b,y,b.resolvedLanguage,b.language,b.languages]);if(a&&s&&!y){let e=!1;try{e=!1}catch{}throw e&&Fo(a,`SUSPENDED_WHILE_LOADING`,`useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook`),new Promise(e=>{let n=()=>e();t.lng?Ro(a,t.lng,d,n):Lo(a,d,n)})}return w};Mo.use(Zo).init({resources:{ru:{translation:{overview:`Обзор`,activity:`Журнал`,models:`Модели`,agents:`Агенты`,settings:`Настройка`,live:`Локально`,sessions:`Сессии`,calls:`Вызовы`,tokens:`Токены`,cost:`Стоимость`,usage:`Использование за 30 дней`,recent:`Последняя активность`,noData:`Данные появятся после первого запуска агентов Orchestra.`,export:`Экспорт`,exportFailed:`Не удалось экспортировать`,close:`Закрыть`,monthProjection:`Прогноз месяца`,monthToDate:`потрачено за месяц`,aheadOfPace:`впереди среднего темпа`,anomaly:`Всплеск расхода`,anomalyNote:`выше базовой линии`,storeTexts:`Хранить тексты промптов и ответов (для отладки)`,liveDisconnected:`Соединение потеряно — переподключаюсь…`,liveIdle:`Соединено · ожидание активности агентов…`}},en:{translation:{overview:`Overview`,activity:`Activity`,models:`Models`,agents:`Agents`,settings:`Settings`,live:`Local`,sessions:`Sessions`,calls:`Calls`,tokens:`Tokens`,cost:`Cost`,usage:`Usage over 30 days`,recent:`Recent activity`,noData:`Data will appear after Orchestra agents run for the first time.`,export:`Export`,exportFailed:`Export failed`,close:`Close`,monthProjection:`Month projection`,monthToDate:`spent this month`,aheadOfPace:`ahead of average pace`,anomaly:`Spend spike`,anomalyNote:`above baseline`,storeTexts:`Store prompt and reply texts (for debugging)`,liveDisconnected:`Connection lost — reconnecting…`,liveIdle:`Connected · waiting for agent activity…`}}},lng:localStorage.getItem(`orchestra-language`)===`en`?`en`:`ru`,fallbackLng:`ru`,interpolation:{escapeValue:!1}});var is=Mo,as={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`},os=(0,R.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:i=``,altIcon:a,showAlt:o=!1,icon:s,primaryColor:c,secondaryColor:l,disableSecondaryOpacity:u=!1,...d},f)=>{let p=n===void 0?void 0:r?Number(n)*24/Number(t):n,m=p===void 0?{}:{strokeWidth:p,stroke:`currentColor`},h={ref:f,...as,width:t,height:t,color:c||e,className:i,...m,...d},g=[...o&&a?a:s].sort(([,e],[,t])=>{let n=e.opacity!==void 0;return t.opacity===void 0?n?-1:0:1}).map(([t,n])=>{let r=n.opacity!==void 0,i=r&&!u?n.opacity:void 0,a=l?{...n.stroke===void 0?{fill:r?l:c||e}:{stroke:r?l:c||e}}:{};return(0,R.createElement)(t,{...n,...m,...a,opacity:i,key:n.key})});return(0,R.createElement)(`svg`,h,g)});os.displayName=`HugeiconsIcon`;var ss=[[`path`,{d:`M4.31802 19.682C3 18.364 3 16.2426 3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M7 14L9.79289 11.2071C10.1834 10.8166 10.8166 10.8166 11.2071 11.2071L12.7929 12.7929C13.1834 13.1834 13.8166 13.1834 14.2071 12.7929L17 10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],cs=[[`path`,{d:`M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ls=[[`path`,{d:`M3.5 9.5V18.5C3.5 18.9659 3.5 19.1989 3.57612 19.3827C3.67761 19.6277 3.87229 19.8224 4.11732 19.9239C4.30109 20 4.53406 20 5 20C5.46594 20 5.69891 20 5.88268 19.9239C6.12771 19.8224 6.32239 19.6277 6.42388 19.3827C6.5 19.1989 6.5 18.9659 6.5 18.5V9.5C6.5 9.03406 6.5 8.80109 6.42388 8.61732C6.32239 8.37229 6.12771 8.17761 5.88268 8.07612C5.69891 8 5.46594 8 5 8C4.53406 8 4.30109 8 4.11732 8.07612C3.87229 8.17761 3.67761 8.37229 3.57612 8.61732C3.5 8.80109 3.5 9.03406 3.5 9.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M10.5 5.5V18.4995C10.5 18.9654 10.5 19.1984 10.5761 19.3822C10.6776 19.6272 10.8723 19.8219 11.1173 19.9234C11.3011 19.9995 11.5341 19.9995 12 19.9995C12.4659 19.9995 12.6989 19.9995 12.8827 19.9234C13.1277 19.8219 13.3224 19.6272 13.4239 19.3822C13.5 19.1984 13.5 18.9654 13.5 18.4995V5.5C13.5 5.03406 13.5 4.80109 13.4239 4.61732C13.3224 4.37229 13.1277 4.17761 12.8827 4.07612C12.6989 4 12.4659 4 12 4C11.5341 4 11.3011 4 11.1173 4.07612C10.8723 4.17761 10.6776 4.37229 10.5761 4.61732C10.5 4.80109 10.5 5.03406 10.5 5.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M17.5 12.5V18.5C17.5 18.9659 17.5 19.1989 17.5761 19.3827C17.6776 19.6277 17.8723 19.8224 18.1173 19.9239C18.3011 20 18.5341 20 19 20C19.4659 20 19.6989 20 19.8827 19.9239C20.1277 19.8224 20.3224 19.6277 20.4239 19.3827C20.5 19.1989 20.5 18.9659 20.5 18.5V12.5C20.5 12.0341 20.5 11.8011 20.4239 11.6173C20.3224 11.3723 20.1277 11.1776 19.8827 11.0761C19.6989 11 19.4659 11 19 11C18.5341 11 18.3011 11 18.1173 11.0761C17.8723 11.1776 17.6776 11.3723 17.5761 11.6173C17.5 11.8011 17.5 12.0341 17.5 12.5Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],us=[[`path`,{d:`M14 18C18.4183 18 22 14.4183 22 10C22 5.58172 18.4183 2 14 2C9.58172 2 6 5.58172 6 10C6 14.4183 9.58172 18 14 18Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3.15657 11C2.42523 12.1176 2 13.4535 2 14.8888C2 18.8162 5.18378 22 9.11116 22C10.5465 22 11.8824 21.5748 13 20.8434`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M15.7712 8.20524C15.555 7.29311 14.4546 6.47004 13.1337 7.08579C11.8128 7.70154 11.603 9.68269 13.601 9.89315C14.5041 9.98828 15.0928 9.78277 15.6319 10.3641C16.1709 10.9454 16.2711 12.562 14.8931 12.9977C13.5151 13.4334 12.1506 12.7526 12.002 11.786M13.9862 6.00421V6.87325M13.9862 13.1318V14.0042`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]],ds=[[`path`,{d:`M13.6903 19.4567C13.5 18.9973 13.5 18.4149 13.5 17.25C13.5 16.0851 13.5 15.5027 13.6903 15.0433C13.944 14.4307 14.4307 13.944 15.0433 13.6903C15.5027 13.5 16.0851 13.5 17.25 13.5C18.4149 13.5 18.9973 13.5 19.4567 13.6903C20.0693 13.944 20.556 14.4307 20.8097 15.0433C21 15.5027 21 16.0851 21 17.25C21 18.4149 21 18.9973 20.8097 19.4567C20.556 20.0693 20.0693 20.556 19.4567 20.8097C18.9973 21 18.4149 21 17.25 21C16.0851 21 15.5027 21 15.0433 20.8097C14.4307 20.556 13.944 20.0693 13.6903 19.4567Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M13.6903 8.95671C13.5 8.49728 13.5 7.91485 13.5 6.75C13.5 5.58515 13.5 5.00272 13.6903 4.54329C13.944 3.93072 14.4307 3.44404 15.0433 3.1903C15.5027 3 16.0851 3 17.25 3C18.4149 3 18.9973 3 19.4567 3.1903C20.0693 3.44404 20.556 3.93072 20.8097 4.54329C21 5.00272 21 5.58515 21 6.75C21 7.91485 21 8.49728 20.8097 8.95671C20.556 9.56928 20.0693 10.056 19.4567 10.3097C18.9973 10.5 18.4149 10.5 17.25 10.5C16.0851 10.5 15.5027 10.5 15.0433 10.3097C14.4307 10.056 13.944 9.56928 13.6903 8.95671Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M3.1903 19.4567C3 18.9973 3 18.4149 3 17.25C3 16.0851 3 15.5027 3.1903 15.0433C3.44404 14.4307 3.93072 13.944 4.54329 13.6903C5.00272 13.5 5.58515 13.5 6.75 13.5C7.91485 13.5 8.49728 13.5 8.95671 13.6903C9.56928 13.944 10.056 14.4307 10.3097 15.0433C10.5 15.5027 10.5 16.0851 10.5 17.25C10.5 18.4149 10.5 18.9973 10.3097 19.4567C10.056 20.0693 9.56928 20.556 8.95671 20.8097C8.49728 21 7.91485 21 6.75 21C5.58515 21 5.00272 21 4.54329 20.8097C3.93072 20.556 3.44404 20.0693 3.1903 19.4567Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M3.1903 8.95671C3 8.49728 3 7.91485 3 6.75C3 5.58515 3 5.00272 3.1903 4.54329C3.44404 3.93072 3.93072 3.44404 4.54329 3.1903C5.00272 3 5.58515 3 6.75 3C7.91485 3 8.49728 3 8.95671 3.1903C9.56928 3.44404 10.056 3.93072 10.3097 4.54329C10.5 5.00272 10.5 5.58515 10.5 6.75C10.5 7.91485 10.5 8.49728 10.3097 8.95671C10.056 9.56928 9.56928 10.056 8.95671 10.3097C8.49728 10.5 7.91485 10.5 6.75 10.5C5.58515 10.5 5.00272 10.5 4.54329 10.3097C3.93072 10.056 3.44404 9.56928 3.1903 8.95671Z`,stroke:`currentColor`,strokeLinecap:`square`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}]],fs=[[`path`,{d:`M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M3 12H21`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M11 7.5L17 7.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}],[`path`,{d:`M7.125 7.5H7M7.25 7.5C7.25 7.63807 7.13807 7.75 7 7.75C6.86193 7.75 6.75 7.63807 6.75 7.5C6.75 7.36193 6.86193 7.25 7 7.25C7.13807 7.25 7.25 7.36193 7.25 7.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`3`}],[`path`,{d:`M11 16.5L17 16.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`4`}],[`path`,{d:`M7.125 16.5H7M7.25 16.5C7.25 16.6381 7.13807 16.75 7 16.75C6.86193 16.75 6.75 16.6381 6.75 16.5C6.75 16.3619 6.86193 16.25 7 16.25C7.13807 16.25 7.25 16.3619 7.25 16.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`5`}]],ps=[[`path`,{d:`M16.9504 12.1817C17.1981 12.814 16.5076 13.5726 15.1267 15.0899C13.6702 16.6902 12.9201 17.4904 12 17.5C11.0799 17.4904 10.3298 16.6902 8.87331 15.0899C7.49239 13.5726 6.80193 12.814 7.04964 12.1817C7.05868 12.1586 7.06851 12.1359 7.0791 12.1135C7.34928 11.542 8.24477 11.5029 10 11.5002V4.99998C10 4.53501 10 4.30253 10.0511 4.11179C10.1898 3.59414 10.5941 3.1898 11.1118 3.05111C11.3025 3 11.535 3 12 3C12.4649 3 12.6974 3 12.8882 3.05111C13.4058 3.1898 13.8102 3.59414 13.9489 4.11179C14 4.30253 14 4.53501 14 4.99998V11.5002C15.7552 11.5029 16.6507 11.542 16.9209 12.1135C16.9315 12.1359 16.9413 12.1586 16.9504 12.1817Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M5.00006 21H19.0001`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],ms=[[`path`,{d:`M7 8.37931H11.5M17 8.37931H14.5M11.5 8.37931H14.5M11.5 8.37931V7M14.5 8.37931C13.9725 10.2656 12.8679 12.0487 11.6071 13.6158M8.39286 17C9.41205 16.0628 10.5631 14.9134 11.6071 13.6158M11.6071 13.6158C10.9643 12.8621 10.0643 11.6426 9.80714 11.0909M11.6071 13.6158L13.5357 15.6207`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}]],hs=[[`path`,{d:`M21.5 14.0784C20.3003 14.7189 18.9301 15.0821 17.4751 15.0821C12.7491 15.0821 8.91792 11.2509 8.91792 6.52485C8.91792 5.06986 9.28105 3.69968 9.92163 2.5C5.66765 3.49698 2.5 7.31513 2.5 11.8731C2.5 17.1899 6.8101 21.5 12.1269 21.5C16.6849 21.5 20.503 18.3324 21.5 14.0784Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}]],gs=[[`path`,{d:`M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]],_s=[[`path`,{d:`M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}]],vs=[[`path`,{d:`M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M12 2C11.6227 2.33333 11.0945 3.2 12 4M12 20C12.3773 20.3333 12.9055 21.2 12 22M19.5 4.50271C18.9685 4.46982 17.9253 4.72293 18.0042 5.99847M5.49576 17.5C5.52865 18.0315 5.27555 19.0747 4 18.9958M5.00271 4.5C4.96979 5.03202 5.22315 6.0763 6.5 5.99729M18 17.5026C18.5315 17.4715 19.5747 17.7108 19.4958 18.9168M22 12C21.6667 11.6227 20.8 11.0945 20 12M4 11.5C3.66667 11.8773 2.8 12.4055 2 11.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`1.5`,key:`1`}]],ys=e=>e.type===`checkbox`,bs=e=>e.type===`file`,xs=e=>e instanceof Date,Ss=e=>e==null,Cs=e=>typeof e==`object`,ws=e=>!Ss(e)&&!Array.isArray(e)&&Cs(e)&&!xs(e),Ts=e=>ws(e)&&e.target?ys(e.target)?e.target.checked:bs(e.target)?e.target.files:e.target.value:e,Es=(e,t)=>t.split(`.`).some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join(`.`))),Ds=e=>{let t=e.constructor&&e.constructor.prototype;return ws(t)&&t.hasOwnProperty(`isPrototypeOf`)},Os=typeof window<`u`&&window.HTMLElement!==void 0&&typeof document<`u`;function ks(e){if(e instanceof Date)return new Date(e);let t=typeof FileList<`u`&&e instanceof FileList;if(Os&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(ws(e)&&Ds(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=ks(e[t]));return r}var As={BLUR:`blur`,FOCUS_OUT:`focusout`,CHANGE:`change`,SUBMIT:`submit`,TRIGGER:`trigger`,VALID:`valid`},js={onBlur:`onBlur`,onChange:`onChange`,onSubmit:`onSubmit`,onTouched:`onTouched`,all:`all`},Ms={max:`max`,min:`min`,maxLength:`maxLength`,minLength:`minLength`,pattern:`pattern`,required:`required`,validate:`validate`},Ns=`root`,Ps=[`__proto__`,`constructor`,`prototype`],Fs=/^\w*$/,Is=e=>Fs.test(e),Ls=e=>e===void 0,Rs=/[.[\]'"]/,zs=e=>e.split(Rs).filter(Boolean),H=(e,t,n)=>{if(!t||!ws(e))return n;let r=Is(t)?[t]:zs(t);if(r.some(e=>Ps.includes(e)))return n;let i=r.reduce((e,t)=>Ss(e)?void 0:e[t],e);return Ls(i)||i===e?Ls(e[t])?n:e[t]:i},Bs=e=>typeof e==`boolean`,Vs=e=>typeof e==`function`,Hs=(e,t,n)=>{let r=-1,i=Is(t)?[t]:zs(t),a=i.length,o=a-1;for(;++r<a;){let t=i[r],a=n;if(r!==o){let n=e[t];a=ws(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if(Ps.includes(t))return;e[t]=a,e=e[t]}},Us=R.createContext(null);Us.displayName=`HookFormControlContext`;var Ws=()=>R.useContext(Us),Gs=(e,t,n,r=!0)=>{let i={};for(let a in e)Object.defineProperty(i,a,{get:()=>{let i=a;return t._proxyFormState[i]!==js.all&&(t._proxyFormState[i]=!r||js.all),n&&(n[i]=!0),e[i]}});return i},Ks=Os?R.useLayoutEffect:R.useEffect,qs=e=>Ss(e)||!Cs(e),Js=(e,t)=>t.length===0&&!Array.isArray(e)&&!Ds(e);function Ys(e,t,n=new WeakMap){if(e===t)return!0;if(qs(e)||qs(t))return Object.is(e,t);if(xs(e)&&xs(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(Js(e,r)||Js(t,i))return Object.is(e,t);if(!r.length&&Array.isArray(e)!==Array.isArray(t))return!1;let a=n.get(e);if(a&&a.has(t))return!0;if(a)a.add(t);else{let r=new WeakSet;r.add(t),n.set(e,r)}for(let i of r){let r=e[i];if(!(i in t))return!1;if(i!==`ref`){let e=t[i];if(xs(r)&&xs(e)||(ws(r)||Array.isArray(r))&&(ws(e)||Array.isArray(e))?!Ys(r,e,n):!Object.is(r,e))return!1}}return!0}function Xs(){let e=R.useRef(!1),t=R.useRef(void 0);return{resyncIfNeeded:R.useCallback((n,r,i)=>{if(n&&e.current){let e=r();Ys(t.current,e)||i(e)}e.current=!0},[]),snapshot:R.useCallback((e,n)=>{e&&(t.current=ks(n()))},[])}}function Zs(e){let t=Ws(),{control:n=t,disabled:r,name:i,exact:a}=e||{},[o,s]=R.useState(()=>({...n._formState,defaultValues:n._defaultValues})),c=R.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),{resyncIfNeeded:l,snapshot:u}=Xs();return Ks(()=>{let e=()=>({...n._formState,defaultValues:n._defaultValues});l(!r,e,s);let t=n._subscribe({name:i,formState:c.current,exact:a,callback:e=>{!r&&s({...n._formState,...e,defaultValues:n._defaultValues})}});return()=>{t(),u(!r,e)}},[i,r,a,l,u]),R.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),R.useMemo(()=>Gs(o,n,c.current,!1),[o,n])}var Qs=e=>typeof e==`string`,$s=(e,t,n,r,i)=>Qs(e)?(r&&t.watch.add(e),H(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),H(n,e))):(r&&(t.watchAll=!0),n);function ec(e){let t=Ws(),{control:n=t,name:r,defaultValue:i,disabled:a,exact:o,compute:s}=e||{},c=R.useRef(i),l=R.useRef(s),u=R.useRef(void 0),d=R.useRef(n),f=R.useRef(r);l.current=s;let[p,m]=R.useState(()=>{let e=n._getWatch(r,c.current);return l.current?l.current(e):e}),h=R.useCallback(e=>{let t=$s(r,n._names,e||n._formValues,!1,c.current);return l.current?l.current(t):t},[n._formValues,n._names,r]),g=R.useCallback(e=>{if(!a){let t=$s(r,n._names,e||n._formValues,!1,c.current);if(l.current){let e=l.current(t);Ys(e,u.current)||(m(e),u.current=e)}else m(t)}},[n._formValues,n._names,a,r]),{resyncIfNeeded:_,snapshot:v}=Xs(),y=R.useRef(g);y.current=g;let b=R.useRef(h);b.current=h,Ks(()=>{d.current!==n||!Ys(f.current,r)?(d.current=n,f.current=r,y.current()):_(!a,()=>b.current(),e=>{m(e),u.current=e});let e=n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y.current(e.values)}});return()=>{e(),v(!a,()=>b.current())}},[n,o,r,a,_,v]),R.useEffect(()=>n._removeUnmounted());let x=d.current!==n,S=f.current,C=R.useMemo(()=>{if(a)return null;let e=!x&&!Ys(S,r);return x||e?h():null},[a,x,r,S,h]);return C===null?p:C}function tc(e){let t=Ws(),{name:n,disabled:r,control:i=t,shouldUnregister:a,defaultValue:o,exact:s=!0}=e,c=Es(i._names.array,n),l=ec({control:i,name:n,defaultValue:R.useMemo(()=>H(i._formValues,n,H(i._defaultValues,n,o)),[i,n,o]),exact:s}),u=Zs({control:i,name:n,exact:s}),d=R.useRef(e),f=R.useRef(null),p=R.useRef(i.register(n,{...e.rules,value:l,...Bs(e.disabled)?{disabled:e.disabled}:{}}));d.current=e;let m=R.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!H(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!H(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!H(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!H(u.validatingFields,n)},error:{enumerable:!0,get:()=>H(u.errors,n)}}),[u,n]),h=R.useCallback(e=>{let t=Ts(e);return H(i._fields,n)||(p.current=i.register(n,{...d.current.rules,value:t})),p.current.onChange({target:{value:Ts(e),name:n},type:As.CHANGE})},[n,i]),g=R.useCallback(()=>p.current.onBlur({target:{value:H(i._formValues,n),name:n},type:As.BLUR}),[n,i._formValues]),_=R.useCallback(e=>{e&&(f.current={focus:()=>Vs(e.focus)&&e.focus(),select:()=>Vs(e.select)&&e.select(),setCustomValidity:t=>Vs(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>Vs(e.reportValidity)&&e.reportValidity()});let t=H(i._fields,n);t&&t._f&&e&&(t._f.ref=f.current)},[i._fields,n]),v=R.useMemo(()=>({name:n,value:l,...Bs(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:h,onBlur:g,ref:_}),[n,r,u.disabled,h,g,_,l]);return R.useEffect(()=>{let e=i._options.shouldUnregister||a;p.current=i.register(n,{...d.current.rules,...Bs(d.current.disabled)?{disabled:d.current.disabled}:{}});let t=(e,t)=>{let n=H(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){let e=ks(H(a?i._defaultValues:i._options.values||i._defaultValues,n,H(i._options.defaultValues,n,d.current.defaultValue)));Hs(i._defaultValues,n,e),Ls(H(i._formValues,n))&&Hs(i._formValues,n,e)}if(!c&&i.register(n),f.current){let e=H(i._fields,n);e&&e._f&&(e._f.ref=f.current)}return()=>{(c?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}},[n,i,c,a]),R.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),R.useMemo(()=>({field:v,formState:u,fieldState:m}),[v,u,m])}var nc=e=>e.render(tc(e)),rc=e=>({isOnSubmit:!e||e===js.onSubmit,isOnBlur:e===js.onBlur,isOnChange:e===js.onChange,isOnAll:e===js.all,isOnTouch:e===js.onTouched}),ic=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(let n of t.watch)if(e.startsWith(n)&&e.charAt(n.length)===`.`)return!0;return!1},ac=(e,t,n,r)=>{for(let i of n||Object.keys(e)){if(i===`_f`)continue;let a=n?H(e,i):e[i];if(a){let{_f:e}=a;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r||e.ref&&t(e.ref,e.name)&&!r)return!0;if(ac(a,t))break}else if((ws(a)||Array.isArray(a))&&ac(a,t))break}}},oc=(e,t,n)=>{let r=H(e,n),i=Array.isArray(r)?r:[];return Hs(i,Ns,t[n]),Hs(e,n,i),e},sc=e=>ws(e)&&!Object.keys(e).length,cc=e=>{if(!Os)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},lc=e=>e.type===`radio`,uc=e=>e instanceof RegExp,dc=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},fc={value:!1,isValid:!1},pc={value:!0,isValid:!0},mc=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ls(e[0].attributes.value)?Ls(e[0].value)||e[0].value===``?pc:{value:e[0].value,isValid:!0}:pc:fc}return fc},hc={isValid:!1,value:null},gc=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,hc):hc;function _c(e,t,n=`validate`){if(Qs(e)||Array.isArray(e)&&e.every(Qs)||Bs(e)&&!e)return{type:n,message:Qs(e)?e:``,ref:t}}var vc=e=>ws(e)&&!uc(e)?e:{value:e,message:``},yc=async(e,t,n,r,i,a)=>{let{ref:o,refs:s,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:m,name:h,valueAsNumber:g,mount:_}=e._f,v=H(n,h);if(!_||t.has(h))return{};let y=s?s[0]:o,b=e=>{if(i&&y.reportValidity){let t=Bs(e)?``:e||``;s?s.forEach(e=>e.setCustomValidity(t)):y.setCustomValidity(t),y.reportValidity()}},x={},S=lc(o),C=ys(o),w=S||C,T=(g||bs(o))&&Ls(o.value)&&Ls(v)||cc(o)&&o.value===``||v===``||Array.isArray(v)&&!v.length,E=dc.bind(null,h,r,x),D=(e,t,n,r=Ms.maxLength,i=Ms.minLength)=>{let a=e?t:n;x[h]={type:e?r:i,message:a,ref:o,...E(e?r:i,a)}};if(a?!Array.isArray(v)||!v.length:c&&(!w&&(T||Ss(v))||Bs(v)&&!v||C&&!mc(s).isValid||S&&!gc(s).isValid)){let{value:e,message:t}=Qs(c)?{value:!!c,message:c}:vc(c);if(e&&(x[h]={type:Ms.required,message:t,ref:y,...E(Ms.required,t)},!r))return b(t),x}if(!T&&(!Ss(d)||!Ss(f))){let e,t,n=vc(f),i=vc(d);if(!Ss(v)&&!xs(v)&&!isNaN(v)){let r=o.valueAsNumber||v&&+v;Ss(n.value)||(e=r>n.value),Ss(i.value)||(t=r<i.value)}else{let r=o.valueAsDate||new Date(v),a=e=>new Date(new Date().toDateString()+` `+e),s=o.type==`time`,c=o.type==`week`;Qs(n.value)&&v&&(e=s?a(v)>a(n.value):c?v>n.value:r>new Date(n.value)),Qs(i.value)&&v&&(t=s?a(v)<a(i.value):c?v<i.value:r<new Date(i.value))}if((e||t)&&(D(!!e,n.message,i.message,Ms.max,Ms.min),!r))return b(x[h].message),x}if((l||u)&&!T&&(Qs(v)||a&&Array.isArray(v))){let e=vc(l),t=vc(u),n=!Ss(e.value)&&v.length>+e.value,i=!Ss(t.value)&&v.length<+t.value;if((n||i)&&(D(n,e.message,t.message),!r))return b(x[h].message),x}if(p&&!T&&Qs(v)){let{value:e,message:t}=vc(p);if(uc(e)&&!v.match(e)&&(x[h]={type:Ms.pattern,message:t,ref:o,...E(Ms.pattern,t)},!r))return b(t),x}if(m){if(Vs(m)){let e=_c(await m(v,n),y);if(e&&(x[h]={...e,...E(Ms.validate,e.message)},!r))return b(e.message),x}else if(ws(m)){let e={};for(let t in m){if(!sc(e)&&!r)break;let i=_c(await m[t](v,n),y,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(x[h]=e))}if(!sc(e)&&(x[h]={ref:y,...e},!r))return x}}return b(!0),x},bc=e=>Array.isArray(e)?e:[e],xc=e=>Array.isArray(e)?e.filter(Boolean):[];function Sc(e,t){let n=t.length-1,r=0;for(;r<n;){if(Ss(e)){e=void 0;break}e=e[t[r]],r++}return e}function Cc(e){for(let t in e)if(e.hasOwnProperty(t)&&!Ls(e[t]))return!1;return!0}function wc(e,t){if(Qs(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let n=Array.isArray(t)?t:Is(t)?[t]:zs(t);if(n.some(e=>Ps.includes(String(e))))return e;let r=n.length===1?e:Sc(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(ws(r)&&sc(r)||Array.isArray(r)&&Cc(r))&&wc(e,n.slice(0,-1)),e}var Tc=e=>{let t={};for(let n of Object.keys(e))if(Cs(e[n])&&e[n]!==null&&!xs(e[n])){let r=Tc(e[n]);for(let e of Object.keys(r))t[`${n}.${e}`]=r[e]}else t[n]=e[n];return t},Ec=R.createContext(null);Ec.displayName=`HookFormContext`;var Dc=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}};function Oc(e,t){let n={};for(let r in e)if(e.hasOwnProperty(r)){let i=e[r],a=t[r];if(i&&ws(i)&&a){let e=Oc(i,a);ws(e)&&(n[r]=e)}else e[r]&&(n[r]=a)}return n}var kc=e=>e.type===`select-multiple`,Ac=e=>lc(e)||ys(e),jc=e=>cc(e)&&e.isConnected;function Mc(e){return Array.isArray(e)||ws(e)}function Nc(e,t,n=``,r=[]){for(let i in e){let a=n?`${n}.${i}`:i,o=e[i];Mc(o)&&Mc(H(t,a))?Nc(o,t,a,r):r.push(a)}return r}var Pc=e=>{for(let t in e)if(Vs(e[t]))return!0;return!1};function Fc(e){return Array.isArray(e)||ws(e)&&!Pc(e)}function Ic(e){return!!(e&&`_f`in e)}function Lc(e){return Array.isArray(e)?!e.some(e=>!Ls(e)):!Object.keys(e).length}function Rc(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function zc(e,t={},n){for(let r in e){let i=e[r],a=n&&n[r];Fc(i)&&(!Array.isArray(i)||!Ic(a))?(t[r]=Array.isArray(i)?[]:{},zc(i,t[r],a),Lc(t[r])&&Rc(t,r)):Ls(i)||(t[r]=!0)}return t}function Bc(e,t,n,r){n||=zc(t,{},r);for(let i in e){let a=e[i],o=r&&r[i];Fc(a)&&(!Array.isArray(a)||!Ic(o))?(Ls(t)||qs(n[i])?n[i]=zc(a,Array.isArray(a)?[]:{},o):Bc(a,Ss(t)?{}:t[i],n[i],o),Lc(n[i])&&Rc(n,i)):Ys(a,t[i])?Rc(n,i):n[i]=!0}return n}var Vc=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ls(e)?e:t?e===``?NaN:e&&+e:n&&Qs(e)?new Date(e):r?r(e):e;function Hc(e){let t=e.ref;return bs(t)?t.files:lc(t)?gc(e.refs).value:kc(t)?[...t.selectedOptions].map(({value:e})=>e):ys(t)?mc(e.refs).value:Vc(t.value,e)}var Uc=(e,t,n,r)=>{let i={};for(let n of e){let e=H(t,n);e&&Hs(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Wc=e=>Ls(e)?e:uc(e)?e.source:ws(e)?uc(e.value)?e.value.source:e.value:e,Gc=`AsyncFunction`,Kc=e=>{if(!e||!e.validate)return!1;if(Vs(e.validate))return e.validate.constructor.name===Gc;if(ws(e.validate)){for(let t in e.validate)if(e.validate[t].constructor.name===Gc)return!0}return!1},qc=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Jc(e,t,n){let r=H(e,n);if(r||Is(n))return{error:r,name:n};let i=n.split(`.`);for(;i.length;){let r=i.join(`.`),a=H(t,r),o=H(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var Yc=(e,t,n,r)=>{n(e);let i=Object.keys(e).filter(e=>e!==`name`);return!i.length||r&&i.length>=Object.keys(t).length||i.find(e=>t[e]===(!r||js.all))},Xc=(e,t,n)=>!e||!t||e===t||bc(e).some(e=>e&&(n?e===t||e.startsWith(t+`.`):e.startsWith(t)||t.startsWith(e))),Zc=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e,Qc=(e,t)=>{let n=H(e,t);!xc(n).length&&!n?.root&&wc(e,t)},$c={mode:js.onSubmit,reValidateMode:js.onChange,shouldFocusError:!0},el=`form`,tl=(e,t)=>{for(let n in e)n in t||delete e[n];Object.assign(e,t)},nl={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function rl(e={}){let t={...$c,...e},n={...ks(nl),isLoading:Vs(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},r={},i=(ws(t.defaultValues)||ws(t.values))&&ks(t.defaultValues||t.values)||{},a=t.shouldUnregister?{}:ks(i),o={action:!1,actionArrayLengths:new Map,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},c={},l={},u=0,d=rc(t.mode),f=rc(t.reValidateMode),p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},m={...p},h={...m},g={array:Dc(),state:Dc()},_=0,v=t.criteriaMode===js.all,y=(e,t)=>n=>{clearTimeout(l[e]),l[e]=setTimeout(t,n)},b=async e=>{if(!o.keepIsValid&&!t.disabled&&(m.isValid||h.isValid||e)){let e=++_,i;t.resolver?(i=sc((await j()).errors),e===_&&x()):i=await P({fields:r,onlyCheckValid:!0,eventType:As.VALID}),e===_&&i!==n.isValid&&g.state.next({isValid:i})}},x=(e,r)=>{!t.disabled&&(m.isValidating||m.validatingFields||h.isValidating||h.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(r?Hs(n.validatingFields,e,r):wc(n.validatingFields,e))}),g.state.next({validatingFields:n.validatingFields,isValidating:!sc(n.validatingFields)}))},S=()=>{n.dirtyFields=Bc(i,a,void 0,r)},C=(e,i=[],s,c,l=!0,u=!0)=>{if(c&&s&&!t.disabled){if(o.action=!0,!o.actionArrayLengths.has(e)){let t=H(r,e);o.actionArrayLengths.set(e,Array.isArray(t)?t.length:0)}if(u&&Array.isArray(H(r,e))){let t=s(H(r,e),c.argA,c.argB);l&&Hs(r,e,t)}if(u&&Array.isArray(H(n.errors,e))){let t=H(n.errors,e),r=t.root,i=s(t,c.argA,c.argB)||t;r&&(i.root=r),l&&Hs(n.errors,e,i),Qc(n.errors,e)}if((m.touchedFields||h.touchedFields)&&u&&Array.isArray(H(n.touchedFields,e))){let t=s(H(n.touchedFields,e),c.argA,c.argB);l&&Hs(n.touchedFields,e,t)}(m.dirtyFields||h.dirtyFields)&&S(),g.state.next({name:e,isDirty:F(e,i),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Hs(a,e,i)},w=(e,t)=>{Hs(n.errors,e,t),n.errors={...n.errors},g.state.next({errors:n.errors})},T=e=>{n.errors=e,g.state.next({errors:n.errors,isValid:!1})},E=e=>{let t=Is(e)?[e]:zs(e),n=a,r=i;for(let e=0;e<t.length-1;e++){let i=t[e];if(n=Ss(n)?n:n[i],r=Ss(r)?r:r[i],n===null&&r!==null)return!0}return!1},D=e=>{if(!o.actionArrayLengths.size)return!1;let t=Is(e)?[e]:zs(e),n=a,r=``,i=-1,s=0;for(let e=0;e<t.length;e++){if(Ss(n))return!1;let a=t[e];if(r=r?`${r}.${a}`:a,Array.isArray(n)&&+a>=n.length)return i===-1?!1:e!==i||+a<s;o.actionArrayLengths.has(r)&&(i=e+1,s=o.actionArrayLengths.get(r)),n=n[a]}return!1},O=(t,c,l,u)=>{let d=H(r,t);if(d){if(E(t)||D(t))return;let r=Ls(H(a,t)),f=H(a,t,Ls(l)?H(i,t):l);Ls(f)||u&&u.defaultChecked||c?Hs(a,t,c?f:Hc(d._f)):re(t,f),o.mount&&!o.action&&(b(),r&&n.isDirty&&(m.isDirty||h.isDirty)&&(F()||(n.isDirty=!1,g.state.next({...n}))),e.shouldUnregister&&r&&!Ls(H(a,t))&&ic(t,s)&&(o.watch=!0))}},k=(e,o,s,c,l)=>{let u=!1,d=!1,f={name:e};if(!t.disabled||c===!0){if(!s||c){let t=Ys(H(i,e),o);(m.isDirty||h.isDirty)&&(d=n.isDirty,n.isDirty=f.isDirty=!t||F(),u=d!==f.isDirty),d=!!H(n.dirtyFields,e),t===n.isDirty?t?wc(n.dirtyFields,e):Hs(n.dirtyFields,e,!0):tl(n.dirtyFields,Bc(i,a,void 0,r)),f.dirtyFields=n.dirtyFields,u||=(m.dirtyFields||h.dirtyFields)&&d!==!t}if(s){let t=H(n.touchedFields,e);t||(Hs(n.touchedFields,e,s),f.touchedFields=n.touchedFields,u||=(m.touchedFields||h.touchedFields)&&t!==s)}u&&l&&g.state.next(f)}return u?f:{}},A=(e,r,i,a)=>{let o=H(n.errors,e),s=(m.isValid||h.isValid)&&Bs(r)&&n.isValid!==r;if(t.delayError&&i?(c[e]=y(e,()=>w(e,i)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e],i?Hs(n.errors,e,i):wc(n.errors,e),n.errors={...n.errors}),(i?!Ys(o,i):o)||!sc(a)||s){let t={...a,...s&&Bs(r)?{isValid:r}:{},errors:n.errors,name:e};n={...n,...t},g.state.next(t)}},j=async e=>(x(e,!0),await t.resolver(a,t.context,Uc(e||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),M=async e=>{let{errors:t}=await j(e);if(x(e),e){for(let r of e){let e=H(t,r);e?s.array.has(r)&&ws(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?oc(n.errors,{[r]:e},r):Hs(n.errors,r,e):wc(n.errors,r)}n.errors={...n.errors}}else n.errors=t;return t},N=async({name:t,eventType:r})=>{if(e.validate){let i=await e.validate({formValues:a,formState:n,name:t,eventType:r});if(ws(i))for(let e in i){let t=i[e];t&&fe(`${el}.${e}`,{message:Qs(t.message)?t.message:``,type:t.type||Ms.validate})}else Qs(i)||!i?fe(el,{message:i||``,type:Ms.validate}):de(el);return i}return!0},P=async({fields:r,onlyCheckValid:i,name:o,eventType:c,context:l={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(l.runRootValidation=!0,!await N({name:o,eventType:c})&&(l.valid=!1,i)))return l.valid;for(let o in r){let u=r[o];if(u){let{_f:r,...d}=u;if(r){let o=s.array.has(r.name),c=u._f&&Kc(u._f),d=m.validatingFields||m.isValidating||h.validatingFields||h.isValidating;c&&d&&x([r.name],!0);let f=await yc(u,s.disabled,a,v,t.shouldUseNativeValidation&&!i,o);if(c&&d&&x([r.name]),f[r.name]&&(l.valid=!1,i)||(!i&&(H(f,r.name)?o?oc(n.errors,f,r.name):Hs(n.errors,r.name,f[r.name]):wc(n.errors,r.name)),e.shouldUseNativeValidation&&f[r.name]))break}!sc(d)&&await P({context:l,onlyCheckValid:i,fields:d,name:o,eventType:c})}}return l.valid},ee=()=>{for(let e of s.unMount){let t=H(r,e);t&&(t._f.refs?t._f.refs.every(e=>!jc(e)):!jc(t._f.ref))&&ge(e)}s.unMount=new Set},F=(e,t)=>(e&&t&&Hs(a,e,t),!Ys(o.mount?a:i,i)),te=(e,t,n)=>$s(e,s,{...o.mount?a:Ls(t)||Qs(e)?i:t},n,t),ne=e=>xc(H(o.mount?a:i,e,t.shouldUnregister?H(i,e,[]):[])),re=(e,t,n={},i=!1,o=!1,s=!1)=>{let c=H(r,e),l=t;if(c){let n=c._f;n&&(!n.disabled&&Hs(a,e,Vc(t,n)),l=cc(n.ref)&&Ss(t)?``:t,kc(n.ref)?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?ys(n.ref)?n.refs.forEach(e=>{(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(l)?!!l.find(t=>t===e.value):l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):bs(n.ref)?n.ref.value=``:(n.ref.value=l,!n.ref.type&&!o&&!s&&g.state.next({name:e,values:i?a:ks(a)})))}(n.shouldDirty||n.shouldTouch)&&k(e,l,n.shouldTouch,n.shouldDirty,!o),n.shouldValidate&&ce(e,{delayError:n.delayError})},I=(e,t,n,i=!1,o=!1,c=!1)=>{s.array.has(e)&&g.array.next({name:e,values:i?a:ks(a)});for(let a in t){if(!t.hasOwnProperty(a))return;let l=t[a],u=e+`.`+a,d=H(r,u);(s.array.has(e)||ws(l)||d&&!d._f)&&!xs(l)?I(u,l,n,i,o,c):re(u,l,n,i,o,c)}},ie=(e,t,i,c,l=!1)=>{let u=H(r,e),d=s.array.has(e),f=c?t:ks(t),p=Ys(H(a,e),f);if(p||Hs(a,e,f),d)g.array.next({name:e,values:c?a:ks(a)}),(m.isDirty||m.dirtyFields||h.isDirty||h.dirtyFields)&&i.shouldDirty&&(S(),l||g.state.next({name:e,dirtyFields:n.dirtyFields,isDirty:F(e,f)}));else{let t=Array.isArray(f)&&!f.length||sc(f),n=!p&&!l;!u||u._f||Ss(f)||t?re(e,f,i,c,l,n):I(e,f,i,c,l,n)}if(!p&&!l){let t=ic(e,s),r=c?a:ks(a);g.state.next({...t&&n,name:o.mount||t?e:void 0,values:r})}},ae=(e,t,n={})=>ie(e,t,n,!1),oe=(e,t={})=>{let r=Vs(e)?e(a):e;if(!Ys(a,r)){a={...a,...r};let e=Tc(r);for(let n of s.mount)n in e&&ie(n,e[n],t,!0,!0);g.state.next({...n,name:void 0,type:void 0,...u?{values:a}:{}}),t.shouldValidate&&b()}},se=async i=>{o.mount=!0;let l=i.target,p=l.name,_=!0,y=H(r,p),S=e=>{_=Number.isNaN(e)||xs(e)&&isNaN(e.getTime())||Ys(e,H(a,p,e))};if(y){let o,C,w=l.type?Hc(y._f):Ts(i),T=i.type===As.BLUR||i.type===As.FOCUS_OUT,E=!qc(y._f)&&!e.validate&&!t.resolver&&!H(n.errors,p)&&!y._f.deps,D=E||Zc(T,H(n.touchedFields,p),n.isSubmitted,f,d),O=ic(p,s,T);if(Hs(a,p,w),T){if(!l||!l.readOnly){y._f.onBlur&&y._f.onBlur(i);let e=c[p];e&&e(0)}}else y._f.onChange&&y._f.onChange(i);let M=k(p,w,T),ee=!sc(M)||O;if(!T&&g.state.next({name:p,type:i.type,...u?{values:ks(a)}:{}}),D)return(!E||!n.isValid)&&(m.isValid||h.isValid)&&(t.mode===`onBlur`?T&&b():T||b()),ee&&g.state.next({name:p,...O?{}:M});if(!t.resolver&&e.validate&&await N({name:p,eventType:i.type}),!T&&O&&g.state.next({...n}),t.resolver){let{errors:e}=await j([p]);if(x([p]),S(w),!_){!sc(M)&&g.state.next(M);return}let t=Jc(n.errors,r,p),i=Jc(e,r,t.name||p);o=i.error,p=i.name,C=sc(e)}else x([p],!0),o=(await yc(y,s.disabled,a,v,t.shouldUseNativeValidation))[p],x([p]),S(w),_&&(o?C=!1:(m.isValid||h.isValid)&&(C=await P({fields:r,onlyCheckValid:!0,name:p,eventType:i.type})));_&&(y._f.deps&&(!Array.isArray(y._f.deps)||y._f.deps.length>0)&&ce(y._f.deps),A(p,C,o,M))}},L=(e,t)=>{if(H(n.errors,t)&&e.focus)return e.focus(),1},ce=async(e,i={})=>{let a,o,u=bc(e);if(t.resolver){let t=await M(Ls(e)?e:u);a=sc(t),o=e?!u.some(e=>H(t,e)):a}else e?(o=(await Promise.all(u.map(async e=>{let t=H(r,e);return await P({fields:t&&t._f?{[e]:t}:t,eventType:As.TRIGGER})}))).every(Boolean),!(!o&&!n.isValid)&&b()):o=a=await P({fields:r,name:e,eventType:As.TRIGGER});if(i.delayError&&t.delayError&&Qs(e)){let r=H(n.errors,e);r?(wc(n.errors,e),c[e]=y(e,()=>w(e,r)),c[e](t.delayError)):(clearTimeout(l[e]),delete c[e])}return g.state.next({...!Qs(e)||(m.isValid||h.isValid)&&a!==n.isValid?{}:{name:e},...t.resolver||!e?{isValid:a}:{},errors:n.errors}),i.shouldFocus&&!o&&ac(r,L,e?u:s.mount),o},le=(e,t)=>{let r={...o.mount?a:i};return t&&(r=Oc(t.dirtyFields?n.dirtyFields:n.touchedFields,r)),Ls(e)?r:Qs(e)?H(r,e):e.map(e=>H(r,e))},ue=(e,t)=>({invalid:!!H((t||n).errors,e),isDirty:!!H((t||n).dirtyFields,e),error:H((t||n).errors,e),isValidating:!!H(n.validatingFields,e),isTouched:!!H((t||n).touchedFields,e)}),de=e=>{let t=e?bc(e):void 0;t?.forEach(e=>wc(n.errors,e)),t?t.forEach(e=>{g.state.next({name:e,errors:n.errors})}):(n.errors={},g.state.next({errors:n.errors}))},fe=(e,t,i)=>{let a=(H(r,e,{_f:{}})._f||{}).ref,{ref:o,message:s,type:c,...l}=H(n.errors,e)||{};Hs(n.errors,e,{...l,...t,ref:a}),g.state.next({name:e,errors:n.errors,isValid:!1}),i&&i.shouldFocus&&a&&a.focus&&a.focus()},pe=(e,t)=>{if(Vs(e)){u++;let{unsubscribe:n}=g.state.subscribe({next:n=>`values`in n&&e(n.values||te(void 0,t),n)}),r=!1;return{unsubscribe:()=>{r||(r=!0,u--,n())}}}return te(e,t,!0)},me=e=>{let t=!!e.formState?.values;t&&u++;let{unsubscribe:r}=g.state.subscribe({next:t=>{if(Xc(e.name,t.name,e.exact)&&Yc(t,e.formState||m,Ee,e.reRenderRoot)){let r={...a};e.callback({values:r,...n,...t,defaultValues:i})}}});if(!t)return r;let o=!1;return()=>{o||(o=!0,u--,r())}},he=e=>(o.mount=!0,h={...h,...e.formState},me({...e,formState:{...p,...e.formState}})),ge=(e,o={})=>{for(let c of e?bc(e):s.mount)s.mount.delete(c),s.array.delete(c),o.keepValue||(wc(r,c),wc(a,c)),!o.keepError&&wc(n.errors,c),!o.keepDirty&&wc(n.dirtyFields,c),!o.keepTouched&&wc(n.touchedFields,c),!o.keepIsValidating&&wc(n.validatingFields,c),!t.shouldUnregister&&!o.keepDefaultValue&&wc(i,c);g.state.next({values:ks(a)}),g.state.next({...n,...o.keepDirty?{isDirty:F()}:{}}),!o.keepIsValid&&b()},_e=({disabled:e,name:t})=>{if(Bs(e)&&o.mount||e||s.disabled.has(t)){let n=s.disabled.has(t)!==!!e;e?s.disabled.add(t):s.disabled.delete(t),n&&o.mount&&!o.action&&b()}},ve=(e,n={})=>{let a=H(r,e),c=Bs(n.disabled)||Bs(t.disabled),l=!s.registerName.has(e)&&a&&a._f&&!a._f.mount;return Hs(r,e,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:e}},name:e,mount:!0,...n}}),s.mount.add(e),a&&!l?_e({disabled:Bs(n.disabled)?n.disabled:t.disabled,name:e}):O(e,!0,n.value),{...c?{disabled:n.disabled||t.disabled}:{},...t.progressive?{required:!!n.required,min:Wc(n.min),max:Wc(n.max),minLength:Wc(n.minLength),maxLength:Wc(n.maxLength),pattern:Wc(n.pattern)}:{},name:e,onChange:se,onBlur:se,ref:c=>{if(c){s.registerName.add(e),ve(e,n),s.registerName.delete(e),a=H(r,e);let t=Ls(c.value)&&c.querySelectorAll&&c.querySelectorAll(`input,select,textarea`)[0]||c,o=Ac(t),l=a._f.refs||[];if(o?l.find(e=>e===t):t===a._f.ref)return;let u={...a._f};o?(u.refs=[...l.filter(jc),t,...Array.isArray(H(i,e))?[{}]:[]],u.ref={type:t.type,name:e}):(u.ref=t,delete u.refs),Hs(r,e,{_f:u}),O(e,!1,void 0,t)}else a=H(r,e,{}),a._f&&(a._f.mount=!1),(t.shouldUnregister||n.shouldUnregister)&&!(Es(s.array,e)&&o.action)&&s.unMount.add(e)}}},ye=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&ac(r,L,s.mount),be=e=>{Bs(e)&&(g.state.next({disabled:e}),ac(r,(t,n)=>{let i=H(r,n);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},xe=(e,i)=>async o=>{let c,l;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let u=ks(a);if(g.state.next({isSubmitting:!0}),t.resolver){let{errors:e,values:t}=await j();x(),n.errors=e,u=ks(t)}else await P({fields:r,eventType:As.SUBMIT});if(s.disabled.size)for(let e of s.disabled)wc(u,e);if(wc(n.errors,Ns),sc(n.errors)){g.state.next({errors:{}});try{c=await e(u,o)}catch(e){l=e}}else i&&await i({...n.errors},o),ye(),setTimeout(ye);if(g.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:sc(n.errors)&&!l,submitCount:n.submitCount+1,errors:n.errors}),l)throw l;return c},Se=(e,t={})=>{H(r,e)&&(Ls(t.defaultValue)?ae(e,ks(H(i,e))):(ae(e,t.defaultValue),Hs(i,e,ks(t.defaultValue))),t.keepTouched||wc(n.touchedFields,e),t.keepDirty||(wc(n.dirtyFields,e),n.isDirty=t.defaultValue?F(e,ks(H(i,e))):F()),t.keepError||(wc(n.errors,e),m.isValid&&b()),g.state.next({...n}))},Ce=(e,c={})=>{let l=e?ks(e):i,u=ks(l),d=sc(e),f=u,p=r;if(c.keepDefaultValues||(i=l),!c.keepValues){if(c.keepDirtyValues){let e=new Set([...s.mount,...Nc(Bc(i,a,void 0,p),n.dirtyFields)]);for(let t of Array.from(e)){let e=H(n.dirtyFields,t),r=H(a,t),i=H(f,t);e&&!Ls(r)?Hs(f,t,r):!e&&!Ls(i)&&ae(t,i)}}else{if(Os&&Ls(e))for(let e of s.mount){let t=H(r,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(cc(e)){let t=e.closest(`form`);if(t){t.reset();break}}}}if(c.keepFieldsRef)for(let e of s.mount)ae(e,H(f,e));else r={}}if(t.shouldUnregister){if(a=c.keepDefaultValues?ks(i):{},c.keepFieldsRef)for(let e of s.mount)Hs(a,e,H(f,e))}else a=ks(f);g.array.next({values:{...f}}),g.state.next({name:void 0,type:void 0,values:{...f}})}s={mount:c.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:``},o.mount=!m.isValid||!!c.keepIsValid||!!c.keepDirtyValues||!t.shouldUnregister&&!sc(f),o.watch=!!t.shouldUnregister,o.keepIsValid=!!c.keepIsValid,o.action=!1,o.actionArrayLengths.clear(),c.keepErrors||(n.errors={}),g.state.next({submitCount:c.keepSubmitCount?n.submitCount:0,isDirty:d?!1:c.keepDirty?n.isDirty:c.keepValues?F():!!(c.keepDefaultValues&&!Ys(e,i)),isSubmitted:c.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:d?{}:c.keepDirtyValues?c.keepDefaultValues&&a?Bc(i,a,void 0,p):n.dirtyFields:c.keepDefaultValues&&e?Bc(i,e,void 0,p):c.keepDirty?n.dirtyFields:{},touchedFields:c.keepTouched?n.touchedFields:{},errors:c.keepErrors?n.errors:{},isSubmitSuccessful:c.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:i})},we=(e,n)=>Ce(Vs(e)?e(a):e,{...t.resetOptions,...n}),Te=(e,t={})=>{let n=H(r,e),i=n&&n._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&Vs(e.select)&&e.select()})}},Ee=e=>{let{name:t,type:r,values:i,...a}=e;n={...n,...a}};g.state.subscribe({next:Ee});let De={control:{register:ve,unregister:ge,getFieldState:ue,handleSubmit:xe,setError:fe,_subscribe:me,_runSchema:j,_updateIsValidating:x,_focusError:ye,_getWatch:te,_getDirty:F,_setValid:b,_setFieldArray:C,_setDisabledField:_e,_setErrors:T,_getFieldArray:ne,_reset:Ce,_resetDefaultValues:()=>Vs(t.defaultValues)&&t.defaultValues().then(e=>{we(e,t.resetOptions),g.state.next({isLoading:!1})}),_removeUnmounted:ee,_disableForm:be,_subjects:g,_proxyFormState:m,get _fields(){return r},get _formValues(){return a},get _state(){return o},set _state(e){o=e},get _defaultValues(){return i},get _names(){return s},set _names(e){s=e},get _formState(){return n},get _options(){return t},set _options(e){t={...t,...e},d=rc(t.mode),f=rc(t.reValidateMode)}},subscribe:he,trigger:ce,register:ve,handleSubmit:xe,watch:pe,setValue:ae,setValues:oe,getValues:le,reset:we,resetField:Se,resetDefaultValues:(e,t={})=>{if(i=ks(e),!t.keepDirty){let e=Bc(i,a,void 0,r);n.dirtyFields=e,n.isDirty=!sc(e)}t.keepIsValid||b(),g.state.next({...n,defaultValues:i})},clearErrors:de,unregister:ge,setError:fe,setFocus:Te,getFieldState:ue};return{...De,formControl:De}}function il(e={}){let t=R.useRef(void 0),n=R.useRef(void 0),r=R.useRef(e.formControl),[i,a]=R.useState(()=>({...ks(nl),isLoading:Vs(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Vs(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&r.current!==e.formControl){if(r.current=e.formControl,e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Vs(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...r}=rl(e);t.current={...r,formState:i}}}let o=t.current.control;o._options=e;let{resyncIfNeeded:s,snapshot:c}=Xs();return Ks(()=>{let e=()=>({...o._formState,defaultValues:o._defaultValues});s(!0,e,a);let t=o._subscribe({formState:o._proxyFormState,callback:()=>a({...o._formState,defaultValues:o._defaultValues}),reRenderRoot:!0});return a(e=>({...e,isReady:!0})),o._formState.isReady=!0,()=>{t(),c(!0,e)}},[o,s,c]),R.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),R.useEffect(()=>{e.mode&&(o._options.mode=e.mode),e.reValidateMode&&(o._options.reValidateMode=e.reValidateMode)},[o,e.mode,e.reValidateMode]),R.useEffect(()=>{e.errors&&(o._setErrors(e.errors),o._focusError())},[o,e.errors]),R.useEffect(()=>{e.shouldUnregister&&o._subjects.state.next({values:o._getWatch()})},[o,e.shouldUnregister]),R.useEffect(()=>{if(o._proxyFormState.isDirty){let e=o._getDirty();e!==i.isDirty&&o._subjects.state.next({isDirty:e})}},[o,i.isDirty]),R.useEffect(()=>{e.values&&!Ys(e.values,n.current)?(o._reset(e.values,{keepFieldsRef:!0,...o._options.resetOptions}),o._options.resetOptions?.keepIsValid||o._setValid(),n.current=e.values,a(e=>({...e}))):o._resetDefaultValues()},[o,e.values]),R.useEffect(()=>{o._state.mount||(o._setValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),t.current.formState=R.useMemo(()=>Gs(i,o),[o,i]),t.current}var al=(e,t,n)=>{if(e&&`reportValidity`in e){let r=H(n,t);e.setCustomValidity(r&&r.message||``),e.reportValidity()}},ol=(e,t)=>{for(let n in t.fields){let r=t.fields[n];r&&r.ref&&`reportValidity`in r.ref?al(r.ref,n,e):r&&r.refs&&r.refs.forEach(t=>al(t,n,e))}},sl=(e,t)=>{t.shouldUseNativeValidation&&ol(e,t);let n={};for(let r in e){let i=H(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.refs?i.refs[0]:i&&i.ref});if(cl(t.names||Object.keys(e),r)){let e=Object.assign({},H(n,r));Hs(e,`root`,a),Hs(n,r,e)}else Hs(n,r,a)}return n},cl=(e,t)=>{let n=ll(t).replace(/[.*+?^${}()|\\]/g,`\\$&`);return e.some(e=>ll(e).match(`^${n}\\.\\d+`))};function ll(e){return e.replace(/[\[\]]/g,``)}function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(null,arguments)}function dl(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}function fl(e,t){for(var n=Object.create(null);e.length;){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(`unionErrors`in r){var s=r.unionErrors.reduce(function(e,t){return t.errors.length<e.errors.length?t:e}).errors[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(`unionErrors`in r&&r.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=dc(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()}return n}function pl(e,t){for(var n=Object.create(null),r=function(){var r=e[0],i=r.code,a=r.message,o=r.path.join(`.`);if(!n[o]){if(r.code===`invalid_union`&&r.errors.length>0){var s=r.errors.reduce(function(e,t){return t.length<e.length?t:e})[0];n[o]={message:s?.message??a,type:s?.code??i}}else n[o]={message:a,type:i}}if(r.code===`invalid_union`&&r.errors.forEach(function(t){return t.forEach(function(t){return e.push(ul({},t,{path:[].concat(r.path,t.path)}))})}),t){var c=n[o].types,l=c&&c[r.code];n[o]=dc(o,t,n,i,l?[].concat(l,r.message):r.message)}e.shift()};e.length;)r();return n}function ml(e,t,n){if(n===void 0&&(n={}),function(e){return`_zod`in e&&typeof e._zod==`object`}(e))return function(r,i,a){try{return Promise.resolve(dl(function(){function i(e){return a.shouldUseNativeValidation&&ol({},a),{errors:{},values:n.raw?Object.assign({},r):e}}var o=e;return n.mode===`sync`?i(o.parse(r,t)):Promise.resolve(o.parseAsync(r,t)).then(i)},function(e){if(function(e){var t;return!(e==null||(t=e._zod)==null||(t=t.traits)==null||!t.has(`$ZodError`))}(e))return{values:{},errors:sl(pl(e.issues,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};if(function(e){return`_def`in e&&typeof e._def==`object`}(e))return function(r,i,a){try{return Promise.resolve(dl(function(){return Promise.resolve(e[n.mode===`sync`?`parse`:`parseAsync`](r,t)).then(function(e){return a.shouldUseNativeValidation&&ol({},a),{errors:{},values:n.raw?Object.assign({},r):e}})},function(e){if(function(e){return Array.isArray(e?.issues)}(e))return{values:{},errors:sl(fl(e.errors,!a.shouldUseNativeValidation&&a.criteriaMode===`all`),a)};throw e}))}catch(e){return Promise.reject(e)}};throw Error(`Invalid input: not a Zod schema`)}function hl(e){return gl(e)||typeof e==`function`||_l(e)}function gl(e){return typeof e==`function`&&(()=>{let t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent})()}function _l(e){return typeof e==`object`&&typeof e.$$typeof==`symbol`&&[`react.memo`,`react.forward_ref`].includes(e.$$typeof.description)}function vl(e,t){return e==null?null:hl(e)?R.createElement(e,t):e}function yl(e){if(`cell`in e&&e.cell){let t=e.cell,n=t.column.columnDef,r=t,i=n;return r.getIsAggregated?.()?vl(i.aggregatedCell??n.cell,t.getContext()):r.getIsPlaceholder?.()?null:vl(n.cell,t.getContext())}return`header`in e&&e.header?vl(e.header.column.columnDef.header,e.header.getContext()):`footer`in e&&e.footer?vl(e.footer.column.columnDef.footer,e.footer.getContext()):null}function bl({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function xl(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Sl=[],Cl=0,{link:wl,unlink:Tl,propagate:El,checkDirty:Dl,shallowPropagate:Ol}=bl({update(e){return e._update()},notify(e){Sl[Al++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,Pl(e))}}),kl=0,Al=0,jl,Ml=0;function Nl(e){try{++Ml,e()}finally{--Ml||Fl()}}function Pl(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Tl(n,e)}function Fl(){if(!(Ml>0)){for(;kl<Al;){let e=Sl[kl];Sl[kl++]=void 0,e.notify()}kl=0,Al=0}}function Il(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:+!n,get(){return jl!==void 0&&wl(i,jl,Cl),i._snapshot},subscribe(e){let t=xl(e),n={current:!1},r=Ll(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=jl,o=t?.compare??Object.is;if(n)jl=i,++Cl,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=5);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{jl=a,n&&(i.flags&=-5),Pl(i)}}};return n?(i.flags=17,i.get=function(){let e=i.flags;if(e&16||e&32&&Dl(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ol(e)}}else e&32&&(i.flags=e&-33);return jl!==void 0&&wl(i,jl,Cl),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(El(e),Ol(e),Fl())}},i}function Ll(e){let t=()=>{let t=jl;jl=n,++Cl,n.depsTail=void 0,n.flags=6;try{return e()}finally{jl=t,n.flags&=-5,Pl(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let e=this.flags;e&16||e&32&&Dl(this.deps,this)?t():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,Pl(this)}};return t(),n}function Rl(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=zl(e);if(n.length!==zl(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function zl(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function Bl(e,t){return e===t}function Vl(e,t=e=>e,n){let r=n?.compare??Bl,i=(0,R.useCallback)(t=>{let{unsubscribe:n}=e.subscribe(t);return n},[e]),a=(0,R.useCallback)(()=>e.get(),[e]);return(0,Fi.useSyncExternalStoreWithSelector)(i,a,a,t,r)}function Hl(e){let t=Vl(e.source,e.selector,{compare:Rl});return typeof e.children==`function`?e.children(t):e.children}function Ul(e){let t=e;return Object.defineProperty(e,"state",{get(){return e.get()}}),`set`in e&&(t.setState=e.set.bind(e)),t}function Wl(e){let{createAtom:t,batch:n}=e,r=t(0);return{createOptionsStore:!1,wrapExternalAtoms:!1,addSubscription:()=>{throw Error(`Feature not supported in current reactivity implementation`)},unmount:()=>{throw Error(`Feature not supported in current reactivity implementation`)},schedule:e.schedule??(e=>queueMicrotask(e)),batch:n,untrack:e=>e(),createReadonlyAtom:(e,n)=>{let i=n?.compare??Object.is,a=!1,o,s=()=>{let t=e();return(!a||!i(o,t))&&(o=t,a=!0),o},c=t(()=>(r.get(),s()),{compare:i});return{get:s,subscribe:c.subscribe.bind(c)}},createWritableAtom:(e,n)=>t(e,{compare:n?.compare}),commit:()=>{r.set(e=>e+1)}}}function Gl(e,t=Object.is){let n=!1,r;return{get:e.get,markCommitted:e=>{r=e,n=!0},subscribe:i=>e.subscribe(e=>{(!n||!t(r,e))&&i(e)})}}function Kl(){return Wl({createAtom:Il,batch:Nl})}function ql(e,t){return typeof e==`function`?e(t):e}function Jl(e){if(Array.isArray(e))return e.map(Jl);if(e&&typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)return e;let n=t===null?Yl():{},r=Object.keys(e);for(let t=0;t<r.length;t++){let i=r[t];Object.defineProperty(n,i,{configurable:!0,enumerable:!0,value:Jl(e[i]),writable:!0})}return n}return e}function Yl(){return Object.create(null)}function Xl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Zl(e,t){return n=>{(t.options.atoms?.[e]??t.baseAtoms[e]).set(e=>ql(n,e))}}function Ql(e){if(typeof e!=`object`||!e)return!1;if(Array.isArray(e))return!0;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function $l(e){return Reflect.ownKeys(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var eu=3;function tu(e,t){return nu(e,t,eu)}function nu(e,t,n){if(Object.is(e,t))return!0;if(n<=0||!Ql(e)||!Ql(t)||(Array.isArray(e)||Array.isArray(t))&&(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length))return!1;let r=$l(e),i=$l(t);if(r.length!==i.length)return!1;let a=e,o=t;for(let e=0;e<r.length;e++){let i=r[e];if(!Object.prototype.propertyIsEnumerable.call(t,i)||!nu(a[i],o[i],n-1))return!1}return!0}function ru(e,t,n,r=tu){let i=`on${t.charAt(0).toUpperCase()}${t.slice(1)}Change`,a=e.options[i];a&&a(e=>{let t=ql(n,e);return r(e,t)?e:t})}function iu(e,t){let n=[],r=e=>{e.forEach(e=>{n.push(e);let i=t(e);i.length&&r(i)})};return r(e),n}var au=({fn:e,memoDeps:t,onAfterCompare:n,onAfterUpdate:r,onBeforeCompare:i,onBeforeUpdate:a})=>{let o=[],s;return c=>{i?.();let l=t?.(c),u=!l||l.length!==o?.length;if(!u&&l){for(let e=0;e<l.length;e++)if(l[e]!==o[e]){u=!0;break}}return n?.(u),u?(o=l,a?.(),s=e(...l??[]),r?.(s),s):s}};function ou(e){let t=!1;return()=>{if(!t){t=!0;return}e()}}function su({feature:e,fnName:t,objectId:n,onAfterUpdate:r,table:i,...a}){let o=()=>{if(!r)return;let{schedule:e,untrack:t}=i._reactivity;e(()=>t(()=>r()))},s={onAfterUpdate:()=>{o()}};return au({...a,...s})}function cu(e,t=`_`){let[n,r]=e.split(t);return{fnKey:r,fnName:`${n}.${r}`,parentName:n}}function lu(e,t,n){for(let[r,{fn:i,memoDeps:a}]of Object.entries(n)){let{fnKey:n,fnName:o}=cu(r);t[n]=a?su({memoDeps:a,fn:i,fnName:o,table:t,feature:e}):i}}function uu(e,t,n,r){for(let[i,{fn:a,memoDeps:o}]of Object.entries(r)){let{fnKey:r,fnName:s}=cu(i);if(o){let i=`_memo_${r}`;t[r]=function(...t){if(!this[i]){let t=this;this[i]=su({memoDeps:e=>o(t,e),fn:(...e)=>a(t,...e),fnName:s,objectId:t.id,table:n,feature:e})}return this[i](...t)}}else t[r]=function(...e){return a(this,...e)}}}function U(e,t,n,...r){return e[t]?.(...r)??n(e,...r)}function du(e){return e.row.getValue(e.column.id)}function fu(e){return e.getValue()??e.table.options.renderFallbackValue}function pu(e){return{table:e.table,column:e.column,row:e.row,cell:e,getValue:()=>e.getValue(),renderValue:()=>e.renderValue()}}var mu={assignCellPrototype:(e,t)=>{uu(`coreCellsFeature`,e,t,{cell_getValue:{fn:e=>du(e)},cell_renderValue:{fn:e=>fu(e)},cell_getContext:{fn:e=>pu(e),memoDeps:e=>[e]}})}};function hu(e){if(!e._headerPrototype){e._headerPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignHeaderPrototype?.(e._headerPrototype,e)}return e._headerPrototype}function gu(e,t,n){let r=hu(e),i=Object.create(r);i.colSpan=0,i.column=t,i.depth=n.depth,i.headerGroup=null,i.id=n.id??t.id,i.index=n.index,i.isPlaceholder=!!n.isPlaceholder,i.placeholderId=n.placeholderId,i.rowSpan=0,i.subHeaders=[];let a=e._headerInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function _u(){return{start:[],end:[]}}function vu(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{start:r}=e.atoms.columnPinning?.get()??_u(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&U(t,`getIsVisible`,Ou)&&i.push(t)}return Iu(t,i,e,`start`)}function yu(e){let t=e.getAllColumns(),n=e.getAllLeafColumnsById(),{end:r}=e.atoms.columnPinning?.get()??_u(),i=[];for(let e=0;e<r.length;e++){let t=n[r[e]];t&&U(t,`getIsVisible`,Ou)&&i.push(t)}return Iu(t,i,e,`end`)}function bu(e){let t=e.getAllColumns(),n=U(e,`getVisibleLeafColumns`,ku),{start:r,end:i}=e.atoms.columnPinning?.get()??_u();if(r.length||i.length){let e=[...r,...i];n=n.filter(t=>!e.includes(t.id))}return Iu(t,n,e,`center`)}function xu(e){let{start:t}=e.atoms.columnPinning?.get()??_u(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function Su(e){let{end:t}=e.atoms.columnPinning?.get()??_u(),n=e.getAllLeafColumnsById(),r=[];for(let e=0;e<t.length;e++){let i=n[t[e]];i&&r.push(i)}return r}function Cu(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??_u();if(!t.length&&!n.length)return e.getAllLeafColumns();let r=[...t,...n];return e.getAllLeafColumns().filter(e=>!r.includes(e.id))}function wu(e){return U(e,`getStartLeafColumns`,xu).filter(e=>U(e,`getIsVisible`,Ou))}function Tu(e){return U(e,`getEndLeafColumns`,Su).filter(e=>U(e,`getIsVisible`,Ou))}function Eu(e){return U(e,`getCenterLeafColumns`,Cu).filter(e=>U(e,`getIsVisible`,Ou))}function Du(e,t){return t?t===`start`?U(e,`getStartVisibleLeafColumns`,wu):t===`end`?U(e,`getEndVisibleLeafColumns`,Tu):U(e,`getCenterVisibleLeafColumns`,Eu):U(e,`getVisibleLeafColumns`,ku)}function Ou(e){let t=e.table.atoms.columnVisibility?.get();if(!t)return!0;let n=e.columns;return n.length?n.some(e=>U(e,`getIsVisible`,Ou)):(Xl(t,e.id)?t[e.id]:void 0)??!0}function ku(e){return e.getAllLeafColumns().filter(e=>U(e,`getIsVisible`,Ou))}function Au(e,t=1){let n=t;for(let r=0;r<e.length;r++){let i=e[r];U(i,`getIsVisible`,Ou)&&i.columns.length&&(n=Math.max(n,Au(i.columns,t+1)))}return n}function ju(e,t){return e?`${e}_${t}`:String(t)}function Mu(e,t,n,r){let i=e??``;return t&&(i=i?`${i}_${t}`:String(t)),n&&(i=i?`${i}_${n}`:n),r&&(i=i?`${i}_${r}`:r),i}function Nu(e,t){let n=0;for(let r=0;r<e.length;r++)e[r].column===t&&n++;return n}function Pu(e,t,n,r,i,a){let o={depth:t,id:ju(r,t),headers:[]},s=[];for(let i=0;i<e.length;i++){if(!(i in e))continue;let a=e[i],c=s[s.length-1],l=a.column.depth===o.depth,u,d=!1;if(l&&a.column.parent?u=a.column.parent:(u=a.column,d=!0),c&&c.column===u)c.subHeaders.push(a);else{let e=gu(n,u,{id:Mu(r,t,u.id,a.id),isPlaceholder:d,placeholderId:d?String(Nu(s,u)):void 0,depth:t,index:s.length});e.subHeaders.push(a),s.push(e)}o.headers.push(a),a.headerGroup=o}for(let e=0;e<a.length;e++)a[e](o);i.push(o),t>0&&Pu(s,t-1,n,r,i,a)}function Fu(e){for(let t=0;t<e.length;t++){let n=e[t];if(!U(n.column,`getIsVisible`,Ou))continue;let r=0;if(n.subHeaders.length){Fu(n.subHeaders);for(let e=0;e<n.subHeaders.length;e++){let t=n.subHeaders[e];U(t.column,`getIsVisible`,Ou)&&(r+=t.colSpan)}}else r=1;if(n.colSpan=r,n.isPlaceholder&&n.subHeaders.length===1&&n.subHeaders[0].column===n.column){let e=1,t=n.subHeaders[0];for(;t;)t.rowSpan=0,e++,t=t.subHeaders.length===1&&t.subHeaders[0].column===n.column?t.subHeaders[0]:void 0;n.rowSpan=e}else n.rowSpan=1}}function Iu(e,t,n,r){let i=Au(e),a=[],o=n._headerGroupInstanceInitFns,s=Array(t.length);for(let e=0;e<t.length;e++)e in t&&(s[e]=gu(n,t[e],{depth:i,index:e}));return Pu(s,i-1,n,r,a,o),a.reverse(),Fu(a[0]?.headers??[]),a}function Lu(e){if(!e._columnPrototype){e._columnPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignColumnPrototype?.(e._columnPrototype,e)}return e._columnPrototype}function Ru(e,t,n,r){let i={...e.getDefaultColumnDef(),...t},a=i.accessorKey,o=a===void 0?void 0:String(a),s=i.id??o?.replaceAll(`.`,`_`)??(typeof i.header==`string`?i.header:void 0),c;if(i.accessorFn)c=i.accessorFn;else if(a!==void 0){if(typeof a==`string`&&a.includes(`.`)){let e=a.split(`.`);c=t=>{let n=t;for(let t=0;t<e.length;t++){let r=e[t];n=n?.[r]}return n}}else c=e=>e[i.accessorKey]}if(!s)throw Error();let l=Lu(e),u=Object.create(l);u.accessorFn=c,u.columnDef=i,u.columns=[],u.depth=n,u.id=`${String(s)}`,u.parent=r;let d=e._columnInstanceInitFns;for(let e=0;e<d.length;e++)d[e](u);return u}function zu(e){let t=e.atoms.columnOrder?.get();return n=>{let r=[];if(!t?.length)r=n;else{let e=new Map;for(let t=0;t<n.length;t++){let r=n[t];e.set(r.id,r)}for(let n=0;n<t.length;n++){let i=t[n],a=e.get(i);a&&(r.push(a),e.delete(i))}for(let t=0;t<n.length;t++){let i=n[t];e.has(i.id)&&r.push(i)}}return Bu(e,r)}}function Bu(e,t){let n=e.atoms.grouping?.get()??[],{groupedColumnMode:r}=e.options;if(!n.length||!r)return t;let i=t.filter(e=>!n.includes(e.id));if(r===`remove`)return i;let a=new Map;for(let e=0;e<t.length;e++){let n=t[e];a.set(n.id,n)}let o=[];for(let e=0;e<n.length;e++){let t=a.get(n[e]);t&&o.push(t)}return[...o,...i]}function Vu(e){return[e,...e.columns.flatMap(e=>e.getFlatColumns())]}function Hu(e){if(e.columns.length){let t=e.columns.flatMap(e=>e.getLeafColumns());return U(e.table,`getOrderColumns`,zu)(t)}return[e]}function Uu(e){return{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>e.renderValue()?.toString?.()??null,...Object.values(e._features).reduce((e,t)=>Object.assign(e,t.getDefaultColumnDef?.()),{}),...e.options.defaultColumn}}function Wu(e,t,n,r=0){let i=Array(t.length);for(let a=0;a<t.length;a++){if(!(a in t))continue;let o=t[a],s=Ru(e,o,r,n),c=o;s.columns=c.columns?Wu(e,c.columns,s,r+1):[],i[a]=s}return i}function Gu(e){return Wu(e,e.options.columns)}function Ku(e){return e.getAllColumns().flatMap(e=>e.getFlatColumns())}function qu(e){let t=Yl(),n=e.getAllFlatColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Ju(e){let t=e.getAllColumns().flatMap(e=>e.getLeafColumns());return U(e,`getOrderColumns`,zu)(t)}function Yu(e){let t=Yl(),n=e.getAllLeafColumns();for(let e=0;e<n.length;e++){let r=n[e];t[r.id]=r}return t}function Xu(e,t){return e.getAllFlatColumnsById()[t]}var Zu={assignColumnPrototype:(e,t)=>{uu(`coreColumnsFeature`,e,t,{column_getFlatColumns:{fn:e=>Vu(e),memoDeps:e=>[e.table.options.columns]},column_getLeafColumns:{fn:e=>Hu(e),memoDeps:e=>[e.table.atoms.columnOrder?.get(),e.table.atoms.grouping?.get(),e.table.options.columns,e.table.options.groupedColumnMode]}})},constructTableAPIs:e=>{lu(`coreColumnsFeature`,e,{table_getDefaultColumnDef:{fn:()=>Uu(e),memoDeps:()=>[e.options.defaultColumn]},table_getAllColumns:{fn:()=>Gu(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumns:{fn:()=>Ku(e),memoDeps:()=>[e.options.columns]},table_getAllFlatColumnsById:{fn:()=>qu(e),memoDeps:()=>[e.options.columns]},table_getAllLeafColumns:{fn:()=>Ju(e),memoDeps:()=>[e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.options.columns,e.options.groupedColumnMode]},table_getAllLeafColumnsById:{fn:()=>Yu(e),memoDeps:()=>[e.getAllLeafColumns()]},table_getColumn:{fn:t=>Xu(e,t)}})}};function Qu(e,t){for(let n=0;n<e.subHeaders.length;n++)Qu(e.subHeaders[n],t);t.push(e)}function $u(e){let t=[];return Qu(e,t),t}function ed(e){return{column:e.column,header:e,table:e.column.table}}function td(e){let{start:t,end:n}=e.atoms.columnPinning?.get()??_u(),r=e.getAllColumns(),i=U(e,`getVisibleLeafColumns`,ku);if(!t.length&&!n.length)return Iu(r,i,e);let a=e.getAllLeafColumnsById(),o=[];for(let e=0;e<t.length;e++){let n=a[t[e]];n&&U(n,`getIsVisible`,Ou)&&o.push(n)}let s=[];for(let e=0;e<n.length;e++){let t=a[n[e]];t&&U(t,`getIsVisible`,Ou)&&s.push(t)}let c=i.filter(e=>!t.includes(e.id)&&!n.includes(e.id));return Iu(r,[...o,...c,...s],e)}function nd(e){return[...e.getHeaderGroups()].reverse()}function rd(e){let t=e.getHeaderGroups(),n=[];for(let e=0;e<t.length;e++){let r=t[e].headers;for(let e=0;e<r.length;e++)n.push(r[e])}return n}function id(e){let t=e.getHeaderGroups()[0]?.headers??[],n=[];for(let e=0;e<t.length;e++){let r=t[e].getLeafHeaders();for(let e=0;e<r.length;e++)n.push(r[e])}return n}var ad={assignHeaderPrototype:(e,t)=>{uu(`coreHeadersFeature`,e,t,{header_getLeafHeaders:{fn:e=>$u(e),memoDeps:e=>[e.column.table.options.columns]},header_getContext:{fn:e=>ed(e),memoDeps:e=>[e.column.table.options.columns]}})},constructTableAPIs:e=>{lu(`coreHeadersFeature`,e,{table_getHeaderGroups:{fn:()=>td(e),memoDeps:()=>[e.options.columns,e.atoms.columnOrder?.get(),e.atoms.grouping?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.options.groupedColumnMode]},table_getFooterGroups:{fn:()=>nd(e),memoDeps:()=>[e.getHeaderGroups()]},table_getFlatHeaders:{fn:()=>rd(e),memoDeps:()=>[e.getHeaderGroups()]},table_getLeafHeaders:{fn:()=>id(e),memoDeps:()=>[e.getHeaderGroups()]}})}};function od(e){if(!e._rowPrototype){e._rowPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignRowPrototype?.(e._rowPrototype,e)}return e._rowPrototype}var sd=(e,t,n,r,i,a,o)=>{let s=od(e),c=Object.create(s);c._displayIndexCache=-1,c._uniqueValuesCache=Yl(),c._valuesCache=Yl(),c.depth=i,c.id=t,c.index=r,c.original=n,c.parentId=o,c.subRows=a??[];let l=e._rowInstanceInitFns;for(let e=0;e<l.length;e++)l[e](c);return c};function cd(){return[]}function ld(e,t){ru(e,`cellSelection`,t?cd():Jl(e.initialState.cellSelection)??cd())}function ud(e){e.atoms.cellSelection&&(e.options.autoResetAll??e.options.autoResetCellSelection??!0)&&e._reactivity.schedule(()=>ld(e))}function dd(e){e.atoms.expanded&&(e.options.autoResetAll??e.options.autoResetExpanded??!e.options.manualExpanding)&&e._reactivity.schedule(()=>fd(e))}function fd(e,t){let n=e.initialState.expanded;ru(e,`expanded`,t?Yl():n===!0||Object.assign(Yl(),Jl(n??{})))}var pd=0;function md(e){if(e.options.autoResetAll??e.options.autoResetPageIndex??!e.options.manualPagination){if((e.atoms.pagination?.get()?.pageIndex??pd)===pd)return;_d(e,!0)}}function hd(e,t){ru(e,`pagination`,t)}function gd(e,t){hd(e,n=>{let r=ql(t,n.pageIndex),i=e.options.pageCount===void 0||e.options.pageCount===-1?2**53-1:e.options.pageCount-1;return r=Math.max(0,Math.min(r,i)),{...n,pageIndex:r}})}function _d(e,t){gd(e,t?pd:e.initialState.pagination?.pageIndex??pd)}function vd(e,t){ru(e,`sorting`,t)}function yd(e,t){vd(e,t?[]:Jl(e.initialState.sorting??[]))}function bd(e){e.atoms.sorting&&(e.options.autoResetAll??e.options.autoResetSorting??!1)&&yd(e)}function xd(){return e=>su({feature:`coreRowModelsFeature`,table:e,fnName:`table.getCoreRowModel`,memoDeps:()=>[e.options.data],fn:()=>Cd(e,e.options.data),onAfterUpdate:ou(()=>{dd(e),md(e),bd(e),ud(e)})})}function Sd(e,t,n,r=0,i){let a=[];for(let o=0;o<n.length;o++){let s=n[o],c=sd(e,e.getRowId(s,o,i),s,o,r,void 0,i?.id);t.flatRows.push(c),t.rowsById[c.id]=c,a.push(c),e.options.getSubRows&&(c.originalSubRows=e.options.getSubRows(s,o),c.originalSubRows?.length&&(c.subRows=Sd(e,t,c.originalSubRows,r+1,c)))}return a}function Cd(e,t){let n={rows:[],flatRows:[],rowsById:Yl()};return n.rows=Sd(e,n,t),n}function wd(e){return e._rowModels.coreRowModel||(e._rowModels.coreRowModel=e.options.features.coreRowModel?.(e)??xd()(e)),e._rowModels.coreRowModel()}function Td(e){return e.getCoreRowModel()}function Ed(e){return e._rowModels.filteredRowModel||(e._rowModels.filteredRowModel=e.options.features.filteredRowModel?.(e)),e.options.manualFiltering||!e._rowModels.filteredRowModel?e.getPreFilteredRowModel():e._rowModels.filteredRowModel()}function Dd(e){return e.getFilteredRowModel()}function W(e){return e._rowModels.groupedRowModel||(e._rowModels.groupedRowModel=e.options.features.groupedRowModel?.(e)),e.options.manualGrouping||!e._rowModels.groupedRowModel?e.getPreGroupedRowModel():e._rowModels.groupedRowModel()}function Od(e){return e.getGroupedRowModel()}function kd(e){return e._rowModels.sortedRowModel||(e._rowModels.sortedRowModel=e.options.features.sortedRowModel?.(e)),e.options.manualSorting||!e._rowModels.sortedRowModel?e.getPreSortedRowModel():e._rowModels.sortedRowModel()}function Ad(e){return e.getSortedRowModel()}function jd(e){return e._rowModels.expandedRowModel||(e._rowModels.expandedRowModel=e.options.features.expandedRowModel?.(e)),e.options.manualExpanding||!e._rowModels.expandedRowModel?e.getPreExpandedRowModel():e._rowModels.expandedRowModel()}function Md(e){return e.getExpandedRowModel()}function Nd(e){return e._rowModels.paginatedRowModel||(e._rowModels.paginatedRowModel=e.options.features.paginatedRowModel?.(e)),e.options.manualPagination||!e._rowModels.paginatedRowModel?e.getPrePaginatedRowModel():e._rowModels.paginatedRowModel()}function Pd(e){return e.getPaginatedRowModel()}var Fd={constructTableAPIs:e=>{lu(`coreRowModelsFeature`,e,{table_getCoreRowModel:{fn:()=>wd(e)},table_getPreFilteredRowModel:{fn:()=>Td(e)},table_getFilteredRowModel:{fn:()=>Ed(e)},table_getPreGroupedRowModel:{fn:()=>Dd(e)},table_getGroupedRowModel:{fn:()=>W(e)},table_getPreSortedRowModel:{fn:()=>Od(e)},table_getSortedRowModel:{fn:()=>kd(e)},table_getPreExpandedRowModel:{fn:()=>Ad(e)},table_getExpandedRowModel:{fn:()=>jd(e)},table_getPrePaginatedRowModel:{fn:()=>Md(e)},table_getPaginatedRowModel:{fn:()=>Nd(e)},table_getRowModel:{fn:()=>Pd(e)}})}};function Id(e){if(!e._cellPrototype){e._cellPrototype={table:e};let t=Object.values(e._features);for(let n=0;n<t.length;n++)t[n].assignCellPrototype?.(e._cellPrototype,e)}return e._cellPrototype}function Ld(e,t,n){let r=Id(n),i=Object.create(r);i.column=e,i.id=`${t.id}_${e.id}`,i.row=t;let a=n._cellInstanceInitFns;for(let e=0;e<a.length;e++)a[e](i);return i}function Rd(e){let t=e.table.getRowsInDisplayOrder(),n=e._displayIndexCache;return t[n]===e?n:-1}function zd(e){let t=e.getPrePaginatedRowModel().rows;if(e.options.paginateExpandedRows===!1){let e=[],n=t=>{t._displayIndexCache=e.length,e.push(t),t.subRows.length&&t.getIsExpanded?.()&&t.subRows.forEach(n)};return t.forEach(n),e}for(let e=0;e<t.length;e++)t[e]._displayIndexCache=e;return t}function Bd(e,t){if(Xl(e._valuesCache,t))return e._valuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return e._valuesCache[t]=n.accessorFn(e.original,e.index),e._valuesCache[t]}function Vd(e,t){if(Xl(e._uniqueValuesCache,t))return e._uniqueValuesCache[t];let n=e.table.getColumn(t);if(n?.accessorFn)return n.columnDef.getUniqueValues?(e._uniqueValuesCache[t]=n.columnDef.getUniqueValues(e.original,e.index),e._uniqueValuesCache[t]):(e._uniqueValuesCache[t]=[e.getValue(t)],e._uniqueValuesCache[t])}function Hd(e,t){return e.getValue(t)??e.table.options.renderFallbackValue}function Ud(e){return iu(e.subRows,e=>e.subRows)}function Wd(e){let t=e.getCoreRowModel().flatRows,n=0;for(let e=0;e<t.length;e++)n=Math.max(n,t[e].depth);return n}function Gd(e){if(e.parentId)return e.table.getCoreRowModel().rowsById[e.parentId]??e.table.getRow(e.parentId,!0)}function Kd(e){let t=[],n=e;for(;;){let e=n.getParentRow();if(!e)break;t.push(e),n=e}return t.reverse()}function qd(e){let t=e.table.getAllLeafColumns(),n=e._cellsCache;n||=e._cellsCache=new WeakMap;let r=Array(t.length);for(let i=0;i<t.length;i++){let a=t[i],o=n.get(a);o||(o=Ld(a,e,e.table),n.set(a,o)),r[i]=o}return r}function Jd(e){let t=Yl(),n=e.getAllCells();for(let e=0;e<n.length;e++){let r=n[e];t[r.column.id]=r}return t}function Yd(e,t,n,r){return t.options.getRowId?.(e,n,r)??(r?`${r.id}.${n}`:String(n))}function Xd(e,t,n){let r=(n?e.getPrePaginatedRowModel():e.getRowModel()).rowsById[t];if(!r&&(r=e.getCoreRowModel().rowsById[t],!r))throw Error();return r}var Zd={assignRowPrototype:(e,t)=>{uu(`coreRowsFeature`,e,t,{row_getDisplayIndex:{fn:e=>Rd(e)},row_getAllCellsByColumnId:{fn:e=>Jd(e),memoDeps:e=>[e.getAllCells()]},row_getAllCells:{fn:e=>qd(e),memoDeps:e=>[e.table.getAllLeafColumns()]},row_getLeafRows:{fn:e=>Ud(e),memoDeps:e=>[e.subRows]},row_getParentRow:{fn:e=>Gd(e)},row_getParentRows:{fn:e=>Kd(e)},row_getUniqueValues:{fn:(e,t)=>Vd(e,t)},row_getValue:{fn:(e,t)=>Bd(e,t)},row_renderValue:{fn:(e,t)=>Hd(e,t)}})},constructTableAPIs:e=>{lu(`coreRowsFeature`,e,{table_getRowsInDisplayOrder:{fn:()=>zd(e),memoDeps:()=>[e.getPrePaginatedRowModel().rows,e.options.paginateExpandedRows,e.options.paginateExpandedRows===!1?e.atoms.expanded?.get():void 0]},table_getRowId:{fn:(t,n,r)=>Yd(t,e,n,r)},table_getRow:{fn:(t,n)=>Xd(e,t,n)},table_getMaxSubRowDepth:{fn:()=>Wd(e),memoDeps:()=>[e.getCoreRowModel()]}})}};function Qd(e,t,n=(e,t)=>e===t){let r=t===void 0?e.options.state:t;e._reactivity.batch(()=>{if(r)for(let t in r){let i=e.baseAtoms[t];if(!i)continue;let a=r[t],o=a===void 0?e.initialState[t]:a;n(e._reactivity.untrack(()=>i.get()),o)||i.set(()=>o)}})}function $d(e,t,n=(e,t)=>e===t){e._reactivity.batch(()=>{Qd(e,t,n),e._reactivity.commit?.()})}function ef(e){let t=Jl(e.initialState);e._reactivity.batch(()=>{let n=Object.keys(t);for(let r=0;r<n.length;r++){let i=n[r];e.baseAtoms[i].set(t[i])}});let n=Object.values(e._features);for(let t=0;t<n.length;t++)n[t].resetTableInstanceData?.(e)}function tf(e,t){let{features:n,atoms:r,initialState:i}=e.options;if(!e.options.mergeOptions)return{...e.options,...t,features:n,atoms:r,initialState:i};let a=e.options.mergeOptions(e.options,t),o={...Object.getOwnPropertyDescriptors(a)};return Object.defineProperties(Object.create(Object.getPrototypeOf(a)),{...o,features:{value:n,enumerable:!0,configurable:!0,writable:!0},atoms:{value:r,enumerable:!0,configurable:!0,writable:!0},initialState:{value:i,enumerable:!0,configurable:!0,writable:!0}})}function nf(e,t,n){let r=tf(e,ql(t,e.options));e.optionsStore?e.optionsStore.set(()=>r):e.options=r,n?.syncExternalState!==!1&&$d(e,r.state??null)}var rf={coreCellsFeature:mu,coreColumnsFeature:Zu,coreHeadersFeature:ad,coreRowModelsFeature:Fd,coreRowsFeature:Zd,coreTablesFeature:{constructTableAPIs:e=>{lu(`coreTablesFeature`,e,{table_reset:{fn:()=>ef(e)},table_setOptions:{fn:t=>nf(e,t)}})}}};function af(){return{accessor:(e,t)=>typeof e==`function`?{...t,accessorFn:e}:{...t,accessorKey:e},columns:e=>e,display:e=>e,group:e=>e}}function of(e){return e}function sf(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!t.has(n)||!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();let n=cf(e);if(n.length!==cf(t).length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}function cf(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}function lf(e,t={}){return Object.values(e).forEach(e=>{t=e.getInitialState?.(t)??t}),Jl(t)}function uf(e){let t=e.features.coreReactivityFeature,{aggregationFns:n,columnMeta:r,coreRowModel:i,expandedRowModel:a,facetedMinMaxValues:o,facetedRowModel:s,facetedUniqueValues:c,filterFns:l,filterMeta:u,filteredRowModel:d,groupedRowModel:f,paginatedRowModel:p,sortFns:m,sortedRowModel:h,tableMeta:g,..._}=e.features,v={_cellInstanceInitFns:[],_columnInstanceInitFns:[],_features:{...rf,..._},_headerGroupInstanceInitFns:[],_headerInstanceInitFns:[],_reactivity:t,_rowInstanceInitFns:[],_rowModelFns:{aggregationFns:n,filterFns:l,sortFns:m},_rowModels:{},atoms:{},baseAtoms:{}},y=Object.values(v._features),b={...y.reduce((e,t)=>Object.assign(e,t.getDefaultTableOptions?.(v)),{}),...e};if(t.wrapExternalAtoms&&b.atoms)for(let[e,n]of Object.entries(b.atoms)){let r=n,i=t.createWritableAtom(r.get(),{debugName:`externalAtom/${e}`});b.atoms[e]=i;let a=!1,o=r.subscribe(e=>{a||i.set(e)}),s=i.subscribe(e=>{a=!0,r.set(e),a=!1});t.addSubscription(o),t.addSubscription(s)}t.createOptionsStore?(v.optionsStore=t.createWritableAtom(b,{debugName:`table/optionsStore`}),Object.defineProperty(v,"options",{configurable:!0,enumerable:!0,get(){return v.optionsStore.get()},set(e){v.optionsStore.set(()=>e)}})):v.options=b,v.initialState=lf(v._features,v.options.initialState);let x=Object.keys(v.initialState);for(let e=0;e<x.length;e++){let n=x[e];v.baseAtoms[n]=t.createWritableAtom(v.initialState[n],{debugName:`table/baseAtoms/${n}`}),v.atoms[n]=t.createReadonlyAtom(()=>{let e=v.options,t=e.atoms?.[n],r=t?t.get():v.baseAtoms[n].get();if(t)return r;let i=e.state;if(i&&Xl(i,n)){let e=i[n];return e===void 0?v.initialState[n]:e}return r},{debugName:`table/atoms/${n}`})}Qd(v),v.store=Ul(t.createReadonlyAtom(()=>{let e={};for(let t=0;t<x.length;t++){let n=x[t];e[n]=v.atoms[n].get()}return e},{compare:sf,debugName:`table/store`}));for(let e=0;e<y.length;e++){let t=y[e];t.initTableInstanceData?.(v),t.initCellInstanceData&&v._cellInstanceInitFns.push(t.initCellInstanceData.bind(t)),t.initColumnInstanceData&&v._columnInstanceInitFns.push(t.initColumnInstanceData.bind(t)),t.initHeaderGroupInstanceData&&v._headerGroupInstanceInitFns.push(t.initHeaderGroupInstanceData.bind(t)),t.initHeaderInstanceData&&v._headerInstanceInitFns.push(t.initHeaderInstanceData.bind(t)),t.initRowInstanceData&&v._rowInstanceInitFns.push(t.initRowInstanceData.bind(t)),t.constructTableAPIs?.(v)}return v}function df(){return Yl()}function ff(){return{size:150,minSize:20,maxSize:2**53-1}}function pf(e){let t=ff(),n=e.table.atoms.columnSizing?.get(),r=n&&Xl(n,e.id)?n[e.id]:void 0;return Math.min(Math.max(e.columnDef.minSize??t.minSize,r??e.columnDef.size??t.size),e.columnDef.maxSize??t.maxSize)}function mf(e){let t=Yl(),n=Yl(),r=Array(e.length),i=0;for(let n=0;n<e.length;n++){let a=e[n],o=U(a,`getSize`,pf);r[n]=o,t[a.id]=i,i+=o}let a=0;for(let t=e.length-1;t>=0;t--)n[e[t].id]=a,a+=r[t];return{starts:t,afters:n}}function hf(e){return{all:mf(Du(e)),center:mf(Du(e,`center`)),start:mf(Du(e,`start`)),end:mf(Du(e,`end`))}}function gf(e){return e===`start`?`start`:e===`end`?`end`:e===`center`?`center`:`all`}function _f(e,t){return U(e.table,`getColumnOffsets`,hf)[gf(t)].starts[e.id]??0}function vf(e,t){return U(e.table,`getColumnOffsets`,hf)[gf(t)].afters[e.id]??0}function yf(e){Cf(e.table,t=>{let n=Yl(),r=Object.keys(t);for(let i=0;i<r.length;i++){let a=r[i];a!==e.id&&(n[a]=t[a])}return n})}function bf(e){if(!e.subHeaders.length)return pf(e.column);let t=0;for(let n=0;n<e.subHeaders.length;n++)t+=bf(e.subHeaders[n]);return t}function xf(e){return bf(e)}function Sf(e){if(e.index>0){let t=e.headerGroup?.headers[e.index-1];if(t)return U(t,`getStart`,Sf)+U(t,`getSize`,xf)}return 0}function Cf(e,t){e.options.onColumnSizingChange?.(t)}function wf(e,t){Cf(e,t?Yl():Object.assign(Yl(),Jl(e.initialState.columnSizing??{})))}function Tf(e){return e.getHeaderGroups()[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Ef(e){return U(e,`getStartHeaderGroups`,vu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Df(e){return U(e,`getCenterHeaderGroups`,bu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}function Of(e){return U(e,`getEndHeaderGroups`,yu)[0]?.headers.reduce((e,t)=>e+xf(t),0)??0}var kf={getInitialState:e=>({columnSizing:df(),...e}),getDefaultColumnDef:()=>ff(),getDefaultTableOptions:e=>({onColumnSizingChange:Zl(`columnSizing`,e)}),assignColumnPrototype:(e,t)=>{uu(`columnSizingFeature`,e,t,{column_getSize:{fn:e=>pf(e),memoDeps:e=>[t.options.columns,t.atoms.columnSizing?.get()?.[e.id]]},column_getStart:{fn:(e,t)=>_f(e,t)},column_getAfter:{fn:(e,t)=>vf(e,t)},column_resetSize:{fn:e=>yf(e)}})},assignHeaderPrototype:(e,t)=>{uu(`columnSizingFeature`,e,t,{header_getSize:{fn:e=>xf(e),memoDeps:e=>[t.options.columns,e.column.columns.length>0?t.atoms.columnSizing?.get():t.atoms.columnSizing?.get()?.[e.column.id]]},header_getStart:{fn:e=>Sf(e),memoDeps:()=>[t.options.columns,t.atoms.columnSizing?.get(),t.atoms.columnOrder?.get(),t.atoms.columnPinning?.get(),t.atoms.columnVisibility?.get(),t.atoms.grouping?.get(),t.options.groupedColumnMode]}})},constructTableAPIs:e=>{lu(`columnSizingFeature`,e,{table_getColumnOffsets:{fn:()=>hf(e),memoDeps:()=>[e.options.columns,e.atoms.columnSizing?.get(),e.atoms.columnOrder?.get(),e.atoms.columnPinning?.get(),e.atoms.columnVisibility?.get(),e.atoms.grouping?.get(),e.options.groupedColumnMode]},table_setColumnSizing:{fn:t=>Cf(e,t)},table_resetColumnSizing:{fn:t=>wf(e,t)},table_getTotalSize:{fn:()=>Tf(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getStartTotalSize:{fn:()=>Ef(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getCenterTotalSize:{fn:()=>Df(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]},table_getEndTotalSize:{fn:()=>Of(e),memoDeps:()=>[e.atoms.columnSizing?.get(),e.getHeaderGroups()]}})}},Af=typeof window>`u`?R.useEffect:R.useLayoutEffect;function jf(e,t){let[{table:n,rootSource:r}]=(0,R.useState)(()=>{let t=uf({...e,features:{coreReactivityFeature:Kl(),...e.features}});return t.Subscribe=(e=>Hl({...e,source:e.source??t.store})),t.FlexRender=yl,{table:t,rootSource:Gl(t.store,Rl)}}),i=n;nf(i,t=>({...t,...e}),{syncExternalState:!1});let a=i.options.state,o=r.get(),s=Vl(r,t,{compare:Rl});return Af(()=>{r.markCommitted(o),$d(i,a??null,Rl)}),(0,R.useMemo)(()=>({...n,options:e,state:s}),[n,e,s])}var Mf=Fa();function Nf(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function Pf(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function Ff(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var If=(e,t)=>Math.abs(e-t)<1.01,Lf=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},Rf,zf=()=>{if(Rf!==void 0)return Rf;if(typeof navigator>`u`)return Rf=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Rf=!0;let e=navigator.maxTouchPoints;return Rf=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Bf=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Vf=e=>e,Hf=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Uf=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(Bf(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(Bf(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},Wf={passive:!0},Gf=typeof window>`u`||`onscrollend`in window,Kf=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Gf,o=0,s=a?null:Lf(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Wf),a&&r.addEventListener(`scrollend`,u,Wf),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u)}},qf=(e,t)=>Kf(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),Jf=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},Yf=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},Xf=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Vf,rangeExtractor:Hf,onChange:()=>{},measureElement:Jf,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Pf(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,!(!zf()||this.targetWindow==null)&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,Wf),e.addEventListener(`touchend`,n,Wf),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(zf()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Pf(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.getMeasurements=Pf(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=Nf(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Pf(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=$f(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Pf(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(e<0||e>=this.options.count)return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=Pf(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return Ff(t[Zf(0,t.length-1,r?e=>n[e*2]:e=>Ff(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e===0?!1:zf()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&If(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},Zf=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function Qf(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function $f(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=Qf(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=Zf(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var ep=typeof document<`u`?R.useLayoutEffect:R.useEffect;function tp({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n=`transform`,...r}){let i=R.useReducer(e=>e+1,0)[1],a=R.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});a.current.enabled=t,a.current.mode=n;let o=e=>{let t=a.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}},s=e=>{let t=a.current;if(!t.enabled||!t.container)return;o(e);let n=!!e.options.horizontal,r=t.mode===`transform`,i=n?`left`:`top`,s=e.options.scrollMargin,c=e.getVirtualItems();for(let a of c){let o=a.start-s,c=e.elementsCache.get(a.key);c&&t.lastPositions.get(c)!==o&&(t.lastPositions.set(c,o),r?c.style.transform=n?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:c.style[i]=`${o}px`)}},c={...r,onChange:(t,n)=>{var o;let c=a.current,l=!0;if(c.enabled){s(t);let e=t.range,n=c.prevRange;l=!n||n.isScrolling!==t.isScrolling||n.startIndex!==e?.startIndex||n.endIndex!==e?.endIndex,l&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}l&&(e&&n?(0,Mf.flushSync)(i):i()),(o=r.onChange)==null||o.call(r,t,n)}},[l]=R.useState(()=>{let e=new Xf(c);return Object.assign(e,{containerRef:t=>{let n=a.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return l.setOptions(c),ep(()=>l._didMount(),[]),ep(()=>(o(l),l._willUpdate())),ep(()=>{s(l)}),l}function np(e){return tp({observeElementRect:Uf,observeElementOffset:qf,scrollToFn:Yf,...e})}var rp=(0,R.createContext)({});function ip(e){let t=(0,R.useRef)(null);return t.current===null&&(t.current=e()),t.current}var ap=typeof window<`u`?R.useLayoutEffect:R.useEffect,op=(0,R.createContext)(null);function sp(e,t){e.indexOf(t)===-1&&e.push(t)}function cp(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var lp=(e,t,n)=>n>t?t:n<e?e:n,up={},dp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fp=e=>typeof e==`object`&&!!e,pp=e=>/^0[^.\s]+$/u.test(e);function mp(e){let t;return()=>(t===void 0&&(t=e()),t)}var hp=e=>e,gp=(...e)=>e.reduce((e,t)=>n=>t(e(n))),_p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},vp=class{constructor(){this.subscriptions=[]}add(e){return sp(this.subscriptions,e),()=>cp(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},yp=e=>e*1e3,bp=e=>e/1e3,xp=(e,t)=>t?1e3/t*e:0,Sp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Cp=1e-7,wp=12;function Tp(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Sp(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Cp&&++s<wp);return o}function Ep(e,t,n,r){if(e===t&&n===r)return hp;let i=t=>Tp(t,0,1,e,n);return e=>e===0||e===1?e:Sp(i(e),t,r)}var Dp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Op=e=>t=>1-e(1-t),kp=Ep(.33,1.53,.69,.99),Ap=Op(kp),jp=Dp(Ap),Mp=e=>e>=1?1:(e*=2)<1?.5*Ap(e):.5*(2-2**(-10*(e-1))),Np=e=>1-Math.sin(Math.acos(e)),Pp=Op(Np),Fp=Dp(Np),Ip=Ep(.42,0,1,1),Lp=Ep(0,0,.58,1),Rp=Ep(.42,0,.58,1),zp=e=>Array.isArray(e)&&typeof e[0]!=`number`,Bp=e=>Array.isArray(e)&&typeof e[0]==`number`,Vp={linear:hp,easeIn:Ip,easeInOut:Rp,easeOut:Lp,circIn:Np,circInOut:Fp,circOut:Pp,backIn:Ap,backInOut:jp,backOut:kp,anticipate:Mp},Hp=e=>typeof e==`string`,Up=e=>{if(Bp(e)){e.length;let[t,n,r,i]=e;return Ep(t,n,r,i)}return Hp(e)?(Vp[e],`${e}`,Vp[e]):e},Wp=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Gp(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var Kp=40;function qp(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Wp.reduce((e,t)=>(e[t]=Gp(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=up.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,Kp),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Wp.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Wp.length;t++)o[Wp[t]].cancel(e)},state:i,steps:o}}var{schedule:Jp,cancel:Yp,state:Xp,steps:Zp}=qp(typeof requestAnimationFrame<`u`?requestAnimationFrame:hp,!0),Qp;function $p(){Qp=void 0}var em={now:()=>(Qp===void 0&&em.set(Xp.isProcessing||up.useManualTiming?Xp.timestamp:performance.now()),Qp),set:e=>{Qp=e,queueMicrotask($p)}},tm=e=>t=>typeof t==`string`&&t.startsWith(e),nm=tm(`--`),rm=tm(`var(--`),im=e=>rm(e)?am.test(e.split(`/*`)[0].trim()):!1,am=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function om(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var sm={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},cm={...sm,transform:e=>lp(0,1,e)},lm={...sm,default:1},um=e=>Math.round(e*1e5)/1e5,dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function fm(e){return e==null}var pm=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mm=(e,t)=>n=>!!(typeof n==`string`&&pm.test(n)&&n.startsWith(e)||t&&!fm(n)&&Object.prototype.hasOwnProperty.call(n,t)),hm=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(dm);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},gm=e=>lp(0,255,e),_m={...sm,transform:e=>Math.round(gm(e))},vm={test:mm(`rgb`,`red`),parse:hm(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+_m.transform(e)+`, `+_m.transform(t)+`, `+_m.transform(n)+`, `+um(cm.transform(r))+`)`};function ym(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var bm={test:mm(`#`),parse:ym,transform:vm.transform},xm=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Sm=xm(`deg`),Cm=xm(`%`),G=xm(`px`),wm=xm(`vh`),Tm=xm(`vw`),Em={...Cm,parse:e=>Cm.parse(e)/100,transform:e=>Cm.transform(e*100)},Dm={test:mm(`hsl`,`hue`),parse:hm(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+Cm.transform(um(t))+`, `+Cm.transform(um(n))+`, `+um(cm.transform(r))+`)`},Om={test:e=>vm.test(e)||bm.test(e)||Dm.test(e),parse:e=>vm.test(e)?vm.parse(e):Dm.test(e)?Dm.parse(e):bm.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?vm.transform(e):Dm.transform(e),getAnimatableNone:e=>{let t=Om.parse(e);return t.alpha=0,Om.transform(t)}},km=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Am(e){return isNaN(e)&&typeof e==`string`&&(e.match(dm)?.length||0)+(e.match(km)?.length||0)>0}var jm=`number`,Mm=`color`,Nm=`var`,Pm=`var(`,Fm="${}",Im=/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 Lm(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Im,e=>(Om.test(e)?(r.color.push(a),i.push(Mm),n.push(Om.parse(e))):e.startsWith(Pm)?(r.var.push(a),i.push(Nm),n.push(e)):(r.number.push(a),i.push(jm),n.push(parseFloat(e))),++a,Fm)).split(Fm),indexes:r,types:i}}function Rm(e){return Lm(e).values}function zm({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===jm?um(r[a]):e===Mm?Om.transform(r[a]):r[a]}return i}}function Bm(e){return zm(Lm(e))}var Vm=e=>typeof e==`number`?0:Om.test(e)?Om.getAnimatableNone(e):e,Hm=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Vm(e);function Um(e){let t=Lm(e);return zm(t)(t.values.map((e,n)=>Hm(e,t.split[n])))}var Wm={test:Am,parse:Rm,createTransformer:Bm,getAnimatableNone:Um};function Gm(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Km({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Gm(s,r,e+1/3),a=Gm(s,r,e),o=Gm(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function qm(e,t){return n=>n>0?t:e}var Jm=(e,t,n)=>e+(t-e)*n,Ym=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Xm=[bm,vm,Dm],Zm=e=>Xm.find(t=>t.test(e));function Qm(e){let t=Zm(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Dm&&(n=Km(n)),n}var $m=(e,t)=>{let n=Qm(e),r=Qm(t);if(!n||!r)return qm(e,t);let i={...n};return e=>(i.red=Ym(n.red,r.red,e),i.green=Ym(n.green,r.green,e),i.blue=Ym(n.blue,r.blue,e),i.alpha=Jm(n.alpha,r.alpha,e),vm.transform(i))},eh=new Set([`none`,`hidden`]);function th(e,t){return eh.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function nh(e,t){return n=>Jm(e,t,n)}function rh(e){return typeof e==`number`?nh:typeof e==`string`?im(e)?qm:Om.test(e)?$m:nee:Array.isArray(e)?ih:typeof e==`object`?Om.test(e)?$m:eee:qm}function ih(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>rh(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function eee(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=rh(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function tee(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var nee=(e,t)=>{let n=Wm.createTransformer(t),r=Lm(e),i=Lm(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?eh.has(e)&&!i.values.length||eh.has(t)&&!r.values.length?th(e,t):gp(ih(tee(r,i),i.values),n):(`${e}${t}`,qm(e,t))};function ah(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?Jm(e,t,n):rh(e)(e,t)}var oh=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>Jp.update(t,e),stop:()=>Yp(t),now:()=>Xp.isProcessing?Xp.timestamp:em.now()}},sh=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},ch=2e4;function lh(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function uh(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(lh(r),ch);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:bp(i)}}var dh={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function fh(e,t){return e*Math.sqrt(1-t*t)}var ph=12;function mh(e,t,n){let r=n;for(let n=1;n<ph;n++)r-=e(r)/t(r);return r}var hh=.001;function gh({duration:e=dh.duration,bounce:t=dh.bounce,velocity:n=dh.velocity,mass:r=dh.mass}){let i,a;dh.maxDuration;let o=1-t;o=lp(dh.minDamping,dh.maxDamping,o),e=lp(dh.minDuration,dh.maxDuration,bp(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=fh(t,o),c=Math.exp(-i);return hh-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=fh(t**2,o);return(-i(t)+hh>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=mh(i,a,s);if(e=yp(e),isNaN(c))return{stiffness:dh.stiffness,damping:dh.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var _h=[`duration`,`bounce`],vh=[`stiffness`,`damping`,`mass`];function yh(e,t){return t.some(t=>e[t]!==void 0)}function bh(e){let t={velocity:dh.velocity,stiffness:dh.stiffness,damping:dh.damping,mass:dh.mass,isResolvedFromDuration:!1,...e};if(!yh(e,vh)&&yh(e,_h)){if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*lp(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:dh.mass,stiffness:i,damping:a}}else{let n=gh({...e,velocity:0});t={...t,...n,mass:dh.mass},t.isResolvedFromDuration=!0}}return t}function xh(e=dh.visualDuration,t=dh.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=bh({...n,velocity:-bp(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=bp(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?dh.restSpeed.granular:dh.restSpeed.default,i||=v?dh.restDelta.granular:dh.restDelta.default;let y,b,x,S,C,w;if(h<1)x=fh(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>yp(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=yp(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=yp(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(lh(T),ch),t=sh(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}xh.applyToOptions=e=>{let t=uh(e,100,xh);return e.ease=t.ease,e.duration=yp(t.duration),e.type=`keyframes`,e};var Sh=5;function Ch(e,t,n){let r=Math.max(t-Sh,0);return xp(n-e(r),t-r)}function wh({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=xh({keyframes:[f.value,m(f.value)],velocity:Ch(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Th(e,t,n){let r=[],i=n||up.mix||ah,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=gp(Array.isArray(t)?t[n]||hp:t,a)),r.push(a)}return r}function Eh(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Th(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=_p(e[r],e[r+1],n);return s[r](i)};return n?t=>l(lp(e[0],e[a-1],t)):l}function Dh(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=_p(0,t,r);e.push(Jm(n,1,i))}}function Oh(e){let t=[0];return Dh(t,e.length-1),t}function kh(e,t){return e.map(e=>e*t)}function Ah(e,t){return e.map(()=>t||Rp).splice(0,e.length-1)}function jh({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=zp(r)?r.map(Up):Up(r),a={done:!1,value:t[0]},o=Eh(kh(n&&n.length===t.length?n:Oh(t),e),t,{ease:Array.isArray(i)?i:Ah(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Mh=e=>e!==null;function Nh(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Mh),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ph={decay:wh,inertia:wh,tween:jh,keyframes:jh,spring:xh};function Fh(e){typeof e.type==`string`&&(e.type=Ph[e.type])}var Ih=class{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)}},Lh=e=>e/100,Rh=class extends Ih{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==em.now()&&this.tick(em.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Fh(e);let{type:t=jh,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||jh;s!==jh&&typeof o[0]!=`number`&&(this.mixKeyframes=gp(Lh,ah(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=lh(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=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);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=lp(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==wh&&(b.value=Nh(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return bp(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bp(e)}get time(){return bp(this.currentTime)}set time(e){e=yp(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),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Ch(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(em.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=bp(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=oh,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,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(em.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function zh(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Bh=e=>e*180/Math.PI,Vh=e=>Uh(Bh(Math.atan2(e[1],e[0]))),Hh={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vh,rotateZ:Vh,skewX:e=>Bh(Math.atan(e[1])),skewY:e=>Bh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Uh=e=>(e%=360,e<0&&(e+=360),e),Wh=Vh,Gh=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Kh=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),qh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Gh,scaleY:Kh,scale:e=>(Gh(e)+Kh(e))/2,rotateX:e=>Uh(Bh(Math.atan2(e[6],e[5]))),rotateY:e=>Uh(Bh(Math.atan2(-e[2],e[0]))),rotateZ:Wh,rotate:Wh,skewX:e=>Bh(Math.atan(e[4])),skewY:e=>Bh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Jh(e){return+!!e.includes(`scale`)}function Yh(e,t){if(!e||e===`none`)return Jh(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=qh,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Hh,i=t}if(!i)return Jh(t);let a=r[t],o=i[1].split(`,`).map(Zh);return typeof a==`function`?a(o):o[a]}var Xh=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Yh(n,t)};function Zh(e){return parseFloat(e.trim())}var Qh=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],$h=new Set([...Qh,`pathRotation`]),eg=e=>e===sm||e===G,ree=new Set([`x`,`y`,`z`]),iee=Qh.filter(e=>!ree.has(e));function aee(e){let t=[];return iee.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var tg={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Yh(t,`x`),y:(e,{transform:t})=>Yh(t,`y`)};tg.translateX=tg.x,tg.translateY=tg.y;var ng=new Set,rg=!1,ig=!1,ag=!1;function og(){if(ig){let e=Array.from(ng).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=aee(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}ig=!1,rg=!1,ng.forEach(e=>e.complete(ag)),ng.clear()}function sg(){ng.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ig=!0)})}function cg(){ag=!0,sg(),og(),ag=!1}var lg=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ng.add(this),rg||(rg=!0,Jp.read(sg),Jp.resolveKeyframes(og))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}zh(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ng.delete(this)}cancel(){this.state===`scheduled`&&(ng.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},ug=e=>e.startsWith(`--`);function dg(e,t,n){ug(t)?e.style.setProperty(t,n):e.style[t]=n}var fg={};function pg(e,t){let n=mp(e);return()=>fg[t]??n()}var mg=pg(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),hg=pg(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),gg=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_g={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:gg([0,.65,.55,1]),circOut:gg([.55,0,1,.45]),backIn:gg([.31,.01,.66,-.59]),backOut:gg([.33,1.53,.69,.99])};function vg(e,t){if(e)return typeof e==`function`?hg()?sh(e,t):`ease-out`:Bp(e)?gg(e):Array.isArray(e)?e.map(e=>vg(e,t)||_g.easeOut):_g[e]}function yg(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=vg(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function bg(e){return typeof e==`function`&&`applyToOptions`in e}function xg({type:e,...t}){return bg(e)&&hg()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Sg=class extends Ih{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=xg(e);this.animation=yg(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Nh(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),dg(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return bp(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bp(e)}get time(){return bp(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yp(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&mg()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),hp):r(this)}},Cg={anticipate:Mp,backInOut:jp,circInOut:Fp};function wg(e){return e in Cg}function Tg(e){typeof e.ease==`string`&&wg(e.ease)&&(e.ease=Cg[e.ease])}var Eg=10,Dg=class extends Sg{constructor(e){Tg(e),Fh(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Rh({...a,autoplay:!1}),s=Math.max(Eg,em.now()-this.startTime),c=lp(0,Eg,s-Eg),l=o.sample(s).value,{name:u}=this.options;i&&u&&dg(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Og=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Wm.test(e)||e===`0`)&&!e.startsWith(`url(`));function kg(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Ag(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=Og(i,t),s=Og(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:kg(e)||(n===`spring`||bg(n))&&r}function jg(e){e.duration=0,e.type=`keyframes`}var Mg=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),Ng=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Pg(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Ng.test(e[t]))return!0;return!1}var Fg=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Ig=mp(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Lg(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ig()&&n&&(Mg.has(n)||Fg.has(n)&&Pg(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Rg=40,zg=class extends Ih{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=em.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||lg;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=em.now();let u=!0;Ag(e,i,a,o)||(u=!1,(up.instantAnimations||!s)&&l?.(Nh(e,n,t)),e[0]=e[e.length-1],jg(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>Rg?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Lg(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Dg({...d,element:p})}catch{m=new Rh(d)}else m=new Rh(d);m.finished.then(()=>{this.notifyFinished()}).catch(hp),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),cg()),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(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Bg(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Vg=30,Hg=e=>!isNaN(parseFloat(e)),Ug={current:void 0},Wg=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=em.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=em.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Hg(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 vp);let n=this.events[e].add(t);return e===`change`?()=>{n(),Jp.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ug.current&&Ug.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=em.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vg)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Vg);return xp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Gg(e,t){return new Wg(e,t)}function Kg(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function qg(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Kg(n,e)}var Jg={type:`spring`,stiffness:500,damping:25,restSpeed:10},Yg=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xg={type:`keyframes`,duration:.8},Zg={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Qg=(e,{keyframes:t})=>t.length>2?Xg:$h.has(e)?e.startsWith(`scale`)?Yg(t[1]):Jg:Zg,$g=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function e_(e){for(let t in e)if(!$g.has(t))return!0;return!1}var t_=(e,t,n,r={},i,a)=>o=>{let s=qg(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=yp(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};e_(s)||Object.assign(u,Qg(e,u)),u.duration&&=yp(u.duration),u.repeatDelay&&=yp(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(jg(u),u.delay===0&&(d=!0)),(up.instantAnimations||up.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,jg(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Nh(u.keyframes,s);if(e!==void 0){Jp.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Rh(u):new zg(u)},n_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function r_(e){let t=n_.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function i_(e,t,n=1){`${e}`;let[r,i]=r_(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return dp(e)?parseFloat(e):e}return im(i)?i_(i,t,n+1):i}function a_(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function o_(e,t,n,r){if(typeof t==`function`){let[i,a]=a_(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=a_(r);t=t(n===void 0?e.custom:n,i,a)}return t}function s_(e,t,n){let r=e.getProps();return o_(r,t,n===void 0?r.custom:n,e)}var c_=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Qh]),l_=e=>Array.isArray(e);function u_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gg(n))}function d_(e){return l_(e)?e[e.length-1]||0:e}function f_(e,t){let{transitionEnd:n={},transition:r={},...i}=s_(e,t)||{};i={...i,...n};for(let t in i)u_(e,t,d_(i[t]))}var p_=e=>!!(e&&e.getVelocity);function m_(e){return!!(p_(e)&&e.add)}function h_(e,t){let n=e.getValue(`willChange`);if(m_(n))return n.add(t);if(!n&&up.WillChange){let n=new up.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function g_(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var __=`data-`+g_(`framerAppearId`);function v_(e){return e.props[__]}function y_({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Kg(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&y_(f,t))continue;let o={delay:n,...qg(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){Jp.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=v_(e);if(n){let e=window.MotionHandoffAnimation(n,t,Jp);e!==null&&(o.startTime=e,p=!0)}}h_(e,t);let m=l??e.shouldReduceMotion;r.start(t_(t,r,i,m&&c_.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>Jp.update(()=>{o&&f_(e,o)});d.length?Promise.all(d).then(t):t()}return d}function x_(e,t,n={}){let r=s_(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(b_(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return S_(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function S_(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(x_(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Bg(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function C_(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>x_(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=x_(e,t,n);else{let i=typeof t==`function`?s_(e,t,n.custom):t;r=Promise.all(b_(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var w_={test:e=>e===`auto`,parse:e=>e},T_=e=>t=>t.test(e),E_=[sm,G,Cm,Sm,Tm,wm,w_],D_=e=>E_.find(T_(e));function O_(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||pp(e)}var k_=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function A_(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(dm)||[];if(!r)return e;let i=n.replace(r,``),a=+!!k_.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var j_=/\b([a-z-]*)\(.*?\)/gu,M_={...Wm,getAnimatableNone:e=>{let t=e.match(j_);return t?t.map(A_).join(` `):e}},N_={...Wm,getAnimatableNone:e=>{let t=Wm.parse(e);return Wm.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},P_={...sm,transform:Math.round},F_={borderWidth:G,borderTopWidth:G,borderRightWidth:G,borderBottomWidth:G,borderLeftWidth:G,borderRadius:G,borderTopLeftRadius:G,borderTopRightRadius:G,borderBottomRightRadius:G,borderBottomLeftRadius:G,width:G,maxWidth:G,height:G,maxHeight:G,top:G,right:G,bottom:G,left:G,inset:G,insetBlock:G,insetBlockStart:G,insetBlockEnd:G,insetInline:G,insetInlineStart:G,insetInlineEnd:G,padding:G,paddingTop:G,paddingRight:G,paddingBottom:G,paddingLeft:G,paddingBlock:G,paddingBlockStart:G,paddingBlockEnd:G,paddingInline:G,paddingInlineStart:G,paddingInlineEnd:G,margin:G,marginTop:G,marginRight:G,marginBottom:G,marginLeft:G,marginBlock:G,marginBlockStart:G,marginBlockEnd:G,marginInline:G,marginInlineStart:G,marginInlineEnd:G,fontSize:G,backgroundPositionX:G,backgroundPositionY:G,rotate:Sm,pathRotation:Sm,rotateX:Sm,rotateY:Sm,rotateZ:Sm,scale:lm,scaleX:lm,scaleY:lm,scaleZ:lm,skew:Sm,skewX:Sm,skewY:Sm,distance:G,translateX:G,translateY:G,translateZ:G,x:G,y:G,z:G,perspective:G,transformPerspective:G,opacity:cm,originX:Em,originY:Em,originZ:G,zIndex:P_,fillOpacity:cm,strokeOpacity:cm,numOctaves:P_},I_={...F_,color:Om,backgroundColor:Om,outlineColor:Om,fill:Om,stroke:Om,borderColor:Om,borderTopColor:Om,borderRightColor:Om,borderBottomColor:Om,borderLeftColor:Om,filter:M_,WebkitFilter:M_,mask:N_,WebkitMask:N_},L_=e=>I_[e],R_=new Set([M_,N_]);function z_(e,t){let n=L_(e);return R_.has(n)||(n=Wm),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var oee=new Set([`auto`,`none`,`0`]);function see(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!oee.has(t)&&Lm(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=z_(n,i)}var cee=class extends lg{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),im(r))){let i=i_(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!c_.has(n)||e.length!==2)return;let[r,i]=e,a=D_(r),o=D_(i);if(om(r)!==om(i)&&tg[n]){this.needsMeasurement=!0;return}if(a!==o){if(eg(a)&&eg(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else tg[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||O_(e[t]))&&n.push(t);n.length&&see(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tg[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=tg[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},B_=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function V_(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var H_=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function lee(e){return fp(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:U_,cancel:uee}=qp(queueMicrotask,!1),W_={x:!1,y:!1};function G_(){return W_.x||W_.y}function K_(e){return e===`x`||e===`y`?W_[e]?null:(W_[e]=!0,()=>{W_[e]=!1}):W_.x||W_.y?null:(W_.x=W_.y=!0,()=>{W_.x=W_.y=!1})}function q_(e,t){let n=V_(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function J_(e){return!(e.pointerType===`touch`||G_())}function Y_(e,t,n={}){let[r,i,a]=q_(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!J_(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var X_=(e,t)=>t?e===t||X_(e,t.parentElement):!1,Z_=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Q_=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function $_(e){return Q_.has(e.tagName)||e.isContentEditable===!0}var ev=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function tv(e){return ev.has(e.tagName)||e.isContentEditable===!0}var nv=new WeakSet;function rv(e){return t=>{t.key===`Enter`&&e(t)}}function iv(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var av=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=rv(()=>{if(nv.has(n))return;iv(n,`down`);let e=rv(()=>{iv(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>iv(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ov(e){return Z_(e)&&!G_()}var sv=new WeakSet;function cv(e,t,n={}){let[r,i,a]=q_(e,n),o=e=>{let r=e.currentTarget;if(!ov(e)||sv.has(e))return;nv.add(r),n.stopPropagation&&sv.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),nv.has(r)&&nv.delete(r),ov(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||X_(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),lee(e)&&(e.addEventListener(`focus`,e=>av(e,i)),!$_(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function lv(e){return fp(e)&&`ownerSVGElement`in e}var uv=new WeakMap,dv,fv=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:lv(r)&&`getBBox`in r?r.getBBox()[t]:r[n],pv=fv(`inline`,`width`,`offsetWidth`),mv=fv(`block`,`height`,`offsetHeight`);function hv({target:e,borderBoxSize:t}){uv.get(e)?.forEach(n=>{n(e,{get width(){return pv(e,t)},get height(){return mv(e,t)}})})}function gv(e){e.forEach(hv)}function _v(){typeof ResizeObserver>`u`||(dv=new ResizeObserver(gv))}function vv(e,t){dv||_v();let n=V_(e);return n.forEach(e=>{let n=uv.get(e);n||(n=new Set,uv.set(e,n)),n.add(t),dv?.observe(e)}),()=>{n.forEach(e=>{let n=uv.get(e);n?.delete(t),n?.size||dv?.unobserve(e)})}}var yv=new Set,bv;function xv(){bv=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};yv.forEach(t=>t(e))},window.addEventListener(`resize`,bv)}function Sv(e){return yv.add(e),bv||xv(),()=>{yv.delete(e),!yv.size&&typeof bv==`function`&&(window.removeEventListener(`resize`,bv),bv=void 0)}}function Cv(e,t){return typeof e==`function`?Sv(e):vv(e,t)}var wv={value:null,addProjectionMetrics:null};function Tv(e){return lv(e)&&e.tagName===`svg`}var Ev=[...E_,Om,Wm],Dv=e=>Ev.find(T_(e)),Ov=()=>({translate:0,scale:1,origin:0,originPoint:0}),kv=()=>({x:Ov(),y:Ov()}),Av=()=>({min:0,max:0}),jv=()=>({x:Av(),y:Av()}),Mv=new WeakMap;function Nv(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Pv(e){return typeof e==`string`||Array.isArray(e)}var Fv=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Iv=[`initial`,...Fv];function Lv(e){return Nv(e.animate)||Iv.some(t=>Pv(e[t]))}function Rv(e){return!!(Lv(e)||e.variants)}function zv(e,t,n){for(let r in t){let i=t[r],a=n[r];if(p_(i))e.addValue(r,i);else if(p_(a))e.addValue(r,Gg(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Gg(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Bv={current:null},Vv={current:!1},Hv=typeof window<`u`;function Uv(){if(Vv.current=!0,Hv){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Bv.current=e.matches;e.addEventListener(`change`,t),t()}else Bv.current=!1}}var Wv=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Gv={};function Kv(e){Gv=e}function qv(){return Gv}var Jv=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=lg,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=()=>{let e=em.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Jp.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Lv(t),this.isVariantNode=Rv(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&p_(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Mv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Vv.current||Uv(),this.shouldReduceMotion=Bv.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Yp(this.notifyUpdate),Yp(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),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&&Mg.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Sg({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:yp(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=$h.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&Jp.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}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 Gv){let t=Gv[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jv()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Wv.length;t++){let n=Wv[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=zv(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){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Gg(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(dp(n)||pp(n))?n=parseFloat(n):!Dv(n)&&Wm.test(t)&&(n=z_(e,t)),this.setBaseTarget(e,p_(n)?n.get():n)),p_(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=o_(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!p_(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new vp),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){U_.render(this.render)}},Yv=class extends Jv{constructor(){super(...arguments),this.KeyframeResolver=cee}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;p_(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Xv=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Zv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Qv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function $v(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ey(e){return e===void 0||e===1}function ty({scale:e,scaleX:t,scaleY:n}){return!ey(e)||!ey(t)||!ey(n)}function ny(e){return ty(e)||ry(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ry(e){return iy(e.x)||iy(e.y)}function iy(e){return e&&e!==`0%`}function ay(e,t,n){return n+t*(e-n)}function oy(e,t,n,r,i){return i!==void 0&&(e=ay(e,i,r)),ay(e,n,r)+t}function sy(e,t=0,n=1,r,i){e.min=oy(e.min,t,n,r,i),e.max=oy(e.max,t,n,r,i)}function cy(e,{x:t,y:n}){sy(e.x,t.translate,t.scale,t.originPoint),sy(e.y,n.translate,n.scale,n.originPoint)}var ly=.999999999999,uy=1.0000000000001;function dy(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(fy(e.x,-a.scroll.offset.x),fy(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,cy(e,o)),r&&ny(a.latestValues)&&hy(e,a.latestValues,a.layout?.layoutBox))}t.x<uy&&t.x>ly&&(t.x=1),t.y<uy&&t.y>ly&&(t.y=1)}function fy(e,t){e.min+=t,e.max+=t}function py(e,t,n,r,i=.5){sy(e,t,n,Jm(e.min,e.max,i),r)}function my(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function hy(e,t,n){let r=n??e;py(e.x,my(t.x,r.x),t.scaleX,t.scale,t.originX),py(e.y,my(t.y,r.y),t.scaleY,t.scale,t.originY)}function gy(e,t){return Zv($v(e.getBoundingClientRect(),t))}function _y(e,t,n){let r=gy(e,n),{scroll:i}=t;return i&&(fy(r.x,i.offset.x),fy(r.y,i.offset.y)),r}var vy={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},yy=Qh.length;function by(e,t,n){let r=``,i=!0;for(let a=0;a<yy;a++){let o=Qh[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=H_(s,F_[o]);if(!c){i=!1;let t=vy[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${H_(a,F_.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function xy(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if($h.has(e)){o=!0;continue}if(nm(e)){i[e]=n;continue}{let t=H_(n,F_[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=by(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function Sy(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function Cy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var wy={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(G.test(e))e=parseFloat(e);else return e}return`${Cy(e,t.target.x)}% ${Cy(e,t.target.y)}%`}},Ty={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Wm.parse(e);if(i.length>5)return r;let a=Wm.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=Jm(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Ey={borderRadius:{...wy,applyTo:[...B_]},borderTopLeftRadius:wy,borderTopRightRadius:wy,borderBottomLeftRadius:wy,borderBottomRightRadius:wy,boxShadow:Ty};function Dy(e,{layout:t,layoutId:n}){return $h.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Ey[e]||e===`opacity`)}function Oy(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(p_(r[t])||i&&p_(i[t])||Dy(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function ky(e){return window.getComputedStyle(e)}var Ay=class extends Yv{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Sy}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if($h.has(t))return this.projection?.isProjecting?Jh(t):Xh(e,t);{let n=ky(e),r=(nm(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return gy(e,t)}build(e,t,n){xy(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Oy(e,t,n)}},jy={offset:`stroke-dashoffset`,array:`stroke-dasharray`},My={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ny(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?jy:My;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Py=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Fy(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(xy(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of Py)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ny(d,i,a,o,!1)}var Iy=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`]),Ly=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ry(e,t,n,r){Sy(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Iy.has(n)?n:g_(n),t.attrs[n])}function zy(e,t,n){let r=Oy(e,t,n);for(let n in e)if(p_(e[n])||p_(t[n])){let t=Qh.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var By=class extends Yv{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=jv}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if($h.has(t)){let e=L_(t);return e&&e.default||0}if(Py.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Iy.has(t)?t:g_(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return zy(e,t,n)}build(e,t,n){Fy(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ry(e,t,n,r)}mount(e){this.isSVGTag=Ly(e.tagName),super.mount(e)}},Vy=Iv.length;function Hy(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Hy(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Vy;n++){let r=Iv[n],i=e.props[r];(Pv(i)||i===!1)&&(t[r]=i)}return t}function Uy(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Wy=[...Fv].reverse(),Gy=Fv.length;function Ky(e){return t=>Promise.all(t.map(({animation:t,options:n})=>C_(e,t,n)))}function qy(e){let t=Ky(e),n=Xy(),r=!0,i=!1,a=t=>(n,r)=>{let i=s_(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=Hy(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<Gy;t++){let p=Wy[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=Pv(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||Nv(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=Jy(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,T={...w,...C},E=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=l_(t)&&l_(n)?!Uy(t,n)||y:t!==n,r?t==null?u.add(e):E(e):t!==void 0&&u.has(e)?E(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let D=v&&y;b&&(!D||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!D&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=s_(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Bg(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=s_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=Xy(),i=!0}}}function Jy(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Uy(t,e):!1}function Yy(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Xy(){return{animate:Yy(!0),whileInView:Yy(),whileHover:Yy(),whileTap:Yy(),whileDrag:Yy(),whileFocus:Yy(),exit:Yy()}}function Zy(e,t){e.min=t.min,e.max=t.max}function Qy(e,t){Zy(e.x,t.x),Zy(e.y,t.y)}function $y(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var eb=.9999,tb=1.0001,nb=-.01,rb=.01;function ib(e){return e.max-e.min}function ab(e,t,n){return Math.abs(e-t)<=n}function ob(e,t,n,r=.5){e.origin=r,e.originPoint=Jm(t.min,t.max,e.origin),e.scale=ib(n)/ib(t),e.translate=Jm(n.min,n.max,e.origin)-e.originPoint,(e.scale>=eb&&e.scale<=tb||isNaN(e.scale))&&(e.scale=1),(e.translate>=nb&&e.translate<=rb||isNaN(e.translate))&&(e.translate=0)}function sb(e,t,n,r){ob(e.x,t.x,n.x,r?r.originX:void 0),ob(e.y,t.y,n.y,r?r.originY:void 0)}function cb(e,t,n,r=0){e.min=(r?Jm(n.min,n.max,r):n.min)+t.min,e.max=e.min+ib(t)}function lb(e,t,n,r){cb(e.x,t.x,n.x,r?.x),cb(e.y,t.y,n.y,r?.y)}function ub(e,t,n,r=0){let i=r?Jm(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+ib(t)}function db(e,t,n,r){ub(e.x,t.x,n.x,r?.x),ub(e.y,t.y,n.y,r?.y)}function fb(e,t,n,r,i){return e-=t,e=ay(e,1/n,r),i!==void 0&&(e=ay(e,1/i,r)),e}function pb(e,t=0,n=1,r=.5,i,a=e,o=e){if(Cm.test(t)&&(t=parseFloat(t),t=Jm(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=Jm(a.min,a.max,r);e===a&&(s-=t),e.min=fb(e.min,t,n,s,i),e.max=fb(e.max,t,n,s,i)}function mb(e,t,[n,r,i],a,o){pb(e,t[n],t[r],t[i],t.scale,a,o)}var hb=[`x`,`scaleX`,`originX`],gb=[`y`,`scaleY`,`originY`];function _b(e,t,n,r){mb(e.x,t,hb,n?n.x:void 0,r?r.x:void 0),mb(e.y,t,gb,n?n.y:void 0,r?r.y:void 0)}function vb(e){return e.translate===0&&e.scale===1}function yb(e){return vb(e.x)&&vb(e.y)}function bb(e,t){return e.min===t.min&&e.max===t.max}function xb(e,t){return bb(e.x,t.x)&&bb(e.y,t.y)}function Sb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Cb(e,t){return Sb(e.x,t.x)&&Sb(e.y,t.y)}function wb(e){return ib(e.x)/ib(e.y)}function Tb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Eb(e){return[e(`x`),e(`y`)]}function Db(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Ob=B_.length,kb=e=>typeof e==`string`?parseFloat(e):e,Ab=e=>typeof e==`number`||G.test(e);function jb(e,t,n,r,i,a){i?(e.opacity=Jm(0,n.opacity??1,Nb(r)),e.opacityExit=Jm(t.opacity??1,0,Pb(r))):a&&(e.opacity=Jm(t.opacity??1,n.opacity??1,r));for(let i=0;i<Ob;i++){let a=B_[i],o=Mb(t,a),s=Mb(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Ab(o)===Ab(s)?(e[a]=Math.max(Jm(kb(o),kb(s),r),0),(Cm.test(s)||Cm.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=Jm(t.rotate||0,n.rotate||0,r))}function Mb(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Nb=Fb(0,.5,Pp),Pb=Fb(.5,.95,hp);function Fb(e,t,n){return r=>r<e?0:r>t?1:n(_p(e,t,r))}function dee(e,t,n){let r=p_(e)?e:Gg(e);return r.start(t_(``,r,t,n)),r.animation}function Ib(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var fee=(e,t)=>e.depth-t.depth,pee=class{constructor(){this.children=[],this.isDirty=!1}add(e){sp(this.children,e),this.isDirty=!0}remove(e){cp(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(fee),this.isDirty=!1,this.children.forEach(e)}};function mee(e,t){let n=em.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Yp(r),e(a-t))};return Jp.setup(r,!0),()=>Yp(r)}function Lb(e){return p_(e)?e.get():e}var hee=class{constructor(){this.members=[]}add(e){sp(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(cp(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(cp(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Rb={hasAnimatedSinceResize:!0,hasEverUpdated:!1},zb={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},Bb=[``,`X`,`Y`,`Z`],gee=1e3,_ee=0;function Vb(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Hb(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=v_(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,Jp,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Hb(r)}function Ub({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=_ee++,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,wv.value&&(zb.nodes=zb.calculatedTargetDeltas=zb.calculatedProjections=0),this.nodes.forEach(bee),this.nodes.forEach(qb),this.nodes.forEach(Jb),this.nodes.forEach(xee),wv.addProjectionMetrics&&wv.addProjectionMetrics(zb)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new pee)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new vp),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=lv(t)&&!Tv(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;Jp.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=mee(i,250),Rb.hasAnimatedSinceResize&&(Rb.hasAnimatedSinceResize=!1,this.nodes.forEach(Kb)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||tx,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Cb(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...qg(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Kb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Yp(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(Yb),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Hb(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Cee),this.nodes.forEach(Wb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Gb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(wee),this.nodes.forEach(Tee),this.nodes.forEach(vee),this.nodes.forEach(yee)):this.nodes.forEach(Gb),this.clearAllSnapshots();let e=em.now();Xp.delta=lp(0,1e3/60,e-Xp.timestamp),Xp.timestamp=e,Xp.isProcessing=!0,Zp.update.process(Xp),Zp.preRender.process(Xp),Zp.render.process(Xp),Xp.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,U_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(See),this.sharedNodes.forEach(Xb)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Jp.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Jp.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!ib(this.snapshot.measuredBox.x)&&!ib(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=jv(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!yb(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||ny(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),ax(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return jv();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(sx))){let{scroll:e}=this.root;e&&(fy(t.x,e.offset.x),fy(t.y,e.offset.y))}return t}removeElementScroll(e){let t=jv();if(Qy(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Qy(t,e),fy(t.x,i.offset.x),fy(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||jv();Qy(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(fy(r.x,-n.scroll.offset.x),fy(r.y,-n.scroll.offset.y)),ny(n.latestValues)&&hy(r,n.latestValues,n.layout?.layoutBox)}return ny(this.latestValues)&&hy(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=jv();Qy(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!ny(n.latestValues))continue;let r;n.instance&&(ty(n.latestValues)&&n.updateSnapshot(),r=jv(),Qy(r,n.measurePageBox())),_b(t,n.latestValues,n.snapshot?.layoutBox,r)}return ny(this.latestValues)&&_b(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}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!==Xp.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Xp.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jv(),this.targetWithTransforms=jv()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),lb(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qy(this.target,this.layout.layoutBox),cy(this.target,this.targetDelta)):Qy(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),wv.value&&zb.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||ty(this.parent.latestValues)||ry(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jv(),this.relativeTargetOrigin=jv(),db(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Qy(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Xp.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Qy(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;dy(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=jv());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($y(this.prevProjectionDelta.x,this.projectionDelta.x),$y(this.prevProjectionDelta.y,this.projectionDelta.y)),sb(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Tb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Tb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),wv.value&&zb.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=kv(),this.projectionDelta=kv(),this.projectionDeltaWithTransform=kv()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=kv();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=jv(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(ex));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=Jm(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=Jm(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Zb(o.x,e.x,n),Zb(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(db(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),$b(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&xb(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=jv(),Qy(f,this.relativeTarget)),c&&(this.animationValues=a,jb(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(Yp(this.pendingAnimation),void 0),this.pendingAnimation=Jp.update(()=>{Rb.hasAnimatedSinceResize=!0,this.motionValue||=Gg(0),this.motionValue.jump(0,!1),this.currentAnimation=dee(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(gee),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&ox(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||jv();let t=ib(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=ib(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Qy(t,n),hy(t,i),sb(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new hee),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Vb(`z`,e,r,this.animationValues);for(let t=0;t<Bb.length;t++)Vb(`rotate${Bb[t]}`,e,r,this.animationValues),Vb(`skew${Bb[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Lb(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Lb(t?.pointerEvents)||``),this.hasProjected&&!ny(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Db(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Ey){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Ey[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Lb(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Wb),this.root.sharedNodes.clear()}}}function vee(e){e.updateLayout()}function yee(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Eb(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=ib(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Zy(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else ox(i,t.layoutBox,n)&&Eb(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=ib(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=kv();sb(o,n,t.layoutBox);let s=kv();a?sb(s,e.applyTransform(r,!0),t.measuredBox):sb(s,n,t.layoutBox);let c=!yb(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=jv();db(s,t.layoutBox,i.layoutBox,o);let c=jv();db(c,n,a.layoutBox,o),Cb(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function bee(e){wv.value&&zb.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function xee(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function See(e){e.clearSnapshot()}function Wb(e){e.clearMeasurements()}function Cee(e){e.isLayoutDirty=!0,e.updateLayout()}function Gb(e){e.isLayoutDirty=!1}function wee(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Tee(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Kb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function qb(e){e.resolveTargetDelta()}function Jb(e){e.calcProjection()}function Yb(e){e.resetSkewAndRotation()}function Xb(e){e.removeLeadSnapshot()}function Zb(e,t,n){e.translate=Jm(t.translate,0,n),e.scale=Jm(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qb(e,t,n,r){e.min=Jm(t.min,n.min,r),e.max=Jm(t.max,n.max,r)}function $b(e,t,n,r){Qb(e.x,t.x,n.x,r),Qb(e.y,t.y,n.y,r)}function ex(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var tx={duration:.45,ease:[.4,0,.1,1]},nx=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rx=nx(`applewebkit/`)&&!nx(`chrome/`)?Math.round:hp;function ix(e){e.min=rx(e.min),e.max=rx(e.max)}function ax(e){ix(e.x),ix(e.y)}function ox(e,t,n){return e===`position`||e===`preserve-aspect`&&!ab(wb(t),wb(n),.2)}function sx(e){return e!==e.root&&e.scroll?.wasRoot}var cx=Ub({attachResizeListener:(e,t)=>Ib(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),lx={current:void 0},ux=Ub({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lx.current){let e=new cx({});e.mount(window),e.setOptions({layoutScroll:!0}),lx.current=e}return lx.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),dx=(0,R.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function fx(e=!0){let t=(0,R.useContext)(op);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,R.useId)();(0,R.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,R.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var px=(0,R.createContext)({strict:!1}),mx={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`]},hx=!1;function gx(){if(hx)return;let e={};for(let t in mx)e[t]={isEnabled:e=>mx[t].some(t=>!!e[t])};Kv(e),hx=!0}function _x(){return gx(),qv()}function vx(e){let t=_x();for(let n in e)t[n]={...t[n],...e[n]};Kv(t)}var yx=(0,R.createContext)({});function bx(e,t){if(Lv(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Pv(t)?t:void 0,animate:Pv(n)?n:void 0}}return e.inherit===!1?{}:t}function xx(e){let{initial:t,animate:n}=bx(e,(0,R.useContext)(yx));return(0,R.useMemo)(()=>({initial:t,animate:n}),[Sx(t),Sx(n)])}function Sx(e){return Array.isArray(e)?e.join(` `):e}var Cx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function wx(e,t,n){for(let r in t)!p_(t[r])&&!Dy(r,n)&&(e[r]=t[r])}function Tx({transformTemplate:e},t){return(0,R.useMemo)(()=>{let n=Cx();return xy(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ex(e,t){let n=e.style||{},r={};return wx(r,n,e),Object.assign(r,Tx(e,t)),r}function Dx(e,t){let n={},r=Ex(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Ox=()=>({...Cx(),attrs:{}});function kx(e,t,n,r){let i=(0,R.useMemo)(()=>{let n=Ox();return Fy(n,t,Ly(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};wx(t,e.style,e),i.style={...t,...i.style}}return i}var Ax=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`.split(`.`));function jx(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||Ax.has(e)}function Mx(e,t){return e.startsWith(`on`)?!jx(e):t?.(e)??!jx(e)}function Nx(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(p_(e[a])||(Mx(a,r)||n===!0&&jx(a)||!t&&!jx(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var Px=[`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 Fx(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Px.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ix(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??Fx(e)?kx:Dx)(t,r,i,e),l=Nx(t,typeof e==`string`,a,s),u=e===R.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,R.useMemo)(()=>p_(d)?d.get():d,[d]);return(0,R.createElement)(e,{...u,children:f})}function Lx({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Rx(n,r,i,e),renderState:t()}}function Rx(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Lb(a[e]);let{initial:o,animate:s}=e,c=Lv(e),l=Rv(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!Nv(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=o_(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var zx=e=>(t,n)=>{let r=(0,R.useContext)(yx),i=(0,R.useContext)(op),a=()=>Lx(e,t,r,i);return n?a():ip(a)},Bx=zx({scrapeMotionValuesFromProps:Oy,createRenderState:Cx}),Vx=zx({scrapeMotionValuesFromProps:zy,createRenderState:Ox}),Hx=Symbol.for(`motionComponentSymbol`);function Ux(e,t,n){let r=(0,R.useRef)(n);(0,R.useInsertionEffect)(()=>{r.current=n});let i=(0,R.useRef)(null);return(0,R.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Wx=(0,R.createContext)({});function Gx(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Kx(e,t,n,r,i,a){let{visualElement:o}=(0,R.useContext)(yx),s=(0,R.useContext)(px),c=(0,R.useContext)(op),l=(0,R.useContext)(dx),u=l.reducedMotion,d=l.skipAnimations,f=(0,R.useRef)(null),p=(0,R.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,R.useContext)(Wx);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&qx(f.current,n,i,h);let g=(0,R.useRef)(!1);(0,R.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[__],v=(0,R.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return ap(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,R.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function qx(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Jx(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Gx(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Jx(e){if(e)return e.options.allowProjection===!1?Jx(e.parent):e.projection}function Yx(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&vx(r);let a=n?n===`svg`:Fx(e),o=a?Vx:Bx;function s(n,s){let c,l={...(0,R.useContext)(dx),...n,layoutId:Xx(n)},{isStatic:u,isValidProp:d}=l,f=xx(n),p=o(n,u);if(!u&&typeof window<`u`){Zx(l,r);let t=Qx(l);c=t.MeasureLayout,f.visualElement=Kx(e,p,l,i,t.ProjectionNode,a)}return(0,z.jsxs)(yx.Provider,{value:f,children:[c&&f.visualElement?(0,z.jsx)(c,{visualElement:f.visualElement,...l}):null,Ix(e,n,Ux(p,f.visualElement,s),p,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,R.forwardRef)(s);return c[Hx]=e,c}function Xx({layoutId:e}){let t=(0,R.useContext)(rp).id;return t&&e!==void 0?t+`-`+e:e}function Zx(e,t){(0,R.useContext)(px).strict}function Qx(e){let{drag:t,layout:n}=_x();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function $x(e,t){if(typeof Proxy>`u`)return Yx;let n=new Map,r=(n,r)=>Yx(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Yx(a,void 0,e,t)),n.get(a))})}var eS=(e,t)=>t.isSVG??Fx(e)?new By(t):new Ay(t,{allowProjection:e!==R.Fragment}),tS=class extends Xv{constructor(e){super(e),e.animationState||=qy(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Nv(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},nS=0,rS={animation:{Feature:tS},exit:{Feature:class extends Xv{constructor(){super(...arguments),this.id=nS++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=s_(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function iS(e){return{point:{x:e.pageX,y:e.pageY}}}var aS=e=>t=>Z_(t)&&e(t,iS(t));function oS(e,t,n,r){return Ib(e,t,aS(n),r)}var sS=({current:e})=>e?e.ownerDocument.defaultView:null,cS=(e,t)=>Math.abs(e-t);function lS(e,t){let n=cS(e.x,t.x),r=cS(e.y,t.y);return Math.sqrt(n**2+r**2)}var uS=new Set([`auto`,`scroll`]),dS=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=fS(this.lastRawMoveEventInfo,this.transformPagePoint));let e=mS(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=lS(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=Xp;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=fS(t,this.transformPagePoint),Jp.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=mS(e.type===`pointercancel`?this.lastMoveEventInfo:fS(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Z_(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=fS(iS(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Xp;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,mS(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=gp(oS(this.contextWindow,`pointermove`,this.handlePointerMove,d),oS(this.contextWindow,`pointerup`,this.handlePointerUp,d),oS(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(uS.has(e.overflowX)||uS.has(e.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){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),Jp.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Yp(this.updatePoint)}};function fS(e,t){return t?{point:t(e.point)}:e}function pS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function mS({point:e},t){return{point:e,delta:pS(e,gS(t)),offset:pS(e,hS(t)),velocity:_S(t,.1)}}function hS(e){return e[0]}function gS(e){return e[e.length-1]}function _S(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=gS(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yp(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>yp(t)*2&&(r=e[1]);let a=bp(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function vS(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Jm(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Jm(n,e,r.max):Math.min(e,n)),e}function yS(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function bS(e,{top:t,left:n,bottom:r,right:i}){return{x:yS(e.x,n,i),y:yS(e.y,t,r)}}function xS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function SS(e,t){return{x:xS(e.x,t.x),y:xS(e.y,t.y)}}function CS(e,t){let n=.5,r=ib(e),i=ib(t);return i>r?n=_p(t.min,t.max-r,e.min):r>i&&(n=_p(e.min,e.max-i,t.min)),lp(0,1,n)}function wS(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var TS=.35;function ES(e=TS){return e===!1?e=0:e===!0&&(e=TS),{x:DS(e,`left`,`right`),y:DS(e,`top`,`bottom`)}}function DS(e,t,n){return{min:OS(e,t),max:OS(e,n)}}function OS(e,t){return typeof e==`number`?e:e[t]||0}var kS=new WeakMap,AS=class{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=jv(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(iS(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=K_(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Eb(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Cm.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=ib(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&Jp.update(()=>i(e,t),!1,!0),h_(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=PS(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&Jp.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new dS(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:sS(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&Jp.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&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,n){let{drag:r}=this.getProps();if(!n||!NS(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=vS(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Gx(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?bS(n.layoutBox,e):!1,this.elastic=ES(t),r!==this.constraints&&!Gx(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Eb(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=wS(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Gx(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=_y(n,r.root,this.visualElement.getTransformPagePoint()),a=SS(r.layout.layoutBox,i);if(t){let e=t(Qv(a));this.hasMutatedConstraints=!!e,e&&(a=Zv(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Eb(o=>{if(!NS(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return h_(this.visualElement,e),n.start(t_(e,n,0,t,this.visualElement,!1))}stopAnimation(){Eb(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){Eb(t=>{let{drag:n}=this.getProps();if(!NS(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-Jm(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Gx(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};Eb(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=CS({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Eb(t=>{if(!NS(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(Jm(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;kS.set(this.visualElement,this);let e=this.visualElement.current,t=oS(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&tv(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Gx(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=MS(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Jp.read(r);let o=Ib(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Eb(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=TS,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function jS(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function MS(e,t,n){let r=Cv(e,jS(n)),i=Cv(t,jS(n));return()=>{r(),i()}}function NS(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function PS(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var FS=class extends Xv{constructor(e){super(e),this.removeGroupControls=hp,this.removeListeners=hp,this.controls=new AS(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hp}update(){let{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()}},IS=e=>(t,n)=>{e&&Jp.update(()=>e(t,n),!1,!0)},LS=class extends Xv{constructor(){super(...arguments),this.removePointerDownListener=hp}onPointerDown(e){this.session=new dS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sS(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:IS(e),onStart:IS(t),onMove:IS(n),onEnd:(e,t)=>{delete this.session,r&&Jp.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=oS(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},RS=!1,zS=class extends R.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),RS&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Rb.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),RS=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||Jp.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),U_.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;RS=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function BS(e){let[t,n]=fx(),r=(0,R.useContext)(rp);return(0,z.jsx)(zS,{...e,layoutGroup:r,switchLayoutGroup:(0,R.useContext)(Wx),isPresent:t,safeToRemove:n})}var VS={pan:{Feature:LS},drag:{Feature:FS,ProjectionNode:ux,MeasureLayout:BS}};function HS(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&Jp.postRender(()=>i(t,iS(t)))}var US=class extends Xv{mount(){let{current:e}=this.node;e&&(this.unmount=Y_(e,(e,t)=>(HS(this.node,t,`Start`),e=>HS(this.node,e,`End`))))}unmount(){}},WS=class extends Xv{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=gp(Ib(this.node.current,`focus`,()=>this.onFocus()),Ib(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function GS(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&Jp.postRender(()=>i(t,iS(t)))}var KS=class extends Xv{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=cv(e,(e,t)=>(GS(this.node,t,`Start`),(e,{success:t})=>GS(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},qS=new WeakMap,JS=new WeakMap,YS=e=>{let t=qS.get(e.target);t&&t(e)},XS=e=>{e.forEach(YS)};function ZS({root:e,...t}){let n=e||document;JS.has(n)||JS.set(n,{});let r=JS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XS,{root:e,...t})),r[i]}function QS(e,t,n){let r=ZS(t);return qS.set(e,n),r.observe(e),()=>{qS.delete(e),r.unobserve(e)}}var $S={some:0,all:1},eC=class extends Xv{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:$S[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=QS(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(tC(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function tC({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var nC={inView:{Feature:eC},tap:{Feature:KS},focus:{Feature:WS},hover:{Feature:US}},rC={layout:{ProjectionNode:ux,MeasureLayout:BS}},iC=$x({...rS,...nC,...VS,...rC},eS);function aC(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=aC(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function oC(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=aC(e))&&(r&&(r+=` `),r+=t);return r}var sC=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function cC(e){return typeof e==`string`&&sC.includes(e)}var lC=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function uC(e){return typeof e==`string`&&lC.has(e)}function dC(e){return typeof e==`string`&&e.startsWith(`data-`)}function fC(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uC(n)||dC(n))&&(t[n]=e[n]);return t}function pC(e){if(e==null)return null;if((0,R.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return fC(t)}return typeof e==`object`&&!Array.isArray(e)?fC(e):null}function mC(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(uC(n)||dC(n)||cC(n))&&(t[n]=e[n]);return t}function hC(e){return e==null?null:(0,R.isValidElement)(e)?mC(e.props):typeof e==`object`&&!Array.isArray(e)?mC(e):null}var gC=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_C.apply(null,arguments)}function vC(e,t){if(e==null)return{};var n,r,i=yC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bC=(0,R.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=vC(e,gC),d=a||{width:r,height:i,x:0,y:0},f=oC(`recharts-surface`,o);return R.createElement(`svg`,_C({},mC(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),R.createElement(`title`,null,c),R.createElement(`desc`,null,l),n)}),xC=[`children`,`className`];function SC(){return SC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SC.apply(null,arguments)}function CC(e,t){if(e==null)return{};var n,r,i=wC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wC(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var TC=R.forwardRef((e,t)=>{var n=e.children,r=e.className,i=CC(e,xC),a=oC(`recharts-layer`,r);return R.createElement(`g`,SC({className:a},mC(i),{ref:t}),n)});function EC(e){return e===`__proto__`}var DC=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function OC(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:DC.test(e);default:return!1}}function kC(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function AC(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(AC).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function jC(e){if(Array.isArray(e))return e.map(kC);if(typeof e==`symbol`)return[e];e=AC(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function MC(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(EC(t))return n;let r=e[t];return r===void 0?OC(t)&&!Object.hasOwn(e,t)?MC(e,jC(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=kC(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return NC(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),EC(t))return n;let r=e[t];return r===void 0?n:r}}}function NC(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||EC(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var PC=4;function FC(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:PC),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function IC(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+FC(i)+n},``)}var LC=e=>e===0?0:e>0?1:-1,RC=e=>typeof e==`number`&&e!=+e,zC=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,K=e=>(typeof e==`number`||e instanceof Number)&&!RC(e),BC=e=>K(e)||typeof e==`string`,VC=0,HC=e=>{var t=++VC;return`${e||``}${t}`},UC=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!K(e)&&typeof e!=`string`)return n;var i;if(zC(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return RC(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},WC=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function GC(e,t,n){return K(e)&&K(t)?FC(e+n*(t-e)):t}function KC(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):MC(e,t))===n)}var qC=e=>e==null,JC=e=>qC(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function YC(e){return e!=null}function XC(){}function ZC(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function QC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?QC(Object(n),!0).forEach(function(t){ew(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ew(e,t,n){return(t=tw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){var t=nw(e,`string`);return typeof t==`symbol`?t:t+``}function nw(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var rw=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=ZC(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?$C({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?$C({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?$C({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?$C({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?$C({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?$C({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?$C({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?$C({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(K(n.x)||zC(n.x))&&(K(n.y)||zC(n.y))?$C({x:c+UC(n.x,g),y:l+UC(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):$C({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},iw=[`top`,`left`,`right`,`bottom`];function aw(e){return e==null?!1:typeof e==`object`||iw.includes(e)}var ow=(0,R.createContext)(null);function sw(e){return function(){return e}}var cw=Math.PI,lw=2*cw,uw=1e-6,dw=lw-uw;function fw(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function pw(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return fw;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var mw=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?fw:pw(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>uw){if(!(Math.abs(u*s-c*l)>uw)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((cw-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>uw&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>uw||Math.abs(this._y1-l)>uw)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%lw+lw),d>dw?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>uw&&this._append`A${n},${n},0,${+(d>=cw)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};mw.prototype;function hw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new mw(t)}Array.prototype.slice;function gw(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function _w(e){this._context=e}_w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function vw(e){return new _w(e)}function yw(e){return e[0]}function bw(e){return e[1]}function xw(e,t){var n=sw(!0),r=null,i=vw,a=null,o=hw(s);e=typeof e==`function`?e:e===void 0?yw:sw(e),t=typeof t==`function`?t:t===void 0?bw:sw(t);function s(s){var c,l=(s=gw(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:sw(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function Sw(e,t,n){var r=null,i=sw(!0),a=null,o=vw,s=null,c=hw(l);e=typeof e==`function`?e:e===void 0?yw:sw(+e),t=typeof t==`function`?t:sw(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?bw:sw(+n);function l(l){var u,d,f,p=(l=gw(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return xw().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:sw(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:sw(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:sw(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:sw(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:sw(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Cw=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function ww(e){return new Cw(e,!0)}function Tw(e){return new Cw(e,!1)}function Ew(){}function Dw(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ow(e){this._context=e}Ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Dw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kw(e){return new Ow(e)}function Aw(e){this._context=e}Aw.prototype={areaStart:Ew,areaEnd:Ew,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jw(e){return new Aw(e)}function Mw(e){this._context=e}Mw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Dw(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nw(e){return new Mw(e)}function Pw(e){this._context=e}Pw.prototype={areaStart:Ew,areaEnd:Ew,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Fw(e){return new Pw(e)}function Iw(e){return e<0?-1:1}function Lw(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Iw(a)+Iw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Rw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zw(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function Bw(e){this._context=e}Bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zw(this,this._t0,Rw(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zw(this,Rw(this,n=Lw(this,e,t)),n);break;default:zw(this,this._t0,n=Lw(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Vw(e){this._context=new Hw(e)}(Vw.prototype=Object.create(Bw.prototype)).point=function(e,t){Bw.prototype.point.call(this,t,e)};function Hw(e){this._context=e}Hw.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Uw(e){return new Bw(e)}function Ww(e){return new Vw(e)}function Gw(e){this._context=e}Gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Kw(e),i=Kw(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Kw(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qw(e){return new Gw(e)}function Jw(e,t){this._context=e,this._t=t}Jw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Yw(e){return new Jw(e,.5)}function Xw(e){return new Jw(e,0)}function Zw(e){return new Jw(e,1)}function Qw(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function $w(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function eT(e,t){return e[t]}function tT(e){let t=[];return t.key=e,t}function nT(){var e=sw([]),t=$w,n=Qw,r=eT;function i(i){var a=Array.from(e.apply(this,arguments),tT),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=gw(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:sw(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:sw(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?$w:typeof e==`function`?e:sw(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Qw,i):n},i}function rT(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Qw(e,t)}}function iT(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Qw(e,t)}}function aT(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Qw(e,t)}}var oT=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,sT=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,R.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{cC(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},cT=(e,t,n)=>r=>(e(t,n,r),null),lT=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];cC(i)&&typeof a==`function`&&(r||={},r[i]=cT(a,t,n))}),r};function uT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uT(Object(n),!0).forEach(function(t){fT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fT(e,t,n){return(t=pT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pT(e){var t=mT(e,`string`);return typeof t==`symbol`?t:t+``}function mT(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hT(e,t){var n=dT({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function gT(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function _T(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function vT(e){return e}function yT(e){return function(t){return MC(t,e)}}function bT(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function xT(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function ST(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function CT(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var wT=`[object RegExp]`,TT=`[object String]`,ET=`[object Number]`,DT=`[object Boolean]`,OT=`[object Arguments]`,kT=`[object Symbol]`,AT=`[object Date]`,jT=`[object Map]`,MT=`[object Set]`,NT=`[object Array]`,PT=`[object Function]`,FT=`[object ArrayBuffer]`,IT=`[object Object]`,LT=`[object Error]`,RT=`[object DataView]`,zT=`[object Uint8Array]`,BT=`[object Uint8ClampedArray]`,VT=`[object Uint16Array]`,HT=`[object Uint32Array]`,UT=`[object BigUint64Array]`,WT=`[object Int8Array]`,GT=`[object Int16Array]`,KT=`[object Int32Array]`,qT=`[object BigInt64Array]`,JT=`[object Float32Array]`,YT=`[object Float64Array]`,XT=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function ZT(e){return XT.Buffer!==void 0&&XT.Buffer.isBuffer(e)}function QT(e,t){return $T(e,void 0,e,new Map,t)}function $T(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(bT(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=$T(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,$T(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add($T(a,void 0,n,r,i));return t}if(ZT(e))return e.subarray();if(xT(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=$T(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),eE(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),eE(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,eE(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),eE(t,e,n,r,i),t}if(typeof e==`object`&&Eee(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),eE(t,e,n,r,i),t}return e}function eE(e,t,n=e,r,i){let a=[...Object.keys(t),...ST(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=$T(t[s],s,n,r,i))}}function Eee(e){switch(CT(e)){case OT:case NT:case FT:case RT:case DT:case AT:case JT:case YT:case WT:case GT:case KT:case jT:case ET:case IT:case wT:case MT:case TT:case kT:case zT:case BT:case VT:case HT:return!0;default:return!1}}function Dee(e){return $T(e,void 0,e,new Map,void 0)}function tE(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function nE(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function rE(e,t,n){return typeof n==`function`?iE(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?iE(t,r,e,s,!1):!!c},new Map,!0):rE(e,t,()=>void 0)}function iE(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Oee(e,t,n,r);case`function`:return Object.keys(t).length>0?iE(e,{...t},n,r,i):tE(e,t);default:return nE(e)&&i?typeof t!=`string`||t===``:tE(e,t)}}function Oee(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return aE(e,t,n,r);if(t instanceof Map)return kee(e,t,n,r);if(t instanceof Set)return Aee(e,t,n,r);let i=Object.keys(t);if(e==null||bT(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!bT(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function kee(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function aE(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Aee(e,t,n,r){return t.size===0||e instanceof Set&&aE([...e],[...t],n,r)}function oE(e,t){return rE(e,t,()=>void 0)}function jee(e){return e=Dee(e),t=>oE(t,e)}function Mee(e,t){return QT(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(CT(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),eE(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case ET:case TT:case DT:{let t=new e.constructor(e?.valueOf());return eE(t,e),t}case OT:{let t={};return eE(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Nee(e){return Mee(e)}var Pee=/^(?:0|[1-9]\d*)$/;function sE(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Pee.test(e)}}function Fee(e){return typeof e==`object`&&!!e&&CT(e)===`[object Arguments]`}function Iee(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&OC(t)&&!(t in Object(e))?jC(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Fee(r))&&sE(t)&&t<r.length))return!1;r=r[t]}return!0}function Lee(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=kC(e)}return t=Nee(t),function(n){let r=MC(n,e);return r===void 0?Iee(n,e):t===void 0?r===void 0:oE(r,t)}}function Ree(e){if(e==null)return vT;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Lee(e[0],e[1]):jee(e);case`string`:case`symbol`:case`number`:return yT(e)}}function zee(e){return Number.isSafeInteger(e)&&e>=0}function cE(e){return e!=null&&typeof e!=`function`&&zee(e.length)}function Bee(e){return typeof e==`object`&&!!e}function Vee(e){return Bee(e)&&cE(e)}function lE(e,t=vT){return Vee(e)?gT(Array.from(e),_T(Ree(t),1)):[]}function Hee(e,t,n){return t===!0?lE(e,n):typeof t==`function`?lE(e,t):e}var uE=(0,R.createContext)(null),Uee=e=>e,dE=()=>{var e=(0,R.useContext)(uE);return e?e.store.dispatch:Uee},fE=()=>{},Wee=()=>fE,Gee=(e,t)=>e===t;function q(e){var t=(0,R.useContext)(uE),n=(0,R.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:fE,[t,e]);return(0,Fi.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Wee,t?t.store.getState:fE,t?t.store.getState:fE,n,Gee)}function Kee(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function qee(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var pE=e=>Array.isArray(e)?e:[e];function Jee(e){let t=Array.isArray(e[0])?e[0]:e;return qee(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Yee(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Xee=class{constructor(e){this.value=e}deref(){return this.value}},mE=typeof WeakRef>`u`?Xee:WeakRef,Zee=0,hE=1;function gE(){return{s:Zee,v:void 0,o:null,p:null}}function Qee(e){return e instanceof mE?e.deref():e}function _E(e,t={}){let n=gE(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=gE(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=gE(),e.set(n,t)):t=r}}let s=t,c;if(t.s===hE)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Qee(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new mE(c):c}return s.s=hE,s.v=c,c}return o.clearCache=()=>{n=gE(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function $ee(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Kee(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=_E,argsMemoizeOptions:u=[]}={...n,...a},d=pE(c),f=pE(u),p=Jee(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Yee(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var J=$ee(_E);function ete(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function vE(e,t,n){return nE(n)&&(typeof t==`number`&&cE(n)&&sE(t)&&t<n.length||typeof t==`string`&&t in n)?tE(n[t],e):!1}function yE(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var tte=(e,t,n)=>{if(e!==t){let r=yE(e),i=yE(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0};function bE(e){return typeof e==`symbol`||e instanceof Symbol}var nte=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rte=/^\w*$/;function ite(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||bE(e)?!0:typeof e==`string`&&(rte.test(e)||!nte.test(e))||t!=null&&Object.hasOwn(t,e)}function ate(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},a=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):typeof t==`object`?t[e]:t,o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||ite(e)?e:{key:e,path:jC(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=tte(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function xE(e,...t){let n=t.length;return n>1&&vE(e,t[0],t[1])?t=[]:n>2&&vE(t[0],t[1],t[2])&&(t=[t[0]]),ate(e,ete(t),[`asc`])}var SE=e=>e.legend.settings,ote=e=>e.legend.size;J([e=>e.legend.payload,SE],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?xE(r,n):r});function ste(e,t){return wE(e)||ute(e,t)||lte(e,t)||cte()}function cte(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
10
10
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lte(e,t){if(e){if(typeof e==`string`)return CE(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CE(e,t):void 0}}function CE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ute(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function wE(e){if(Array.isArray(e))return e}var TE=1;function EE(e,t){return Math.abs(e.height-t.height)>TE||Math.abs(e.left-t.left)>TE||Math.abs(e.top-t.top)>TE||Math.abs(e.width-t.width)>TE}function DE(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function OE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=ste((0,R.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,R.useRef)(null),a=(0,R.useRef)(n);a.current=n;var o=(0,R.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=DE(e);if(EE(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=DE(e);EE(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,R.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function kE(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var AE=typeof Symbol==`function`&&Symbol.observable||`@@observable`,jE=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ME={INIT:`@@redux/INIT${jE()}`,REPLACE:`@@redux/REPLACE${jE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jE()}`};function NE(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function PE(e,t,n){if(typeof e!=`function`)throw Error(kE(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(kE(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(kE(1));return n(PE)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(kE(3));return i}function d(e){if(typeof e!=`function`)throw Error(kE(4));if(c)throw Error(kE(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(kE(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!NE(e))throw Error(kE(7));if(e.type===void 0)throw Error(kE(8));if(typeof e.type!=`string`)throw Error(kE(17));if(c)throw Error(kE(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(kE(10));r=e,f({type:ME.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(kE(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[AE](){return this}}}return f({type:ME.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[AE]:m}}function FE(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:ME.INIT})===void 0)throw Error(kE(12));if(n(void 0,{type:ME.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(kE(13))})}function IE(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{FE(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(kE(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function LE(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function RE(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(kE(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=LE(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function zE(e){return NE(e)&&`type`in e&&typeof e.type==`string`}var BE=Symbol.for(`immer-nothing`),VE=Symbol.for(`immer-draftable`),HE=Symbol.for(`immer-state`);function UE(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var WE=Object,GE=WE.getPrototypeOf,KE=`constructor`,qE=`prototype`,JE=`configurable`,YE=`enumerable`,XE=`writable`,ZE=`value`,QE=e=>!!e&&!!e[HE];function $E(e){return e?nD(e)||lD(e)||!!e[VE]||!!e[KE]?.[VE]||uD(e)||dD(e):!1}var eD=WE[qE][KE].toString(),tD=new WeakMap;function nD(e){if(!e||!fD(e))return!1;let t=GE(e);if(t===null||t===WE[qE])return!0;let n=WE.hasOwnProperty.call(t,KE)&&t[KE];if(n===Object)return!0;if(!pD(n))return!1;let r=tD.get(n);return r===void 0&&(r=Function.toString.call(n),tD.set(n,r)),r===eD}function rD(e,t,n=!0){iD(e)===0?(n?Reflect.ownKeys(e):WE.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function iD(e){let t=e[HE];return t?t.type_:lD(e)?1:uD(e)?2:dD(e)?3:0}var aD=(e,t,n=iD(e))=>n===2?e.has(t):WE[qE].hasOwnProperty.call(e,t),oD=(e,t,n=iD(e))=>n===2?e.get(t):e[t],sD=(e,t,n,r=iD(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function cD(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var lD=Array.isArray,uD=e=>e instanceof Map,dD=e=>e instanceof Set,fD=e=>typeof e==`object`,pD=e=>typeof e==`function`,mD=e=>typeof e==`boolean`;function hD(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var gD=e=>e.copy_||e.base_,_D=e=>e.modified_?e.copy_:e.base_;function vD(e,t){if(uD(e))return new Map(e);if(dD(e))return new Set(e);if(lD(e))return Array[qE].slice.call(e);let n=nD(e);if(t===!0||t===`class_only`&&!n){let t=WE.getOwnPropertyDescriptors(e);delete t[HE];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[XE]===!1&&(a[XE]=!0,a[JE]=!0),(a.get||a.set)&&(t[i]={[JE]:!0,[XE]:!0,[YE]:a[YE],[ZE]:e[i]})}return WE.create(GE(e),t)}{let t=GE(e);if(t!==null&&n)return{...e};let r=WE.create(t);return WE.assign(r,e)}}function yD(e,t=!1){return SD(e)||QE(e)||!$E(e)?e:(iD(e)>1&&WE.defineProperties(e,{set:xD,add:xD,clear:xD,delete:xD}),WE.freeze(e),t&&rD(e,(e,t)=>{yD(t,!0)},!1),e)}function bD(){UE(2)}var xD={[ZE]:bD};function SD(e){return e===null||!fD(e)||WE.isFrozen(e)}var CD=`MapSet`,wD=`Patches`,TD=`ArrayMethods`,ED={};function DD(e){let t=ED[e];return t||UE(0,e),t}var OD=e=>!!ED[e],kD,AD=()=>kD,jD=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:OD(CD)?DD(CD):void 0,arrayMethodsPlugin_:OD(TD)?DD(TD):void 0});function MD(e,t){t&&(e.patchPlugin_=DD(wD),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ND(e){PD(e),e.drafts_.forEach(ID),e.drafts_=null}function PD(e){e===kD&&(kD=e.parent_)}var FD=e=>kD=jD(kD,e);function ID(e){let t=e[HE];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function LD(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[HE].modified_&&(ND(t),UE(4)),$E(e)&&(e=RD(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[HE].base_,e,t)}else e=RD(t,n);return zD(t,e,!0),ND(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===BE?void 0:e}function RD(e,t){if(SD(t))return t;let n=t[HE];if(!n)return qD(t,e.handledSet_,e);if(!VD(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);GD(n,e)}return n.copy_}function zD(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&yD(t,n)}function BD(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var VD=(e,t)=>e.scope_===t,HD=[];function UD(e,t,n,r){let i=gD(e),a=e.type_;if(r!==void 0&&oD(i,r,a)===t){sD(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;rD(i,(e,n)=>{if(QE(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??HD;for(let e of o)sD(i,e,n,a)}function WD(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!VD(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=_D(i);UD(e,i.draft_??i,a,n),GD(i,r)})}function GD(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}BD(e)}}function KD(e,t,n){let{scope_:r}=e;if(QE(n)){let i=n[HE];VD(i,r)&&i.callbacks_.push(function(){nO(e),UD(e,n,_D(i),t)})}else $E(n)&&e.callbacks_.push(function(){let i=gD(e);e.type_===3?i.has(n)&&qD(n,r.handledSet_,r):oD(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&qD(oD(e.copy_,t,e.type_),r.handledSet_,r)})}function qD(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||QE(e)||t.has(e)||!$E(e)||SD(e)?e:(t.add(e),rD(e,(r,i)=>{if(QE(i)){let t=i[HE];VD(t,n)&&(sD(e,r,_D(t),e.type_),BD(t))}else $E(i)&&qD(i,t,n)}),e)}function JD(e,t){let n=lD(e),r={type_:+!!n,scope_:t?t.scope_:AD(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=YD;n&&(i=[r],a=XD);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var YD={get(e,t){if(t===HE)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=gD(e);if(!aD(i,t,e.type_))return $D(e,i,t);let a=i[t];if(e.finalized_||!$E(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&hD(t))return a;if(a===ZD(e.base_,t)||QD(e,t,a)){nO(e);let n=e.type_===1?+t:t,r=iO(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in gD(e)},ownKeys(e){return Reflect.ownKeys(gD(e))},set(e,t,n){let r=eO(gD(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=ZD(gD(e),t),i=r?.[HE];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(cD(n,r)&&(n!==void 0||aD(e.base_,t,e.type_)))return!0;nO(e),tO(e)}return e.copy_[t]===n&&(n!==void 0||aD(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),KD(e,t,n),!0)},deleteProperty(e,t){return nO(e),ZD(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),tO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=gD(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[XE]:!0,[JE]:e.type_!==1||t!==`length`,[YE]:r[YE],[ZE]:n[t]}},defineProperty(){UE(11)},getPrototypeOf(e){return GE(e.base_)},setPrototypeOf(){UE(12)}},XD={};for(let e in YD){let t=YD[e];XD[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}XD.deleteProperty=function(e,t){return XD.set.call(this,e,t,void 0)},XD.set=function(e,t,n){return YD.set.call(this,e[0],t,n,e[0])};function ZD(e,t){let n=e[HE];return(n?gD(n):e)[t]}function QD(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!$E(n)||n[HE]?!1:e.baseRefs_.has(n)}function $D(e,t,n){let r=eO(t,n);return r?ZE in r?r[ZE]:r.get?.call(e.draft_):void 0}function eO(e,t){if(!(t in e))return;let n=GE(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=GE(n)}}function tO(e){e.modified_||(e.modified_=!0,e.parent_&&tO(e.parent_))}function nO(e){e.copy_||=(e.assigned_=new Map,vD(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var rO=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(pD(e)&&!pD(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}pD(t)||UE(6),n!==void 0&&!pD(n)&&UE(7);let r;if($E(e)){let i=FD(this),a=iO(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ND(i):PD(i)}return MD(i,n),LD(r,i)}if(!e||!fD(e)){if(r=t(e),r===void 0&&(r=e),r===BE&&(r=void 0),this.autoFreeze_&&yD(r,!0),n){let t=[],i=[];DD(wD).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}UE(1,e)},this.produceWithPatches=(e,t)=>{if(pD(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},mD(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),mD(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),mD(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){$E(e)||UE(8),QE(e)&&(e=aO(e));let t=FD(this),n=iO(t,e,void 0);return n[HE].isManual_=!0,PD(t),n}finishDraft(e,t){let n=e&&e[HE];(!n||!n.isManual_)&&UE(9);let{scope_:r}=n;return MD(r,t),LD(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=DD(wD).applyPatches_;return QE(e)?r(e,t):this.produce(e,e=>r(e,t))}};function iO(e,t,n,r){let[i,a]=uD(t)?DD(CD).proxyMap_(t,n):dD(t)?DD(CD).proxySet_(t,n):JD(t,n);return(n?.scope_??AD()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?WD(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function aO(e){return QE(e)||UE(10,e),oO(e)}function oO(e){if(!$E(e)||SD(e))return e;let t=e[HE],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=vD(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=vD(e,!0);return rD(n,(e,t)=>{sD(n,e,oO(t))},r),t&&(t.finalized_=!1),n}var sO=new rO().produce,cO=e=>e;function lO(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var uO=lO(),dO=lO,fO=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?LE:LE.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function pO(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Sk(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>zE(t)&&t.type===e,n}var mO=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function hO(e){return $E(e)?sO(e,()=>{}):e}function gO(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function _O(e){return typeof e==`boolean`}var vO=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new mO;return t&&(_O(t)?a.push(uO):a.push(dO(t.extraArgument))),a},yO=`RTK_autoBatch`,bO=()=>e=>({payload:e,meta:{[yO]:!0}}),xO=e=>t=>{setTimeout(t,e)},SO=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},CO=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?SO(window.requestAnimationFrame,100):xO(10):e.type===`callback`?e.queueNotification:xO(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[yO],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},wO=e=>function(t){let{autoBatch:n=!0}=t??{},r=new mO(e);return n&&r.push(CO(typeof n==`object`?n:void 0)),r};function TO(e){let t=vO(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(NE(n))c=IE(n);else throw Error(Sk(1));let l;l=typeof r==`function`?r(t):t();let u=LE;i&&(u=fO({trace:!1,...typeof i==`object`&&i}));let d=wO(RE(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return PE(c,o,p)}function EO(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Sk(28));if(r in t)throw Error(Sk(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function DO(e){return typeof e==`function`}function OO(e,t){let[n,r,i]=EO(t),a;if(DO(e))a=()=>hO(e());else{let t=hO(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n){if(QE(e)){let r=n(e,t);return r===void 0?e:r}if($E(e))return sO(e,e=>n(e,t));{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}}return e},e)}return o.getInitialState=a,o}var kO=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,AO=(e=21)=>{let t=``,n=e;for(;n--;)t+=kO[Math.random()*64|0];return t},jO=Symbol.for(`rtk-slice-createasyncthunk`);function MO(e,t){return`${e}/${t}`}function NO({creators:e}={}){let t=e?.asyncThunk?.[jO];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Sk(11));let i=(typeof e.reducers==`function`?e.reducers(IO()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Sk(12));if(n in o.sliceCaseReducersByType)throw Error(Sk(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:MO(n,r),createNotation:typeof e.reducers==`function`};RO(a)?BO(o,a,s,t):LO(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?EO(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return OO(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=gO(d,r,m)),i}function i(t=l){return gO(gO(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=PO(a,t,()=>gO(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function PO(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var FO=NO();function IO(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function LO({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!zO(r))throw Error(Sk(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?pO(e,o):pO(e))}function RO(e){return e._reducerDefinitionType===`asyncThunk`}function zO(e){return e._reducerDefinitionType===`reducerWithPrepare`}function BO({type:e,reducerName:t},n,r,i){if(!i)throw Error(Sk(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||VO,pending:s||VO,rejected:c||VO,settled:l||VO})}function VO(){}var HO=`task`,UO=`listener`,WO=`completed`,GO=`cancelled`,KO=`task-${GO}`,qO=`task-${WO}`,JO=`${UO}-${GO}`,YO=`${UO}-${WO}`,XO=class{constructor(e){this.code=e,this.message=`${HO} ${GO} (reason: ${e})`}code;name=`TaskAbortError`;message},ZO=(e,t)=>{if(typeof e!=`function`)throw TypeError(Sk(32))},QO=()=>{},$O=(e,t=QO)=>(e.catch(t),e),ek=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),tk=e=>{if(e.aborted)throw new XO(e.reason)};function nk(e,t){let n=QO;return new Promise((r,i)=>{let a=()=>i(new XO(e.reason));if(e.aborted){a();return}n=ek(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=QO})}var rk=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof XO?`cancelled`:`rejected`,error:e}}finally{t?.()}},ik=e=>t=>$O(nk(e,t).then(t=>(tk(e),t))),ak=e=>{let t=ik(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:ok}=Object,sk={},ck=`listenerMiddleware`,lk=(e,t)=>{let n=t=>ek(e,()=>t.abort(e.reason));return(r,i)=>{ZO(r,`taskExecutor`);let a=new AbortController;n(a);let o=rk(async()=>{tk(e),tk(a.signal);let t=await r({pause:ik(a.signal),delay:ak(a.signal),signal:a.signal});return tk(a.signal),t},()=>a.abort(qO));return i?.autoJoin&&t.push(o.catch(QO)),{result:ik(e)(o),cancel(){a.abort(KO)}}}},uk=(e,t)=>{let n=async(n,r)=>{tk(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await nk(t,Promise.race(a));return tk(t),e}finally{i()}};return((e,t)=>$O(n(e,t)))},dk=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=pO(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Sk(21));return ZO(a,`options.listener`),{predicate:i,type:t,effect:a}},fk=ok(e=>{let{type:t,predicate:n,effect:r}=dk(e);return{id:AO(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Sk(22))}}},{withTypes:()=>fk}),pk=(e,t)=>{let{type:n,effect:r,predicate:i}=dk(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},mk=e=>{e.pending.forEach(e=>{e.abort(JO)})},hk=(e,t)=>()=>{for(let e of t.keys())mk(e);e.clear()},gk=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},_k=ok(pO(`${ck}/add`),{withTypes:()=>_k}),vk=pO(`${ck}/removeAll`),yk=ok(pO(`${ck}/remove`),{withTypes:()=>yk}),bk=(...e)=>{console.error(`${ck}/error`,...e)},xk=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=bk}=e;ZO(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&mk(e)}),c=(e=>{let n=pk(t,e)??fk(e);return s(n)});ok(c,{withTypes:()=>c});let l=e=>{let n=pk(t,e);return n&&(n.unsubscribe(),e.cancelActive&&mk(n)),!!n};ok(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=uk(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,ok({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:ak(u.signal),pause:ik(u.signal),extra:a,signal:u.signal,fork:lk(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(JO),n.delete(e))})},cancel:()=>{u.abort(JO),e.pending.delete(u)},throwIfCancelled:()=>{tk(u.signal)}})))}catch(e){e instanceof XO||gk(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(YO),i(e),e.pending.delete(u)}},d=hk(t,n);return{middleware:e=>n=>r=>{if(!zE(r))return n(r);if(_k.match(r))return c(r.payload);if(vk.match(r)){d();return}if(yk.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===sk)throw Error(Sk(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,gk(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=sk}return s},startListening:c,stopListening:l,clearListeners:d}};function Sk(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ck=FO({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),wk=Ck.actions,Tk=wk.setMargin,Ek=wk.setLayout,Dk=wk.setChartSize,Ok=wk.setScale,kk=Ck.reducer;function Ak(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function jk(e){return Number.isFinite(e)}function Mk(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function Nk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Pk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nk(Object(n),!0).forEach(function(t){Fk(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nk(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fk(e,t,n){return(t=Ik(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ik(e){var t=Lk(e,`string`);return typeof t==`symbol`?t:t+``}function Lk(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Rk(e,t,n){return qC(e)||qC(t)?n:BC(t)?MC(e,t,n):typeof t==`function`?t(e):n}var zk=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(aw(c)){if(c===`top`&&K(e.top))return Pk(Pk({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&K(e.bottom))return Pk(Pk({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&K(e.left))return Pk(Pk({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&K(e.right))return Pk(Pk({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&K(e[a]))return Pk(Pk({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&K(e[o]))return Pk(Pk({},e),{},{[o]:e[o]+(i||0)})}return e},Bk=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,Vk=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},Hk=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?LC(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return jk(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(YC):c&&l?l.map((e,t)=>{var n=o.map(e);return jk(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(YC):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return jk(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(YC):o.domain().map((e,t)=>{var n=o.map(e);return jk(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(YC)},Uk={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=RC(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:rT,none:Qw,silhouette:iT,wiggle:aT,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=RC(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Wk=(e,t,n)=>{var r=Uk[n]??Qw,i=nT().keys(t).value((e,t)=>Number(Rk(e,t,0))).order($w).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=Rk(e[i],t[r],0);Array.isArray(a)&&a.length===2&&K(a[0])&&K(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function Gk(e){return e==null?void 0:String(e)}function Kk(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!qC(i[t.dataKey])){var s=KC(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=Rk(i,qC(o)?t.dataKey:o),l=t.scale.map(c);return K(l)?l:null}var qk=e=>{var t=e.flat(2).filter(K);return[Math.min(...t),Math.max(...t)]},Jk=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Yk=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return Jk(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=qk(Ak(r,t,n));return!jk(i[0])||!jk(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},Xk=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Zk=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qk=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=xE(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function $k(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return Pk(Pk({},t),{},{dataKey:n,payload:r,value:i,name:a})}function eA(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var tA=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},nA=(e,t)=>t===`centric`?e.angle:e.radius,rA=e=>e.layout.width,iA=e=>e.layout.height,aA=e=>e.layout.scale,oA=e=>e.layout.margin,sA=J(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),cA=J(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),lA=`data-recharts-item-index`;function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uA(Object(n),!0).forEach(function(t){fA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fA(e,t,n){return(t=pA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pA(e){var t=mA(e,`string`);return typeof t==`symbol`?t:t+``}function mA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var hA=e=>e.brush.height;function gA(e){return cA(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function _A(e){return cA(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function vA(e){return sA(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function yA(e){return sA(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var bA=J([rA,iA,oA,hA,gA,_A,vA,yA,SE,ote],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=dA(dA({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=zk(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return dA(dA({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),xA=J(bA,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),SA=J(rA,iA,(e,t)=>({x:0,y:0,width:e,height:t})),CA=(0,R.createContext)(null),wA=()=>(0,R.useContext)(CA)!=null,TA=e=>e.brush,EA=J([TA,bA,oA],(e,t,n)=>({height:e.height,x:K(e.x)?e.x:t.left,y:K(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:K(e.width)?e.width:t.width}));function DA(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function OA(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=DA(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function kA(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return OA(e,t,{leading:r,maxWait:t,trailing:i})}var AA=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}},jA={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},MA=(e,t,n)=>{var r=n.width,i=r===void 0?jA.width:r,a=n.height,o=a===void 0?jA.height:a,s=n.aspect,c=n.maxHeight,l=zC(i)?e:Number(i),u=zC(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},NA={width:0,height:0,overflow:`visible`},PA={width:0,overflowX:`visible`},FA={height:0,overflowY:`visible`},IA={},LA=e=>{var t=e.width,n=e.height,r=zC(t),i=zC(n);return r&&i?NA:r?PA:i?FA:IA};function RA(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=jA.width,a=jA.height):i===void 0?i=r&&r>0?void 0:jA.width:a===void 0&&(a=r&&r>0?void 0:jA.height),{width:i,height:a}}var zA=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function BA(){return BA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BA.apply(null,arguments)}function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VA(Object(n),!0).forEach(function(t){UA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UA(e,t,n){return(t=WA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WA(e){var t=GA(e,`string`);return typeof t==`symbol`?t:t+``}function GA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function KA(e,t){return ZA(e)||XA(e,t)||JA(e,t)||qA()}function qA(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
11
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JA(e,t){if(e){if(typeof e==`string`)return YA(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?YA(e,t):void 0}}function YA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function XA(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ZA(e){if(Array.isArray(e))return e}function QA(e,t){if(e==null)return{};var n,r,i=$A(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function $A(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ej=(0,R.createContext)(jA.initialDimension);function tj(e){return Mk(e.width)&&Mk(e.height)}function nj(e){var t=e.children,n=e.width,r=e.height,i=(0,R.useMemo)(()=>({width:n,height:r}),[n,r]);return tj(i)?R.createElement(ej.Provider,{value:i},t):null}var rj=()=>(0,R.useContext)(ej),ij=(0,R.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?jA.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?jA.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,f=e.debounce,p=f===void 0?jA.debounce:f,m=e.id,h=e.className,g=e.onResize,_=e.style,v=_===void 0?{}:_,y=QA(e,zA),b=(0,R.useRef)(null),x=(0,R.useRef)();x.current=g,(0,R.useImperativeHandle)(t,()=>b.current);var S=KA((0,R.useState)({containerWidth:i.width,containerHeight:i.height}),2),C=S[0],w=S[1],T=(0,R.useCallback)((e,t)=>{w(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,R.useEffect)(()=>{if(b.current==null||typeof ResizeObserver>`u`)return XC;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;T(i,a),(t=x.current)==null||t.call(x,i,a)}};p>0&&(e=kA(e,p,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=b.current.getBoundingClientRect(),r=n.width,i=n.height;return T(r,i),t.observe(b.current),()=>{t.disconnect()}},[T,p]);var E=C.containerWidth,D=C.containerHeight;AA(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var O=MA(E,D,{width:a,height:o,aspect:n,maxHeight:u}),k=O.calculatedWidth,A=O.calculatedHeight;return AA(E<0||D<0||k!=null&&k>0||A!=null&&A>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
12
12
|
please check the style of container, or the props width(%s) and height(%s),
|
|
@@ -121,4 +121,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
121
121
|
|
|
122
122
|
`)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=_2,s=!r2.jitless,c=s&&v2.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?A3([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function N3(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!M2(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>I2(e,r,i2())))}),t)}var P3=Y(`$ZodUnion`,(e,t)=>{J4.init(e,t),d2(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),d2(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),d2(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),d2(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>l2(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>N3(t,r,e,i)):N3(o,r,e,i)}}),F3=Y(`$ZodIntersection`,(e,t)=>{J4.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>L3(e,t,n)):L3(e,i,a)}});function I3(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(y2(e)&&y2(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=I3(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=I3(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function L3(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),M2(e))return e;let o=I3(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var R3=Y(`$ZodRecord`,(e,t)=>{J4.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!y2(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>I2(e,r,i2())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...P2(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...P2(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&A4.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>I2(e,r,i2())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...P2(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...P2(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),z3=Y(`$ZodEnum`,(e,t)=>{J4.init(e,t);let n=a2(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>x2.has(typeof e)).map(e=>typeof e==`string`?S2(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),B3=Y(`$ZodTransform`,(e,t)=>{J4.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new n2(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new t2;return n.value=i,n.fallback=!0,n}});function V3(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var H3=Y(`$ZodOptional`,(e,t)=>{J4.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,d2(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),d2(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${l2(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>V3(e,r)):V3(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),U3=Y(`$ZodExactOptional`,(e,t)=>{H3.init(e,t),d2(e._zod,`values`,()=>t.innerType._zod.values),d2(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),W3=Y(`$ZodNullable`,(e,t)=>{J4.init(e,t),d2(e._zod,`optin`,()=>t.innerType._zod.optin),d2(e._zod,`optout`,()=>t.innerType._zod.optout),d2(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${l2(e.source)}|null)$`):void 0}),d2(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),G3=Y(`$ZodDefault`,(e,t)=>{J4.init(e,t),e._zod.optin=`optional`,d2(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>K3(e,t)):K3(r,t)}});function K3(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var q3=Y(`$ZodPrefault`,(e,t)=>{J4.init(e,t),e._zod.optin=`optional`,d2(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),J3=Y(`$ZodNonOptional`,(e,t)=>{J4.init(e,t),d2(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Y3(t,e)):Y3(i,e)}});function Y3(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var X3=Y(`$ZodCatch`,(e,t)=>{J4.init(e,t),e._zod.optin=`optional`,d2(e._zod,`optout`,()=>t.innerType._zod.optout),d2(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>I2(e,n,i2()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>I2(e,n,i2()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Z3=Y(`$ZodPipe`,(e,t)=>{J4.init(e,t),d2(e._zod,`values`,()=>t.in._zod.values),d2(e._zod,`optin`,()=>t.in._zod.optin),d2(e._zod,`optout`,()=>t.out._zod.optout),d2(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Q3(e,t.in,n)):Q3(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Q3(e,t.out,n)):Q3(r,t.out,n)}});function Q3(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var $3=Y(`$ZodReadonly`,(e,t)=>{J4.init(e,t),d2(e._zod,`propValues`,()=>t.innerType._zod.propValues),d2(e._zod,`values`,()=>t.innerType._zod.values),d2(e._zod,`optin`,()=>t.innerType?._zod?.optin),d2(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e6):e6(r)}});function e6(e){return e.value=Object.freeze(e.value),e}var t6=Y(`$ZodCustom`,(e,t)=>{P4.init(e,t),J4.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>n6(t,n,r,e));n6(i,n,r,e)}});function n6(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(R2(e))}}var r6,i6=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function a6(){return new i6}(r6=globalThis).__zod_globalRegistry??(r6.__zod_globalRegistry=a6());var o6=globalThis.__zod_globalRegistry;function s6(e,t){return new e({type:`string`,...X(t)})}function c6(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...X(t)})}function l6(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...X(t)})}function u6(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...X(t)})}function d6(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...X(t)})}function f6(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...X(t)})}function p6(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...X(t)})}function m6(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...X(t)})}function h6(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...X(t)})}function g6(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...X(t)})}function _6(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...X(t)})}function v6(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...X(t)})}function y6(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...X(t)})}function b6(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...X(t)})}function x6(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...X(t)})}function S6(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...X(t)})}function C6(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...X(t)})}function w6(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...X(t)})}function T6(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...X(t)})}function E6(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...X(t)})}function D6(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...X(t)})}function O6(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...X(t)})}function k6(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...X(t)})}function A6(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...X(t)})}function j6(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...X(t)})}function M6(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...X(t)})}function N6(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...X(t)})}function P6(e,t){return new e({type:`boolean`,...X(t)})}function F6(e){return new e({type:`unknown`})}function I6(e,t){return new e({type:`never`,...X(t)})}function L6(e,t){return new F4({check:`max_length`,...X(t),maximum:e})}function R6(e,t){return new I4({check:`min_length`,...X(t),minimum:e})}function z6(e,t){return new L4({check:`length_equals`,...X(t),length:e})}function B6(e,t){return new z4({check:`string_format`,format:`regex`,...X(t),pattern:e})}function V6(e){return new B4({check:`string_format`,format:`lowercase`,...X(e)})}function H6(e){return new V4({check:`string_format`,format:`uppercase`,...X(e)})}function U6(e,t){return new H4({check:`string_format`,format:`includes`,...X(t),includes:e})}function W6(e,t){return new U4({check:`string_format`,format:`starts_with`,...X(t),prefix:e})}function G6(e,t){return new W4({check:`string_format`,format:`ends_with`,...X(t),suffix:e})}function K6(e){return new G4({check:`overwrite`,tx:e})}function q6(e){return K6(t=>t.normalize(e))}function J6(){return K6(e=>e.trim())}function Y6(){return K6(e=>e.toLowerCase())}function X6(){return K6(e=>e.toUpperCase())}function Z6(){return K6(e=>h2(e))}function Q6(e,t,n){return new e({type:`array`,element:t,...X(n)})}function $6(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...X(n)})}function e8(e,t){let n=t8(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(R2(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(R2(r))}},e(t.value,t)),t);return n}function t8(e,t){let n=new P4({check:`custom`,...X(t)});return n._zod.check=e,n}function n8(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??o6,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function r8(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,r8(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&o8(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function i8(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
|
|
123
123
|
|
|
124
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function a8(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:c8(t,`input`,e.processors),output:c8(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function o8(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return o8(r.element,n);if(r.type===`set`)return o8(r.valueType,n);if(r.type===`lazy`)return o8(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return o8(r.innerType,n);if(r.type===`intersection`)return o8(r.left,n)||o8(r.right,n);if(r.type===`record`||r.type===`map`)return o8(r.keyType,n)||o8(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:o8(r.in,n)||o8(r.out,n);if(r.type===`object`){for(let e in r.shape)if(o8(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(o8(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(o8(e,n))return!0;return!!(r.rest&&o8(r.rest,n))}return!1}var s8=(e,t={})=>n=>{let r=n8({...n,processors:t});return r8(e,r),i8(r,e),a8(r,e)},c8=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=n8({...i??{},target:a,io:t,processors:n});return r8(e,o),i8(o,e),a8(o,e)},l8={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},u8=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=l8[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},d8=(e,t,n,r)=>{n.type=`boolean`},f8=(e,t,n,r)=>{n.not={}},p8=(e,t,n,r)=>{let i=e._zod.def,a=a2(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},m8=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},h8=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},g8=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=r8(a.element,t,{...r,path:[...r.path,`items`]})},_8=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=r8(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=r8(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},v8=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>r8(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},y8=(e,t,n,r)=>{let i=e._zod.def,a=r8(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=r8(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},b8=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=r8(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=r8(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=r8(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},x8=(e,t,n,r)=>{let i=e._zod.def,a=r8(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},S8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},C8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},w8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},T8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},E8=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;r8(o,t,r);let s=t.seen.get(e);s.ref=o},D8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},O8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},k8=Y(`ZodISODateTime`,(e,t)=>{c3.init(e,t),n5.init(e,t)});function A8(e){return A6(k8,e)}var j8=Y(`ZodISODate`,(e,t)=>{l3.init(e,t),n5.init(e,t)});function M8(e){return j6(j8,e)}var N8=Y(`ZodISOTime`,(e,t)=>{u3.init(e,t),n5.init(e,t)});function P8(e){return M6(N8,e)}var F8=Y(`ZodISODuration`,(e,t)=>{d3.init(e,t),n5.init(e,t)});function I8(e){return N6(F8,e)}var L8=Y(`ZodError`,(e,t)=>{B2.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>U2(e,t)},flatten:{value:t=>H2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,o2,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,o2,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),R8=W2(L8),z8=G2(L8),B8=K2(L8),V8=J2(L8),H8=X2(L8),U8=Z2(L8),W8=Q2(L8),G8=$2(L8),K8=e4(L8),q8=t4(L8),J8=n4(L8),Y8=r4(L8),X8=new WeakMap;function Z8(e,t,n){let r=Object.getPrototypeOf(e),i=X8.get(r);if(i||(i=new Set,X8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Q8=Y(`ZodType`,(e,t)=>(J4.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:c8(e,`input`),output:c8(e,`output`)}}),e.toJSONSchema=s8(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>R8(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>B8(e,t,n),e.parseAsync=async(t,n)=>z8(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>V8(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>H8(e,t,n),e.decode=(t,n)=>U8(e,t,n),e.encodeAsync=async(t,n)=>W8(e,t,n),e.decodeAsync=async(t,n)=>G8(e,t,n),e.safeEncode=(t,n)=>K8(e,t,n),e.safeDecode=(t,n)=>q8(e,t,n),e.safeEncodeAsync=async(t,n)=>J8(e,t,n),e.safeDecodeAsync=async(t,n)=>Y8(e,t,n),Z8(e,`ZodType`,{check(...e){let t=this.def;return this.clone(p2(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return C2(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(one(e,t))},superRefine(e,t){return this.check(sne(e,t))},overwrite(e){return this.check(K6(e))},optional(){return U5(this)},exactOptional(){return G5(this)},nullable(){return q5(this)},nullish(){return U5(q5(this))},nonoptional(e){return $5(this,e)},array(){return k5(this)},or(e){return N5([this,e])},and(e){return F5(this,e)},transform(e){return n7(this,V5(e))},default(e){return Y5(this,e)},prefault(e){return Z5(this,e)},catch(e){return t7(this,e)},pipe(e){return n7(this,e)},readonly(){return ine(this)},describe(e){let t=this.clone();return o6.add(t,{description:e}),t},meta(...e){if(e.length===0)return o6.get(this);let t=this.clone();return o6.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return o6.get(e)?.description},configurable:!0}),e)),$8=Y(`_ZodString`,(e,t)=>{Y4.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u8(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Z8(e,`_ZodString`,{regex(...e){return this.check(B6(...e))},includes(...e){return this.check(U6(...e))},startsWith(...e){return this.check(W6(...e))},endsWith(...e){return this.check(G6(...e))},min(...e){return this.check(R6(...e))},max(...e){return this.check(L6(...e))},length(...e){return this.check(z6(...e))},nonempty(...e){return this.check(R6(1,...e))},lowercase(e){return this.check(V6(e))},uppercase(e){return this.check(H6(e))},trim(){return this.check(J6())},normalize(...e){return this.check(q6(...e))},toLowerCase(){return this.check(Y6())},toUpperCase(){return this.check(X6())},slugify(){return this.check(Z6())}})}),e5=Y(`ZodString`,(e,t)=>{Y4.init(e,t),$8.init(e,t),e.email=t=>e.check(c6(r5,t)),e.url=t=>e.check(m6(o5,t)),e.jwt=t=>e.check(k6(x5,t)),e.emoji=t=>e.check(h6(s5,t)),e.guid=t=>e.check(l6(i5,t)),e.uuid=t=>e.check(u6(a5,t)),e.uuidv4=t=>e.check(d6(a5,t)),e.uuidv6=t=>e.check(f6(a5,t)),e.uuidv7=t=>e.check(p6(a5,t)),e.nanoid=t=>e.check(g6(c5,t)),e.guid=t=>e.check(l6(i5,t)),e.cuid=t=>e.check(_6(l5,t)),e.cuid2=t=>e.check(v6(u5,t)),e.ulid=t=>e.check(y6(d5,t)),e.base64=t=>e.check(E6(v5,t)),e.base64url=t=>e.check(D6(y5,t)),e.xid=t=>e.check(b6(f5,t)),e.ksuid=t=>e.check(x6(p5,t)),e.ipv4=t=>e.check(S6(m5,t)),e.ipv6=t=>e.check(C6(h5,t)),e.cidrv4=t=>e.check(w6(g5,t)),e.cidrv6=t=>e.check(T6(_5,t)),e.e164=t=>e.check(O6(b5,t)),e.datetime=t=>e.check(A8(t)),e.date=t=>e.check(M8(t)),e.time=t=>e.check(P8(t)),e.duration=t=>e.check(I8(t))});function t5(e){return s6(e5,e)}var n5=Y(`ZodStringFormat`,(e,t)=>{X4.init(e,t),$8.init(e,t)}),r5=Y(`ZodEmail`,(e,t)=>{$4.init(e,t),n5.init(e,t)}),i5=Y(`ZodGUID`,(e,t)=>{Z4.init(e,t),n5.init(e,t)}),a5=Y(`ZodUUID`,(e,t)=>{Q4.init(e,t),n5.init(e,t)}),o5=Y(`ZodURL`,(e,t)=>{e3.init(e,t),n5.init(e,t)}),s5=Y(`ZodEmoji`,(e,t)=>{t3.init(e,t),n5.init(e,t)}),c5=Y(`ZodNanoID`,(e,t)=>{n3.init(e,t),n5.init(e,t)}),l5=Y(`ZodCUID`,(e,t)=>{r3.init(e,t),n5.init(e,t)}),u5=Y(`ZodCUID2`,(e,t)=>{i3.init(e,t),n5.init(e,t)}),d5=Y(`ZodULID`,(e,t)=>{a3.init(e,t),n5.init(e,t)}),f5=Y(`ZodXID`,(e,t)=>{o3.init(e,t),n5.init(e,t)}),p5=Y(`ZodKSUID`,(e,t)=>{s3.init(e,t),n5.init(e,t)}),m5=Y(`ZodIPv4`,(e,t)=>{f3.init(e,t),n5.init(e,t)}),h5=Y(`ZodIPv6`,(e,t)=>{p3.init(e,t),n5.init(e,t)}),g5=Y(`ZodCIDRv4`,(e,t)=>{m3.init(e,t),n5.init(e,t)}),_5=Y(`ZodCIDRv6`,(e,t)=>{h3.init(e,t),n5.init(e,t)}),v5=Y(`ZodBase64`,(e,t)=>{_3.init(e,t),n5.init(e,t)}),y5=Y(`ZodBase64URL`,(e,t)=>{y3.init(e,t),n5.init(e,t)}),b5=Y(`ZodE164`,(e,t)=>{b3.init(e,t),n5.init(e,t)}),x5=Y(`ZodJWT`,(e,t)=>{S3.init(e,t),n5.init(e,t)}),S5=Y(`ZodBoolean`,(e,t)=>{C3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d8(e,t,n,r)});function C5(e){return P6(S5,e)}var w5=Y(`ZodUnknown`,(e,t)=>{w3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function T5(){return F6(w5)}var E5=Y(`ZodNever`,(e,t)=>{T3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f8(e,t,n,r)});function D5(e){return I6(E5,e)}var O5=Y(`ZodArray`,(e,t)=>{D3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g8(e,t,n,r),e.element=t.element,Z8(e,`ZodArray`,{min(e,t){return this.check(R6(e,t))},nonempty(e){return this.check(R6(1,e))},max(e,t){return this.check(L6(e,t))},length(e,t){return this.check(z6(e,t))},unwrap(){return this.element}})});function k5(e,t){return Q6(O5,e,t)}var A5=Y(`ZodObject`,(e,t)=>{M3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_8(e,t,n,r),d2(e,`shape`,()=>t.shape),Z8(e,`ZodObject`,{keyof(){return z5(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:T5()})},loose(){return this.clone({...this._zod.def,catchall:T5()})},strict(){return this.clone({...this._zod.def,catchall:D5()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return D2(this,e)},safeExtend(e){return O2(this,e)},merge(e){return k2(this,e)},pick(e){return T2(this,e)},omit(e){return E2(this,e)},partial(...e){return A2(H5,this,e[0])},required(...e){return j2(Q5,this,e[0])}})});function j5(e,t){return new A5({type:`object`,shape:e??{},...X(t)})}var M5=Y(`ZodUnion`,(e,t)=>{P3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v8(e,t,n,r),e.options=t.options});function N5(e,t){return new M5({type:`union`,options:e,...X(t)})}var P5=Y(`ZodIntersection`,(e,t)=>{F3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y8(e,t,n,r)});function F5(e,t){return new P5({type:`intersection`,left:e,right:t})}var I5=Y(`ZodRecord`,(e,t)=>{R3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b8(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function L5(e,t,n){return!t||!t._zod?new I5({type:`record`,keyType:t5(),valueType:e,...X(t)}):new I5({type:`record`,keyType:e,valueType:t,...X(n)})}var R5=Y(`ZodEnum`,(e,t)=>{z3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p8(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new R5({...t,checks:[],...X(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new R5({...t,checks:[],...X(r),entries:i})}});function z5(e,t){return new R5({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...X(t)})}var B5=Y(`ZodTransform`,(e,t)=>{B3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h8(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new n2(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(R2(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(R2(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function V5(e){return new B5({type:`transform`,transform:e})}var H5=Y(`ZodOptional`,(e,t)=>{H3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function U5(e){return new H5({type:`optional`,innerType:e})}var W5=Y(`ZodExactOptional`,(e,t)=>{U3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function G5(e){return new W5({type:`optional`,innerType:e})}var K5=Y(`ZodNullable`,(e,t)=>{W3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function q5(e){return new K5({type:`nullable`,innerType:e})}var J5=Y(`ZodDefault`,(e,t)=>{G3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Y5(e,t){return new J5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():b2(t)}})}var X5=Y(`ZodPrefault`,(e,t)=>{q3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Z5(e,t){return new X5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():b2(t)}})}var Q5=Y(`ZodNonOptional`,(e,t)=>{J3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $5(e,t){return new Q5({type:`nonoptional`,innerType:e,...X(t)})}var e7=Y(`ZodCatch`,(e,t)=>{X3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function t7(e,t){return new e7({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var nne=Y(`ZodPipe`,(e,t)=>{Z3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E8(e,t,n,r),e.in=t.in,e.out=t.out});function n7(e,t){return new nne({type:`pipe`,in:e,out:t})}var rne=Y(`ZodReadonly`,(e,t)=>{$3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ine(e){return new rne({type:`readonly`,innerType:e})}var ane=Y(`ZodCustom`,(e,t)=>{t6.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m8(e,t,n,r)});function one(e,t={}){return $6(ane,e,t)}function sne(e,t){return e8(e,t)}var r7=new URLSearchParams(window.location.search),i7=r7.get(`token`);if(i7){sessionStorage.setItem(`orchestra-token`,i7),r7.delete(`token`);let e=`${window.location.pathname}${r7.size?`?${r7}`:``}${window.location.hash}`;window.history.replaceState({},``,e)}var a7=sessionStorage.getItem(`orchestra-token`)??``;async function o7(e,t){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,"X-Orchestra-Token":a7,...t?.headers}});if(!n.ok){let e=await n.json().catch(()=>({error:n.statusText}));throw Error(e.error??`HTTP ${n.status}`)}return n.json()}function cne(e,t,n){let r=new URLSearchParams({token:a7});r.set(`project`,e);let i=new EventSource(`/api/live?`+r.toString());return i.addEventListener(`snapshot`,e=>{try{t(JSON.parse(e.data))}catch{}}),i.onerror=()=>{n?.()},{close:()=>i.close()}}var s7={snapshot:e=>o7(`/api/snapshot${e?`?project=${encodeURIComponent(e)}`:``}`),projects:()=>o7(`/api/projects`),global:()=>o7(`/api/global`),saveConfig:(e,t)=>o7(`/api/config`+(t?`?project=`+encodeURIComponent(t):``),{method:`PUT`,body:JSON.stringify(e)}),exportUrl:(e,t)=>`/api/export?scope=${e}&format=${t}`};function c7(){return typeof window<`u`}function l7(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lne(e){return c7()?e instanceof Element||e instanceof l7(e).Element:!1}function u7(e){return c7()?e instanceof HTMLElement||e instanceof l7(e).HTMLElement:!1}var d7={...R},f7={};function p7(e,t){let n=R.useRef(f7);return n.current===f7&&(n.current=e(t)),n}var m7=d7.useInsertionEffect,une=m7&&m7!==d7.useLayoutEffect?m7:e=>e();function h7(e){let t=p7(dne).current;return t.next=e,une(t.effect),t.trampoline}function dne(){let e={next:void 0,callback:fne,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function fne(){}var g7=typeof document<`u`?R.useLayoutEffect:()=>{};function _7(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var v7={};function y7(e,t,n,r,i){if(!n&&!r&&!i&&!e)return b7(t);let a=b7(e);return t&&(a=x7(a,t)),n&&(a=x7(a,n)),r&&(a=x7(a,r)),i&&(a=x7(a,i)),a}function pne(e){if(e.length===0)return v7;if(e.length===1)return b7(e[0]);let t=b7(e[0]);for(let n=1;n<e.length;n+=1)t=x7(t,e[n]);return t}function b7(e){return C7(e)?{...w7(e,v7)}:mne(e)}function x7(e,t){return C7(t)?w7(t,e):hne(e,t)}function mne(e){let t={...e};for(let e in t){let n=t[e];S7(e,n)&&(t[e]=T7(n))}return t}function hne(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=_7(e.style,r);break;case`className`:e[n]=D7(e.className,r);break;default:e[n]=S7(n,r)?gne(e[n],r):r}}return e}function S7(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function C7(e){return typeof e==`function`}function w7(e,t){return C7(e)?e(t):e??v7}function gne(e,t){return t?e?(...n)=>{let r=n[0];if(O7(r)){let i=r;E7(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:T7(t):e}function T7(e){return e&&((...t)=>{let n=t[0];return O7(n)&&E7(n),e(...t)})}function E7(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function D7(e,t){return t?e?t+` `+e:t:e}function O7(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function _ne(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var k7=_ne(`https://base-ui.com/production-error`,`Base UI`),vne=R.createContext(void 0);function yne(e=!1){let t=R.useContext(vne);if(t===void 0&&!e)throw Error(k7(16));return t}function bne(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:R.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function A7(e,t,{detail:n=0}={}){e.dispatchEvent(new(l7(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function j7(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=R.useRef(null),s=yne(!0),c=a??s!==void 0,{props:l}=bne({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=R.useCallback(()=>{let e=o.current;M7(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return g7(u,[u]),{getButtonProps:R.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return y7({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(E7(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=M7(r),s=!i&&xne(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),A7(r,e));return}if(!l||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),A7(r,e)))},onKeyUp(e){if(!t){if(E7(e),a?.(e),e.target===e.currentTarget&&i&&c&&M7(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),A7(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:h7(e=>{o.current=e,u()})}}function M7(e){return u7(e)&&e.tagName===`BUTTON`}function xne(e){return u7(e)&&e.tagName===`A`&&!!e.href}function N7(e,t,n,r){let i=p7(P7).current;return Cne(i,e,t,n,r)&&F7(i,[e,t,n,r]),i.callback}function Sne(e){let t=p7(P7).current;return wne(t,e)&&F7(t,e),t.callback}function P7(){return{callback:null,cleanup:null,refs:[]}}function Cne(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function wne(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function F7(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Tne=19;function Ene(e){return Tne>=e}function I7(e){if(!R.isValidElement(e))return null;let t=e,n=t.props;return(Ene(19)?n?.ref:t.ref)??null}function L7(){}Object.freeze([]);var R7=Object.freeze({});function Dne(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function One(e,t){return typeof e==`function`?e(t):e}function kne(e,t){return typeof e==`function`?e(t):e}function z7(e,t,n={}){let r=t.render,i=Ane(t,n);return n.enabled===!1?null:Nne(e,r,i,n.state??R7)}function Ane(e,t={}){let{className:n,style:r,render:i}=e,{state:a=R7,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?One(n,a):void 0,d=l?kne(r,a):void 0,f=l?Dne(a,c):R7,p=l&&s?jne(s):void 0,m=l?_7(f,p)??{}:R7;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Sne([m.ref,I7(i),...o]):N7(m.ref,I7(i),o):N7(null,null)),l?(u!==void 0&&(m.className=D7(m.className,u)),d!==void 0&&(m.style=_7(m.style,d)),m):R7}function jne(e){return Array.isArray(e)?pne(e):y7(void 0,e)}var Mne=Symbol.for(`react.lazy`);function Nne(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=y7(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Mne&&(i=R.Children.toArray(t)[0]),R.cloneElement(i,e)}if(e&&typeof e==`string`)return Pne(e,n);throw Error(k7(8))}function Pne(e,t){return e===`button`?(0,R.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,R.createElement)(`img`,{alt:``,...t,key:t.key}):R.createElement(e,t)}var Fne=R.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=j7({disabled:i,focusableWhenDisabled:a,native:o});return z7(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),B7=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,V7=oC,Ine=(e,t)=>n=>{if(t?.variants==null)return V7(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=B7(t)||B7(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return V7(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Lne=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Rne=(e,t)=>({classGroupId:e,validator:t}),H7=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),U7=`-`,W7=[],zne=`arbitrary..`,Bne=e=>{let t=Hne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Vne(e);let n=e.split(U7);return G7(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Lne(i,t):t:i||W7}return n[e]||W7}}},G7=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=G7(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(U7):e.slice(t).join(U7),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Vne=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?zne+r:void 0})(),Hne=e=>{let{theme:t,classGroups:n}=e;return Une(n,t)},Une=(e,t)=>{let n=H7();for(let r in e){let i=e[r];K7(i,n,r,t)}return n},K7=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Wne(i,t,n,r)}},Wne=(e,t,n,r)=>{if(typeof e==`string`){Gne(e,t,n);return}if(typeof e==`function`){Kne(e,t,n,r);return}qne(e,t,n,r)},Gne=(e,t,n)=>{let r=e===``?t:q7(t,e);r.classGroupId=n},Kne=(e,t,n,r)=>{if(Jne(e)){K7(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Rne(n,e))},qne=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];K7(o,q7(t,a),n,r)}},q7=(e,t)=>{let n=e,r=t.split(U7),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=H7(),n.nextPart.set(t,i)),n=i}return n},Jne=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Yne=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},J7=`!`,Y7=`:`,Xne=[],X7=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zne=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Y7){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(J7)?(c=s.slice(0,-1),l=!0):s.startsWith(J7)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return X7(t,l,c,u)};if(t){let e=t+Y7,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):X7(Xne,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qne=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$ne=e=>({cache:Yne(e.cacheSize),parseClassName:Zne(e),sortModifiers:Qne(e),postfixLookupClassGroupIds:ere(e),...Bne(e)}),ere=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},tre=/\s+/,nre=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(tre),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+J7:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},rre=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Z7(n))&&(i&&(i+=` `),i+=r);return i},Z7=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Z7(e[r]))&&(n&&(n+=` `),n+=t);return n},ire=(e,...t)=>{let n,r,i,a,o=o=>(n=$ne(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=nre(e,n);return i(e,a),a};return a=o,(...e)=>a(rre(...e))},are=[],Q7=e=>{let t=t=>t[e]||are;return t.isThemeGetter=!0,t},$7=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,e9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ore=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cre=/\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$/,lre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ure=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,t9=e=>ore.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),n9=e=>!!e&&Number.isInteger(Number(e)),r9=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),i9=e=>sre.test(e),a9=()=>!0,fre=e=>cre.test(e)&&!lre.test(e),o9=()=>!1,pre=e=>ure.test(e),mre=e=>dre.test(e),hre=e=>!Q(e)&&!$(e),gre=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),_re=e=>m9(e,v9,o9),Q=e=>$7.test(e),s9=e=>m9(e,y9,fre),c9=e=>m9(e,Tre,Z),vre=e=>m9(e,x9,a9),yre=e=>m9(e,b9,o9),l9=e=>m9(e,g9,o9),bre=e=>m9(e,_9,mre),u9=e=>m9(e,S9,pre),$=e=>e9.test(e),d9=e=>h9(e,y9),xre=e=>h9(e,b9),f9=e=>h9(e,g9),Sre=e=>h9(e,v9),Cre=e=>h9(e,_9),p9=e=>h9(e,S9,!0),wre=e=>h9(e,x9,!0),m9=(e,t,n)=>{let r=$7.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},h9=(e,t,n=!1)=>{let r=e9.exec(e);return r?r[1]?t(r[1]):n:!1},g9=e=>e===`position`||e===`percentage`,_9=e=>e===`image`||e===`url`,v9=e=>e===`length`||e===`size`||e===`bg-size`,y9=e=>e===`length`,Tre=e=>e===`number`,b9=e=>e===`family-name`,x9=e=>e===`number`||e===`weight`,S9=e=>e===`shadow`,Ere=ire(()=>{let e=Q7(`color`),t=Q7(`font`),n=Q7(`text`),r=Q7(`font-weight`),i=Q7(`tracking`),a=Q7(`leading`),o=Q7(`breakpoint`),s=Q7(`container`),c=Q7(`spacing`),l=Q7(`radius`),u=Q7(`shadow`),d=Q7(`inset-shadow`),f=Q7(`text-shadow`),p=Q7(`drop-shadow`),m=Q7(`blur`),h=Q7(`perspective`),g=Q7(`aspect`),_=Q7(`ease`),v=Q7(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[t9,`full`,`auto`,...w()],E=()=>[n9,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,n9,$,Q]},n9,$,Q],O=()=>[n9,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[t9,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[t9,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[t9,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),f9,l9,{position:[$,Q]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,Sre,_re,{size:[$,Q]}],I=()=>[r9,d9,s9],ie=()=>[``,`none`,`full`,l,$,Q],ae=()=>[``,Z,d9,s9],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[Z,r9,f9,l9],ce=()=>[``,`none`,m,$,Q],le=()=>[`none`,Z,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[Z,$,Q],fe=()=>[t9,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[i9],breakpoint:[i9],color:[a9],container:[i9],"drop-shadow":[i9],ease:[`in`,`out`,`in-out`],font:[hre],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[i9],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[i9],shadow:[i9],spacing:[`px`,Z],text:[i9],"text-shadow":[i9],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,t9,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[gre],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[n9,`auto`,$,Q]}],basis:[{basis:[t9,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,t9,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[n9,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,d9,s9]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wre,vre]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,r9,Q]}],"font-family":[{font:[xre,yre,t]}],"font-features":[{"font-features":[Q]}],"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:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,c9]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,s9]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[n9,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],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`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},n9,$,Q],radial:[``,$,Q],conic:[n9,$,Q]},Cre,bre]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,d9,s9]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,p9,u9]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,p9,u9]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,s9]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,p9,u9]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ce()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,p9,u9]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[n9,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,d9,s9,c9]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function C9(...e){return Ere(oC(e))}var Dre=Ine(`inline-flex h-10 items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{primary:`bg-violet-500 text-white hover:bg-violet-400`,outline:`border border-white/10 bg-white/[0.03] text-zinc-200 hover:bg-white/[0.07]`,ghost:`text-zinc-400 hover:bg-white/[0.05] hover:text-white`}},defaultVariants:{variant:`primary`}});function w9({className:e,variant:t,...n}){return(0,z.jsx)(Fne,{className:C9(Dre({variant:t}),e),...n})}function T9({className:e,...t}){return(0,z.jsx)(`section`,{className:C9(`rounded-2xl border border-white/[0.08] bg-[#10131a]/85 shadow-[0_24px_80px_-48px_rgba(0,0,0,.9)]`,e),...t})}function Ore({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=R.useRef(e!==void 0),[a,o]=R.useState(t);return[i?e:a,R.useCallback(e=>{i||o(e)},[])]}var E9={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},kre={...E9,position:`fixed`,top:0,left:0},Are={...E9,position:`absolute`},D9=0;function jre(e,t=`mui`){let[n,r]=R.useState(e),i=e||n;return R.useEffect(()=>{n??(D9+=1,r(`${t}-${D9}`))},[n,t]),i}var O9=d7.useId;function Mre(e,t){if(O9!==void 0){let n=O9();return e??(t?`${t}-${n}`:n)}return jre(e,t)}function k9(e){return Mre(e,`base-ui`)}var A9=R.createContext(void 0);function Nre(){let e=R.useContext(A9);if(e===void 0)throw Error(k7(63));return e}var Pre={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Fre={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},j9={valid(e){return e===null?null:e?{"data-valid":``}:{"data-invalid":``}},checked(e){return e?{"data-checked":``}:{"data-unchecked":``}}},Ire={invalid:void 0,name:void 0,validityData:{state:Pre,errors:[],error:``,value:``,initialValue:null},setValidityData:L7,disabled:void 0,setTouched:L7,setDirty:L7,setFilled:L7,setFocused:L7,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Fre,registerFieldControl:L7,validation:{getValidationProps:(e,t=R7)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:L7,getInputControl:()=>null,commit:async()=>{},change:L7}},Lre=R.createContext(Ire);function M9(e=!0){let t=R.useContext(Lre);if(t.setValidityData===L7&&!e)throw Error(k7(28));return t}function Rre(e,t,n,r,i=!0,a){let{registerFieldControl:o}=M9(),s=p7(()=>Symbol());g7(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),g7(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var zre=R.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:L7,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Bre(){return R.useContext(zre)}var Vre=R.createContext({controlId:void 0,registerControlId:L7,labelId:void 0,setLabelId:L7,messageIds:[],setMessageIds:L7,getDescriptionProps:e=>e});function N9(){return R.useContext(Vre)}function Hre(e,t,n,r=!0,i){let[a,o]=R.useState(),s=k9(i?`${i}-label`:void 0),c=e??t??a;return g7(()=>{let i=e||t||!r?void 0:Ure(n.current,s);a!==i&&o(i)}),c}function Ure(e,t){let n=Wre(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Wre(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Gre(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=N9(),o=k9(t),s=n?i:void 0,c=p7(()=>Symbol()),l=R.useRef(!1),u=R.useRef(t!=null),d=h7(()=>{!l.current||a===L7||(l.current=!1,a(c.current,void 0))});return g7(()=>{if(a===L7)return;let e;if(n){let n=r?.current;e=lne(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),R.useEffect(()=>d,[d]),i??o}var Kre=`none`;function qre(e,t,n,r){let i=!1,a=!1,o=r??R7;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Jre(e,t){let n=R.useRef(e),r=h7(t);g7(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var Yre=R.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:h,uncheckedValue:g,value:_,style:v,...y}=e,{clearErrors:b}=Bre(),{state:x,setTouched:S,setDirty:C,validityData:w,setFilled:T,setFocused:E,validationMode:D,disabled:O,name:k,validation:A}=M9(),{labelId:j}=N9(),M=O||m,N=k??l,P=R.useRef(null),ee=N7(P,c,A.inputRef),F=R.useRef(null),te=k9(),ne=Gre({id:s,implicit:!1,controlRef:F}),re=u?void 0:ne,[I,ie]=Ore({controlled:n,default:!!i,name:`Switch`,state:`checked`});Rre(F,te,I,void 0,!M,l),g7(()=>{P.current&&T(P.current.checked)},[T]),Jre(I,()=>{b(N),C(I!==w.initialValue),T(I),A.change(I)});let{getButtonProps:ae,buttonRef:oe}=j7({disabled:M,native:u}),se=Hre(a,j,P,!u,re),L={id:u?ne:te,role:`switch`,"aria-checked":I,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":se,onFocus(){M||E(!0)},onBlur(){let e=P.current;!e||M||(S(!0),E(!1),D===`onBlur`&&A.commit(e.checked))},onClick(e){if(f||M)return;e.preventDefault();let t=P.current;t&&A7(t,e)}},ce={...A.getValidationProps(M),checked:I,disabled:M,form:o,id:re,name:N,required:p,style:N?Are:kre,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:ee,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=qre(Kre,e.nativeEvent);d?.(t,n),!n.isCanceled&&ie(t)},onClick(e){e.stopPropagation()},onFocus(){F.current?.focus()},..._===void 0?R7:{value:_}},le=R.useMemo(()=>({...x,checked:I,disabled:M,readOnly:f,required:p}),[x,I,M,f,p]),ue=z7(`span`,e,{state:le,ref:[t,F,oe],props:[L,y,ae,e=>A.getValidationProps(M,e)],stateAttributesMapping:j9});return(0,z.jsxs)(A9.Provider,{value:le,children:[ue,!I&&N&&g!==void 0&&(0,z.jsx)(`input`,{type:`hidden`,form:o,name:N,value:g,disabled:M}),(0,z.jsx)(`input`,{...ce,suppressHydrationWarning:!0})]})}),Xre=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return z7(`span`,e,{state:Nre(),ref:t,stateAttributesMapping:j9,props:a})});function P9(e){return(0,z.jsx)(Yre,{...e,className:`relative h-6 w-11 rounded-full bg-zinc-700 transition-colors data-[checked]:bg-violet-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400`,children:(0,z.jsx)(Xre,{className:`block size-5 translate-x-0.5 rounded-full bg-white shadow transition-transform data-[checked]:translate-x-5`})})}function Zre(){return sessionStorage.getItem(`orchestra-token`)??``}function Qre(e){return e?/filename="([^"]+)"/i.exec(e)?.[1]??null:null}async function $re(e,t,n){let r=new URLSearchParams({scope:e,format:t});r.set(`project`,n);let i=await fetch(`/api/export?${r.toString()}`,{headers:{"X-Orchestra-Token":Zre()}});if(!i.ok){let e=await i.json().catch(()=>({error:i.statusText}));throw Error(e.error??`HTTP ${i.status}`)}let a=await i.blob(),o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=Qre(i.headers.get(`Content-Disposition`))??`orchestra-${e}.${t}`,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(o)}var F9=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},eie=(e=>e?F9(e):F9),tie=e=>e;function nie(e,t=tie){let n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}var I9=e=>{let t=eie(e),n=e=>nie(t,e);return Object.assign(n,t),n},rie=(e=>e?I9(e):I9),iie=localStorage.getItem(`orchestra-theme`)===`light`?`light`:`dark`,L9=rie(e=>({theme:iie,compact:!1,selectedProject:localStorage.getItem(`orchestra-project`)??`global`,setTheme:t=>{localStorage.setItem(`orchestra-theme`,t),e({theme:t})},setSelectedProject:t=>{localStorage.setItem(`orchestra-project`,t),e({selectedProject:t})},toggleCompact:()=>e(e=>({compact:!e.compact}))})),aie=[];function R9(){let e=L9(e=>e.selectedProject);return tt({queryKey:[`snapshot`,e],queryFn:()=>s7.snapshot(e===`global`?void 0:e),refetchInterval:2500,enabled:e!==`global`})}function z9(){let e=L9(e=>e.selectedProject);return tt({queryKey:[`dashboard`,e],queryFn:async()=>e===`global`?s7.global():s7.snapshot(e),refetchInterval:2500})}function B9(e){return Intl.NumberFormat(void 0,{notation:e>=1e4?`compact`:`standard`,maximumFractionDigits:1}).format(e)}var oie=new Intl.NumberFormat(void 0,{minimumFractionDigits:1,maximumFractionDigits:1});function V9(e){return e>0?`$${e.toFixed(e<1?4:2)}`:`—`}function sie(e){switch(e){case`free`:return`free · $0`;case`subscription`:return`subscription · $0`;case`unknown`:return`unknown price`;default:return`—`}}function H9(e){return e.tokens.input+e.tokens.output+e.tokens.reasoning}function cie(){let{t:e}=rs(),t=L9(e=>e.theme),n=L9(e=>e.setTheme),r=L9(e=>e.selectedProject),i=L9(e=>e.setSelectedProject),a=tt({queryKey:[`projects`],queryFn:s7.projects,refetchInterval:5e3}),o=z9();(0,R.useEffect)(()=>{document.documentElement.classList.toggle(`light`,t===`light`)},[t]),(0,R.useEffect)(()=>{a.data&&r!==`global`&&!a.data.some(e=>e.id===r)&&i(`global`)},[a.data,r,i]);let s=[{to:`/`,label:e(`overview`),icon:ds},{to:`/activity`,label:e(`activity`),icon:ss},{to:`/models`,label:e(`models`),icon:ls},{to:`/agents`,label:e(`agents`),icon:cs},{to:`/settings`,label:e(`settings`),icon:_s}];return(0,z.jsxs)(`div`,{className:`app-shell`,children:[(0,z.jsxs)(`aside`,{className:`sidebar`,children:[(0,z.jsxs)(`div`,{className:`brand`,children:[(0,z.jsxs)(`div`,{className:`brand-mark`,children:[(0,z.jsx)(`span`,{}),(0,z.jsx)(`span`,{}),(0,z.jsx)(`span`,{})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`strong`,{children:`ORCHESTRA`}),(0,z.jsx)(`small`,{children:`CONTROL PLANE`})]})]}),(0,z.jsx)(`nav`,{children:s.map(e=>(0,z.jsxs)(sa,{to:e.to,activeOptions:{exact:e.to===`/`},className:`nav-link`,activeProps:{className:`nav-link active`},children:[(0,z.jsx)(os,{icon:e.icon,size:19,strokeWidth:1.8}),(0,z.jsx)(`span`,{children:e.label})]},e.to))}),(0,z.jsxs)(`div`,{className:`sidebar-foot`,children:[(0,z.jsxs)(`div`,{className:`local-chip`,children:[(0,z.jsx)(`span`,{className:`status-dot`}),e(`live`)]}),(0,z.jsx)(`div`,{className:`project-name`,children:o.data?.project??`Orchestra`})]})]}),(0,z.jsxs)(`main`,{className:`main-panel`,children:[(0,z.jsxs)(`header`,{className:`topbar`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`select`,{className:`project-select`,value:r,onChange:e=>i(e.target.value),"aria-label":`Выбор проекта`,children:[(0,z.jsx)(`option`,{value:`global`,children:`Все проекты`}),a.data?.map(e=>(0,z.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,z.jsx)(`span`,{className:`eyebrow`,children:o.data?.directory??`Loading telemetry…`})]}),(0,z.jsxs)(`div`,{className:`top-actions`,children:[(0,z.jsx)(uie,{}),(0,z.jsxs)(w9,{variant:`ghost`,"aria-label":`Language`,onClick:()=>{let e=is.language===`ru`?`en`:`ru`;localStorage.setItem(`orchestra-language`,e),is.changeLanguage(e)},children:[(0,z.jsx)(os,{icon:ms,size:18}),is.language.toUpperCase()]}),(0,z.jsx)(w9,{variant:`ghost`,"aria-label":`Theme`,onClick:()=>n(t===`dark`?`light`:`dark`),children:(0,z.jsx)(os,{icon:t===`dark`?vs:hs,size:18})})]})]}),(0,z.jsx)(`div`,{className:`content`,children:(0,z.jsx)(Sa,{})})]})]})}function U9({kicker:e,title:t,text:n}){return(0,z.jsxs)(`div`,{className:`page-intro`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e}),(0,z.jsx)(`h1`,{children:t}),(0,z.jsx)(`p`,{children:n})]})}function W9({label:e,value:t,note:n,icon:r}){return(0,z.jsx)(iC.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},children:(0,z.jsxs)(T9,{className:`metric-card`,children:[(0,z.jsx)(`div`,{className:`metric-icon`,children:(0,z.jsx)(os,{icon:r,size:20,strokeWidth:1.8})}),(0,z.jsx)(`span`,{children:e}),(0,z.jsx)(`strong`,{children:t}),(0,z.jsx)(`small`,{children:n})]})})}function G9(){let{t:e}=rs();return(0,z.jsxs)(`div`,{className:`empty-state`,children:[(0,z.jsx)(os,{icon:ss,size:24}),(0,z.jsx)(`span`,{children:e(`noData`)})]})}var lie=[{scope:`activity`,label:`Журнал вызовов`},{scope:`models`,label:`Модели`},{scope:`agents`,label:`Агенты`},{scope:`daily`,label:`По дням`},{scope:`summary`,label:`Сводка`}];function uie(){let{t:e}=rs(),t=L9(e=>e.selectedProject),[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(null),[o,s]=(0,R.useState)(null),c=async(n,i)=>{a(`${n}:${i}`),s(null);try{await $re(n,i,t),r(!1)}catch(t){s(t instanceof Error?t.message:e(`exportFailed`))}finally{a(null)}};return t===`global`?null:(0,z.jsxs)(`div`,{className:`export-menu`,children:[(0,z.jsxs)(w9,{variant:`outline`,onClick:()=>r(e=>!e),children:[(0,z.jsx)(os,{icon:ps,size:17}),e(`export`)]}),n&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{type:`button`,className:`export-scrim`,onClick:()=>r(!1),"aria-label":e(`close`)}),(0,z.jsxs)(`div`,{className:`export-panel`,children:[(0,z.jsxs)(`div`,{className:`export-head`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`export`)}),(0,z.jsx)(`button`,{type:`button`,className:`export-close`,onClick:()=>r(!1),children:`×`})]}),(0,z.jsx)(`div`,{className:`export-list`,children:lie.map(e=>(0,z.jsxs)(`div`,{className:`export-item`,children:[(0,z.jsx)(`span`,{className:`export-item-label`,children:e.label}),(0,z.jsxs)(`div`,{className:`export-item-actions`,children:[(0,z.jsx)(w9,{variant:`ghost`,disabled:i!==null,onClick:()=>c(e.scope,`csv`),children:i===`${e.scope}:csv`?`…`:`CSV`}),(0,z.jsx)(w9,{variant:`ghost`,disabled:i!==null,onClick:()=>c(e.scope,`json`),children:i===`${e.scope}:json`?`…`:`JSON`})]})]},e.scope))}),o!==null&&(0,z.jsx)(`div`,{className:`export-error`,children:o})]})]})]})}function die(){let{t:e}=rs(),t=z9(),n=t.data;if(t.isLoading)return(0,z.jsx)(Z9,{});if(!n)return(0,z.jsx)(Q9,{error:t.error});let r=n.summary.tokens.input+n.summary.tokens.output+n.summary.tokens.reasoning,i=n.projection,a=n.anomalies[n.anomalies.length-1];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`global`in n?`${n.summary.projects} PROJECTS`:`${n.config.budget.toUpperCase()} MODE`,title:`Пульс оркестра`,text:`global`in n?`Общая локальная статистика по всем зарегистрированным проектам.`:`Маршрутизация, токены и стоимость — без отправки телеметрии наружу.`}),(0,z.jsxs)(`div`,{className:`metrics-grid`,children:[(0,z.jsx)(W9,{label:e(`sessions`),value:B9(n.summary.sessions),note:`локальных запусков`,icon:fs}),(0,z.jsx)(W9,{label:e(`calls`),value:B9(n.summary.calls),note:`ответов агентов`,icon:ss}),(0,z.jsx)(W9,{label:e(`tokens`),value:B9(r),note:`${B9(n.summary.tokens.cache.read)} из кэша`,icon:cs}),(0,z.jsx)(W9,{label:e(`cost`),value:V9(n.summary.cost),note:`по данным провайдеров`,icon:us})]}),!(`global`in n)&&(0,z.jsx)(gie,{projectId:n.projectId}),(0,z.jsxs)(T9,{className:`insight-banner`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`monthProjection`)}),(0,z.jsx)(`strong`,{children:V9(i.projected)}),(0,z.jsxs)(`small`,{children:[V9(i.monthToDate),` `,e(`monthToDate`),i.isAheadOfPace?` · ${e(`aheadOfPace`)}`:``]})]}),a&&(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`anomaly`)}),(0,z.jsxs)(`strong`,{children:[new Date(`${a.date}T00:00:00`).toLocaleDateString(),` · `,V9(a.cost)]}),(0,z.jsxs)(`small`,{children:[e(`anomalyNote`),` `,V9(a.threshold)]})]})]}),(0,z.jsxs)(`div`,{className:`dashboard-grid`,children:[(0,z.jsxs)(T9,{className:`chart-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`usage`)}),(0,z.jsx)(`h2`,{children:`Токены и расходы`})]}),(0,z.jsx)(`span`,{className:`updated`,children:new Date(n.updatedAt).toLocaleTimeString()})]}),n.daily.length?(0,z.jsx)(`div`,{className:`chart-wrap`,children:(0,z.jsx)(aj,{width:`100%`,height:`100%`,children:(0,z.jsxs)($0,{data:n.daily,children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`tokens`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`0%`,stopColor:`#8b5cf6`,stopOpacity:.5}),(0,z.jsx)(`stop`,{offset:`100%`,stopColor:`#8b5cf6`,stopOpacity:0})]})}),(0,z.jsx)(DQ,{stroke:`rgba(255,255,255,.05)`,vertical:!1}),(0,z.jsx)(q$,{dataKey:`date`,tickFormatter:e=>String(e).slice(5),stroke:`#71717a`,tickLine:!1,axisLine:!1}),(0,z.jsx)(c1,{stroke:`#71717a`,tickLine:!1,axisLine:!1,width:48,tickFormatter:B9}),(0,z.jsx)(eq,{contentStyle:{background:`#11141b`,border:`1px solid rgba(255,255,255,.1)`,borderRadius:12}}),(0,z.jsx)(E$,{type:`monotone`,dataKey:`input`,stackId:`1`,stroke:`#8b5cf6`,fill:`url(#tokens)`}),(0,z.jsx)(E$,{type:`monotone`,dataKey:`output`,stackId:`1`,stroke:`#22d3ee`,fill:`#22d3ee`,fillOpacity:.12})]})})}):(0,z.jsx)(G9,{})]}),`global`in n?(0,z.jsx)(fie,{data:n}):(0,z.jsxs)(T9,{className:`mcp-card`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`MEMORY LAYER`}),(0,z.jsx)(`h2`,{children:`MCP-сервисы`}),(0,z.jsx)(`div`,{className:`mcp-list`,children:Object.entries({context7:`Context7`,codebaseMemory:`Codebase Memory`,memoryGraph:`MemoryGraph`,playwright:`Playwright`}).map(([e,t])=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:C9(`status-dot`,!n.mcp[e]&&`off`)}),(0,z.jsx)(`span`,{children:t}),(0,z.jsx)(`small`,{children:n.mcp[e]?`подключён`:`не настроен`})]},e))})]})]}),!(`global`in n)&&(0,z.jsxs)(T9,{className:`list-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`recent`)}),(0,z.jsx)(`h2`,{children:`Последние вызовы`})]}),(0,z.jsx)(sa,{to:`/activity`,className:`text-link`,children:`Открыть журнал →`})]}),(0,z.jsx)(pie,{rows:n.activity.slice(0,6)})]})]})}function fie({data:e}){let t=L9(e=>e.setSelectedProject);return(0,z.jsxs)(T9,{className:`mcp-card`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`PROJECTS`}),(0,z.jsx)(`h2`,{children:`Проекты`}),(0,z.jsx)(`div`,{className:`project-list`,children:e.projects.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(e.id),children:[(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`strong`,{children:e.name}),(0,z.jsx)(`small`,{children:e.directory})]}),(0,z.jsxs)(`span`,{children:[B9(e.summary.calls),` calls`]}),(0,z.jsx)(`span`,{children:V9(e.summary.cost)})]},e.id))})]})}function pie({rows:e}){return e.length?(0,z.jsx)(`div`,{className:`recent-list`,children:e.map(e=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`agent-badge`,children:e.agent?.replace(`orch-`,``)??`unknown`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`strong`,{children:e.provider&&e.model?`${e.provider}/${e.model}`:`Модель не определена`}),(0,z.jsx)(`small`,{children:e.completedAt?new Date(e.completedAt).toLocaleString():`в процессе`})]}),(0,z.jsxs)(`span`,{children:[B9(e.tokens.input+e.tokens.output+e.tokens.reasoning),` tok`]}),(0,z.jsx)(`span`,{children:V9(e.cost)})]},e.id))}):(0,z.jsx)(G9,{})}function mie(e){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{let t=!0,r=cne(e,e=>{t&&(n(e),i(!0))},()=>{t&&i(!1)});return()=>{t=!1,r.close()}},[e]),{snapshot:t,connected:r}}function K9(e){return e?.replace(`orch-`,``)??`unknown`}function hie(e){return e.reduce((e,t)=>e+t.cost,0)}function gie({projectId:e}){let{t}=rs(),{snapshot:n,connected:r}=mie(e),i=n?.active??[],a=hie(i),o=i.length>0;return(0,z.jsxs)(T9,{className:`live-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`LIVE · ORCHESTRATION`}),(0,z.jsx)(`h2`,{children:`Что происходит сейчас`})]}),(0,z.jsxs)(`span`,{className:C9(`live-state`,o&&`active`,!r&&`off`),children:[(0,z.jsx)(`span`,{className:`status-dot`}),o?t(`live`)+` · `+i.length:r?`ожидание`:`нет соединения`]})]}),i.length?(0,z.jsxs)(`div`,{className:`live-list`,children:[i.map(e=>(0,z.jsx)(_ie,{row:e},e.key)),(0,z.jsxs)(`div`,{className:`live-total`,children:[(0,z.jsx)(`span`,{children:`Идёт в эту секунду`}),(0,z.jsxs)(`strong`,{children:[i.length,` `,i.length===1?`агент`:`агента`]}),(0,z.jsx)(`span`,{children:`оценочная стоимость`}),(0,z.jsx)(`strong`,{children:V9(a)})]})]}):(0,z.jsx)(G9,{})]})}function _ie({row:e}){let[t,n]=(0,R.useState)(Date.now());(0,R.useEffect)(()=>{let e=window.setInterval(()=>n(Date.now()),1e3);return()=>window.clearInterval(e)},[]);let r=Math.max(0,t-e.startedAt)/1e3,i=Math.floor(r),a=r>0?e.tokens.output/r:0;return(0,z.jsxs)(`div`,{className:`live-row`,children:[(0,z.jsx)(`span`,{className:`agent-badge`,children:K9(e.agent)}),(0,z.jsxs)(`div`,{className:`live-body`,children:[(0,z.jsxs)(`div`,{className:`live-meta`,children:[(0,z.jsx)(`strong`,{children:K9(e.agent)}),(0,z.jsx)(`span`,{children:e.provider&&e.model?e.provider+`/`+e.model:`модель…`})]}),(0,z.jsx)(`p`,{className:`live-snippet`,children:e.text||`начинает отвечать…`}),(0,z.jsxs)(`div`,{className:`live-stats`,children:[(0,z.jsx)(`span`,{children:i+`s`}),(0,z.jsx)(`span`,{children:B9(e.tokens.output)+` output (`+B9(e.tokens.reasoning)+` reasoning)`}),(0,z.jsx)(`span`,{children:`≈`+oie.format(a)+` tok/s`}),e.flags?.length?(0,z.jsx)(`span`,{className:`live-warn`,title:e.flags.join(`, `),children:`⚑`}):null]})]}),(0,z.jsx)(`span`,{className:`live-cost`,children:V9(e.cost)})]})}var vie=of({columnSizingFeature:kf}),q9=af(),yie=q9.columns([q9.accessor(`completedAt`,{header:`Время`,cell:({getValue:e})=>e()?new Date(e()).toLocaleString():`—`,size:180}),q9.accessor(`agent`,{header:`Агент`,cell:({getValue:e})=>e()?.replace(`orch-`,``)??`unknown`,size:130}),q9.accessor(e=>e.provider&&e.model?`${e.provider}/${e.model}`:`unknown`,{id:`model`,header:`Модель`,size:300}),q9.accessor(e=>e.tokens.input+e.tokens.output+e.tokens.reasoning,{id:`tokens`,header:`Токены`,cell:({getValue:e})=>B9(e()),size:120}),q9.accessor(`cost`,{header:`Цена`,cell:({getValue:e})=>V9(e()),size:100}),q9.accessor(`pricingStatus`,{header:`Цена/источник`,cell:({row:e})=>sie(e.original.pricingStatus),size:120}),q9.accessor(`finish`,{header:`Статус`,cell:({getValue:e})=>e()??`—`,size:110})]);function bie(){let e=L9(e=>e.selectedProject),t=R9();return e===`global`?(0,z.jsx)(X9,{title:`Журнал работы`}):t.data?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`LOCAL EVENT STREAM`,title:`Журнал работы`,text:`Метаданные вызовов без содержимого промптов и ответов.`}),(0,z.jsx)(T9,{className:`table-card`,children:(0,z.jsx)(J9,{data:t.data.activity})})]}):t.isLoading?(0,z.jsx)(Z9,{}):(0,z.jsx)(Q9,{error:t.error})}function J9({data:e}){let t=jf({features:vie,columns:yie,data:e}),n=t.getRowModel().rows,r=(0,R.useRef)(null),i=np({count:n.length,getScrollElement:()=>r.current,estimateSize:()=>46,overscan:8});return n.length?(0,z.jsxs)(`div`,{className:`virtual-table`,children:[(0,z.jsx)(`div`,{className:`table-head`,children:t.getHeaderGroups()[0]?.headers.map(e=>(0,z.jsx)(`div`,{style:{width:e.getSize()},children:e.isPlaceholder?null:(0,z.jsx)(t.FlexRender,{header:e})},e.id))}),(0,z.jsx)(`div`,{ref:r,className:`table-scroll`,children:(0,z.jsx)(`div`,{style:{height:i.getTotalSize(),position:`relative`,minWidth:940},children:i.getVirtualItems().map(e=>{let r=n[e.index];return r?(0,z.jsx)(`div`,{className:`table-row`,"data-index":e.index,ref:i.measureElement,style:{transform:`translateY(${e.start}px)`},children:r.getAllCells().map(e=>(0,z.jsx)(`div`,{style:{width:e.column.getSize()},children:(0,z.jsx)(t.FlexRender,{cell:e})},e.id))},r.id):null})})})]}):(0,z.jsx)(G9,{})}function Y9({kind:e}){let t=z9().data?.[e]??aie,n=e===`models`?`Экономика моделей`:`Нагрузка агентов`,r=e===`models`?`Фактические токены и стоимость по каждой использованной модели.`:`Кто выполняет работу, сколько контекста потребляет и где происходит эскалация.`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:e.toUpperCase(),title:n,text:r}),(0,z.jsx)(T9,{className:`ranking-card`,children:t.length?(0,z.jsx)(`div`,{className:`ranking-list`,children:t.map((e,n)=>(0,z.jsxs)(iC.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:n*.025},children:[(0,z.jsx)(`span`,{className:`rank`,children:String(n+1).padStart(2,`0`)}),(0,z.jsxs)(`div`,{className:`rank-main`,children:[(0,z.jsx)(`strong`,{children:e.id.replace(`orch-`,``)}),(0,z.jsx)(`div`,{className:`usage-bar`,children:(0,z.jsx)(`span`,{style:{width:`${Math.max(3,H9(e)/Math.max(...t.map(H9))*100)}%`}})})]}),(0,z.jsxs)(`span`,{children:[e.calls,` calls`]}),(0,z.jsxs)(`span`,{children:[B9(H9(e)),` tok`]}),(0,z.jsx)(`span`,{children:V9(e.cost)})]},e.id))}):(0,z.jsx)(G9,{})})]})}var xie=[{id:`orch-lead`,name:`Lead`,role:`Планирование и координация`,group:`Основные`},{id:`orch-judge`,name:`Judge`,role:`Арбитраж сложных решений`,group:`Основные`},{id:`orch-repo`,name:`Repository`,role:`Анализ и изменение кода`,group:`Разработка`},{id:`orch-tests`,name:`Tests`,role:`Тесты и верификация`,group:`Разработка`},{id:`orch-critic`,name:`Critic`,role:`Ревью и поиск проблем`,group:`Разработка`},{id:`orch-docs`,name:`Docs`,role:`Документация и API`,group:`Исследование`},{id:`orch-research`,name:`Research`,role:`Внешнее исследование`,group:`Исследование`},{id:`orch-security`,name:`Security`,role:`Безопасность`,group:`Исследование`},{id:`orch-visual-reference`,name:`Visual Reference`,role:`Анализ визуальных референсов`,group:`Визуальные`},{id:`orch-visual-generate`,name:`Visual Generate`,role:`Генерация изображений`,group:`Визуальные`},{id:`orch-visual-review`,name:`Visual Review`,role:`Визуальная проверка`,group:`Визуальные`}],Sie=j5({budget:z5([`eco`,`balanced`,`quality`,`ebobo`]),models:j5({strategy:z5([`auto`,`manual`]),agents:L5(t5(),t5())}),telemetry:j5({enabled:C5(),storeTexts:C5()})});function Cie(){let{t:e}=rs(),t=R9(),n=L9(e=>e.selectedProject),r=Be(),i=il({resolver:ml(Sie),defaultValues:t.data?.config});(0,R.useEffect)(()=>{t.data&&i.reset(t.data.config)},[t.data,i]);let a=nt({mutationFn:e=>s7.saveConfig(e,n),onSuccess:async()=>{await r.invalidateQueries({queryKey:[`snapshot`]})}});return n===`global`?(0,z.jsx)(X9,{title:`Настройка Orchestra`}):t.data?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`CONFIGURATION`,title:`Настройка Orchestra`,text:`Изменения сохраняются локально с резервной копией текущего JSONC.`}),(0,z.jsxs)(`form`,{onSubmit:i.handleSubmit(e=>a.mutate(e)),className:`settings-stack`,children:[(0,z.jsxs)(T9,{className:`settings-card`,children:[(0,z.jsx)(`div`,{className:`setting-title`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Режим бюджета`}),(0,z.jsx)(`p`,{children:`Один активный runtime-профиль для всей команды.`})]})}),(0,z.jsx)(nc,{name:`budget`,control:i.control,render:({field:e})=>(0,z.jsx)(`div`,{className:`budget-grid`,children:[`eco`,`balanced`,`quality`,`ebobo`].map(t=>(0,z.jsxs)(`button`,{type:`button`,className:C9(`budget-option`,e.value===t&&`selected`),onClick:()=>e.onChange(t),children:[(0,z.jsx)(`strong`,{children:t}),(0,z.jsx)(`span`,{children:{eco:`Бесплатные workers`,balanced:`Разумный баланс`,quality:`Качество прежде цены`,ebobo:`Максимальный роинг`}[t]})]},t))})})]}),(0,z.jsxs)(T9,{className:`settings-card model-settings`,children:[(0,z.jsxs)(`div`,{className:`setting-title`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Назначение моделей`}),(0,z.jsx)(`p`,{children:`Выберите подключённую модель отдельно для каждого участника команды.`})]}),(0,z.jsxs)(`select`,{...i.register(`models.strategy`),children:[(0,z.jsx)(`option`,{value:`auto`,children:`Автоподбор`}),(0,z.jsx)(`option`,{value:`manual`,children:`Ручной режим`})]})]}),t.data.availableModels.length===0&&(0,z.jsxs)(`div`,{className:`model-empty`,children:[`OpenCode не вернул подключённые модели. Проверьте авторизацию провайдера и команду `,(0,z.jsx)(`code`,{children:`opencode models`}),`.`]}),(0,z.jsx)(`div`,{className:`agent-model-list`,children:xie.map(e=>(0,z.jsxs)(`div`,{className:`agent-model-row`,children:[(0,z.jsxs)(`div`,{className:`agent-identity`,children:[(0,z.jsx)(`strong`,{children:e.name}),(0,z.jsx)(`span`,{children:e.role}),(0,z.jsx)(`small`,{children:e.id})]}),(0,z.jsxs)(`select`,{"aria-label":`Модель для ${e.name}`,...i.register(`models.agents.${e.id}`),children:[(0,z.jsx)(`option`,{value:``,children:`Автоматически`}),t.data.availableModels.map(e=>(0,z.jsx)(`option`,{value:e,children:e},e))]})]},e.id))})]}),(0,z.jsxs)(T9,{className:`settings-card inline-setting`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Локальная телеметрия`}),(0,z.jsx)(`p`,{children:`Хранить только usage-метаданные. Тексты запросов и ответов не записываются.`})]}),(0,z.jsx)(nc,{name:`telemetry.enabled`,control:i.control,render:({field:e})=>(0,z.jsx)(P9,{checked:e.value,onCheckedChange:e.onChange})})]}),(0,z.jsxs)(T9,{className:`settings-card inline-setting`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:e(`storeTexts`)}),(0,z.jsx)(`p`,{children:`Опционально, для отладки. По умолчанию выключено — журнал остаётся без промптов и ответов.`})]}),(0,z.jsx)(nc,{name:`telemetry.storeTexts`,control:i.control,render:({field:e})=>(0,z.jsx)(P9,{checked:e.value,onCheckedChange:e.onChange})})]}),(0,z.jsxs)(`div`,{className:`form-actions`,children:[(0,z.jsx)(`span`,{children:a.isError?a.error.message:a.isSuccess?`Настройки сохранены`:t.data.configPath}),(0,z.jsx)(w9,{type:`submit`,disabled:a.isPending,children:a.isPending?`Сохраняю…`:`Сохранить настройки`})]})]})]}):t.isLoading?(0,z.jsx)(Z9,{}):(0,z.jsx)(Q9,{error:t.error})}function X9({title:e}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`PROJECT REQUIRED`,title:e,text:`Выберите конкретный проект в верхней панели.`}),(0,z.jsx)(T9,{children:(0,z.jsx)(G9,{})})]})}function Z9(){return(0,z.jsxs)(`div`,{className:`loading`,children:[(0,z.jsx)(os,{icon:gs,size:24,className:`spin`}),`Читаю локальную телеметрию…`]})}function Q9({error:e}){return(0,z.jsxs)(`div`,{className:`error-state`,children:[`Не удалось загрузить dashboard: `,e instanceof Error?e.message:`unknown error`]})}var $9=da({component:cie}),wie=la({getParentRoute:()=>$9,path:`/`,component:die}),Tie=la({getParentRoute:()=>$9,path:`/activity`,component:bie}),Eie=la({getParentRoute:()=>$9,path:`/models`,component:()=>(0,z.jsx)(Y9,{kind:`models`})}),Die=la({getParentRoute:()=>$9,path:`/agents`,component:()=>(0,z.jsx)(Y9,{kind:`agents`})}),Oie=la({getParentRoute:()=>$9,path:`/settings`,component:Cie}),kie=Oa({routeTree:$9.addChildren([wie,Tie,Eie,Die,Oie])}),Aie=new Pe({defaultOptions:{queries:{retry:1,staleTime:1e3}}});(0,La.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsx)(Ve,{client:Aie,children:(0,z.jsx)(ja,{router:kie})})}));
|
|
124
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function a8(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:c8(t,`input`,e.processors),output:c8(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function o8(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return o8(r.element,n);if(r.type===`set`)return o8(r.valueType,n);if(r.type===`lazy`)return o8(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return o8(r.innerType,n);if(r.type===`intersection`)return o8(r.left,n)||o8(r.right,n);if(r.type===`record`||r.type===`map`)return o8(r.keyType,n)||o8(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:o8(r.in,n)||o8(r.out,n);if(r.type===`object`){for(let e in r.shape)if(o8(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(o8(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(o8(e,n))return!0;return!!(r.rest&&o8(r.rest,n))}return!1}var s8=(e,t={})=>n=>{let r=n8({...n,processors:t});return r8(e,r),i8(r,e),a8(r,e)},c8=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=n8({...i??{},target:a,io:t,processors:n});return r8(e,o),i8(o,e),a8(o,e)},l8={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},u8=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=l8[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},d8=(e,t,n,r)=>{n.type=`boolean`},f8=(e,t,n,r)=>{n.not={}},p8=(e,t,n,r)=>{let i=e._zod.def,a=a2(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},m8=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},h8=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},g8=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=r8(a.element,t,{...r,path:[...r.path,`items`]})},_8=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=r8(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=r8(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},v8=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>r8(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},y8=(e,t,n,r)=>{let i=e._zod.def,a=r8(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=r8(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},b8=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=r8(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=r8(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=r8(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},x8=(e,t,n,r)=>{let i=e._zod.def,a=r8(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},S8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},C8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},w8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},T8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},E8=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;r8(o,t,r);let s=t.seen.get(e);s.ref=o},D8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},O8=(e,t,n,r)=>{let i=e._zod.def;r8(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},k8=Y(`ZodISODateTime`,(e,t)=>{c3.init(e,t),n5.init(e,t)});function A8(e){return A6(k8,e)}var j8=Y(`ZodISODate`,(e,t)=>{l3.init(e,t),n5.init(e,t)});function M8(e){return j6(j8,e)}var N8=Y(`ZodISOTime`,(e,t)=>{u3.init(e,t),n5.init(e,t)});function P8(e){return M6(N8,e)}var F8=Y(`ZodISODuration`,(e,t)=>{d3.init(e,t),n5.init(e,t)});function I8(e){return N6(F8,e)}var L8=Y(`ZodError`,(e,t)=>{B2.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>U2(e,t)},flatten:{value:t=>H2(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,o2,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,o2,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),R8=W2(L8),z8=G2(L8),B8=K2(L8),V8=J2(L8),H8=X2(L8),U8=Z2(L8),W8=Q2(L8),G8=$2(L8),K8=e4(L8),q8=t4(L8),J8=n4(L8),Y8=r4(L8),X8=new WeakMap;function Z8(e,t,n){let r=Object.getPrototypeOf(e),i=X8.get(r);if(i||(i=new Set,X8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var Q8=Y(`ZodType`,(e,t)=>(J4.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:c8(e,`input`),output:c8(e,`output`)}}),e.toJSONSchema=s8(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>R8(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>B8(e,t,n),e.parseAsync=async(t,n)=>z8(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>V8(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>H8(e,t,n),e.decode=(t,n)=>U8(e,t,n),e.encodeAsync=async(t,n)=>W8(e,t,n),e.decodeAsync=async(t,n)=>G8(e,t,n),e.safeEncode=(t,n)=>K8(e,t,n),e.safeDecode=(t,n)=>q8(e,t,n),e.safeEncodeAsync=async(t,n)=>J8(e,t,n),e.safeDecodeAsync=async(t,n)=>Y8(e,t,n),Z8(e,`ZodType`,{check(...e){let t=this.def;return this.clone(p2(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return C2(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(one(e,t))},superRefine(e,t){return this.check(sne(e,t))},overwrite(e){return this.check(K6(e))},optional(){return U5(this)},exactOptional(){return G5(this)},nullable(){return q5(this)},nullish(){return U5(q5(this))},nonoptional(e){return $5(this,e)},array(){return k5(this)},or(e){return N5([this,e])},and(e){return F5(this,e)},transform(e){return n7(this,V5(e))},default(e){return Y5(this,e)},prefault(e){return Z5(this,e)},catch(e){return t7(this,e)},pipe(e){return n7(this,e)},readonly(){return ine(this)},describe(e){let t=this.clone();return o6.add(t,{description:e}),t},meta(...e){if(e.length===0)return o6.get(this);let t=this.clone();return o6.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return o6.get(e)?.description},configurable:!0}),e)),$8=Y(`_ZodString`,(e,t)=>{Y4.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u8(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Z8(e,`_ZodString`,{regex(...e){return this.check(B6(...e))},includes(...e){return this.check(U6(...e))},startsWith(...e){return this.check(W6(...e))},endsWith(...e){return this.check(G6(...e))},min(...e){return this.check(R6(...e))},max(...e){return this.check(L6(...e))},length(...e){return this.check(z6(...e))},nonempty(...e){return this.check(R6(1,...e))},lowercase(e){return this.check(V6(e))},uppercase(e){return this.check(H6(e))},trim(){return this.check(J6())},normalize(...e){return this.check(q6(...e))},toLowerCase(){return this.check(Y6())},toUpperCase(){return this.check(X6())},slugify(){return this.check(Z6())}})}),e5=Y(`ZodString`,(e,t)=>{Y4.init(e,t),$8.init(e,t),e.email=t=>e.check(c6(r5,t)),e.url=t=>e.check(m6(o5,t)),e.jwt=t=>e.check(k6(x5,t)),e.emoji=t=>e.check(h6(s5,t)),e.guid=t=>e.check(l6(i5,t)),e.uuid=t=>e.check(u6(a5,t)),e.uuidv4=t=>e.check(d6(a5,t)),e.uuidv6=t=>e.check(f6(a5,t)),e.uuidv7=t=>e.check(p6(a5,t)),e.nanoid=t=>e.check(g6(c5,t)),e.guid=t=>e.check(l6(i5,t)),e.cuid=t=>e.check(_6(l5,t)),e.cuid2=t=>e.check(v6(u5,t)),e.ulid=t=>e.check(y6(d5,t)),e.base64=t=>e.check(E6(v5,t)),e.base64url=t=>e.check(D6(y5,t)),e.xid=t=>e.check(b6(f5,t)),e.ksuid=t=>e.check(x6(p5,t)),e.ipv4=t=>e.check(S6(m5,t)),e.ipv6=t=>e.check(C6(h5,t)),e.cidrv4=t=>e.check(w6(g5,t)),e.cidrv6=t=>e.check(T6(_5,t)),e.e164=t=>e.check(O6(b5,t)),e.datetime=t=>e.check(A8(t)),e.date=t=>e.check(M8(t)),e.time=t=>e.check(P8(t)),e.duration=t=>e.check(I8(t))});function t5(e){return s6(e5,e)}var n5=Y(`ZodStringFormat`,(e,t)=>{X4.init(e,t),$8.init(e,t)}),r5=Y(`ZodEmail`,(e,t)=>{$4.init(e,t),n5.init(e,t)}),i5=Y(`ZodGUID`,(e,t)=>{Z4.init(e,t),n5.init(e,t)}),a5=Y(`ZodUUID`,(e,t)=>{Q4.init(e,t),n5.init(e,t)}),o5=Y(`ZodURL`,(e,t)=>{e3.init(e,t),n5.init(e,t)}),s5=Y(`ZodEmoji`,(e,t)=>{t3.init(e,t),n5.init(e,t)}),c5=Y(`ZodNanoID`,(e,t)=>{n3.init(e,t),n5.init(e,t)}),l5=Y(`ZodCUID`,(e,t)=>{r3.init(e,t),n5.init(e,t)}),u5=Y(`ZodCUID2`,(e,t)=>{i3.init(e,t),n5.init(e,t)}),d5=Y(`ZodULID`,(e,t)=>{a3.init(e,t),n5.init(e,t)}),f5=Y(`ZodXID`,(e,t)=>{o3.init(e,t),n5.init(e,t)}),p5=Y(`ZodKSUID`,(e,t)=>{s3.init(e,t),n5.init(e,t)}),m5=Y(`ZodIPv4`,(e,t)=>{f3.init(e,t),n5.init(e,t)}),h5=Y(`ZodIPv6`,(e,t)=>{p3.init(e,t),n5.init(e,t)}),g5=Y(`ZodCIDRv4`,(e,t)=>{m3.init(e,t),n5.init(e,t)}),_5=Y(`ZodCIDRv6`,(e,t)=>{h3.init(e,t),n5.init(e,t)}),v5=Y(`ZodBase64`,(e,t)=>{_3.init(e,t),n5.init(e,t)}),y5=Y(`ZodBase64URL`,(e,t)=>{y3.init(e,t),n5.init(e,t)}),b5=Y(`ZodE164`,(e,t)=>{b3.init(e,t),n5.init(e,t)}),x5=Y(`ZodJWT`,(e,t)=>{S3.init(e,t),n5.init(e,t)}),S5=Y(`ZodBoolean`,(e,t)=>{C3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d8(e,t,n,r)});function C5(e){return P6(S5,e)}var w5=Y(`ZodUnknown`,(e,t)=>{w3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function T5(){return F6(w5)}var E5=Y(`ZodNever`,(e,t)=>{T3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f8(e,t,n,r)});function D5(e){return I6(E5,e)}var O5=Y(`ZodArray`,(e,t)=>{D3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g8(e,t,n,r),e.element=t.element,Z8(e,`ZodArray`,{min(e,t){return this.check(R6(e,t))},nonempty(e){return this.check(R6(1,e))},max(e,t){return this.check(L6(e,t))},length(e,t){return this.check(z6(e,t))},unwrap(){return this.element}})});function k5(e,t){return Q6(O5,e,t)}var A5=Y(`ZodObject`,(e,t)=>{M3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_8(e,t,n,r),d2(e,`shape`,()=>t.shape),Z8(e,`ZodObject`,{keyof(){return z5(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:T5()})},loose(){return this.clone({...this._zod.def,catchall:T5()})},strict(){return this.clone({...this._zod.def,catchall:D5()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return D2(this,e)},safeExtend(e){return O2(this,e)},merge(e){return k2(this,e)},pick(e){return T2(this,e)},omit(e){return E2(this,e)},partial(...e){return A2(H5,this,e[0])},required(...e){return j2(Q5,this,e[0])}})});function j5(e,t){return new A5({type:`object`,shape:e??{},...X(t)})}var M5=Y(`ZodUnion`,(e,t)=>{P3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v8(e,t,n,r),e.options=t.options});function N5(e,t){return new M5({type:`union`,options:e,...X(t)})}var P5=Y(`ZodIntersection`,(e,t)=>{F3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y8(e,t,n,r)});function F5(e,t){return new P5({type:`intersection`,left:e,right:t})}var I5=Y(`ZodRecord`,(e,t)=>{R3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b8(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function L5(e,t,n){return!t||!t._zod?new I5({type:`record`,keyType:t5(),valueType:e,...X(t)}):new I5({type:`record`,keyType:e,valueType:t,...X(n)})}var R5=Y(`ZodEnum`,(e,t)=>{z3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p8(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new R5({...t,checks:[],...X(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new R5({...t,checks:[],...X(r),entries:i})}});function z5(e,t){return new R5({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...X(t)})}var B5=Y(`ZodTransform`,(e,t)=>{B3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h8(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new n2(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(R2(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(R2(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function V5(e){return new B5({type:`transform`,transform:e})}var H5=Y(`ZodOptional`,(e,t)=>{H3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function U5(e){return new H5({type:`optional`,innerType:e})}var W5=Y(`ZodExactOptional`,(e,t)=>{U3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function G5(e){return new W5({type:`optional`,innerType:e})}var K5=Y(`ZodNullable`,(e,t)=>{W3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function q5(e){return new K5({type:`nullable`,innerType:e})}var J5=Y(`ZodDefault`,(e,t)=>{G3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Y5(e,t){return new J5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():b2(t)}})}var X5=Y(`ZodPrefault`,(e,t)=>{q3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Z5(e,t){return new X5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():b2(t)}})}var Q5=Y(`ZodNonOptional`,(e,t)=>{J3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function $5(e,t){return new Q5({type:`nonoptional`,innerType:e,...X(t)})}var e7=Y(`ZodCatch`,(e,t)=>{X3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function t7(e,t){return new e7({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var nne=Y(`ZodPipe`,(e,t)=>{Z3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E8(e,t,n,r),e.in=t.in,e.out=t.out});function n7(e,t){return new nne({type:`pipe`,in:e,out:t})}var rne=Y(`ZodReadonly`,(e,t)=>{$3.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D8(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ine(e){return new rne({type:`readonly`,innerType:e})}var ane=Y(`ZodCustom`,(e,t)=>{t6.init(e,t),Q8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m8(e,t,n,r)});function one(e,t={}){return $6(ane,e,t)}function sne(e,t){return e8(e,t)}var r7=new URLSearchParams(window.location.search),i7=r7.get(`token`);if(i7){sessionStorage.setItem(`orchestra-token`,i7),r7.delete(`token`);let e=`${window.location.pathname}${r7.size?`?${r7}`:``}${window.location.hash}`;window.history.replaceState({},``,e)}var a7=sessionStorage.getItem(`orchestra-token`)??``;async function o7(e,t){let n=await fetch(e,{...t,headers:{"Content-Type":`application/json`,"X-Orchestra-Token":a7,...t?.headers}});if(!n.ok){let e=await n.json().catch(()=>({error:n.statusText}));throw Error(e.error??`HTTP ${n.status}`)}return n.json()}function cne(e,t,n){let r=new URLSearchParams({token:a7});r.set(`project`,e);let i=new EventSource(`/api/live?`+r.toString());return i.addEventListener(`snapshot`,e=>{try{t(JSON.parse(e.data))}catch{}}),i.onerror=()=>{n?.()},{close:()=>i.close()}}var s7={snapshot:e=>o7(`/api/snapshot${e?`?project=${encodeURIComponent(e)}`:``}`),projects:()=>o7(`/api/projects`),global:()=>o7(`/api/global`),saveConfig:(e,t)=>o7(`/api/config`+(t?`?project=`+encodeURIComponent(t):``),{method:`PUT`,body:JSON.stringify(e)}),exportUrl:(e,t)=>`/api/export?scope=${e}&format=${t}`};function c7(){return typeof window<`u`}function l7(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function lne(e){return c7()?e instanceof Element||e instanceof l7(e).Element:!1}function u7(e){return c7()?e instanceof HTMLElement||e instanceof l7(e).HTMLElement:!1}var d7={...R},f7={};function p7(e,t){let n=R.useRef(f7);return n.current===f7&&(n.current=e(t)),n}var m7=d7.useInsertionEffect,une=m7&&m7!==d7.useLayoutEffect?m7:e=>e();function h7(e){let t=p7(dne).current;return t.next=e,une(t.effect),t.trampoline}function dne(){let e={next:void 0,callback:fne,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function fne(){}var g7=typeof document<`u`?R.useLayoutEffect:()=>{};function _7(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}var v7={};function y7(e,t,n,r,i){if(!n&&!r&&!i&&!e)return b7(t);let a=b7(e);return t&&(a=x7(a,t)),n&&(a=x7(a,n)),r&&(a=x7(a,r)),i&&(a=x7(a,i)),a}function pne(e){if(e.length===0)return v7;if(e.length===1)return b7(e[0]);let t=b7(e[0]);for(let n=1;n<e.length;n+=1)t=x7(t,e[n]);return t}function b7(e){return C7(e)?{...w7(e,v7)}:mne(e)}function x7(e,t){return C7(t)?w7(t,e):hne(e,t)}function mne(e){let t={...e};for(let e in t){let n=t[e];S7(e,n)&&(t[e]=T7(n))}return t}function hne(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=_7(e.style,r);break;case`className`:e[n]=D7(e.className,r);break;default:e[n]=S7(n,r)?gne(e[n],r):r}}return e}function S7(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function C7(e){return typeof e==`function`}function w7(e,t){return C7(e)?e(t):e??v7}function gne(e,t){return t?e?(...n)=>{let r=n[0];if(O7(r)){let i=r;E7(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:T7(t):e}function T7(e){return e&&((...t)=>{let n=t[0];return O7(n)&&E7(n),e(...t)})}function E7(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function D7(e,t){return t?e?t+` `+e:t:e}function O7(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function _ne(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var k7=_ne(`https://base-ui.com/production-error`,`Base UI`),vne=R.createContext(void 0);function yne(e=!1){let t=R.useContext(vne);if(t===void 0&&!e)throw Error(k7(16));return t}function bne(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:R.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function A7(e,t,{detail:n=0}={}){e.dispatchEvent(new(l7(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function j7(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=R.useRef(null),s=yne(!0),c=a??s!==void 0,{props:l}=bne({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=R.useCallback(()=>{let e=o.current;M7(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return g7(u,[u]),{getButtonProps:R.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return y7({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(E7(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=M7(r),s=!i&&xne(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),A7(r,e));return}if(!l||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),A7(r,e)))},onKeyUp(e){if(!t){if(E7(e),a?.(e),e.target===e.currentTarget&&i&&c&&M7(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),A7(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:h7(e=>{o.current=e,u()})}}function M7(e){return u7(e)&&e.tagName===`BUTTON`}function xne(e){return u7(e)&&e.tagName===`A`&&!!e.href}function N7(e,t,n,r){let i=p7(P7).current;return Cne(i,e,t,n,r)&&F7(i,[e,t,n,r]),i.callback}function Sne(e){let t=p7(P7).current;return wne(t,e)&&F7(t,e),t.callback}function P7(){return{callback:null,cleanup:null,refs:[]}}function Cne(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function wne(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function F7(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Tne=19;function Ene(e){return Tne>=e}function I7(e){if(!R.isValidElement(e))return null;let t=e,n=t.props;return(Ene(19)?n?.ref:t.ref)??null}function L7(){}Object.freeze([]);var R7=Object.freeze({});function Dne(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function One(e,t){return typeof e==`function`?e(t):e}function kne(e,t){return typeof e==`function`?e(t):e}function z7(e,t,n={}){let r=t.render,i=Ane(t,n);return n.enabled===!1?null:Nne(e,r,i,n.state??R7)}function Ane(e,t={}){let{className:n,style:r,render:i}=e,{state:a=R7,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?One(n,a):void 0,d=l?kne(r,a):void 0,f=l?Dne(a,c):R7,p=l&&s?jne(s):void 0,m=l?_7(f,p)??{}:R7;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Sne([m.ref,I7(i),...o]):N7(m.ref,I7(i),o):N7(null,null)),l?(u!==void 0&&(m.className=D7(m.className,u)),d!==void 0&&(m.style=_7(m.style,d)),m):R7}function jne(e){return Array.isArray(e)?pne(e):y7(void 0,e)}var Mne=Symbol.for(`react.lazy`);function Nne(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=y7(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===Mne&&(i=R.Children.toArray(t)[0]),R.cloneElement(i,e)}if(e&&typeof e==`string`)return Pne(e,n);throw Error(k7(8))}function Pne(e,t){return e===`button`?(0,R.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,R.createElement)(`img`,{alt:``,...t,key:t.key}):R.createElement(e,t)}var Fne=R.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=j7({disabled:i,focusableWhenDisabled:a,native:o});return z7(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})}),B7=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,V7=oC,Ine=(e,t)=>n=>{if(t?.variants==null)return V7(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=B7(t)||B7(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return V7(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Lne=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Rne=(e,t)=>({classGroupId:e,validator:t}),H7=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),U7=`-`,W7=[],zne=`arbitrary..`,Bne=e=>{let t=Hne(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Vne(e);let n=e.split(U7);return G7(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Lne(i,t):t:i||W7}return n[e]||W7}}},G7=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=G7(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(U7):e.slice(t).join(U7),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Vne=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?zne+r:void 0})(),Hne=e=>{let{theme:t,classGroups:n}=e;return Une(n,t)},Une=(e,t)=>{let n=H7();for(let r in e){let i=e[r];K7(i,n,r,t)}return n},K7=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Wne(i,t,n,r)}},Wne=(e,t,n,r)=>{if(typeof e==`string`){Gne(e,t,n);return}if(typeof e==`function`){Kne(e,t,n,r);return}qne(e,t,n,r)},Gne=(e,t,n)=>{let r=e===``?t:q7(t,e);r.classGroupId=n},Kne=(e,t,n,r)=>{if(Jne(e)){K7(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Rne(n,e))},qne=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];K7(o,q7(t,a),n,r)}},q7=(e,t)=>{let n=e,r=t.split(U7),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=H7(),n.nextPart.set(t,i)),n=i}return n},Jne=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Yne=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},J7=`!`,Y7=`:`,Xne=[],X7=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Zne=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Y7){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(J7)?(c=s.slice(0,-1),l=!0):s.startsWith(J7)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return X7(t,l,c,u)};if(t){let e=t+Y7,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):X7(Xne,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Qne=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},$ne=e=>({cache:Yne(e.cacheSize),parseClassName:Zne(e),sortModifiers:Qne(e),postfixLookupClassGroupIds:ere(e),...Bne(e)}),ere=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},tre=/\s+/,nre=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(tre),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+J7:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},rre=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Z7(n))&&(i&&(i+=` `),i+=r);return i},Z7=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Z7(e[r]))&&(n&&(n+=` `),n+=t);return n},ire=(e,...t)=>{let n,r,i,a,o=o=>(n=$ne(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=nre(e,n);return i(e,a),a};return a=o,(...e)=>a(rre(...e))},are=[],Q7=e=>{let t=t=>t[e]||are;return t.isThemeGetter=!0,t},$7=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,e9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ore=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cre=/\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$/,lre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ure=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dre=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,t9=e=>ore.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),n9=e=>!!e&&Number.isInteger(Number(e)),r9=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),i9=e=>sre.test(e),a9=()=>!0,fre=e=>cre.test(e)&&!lre.test(e),o9=()=>!1,pre=e=>ure.test(e),mre=e=>dre.test(e),hre=e=>!Q(e)&&!$(e),gre=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),_re=e=>m9(e,v9,o9),Q=e=>$7.test(e),s9=e=>m9(e,y9,fre),c9=e=>m9(e,Tre,Z),vre=e=>m9(e,x9,a9),yre=e=>m9(e,b9,o9),l9=e=>m9(e,g9,o9),bre=e=>m9(e,_9,mre),u9=e=>m9(e,S9,pre),$=e=>e9.test(e),d9=e=>h9(e,y9),xre=e=>h9(e,b9),f9=e=>h9(e,g9),Sre=e=>h9(e,v9),Cre=e=>h9(e,_9),p9=e=>h9(e,S9,!0),wre=e=>h9(e,x9,!0),m9=(e,t,n)=>{let r=$7.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},h9=(e,t,n=!1)=>{let r=e9.exec(e);return r?r[1]?t(r[1]):n:!1},g9=e=>e===`position`||e===`percentage`,_9=e=>e===`image`||e===`url`,v9=e=>e===`length`||e===`size`||e===`bg-size`,y9=e=>e===`length`,Tre=e=>e===`number`,b9=e=>e===`family-name`,x9=e=>e===`number`||e===`weight`,S9=e=>e===`shadow`,Ere=ire(()=>{let e=Q7(`color`),t=Q7(`font`),n=Q7(`text`),r=Q7(`font-weight`),i=Q7(`tracking`),a=Q7(`leading`),o=Q7(`breakpoint`),s=Q7(`container`),c=Q7(`spacing`),l=Q7(`radius`),u=Q7(`shadow`),d=Q7(`inset-shadow`),f=Q7(`text-shadow`),p=Q7(`drop-shadow`),m=Q7(`blur`),h=Q7(`perspective`),g=Q7(`aspect`),_=Q7(`ease`),v=Q7(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],T=()=>[t9,`full`,`auto`,...w()],E=()=>[n9,`none`,`subgrid`,$,Q],D=()=>[`auto`,{span:[`full`,n9,$,Q]},n9,$,Q],O=()=>[n9,`auto`,$,Q],k=()=>[`auto`,`min`,`max`,`fr`,$,Q],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[t9,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[t9,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],ee=()=>[t9,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],te=()=>[...b(),f9,l9,{position:[$,Q]}],ne=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,Sre,_re,{size:[$,Q]}],I=()=>[r9,d9,s9],ie=()=>[``,`none`,`full`,l,$,Q],ae=()=>[``,Z,d9,s9],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],L=()=>[Z,r9,f9,l9],ce=()=>[``,`none`,m,$,Q],le=()=>[`none`,Z,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[Z,$,Q],fe=()=>[t9,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[i9],breakpoint:[i9],color:[a9],container:[i9],"drop-shadow":[i9],ease:[`in`,`out`,`in-out`],font:[hre],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[i9],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[i9],shadow:[i9],spacing:[`px`,Z],text:[i9],"text-shadow":[i9],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,t9,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[gre],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[n9,`auto`,$,Q]}],basis:[{basis:[t9,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,t9,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[n9,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...ee()]}],"min-block-size":[{"min-block":[`auto`,...ee()]}],"max-block-size":[{"max-block":[`none`,...ee()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,d9,s9]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,wre,vre]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,r9,Q]}],"font-family":[{font:[xre,yre,t]}],"font-features":[{"font-features":[Q]}],"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:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,c9]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,s9]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[n9,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],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`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},n9,$,Q],radial:[``,$,Q],conic:[n9,$,Q]},Cre,bre]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:I()}],"gradient-via-pos":[{via:I()}],"gradient-to-pos":[{to:I()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,d9,s9]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,p9,u9]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,p9,u9]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,s9]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,p9,u9]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"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":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":L()}],"mask-image-linear-to-pos":[{"mask-linear-to":L()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":L()}],"mask-image-t-to-pos":[{"mask-t-to":L()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":L()}],"mask-image-r-to-pos":[{"mask-r-to":L()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":L()}],"mask-image-b-to-pos":[{"mask-b-to":L()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":L()}],"mask-image-l-to-pos":[{"mask-l-to":L()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":L()}],"mask-image-x-to-pos":[{"mask-x-to":L()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":L()}],"mask-image-y-to-pos":[{"mask-y-to":L()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":L()}],"mask-image-radial-to-pos":[{"mask-radial-to":L()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":L()}],"mask-image-conic-to-pos":[{"mask-conic-to":L()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:ce()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,p9,u9]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:le()}],"rotate-x":[{"rotate-x":le()}],"rotate-y":[{"rotate-y":le()}],"rotate-z":[{"rotate-z":le()}],scale:[{scale:ue()}],"scale-x":[{"scale-x":ue()}],"scale-y":[{"scale-y":ue()}],"scale-z":[{"scale-z":ue()}],"scale-3d":[`scale-3d`],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":[`translate-none`],zoom:[{zoom:[n9,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"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`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,d9,s9,c9]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],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`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function C9(...e){return Ere(oC(e))}var Dre=Ine(`inline-flex h-10 items-center justify-center gap-2 rounded-xl px-4 text-sm font-semibold transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400 disabled:pointer-events-none disabled:opacity-50`,{variants:{variant:{primary:`bg-violet-500 text-white hover:bg-violet-400`,outline:`border border-white/10 bg-white/[0.03] text-zinc-200 hover:bg-white/[0.07]`,ghost:`text-zinc-400 hover:bg-white/[0.05] hover:text-white`}},defaultVariants:{variant:`primary`}});function w9({className:e,variant:t,...n}){return(0,z.jsx)(Fne,{className:C9(Dre({variant:t}),e),...n})}function T9({className:e,...t}){return(0,z.jsx)(`section`,{className:C9(`rounded-2xl border border-white/[0.08] bg-[#10131a]/85 shadow-[0_24px_80px_-48px_rgba(0,0,0,.9)]`,e),...t})}function Ore({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=R.useRef(e!==void 0),[a,o]=R.useState(t);return[i?e:a,R.useCallback(e=>{i||o(e)},[])]}var E9={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},kre={...E9,position:`fixed`,top:0,left:0},Are={...E9,position:`absolute`},D9=0;function jre(e,t=`mui`){let[n,r]=R.useState(e),i=e||n;return R.useEffect(()=>{n??(D9+=1,r(`${t}-${D9}`))},[n,t]),i}var O9=d7.useId;function Mre(e,t){if(O9!==void 0){let n=O9();return e??(t?`${t}-${n}`:n)}return jre(e,t)}function k9(e){return Mre(e,`base-ui`)}var A9=R.createContext(void 0);function Nre(){let e=R.useContext(A9);if(e===void 0)throw Error(k7(63));return e}var Pre={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Fre={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},j9={valid(e){return e===null?null:e?{"data-valid":``}:{"data-invalid":``}},checked(e){return e?{"data-checked":``}:{"data-unchecked":``}}},Ire={invalid:void 0,name:void 0,validityData:{state:Pre,errors:[],error:``,value:``,initialValue:null},setValidityData:L7,disabled:void 0,setTouched:L7,setDirty:L7,setFilled:L7,setFocused:L7,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Fre,registerFieldControl:L7,validation:{getValidationProps:(e,t=R7)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:L7,getInputControl:()=>null,commit:async()=>{},change:L7}},Lre=R.createContext(Ire);function M9(e=!0){let t=R.useContext(Lre);if(t.setValidityData===L7&&!e)throw Error(k7(28));return t}function Rre(e,t,n,r,i=!0,a){let{registerFieldControl:o}=M9(),s=p7(()=>Symbol());g7(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),g7(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var zre=R.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:L7,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Bre(){return R.useContext(zre)}var Vre=R.createContext({controlId:void 0,registerControlId:L7,labelId:void 0,setLabelId:L7,messageIds:[],setMessageIds:L7,getDescriptionProps:e=>e});function N9(){return R.useContext(Vre)}function Hre(e,t,n,r=!0,i){let[a,o]=R.useState(),s=k9(i?`${i}-label`:void 0),c=e??t??a;return g7(()=>{let i=e||t||!r?void 0:Ure(n.current,s);a!==i&&o(i)}),c}function Ure(e,t){let n=Wre(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Wre(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Gre(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=N9(),o=k9(t),s=n?i:void 0,c=p7(()=>Symbol()),l=R.useRef(!1),u=R.useRef(t!=null),d=h7(()=>{!l.current||a===L7||(l.current=!1,a(c.current,void 0))});return g7(()=>{if(a===L7)return;let e;if(n){let n=r?.current;e=lne(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),R.useEffect(()=>d,[d]),i??o}var Kre=`none`;function qre(e,t,n,r){let i=!1,a=!1,o=r??R7;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Jre(e,t){let n=R.useRef(e),r=h7(t);g7(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}var Yre=R.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i,"aria-labelledby":a,form:o,id:s,inputRef:c,name:l,nativeButton:u=!1,onCheckedChange:d,readOnly:f=!1,required:p=!1,disabled:m=!1,render:h,uncheckedValue:g,value:_,style:v,...y}=e,{clearErrors:b}=Bre(),{state:x,setTouched:S,setDirty:C,validityData:w,setFilled:T,setFocused:E,validationMode:D,disabled:O,name:k,validation:A}=M9(),{labelId:j}=N9(),M=O||m,N=k??l,P=R.useRef(null),ee=N7(P,c,A.inputRef),F=R.useRef(null),te=k9(),ne=Gre({id:s,implicit:!1,controlRef:F}),re=u?void 0:ne,[I,ie]=Ore({controlled:n,default:!!i,name:`Switch`,state:`checked`});Rre(F,te,I,void 0,!M,l),g7(()=>{P.current&&T(P.current.checked)},[T]),Jre(I,()=>{b(N),C(I!==w.initialValue),T(I),A.change(I)});let{getButtonProps:ae,buttonRef:oe}=j7({disabled:M,native:u}),se=Hre(a,j,P,!u,re),L={id:u?ne:te,role:`switch`,"aria-checked":I,"aria-readonly":f||void 0,"aria-required":p||void 0,"aria-labelledby":se,onFocus(){M||E(!0)},onBlur(){let e=P.current;!e||M||(S(!0),E(!1),D===`onBlur`&&A.commit(e.checked))},onClick(e){if(f||M)return;e.preventDefault();let t=P.current;t&&A7(t,e)}},ce={...A.getValidationProps(M),checked:I,disabled:M,form:o,id:re,name:N,required:p,style:N?Are:kre,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,ref:ee,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(f){e.preventDefault();return}let t=e.currentTarget.checked,n=qre(Kre,e.nativeEvent);d?.(t,n),!n.isCanceled&&ie(t)},onClick(e){e.stopPropagation()},onFocus(){F.current?.focus()},..._===void 0?R7:{value:_}},le=R.useMemo(()=>({...x,checked:I,disabled:M,readOnly:f,required:p}),[x,I,M,f,p]),ue=z7(`span`,e,{state:le,ref:[t,F,oe],props:[L,y,ae,e=>A.getValidationProps(M,e)],stateAttributesMapping:j9});return(0,z.jsxs)(A9.Provider,{value:le,children:[ue,!I&&N&&g!==void 0&&(0,z.jsx)(`input`,{type:`hidden`,form:o,name:N,value:g,disabled:M}),(0,z.jsx)(`input`,{...ce,suppressHydrationWarning:!0})]})}),Xre=R.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return z7(`span`,e,{state:Nre(),ref:t,stateAttributesMapping:j9,props:a})});function P9(e){return(0,z.jsx)(Yre,{...e,className:`relative h-6 w-11 rounded-full bg-zinc-700 transition-colors data-[checked]:bg-violet-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-violet-400`,children:(0,z.jsx)(Xre,{className:`block size-5 translate-x-0.5 rounded-full bg-white shadow transition-transform data-[checked]:translate-x-5`})})}function Zre(){return sessionStorage.getItem(`orchestra-token`)??``}function Qre(e){return e?/filename="([^"]+)"/i.exec(e)?.[1]??null:null}async function $re(e,t,n){let r=new URLSearchParams({scope:e,format:t});r.set(`project`,n);let i=await fetch(`/api/export?${r.toString()}`,{headers:{"X-Orchestra-Token":Zre()}});if(!i.ok){let e=await i.json().catch(()=>({error:i.statusText}));throw Error(e.error??`HTTP ${i.status}`)}let a=await i.blob(),o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=Qre(i.headers.get(`Content-Disposition`))??`orchestra-${e}.${t}`,document.body.appendChild(s),s.click(),s.remove(),URL.revokeObjectURL(o)}var F9=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},eie=(e=>e?F9(e):F9),tie=e=>e;function nie(e,t=tie){let n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}var I9=e=>{let t=eie(e),n=e=>nie(t,e);return Object.assign(n,t),n},rie=(e=>e?I9(e):I9),iie=localStorage.getItem(`orchestra-theme`)===`light`?`light`:`dark`,L9=rie(e=>({theme:iie,compact:!1,selectedProject:localStorage.getItem(`orchestra-project`)??`global`,setTheme:t=>{localStorage.setItem(`orchestra-theme`,t),e({theme:t})},setSelectedProject:t=>{localStorage.setItem(`orchestra-project`,t),e({selectedProject:t})},toggleCompact:()=>e(e=>({compact:!e.compact}))})),aie=[];function R9(){let e=L9(e=>e.selectedProject);return tt({queryKey:[`snapshot`,e],queryFn:()=>s7.snapshot(e===`global`?void 0:e),refetchInterval:2500,enabled:e!==`global`})}function z9(){let e=L9(e=>e.selectedProject);return tt({queryKey:[`dashboard`,e],queryFn:async()=>e===`global`?s7.global():s7.snapshot(e),refetchInterval:2500})}function B9(e){return Intl.NumberFormat(void 0,{notation:e>=1e4?`compact`:`standard`,maximumFractionDigits:1}).format(e)}var oie=new Intl.NumberFormat(void 0,{minimumFractionDigits:1,maximumFractionDigits:1});function V9(e){return e>0?`$${e.toFixed(e<1?4:2)}`:`—`}function sie(e){switch(e){case`free`:return`free · $0`;case`subscription`:return`subscription · $0`;case`unknown`:return`unknown price`;default:return`—`}}function H9(e){return e.tokens.input+e.tokens.output+e.tokens.reasoning}function cie(){let{t:e}=rs(),t=L9(e=>e.theme),n=L9(e=>e.setTheme),r=L9(e=>e.selectedProject),i=L9(e=>e.setSelectedProject),a=tt({queryKey:[`projects`],queryFn:s7.projects,refetchInterval:5e3}),o=z9();(0,R.useEffect)(()=>{document.documentElement.classList.toggle(`light`,t===`light`)},[t]),(0,R.useEffect)(()=>{a.data&&r!==`global`&&!a.data.some(e=>e.id===r)&&i(`global`)},[a.data,r,i]);let s=[{to:`/`,label:e(`overview`),icon:ds},{to:`/activity`,label:e(`activity`),icon:ss},{to:`/models`,label:e(`models`),icon:ls},{to:`/agents`,label:e(`agents`),icon:cs},{to:`/settings`,label:e(`settings`),icon:_s}];return(0,z.jsxs)(`div`,{className:`app-shell`,children:[(0,z.jsxs)(`aside`,{className:`sidebar`,children:[(0,z.jsxs)(`div`,{className:`brand`,children:[(0,z.jsxs)(`div`,{className:`brand-mark`,children:[(0,z.jsx)(`span`,{}),(0,z.jsx)(`span`,{}),(0,z.jsx)(`span`,{})]}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`strong`,{children:`ORCHESTRA`}),(0,z.jsx)(`small`,{children:`CONTROL PLANE`})]})]}),(0,z.jsx)(`nav`,{children:s.map(e=>(0,z.jsxs)(sa,{to:e.to,activeOptions:{exact:e.to===`/`},className:`nav-link`,activeProps:{className:`nav-link active`},children:[(0,z.jsx)(os,{icon:e.icon,size:19,strokeWidth:1.8}),(0,z.jsx)(`span`,{children:e.label})]},e.to))}),(0,z.jsxs)(`div`,{className:`sidebar-foot`,children:[(0,z.jsxs)(`div`,{className:`local-chip`,children:[(0,z.jsx)(`span`,{className:`status-dot`}),e(`live`)]}),(0,z.jsx)(`div`,{className:`project-name`,children:o.data?.project??`Orchestra`})]})]}),(0,z.jsxs)(`main`,{className:`main-panel`,children:[(0,z.jsxs)(`header`,{className:`topbar`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsxs)(`select`,{className:`project-select`,value:r,onChange:e=>i(e.target.value),"aria-label":`Выбор проекта`,children:[(0,z.jsx)(`option`,{value:`global`,children:`Все проекты`}),a.data?.map(e=>(0,z.jsx)(`option`,{value:e.id,children:e.name},e.id))]}),(0,z.jsx)(`span`,{className:`eyebrow`,children:o.data?.directory??`Loading telemetry…`})]}),(0,z.jsxs)(`div`,{className:`top-actions`,children:[(0,z.jsx)(uie,{}),(0,z.jsxs)(w9,{variant:`ghost`,"aria-label":`Language`,onClick:()=>{let e=is.language===`ru`?`en`:`ru`;localStorage.setItem(`orchestra-language`,e),is.changeLanguage(e)},children:[(0,z.jsx)(os,{icon:ms,size:18}),is.language.toUpperCase()]}),(0,z.jsx)(w9,{variant:`ghost`,"aria-label":`Theme`,onClick:()=>n(t===`dark`?`light`:`dark`),children:(0,z.jsx)(os,{icon:t===`dark`?vs:hs,size:18})})]})]}),(0,z.jsx)(`div`,{className:`content`,children:(0,z.jsx)(Sa,{})})]})]})}function U9({kicker:e,title:t,text:n}){return(0,z.jsxs)(`div`,{className:`page-intro`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e}),(0,z.jsx)(`h1`,{children:t}),(0,z.jsx)(`p`,{children:n})]})}function W9({label:e,value:t,note:n,icon:r}){return(0,z.jsx)(iC.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},children:(0,z.jsxs)(T9,{className:`metric-card`,children:[(0,z.jsx)(`div`,{className:`metric-icon`,children:(0,z.jsx)(os,{icon:r,size:20,strokeWidth:1.8})}),(0,z.jsx)(`span`,{children:e}),(0,z.jsx)(`strong`,{children:t}),(0,z.jsx)(`small`,{children:n})]})})}function G9(){let{t:e}=rs();return(0,z.jsxs)(`div`,{className:`empty-state`,children:[(0,z.jsx)(os,{icon:ss,size:24}),(0,z.jsx)(`span`,{children:e(`noData`)})]})}var lie=[{scope:`activity`,label:`Журнал вызовов`},{scope:`models`,label:`Модели`},{scope:`agents`,label:`Агенты`},{scope:`daily`,label:`По дням`},{scope:`summary`,label:`Сводка`}];function uie(){let{t:e}=rs(),t=L9(e=>e.selectedProject),[n,r]=(0,R.useState)(!1),[i,a]=(0,R.useState)(null),[o,s]=(0,R.useState)(null),c=async(n,i)=>{a(`${n}:${i}`),s(null);try{await $re(n,i,t),r(!1)}catch(t){s(t instanceof Error?t.message:e(`exportFailed`))}finally{a(null)}};return t===`global`?null:(0,z.jsxs)(`div`,{className:`export-menu`,children:[(0,z.jsxs)(w9,{variant:`outline`,onClick:()=>r(e=>!e),children:[(0,z.jsx)(os,{icon:ps,size:17}),e(`export`)]}),n&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`button`,{type:`button`,className:`export-scrim`,onClick:()=>r(!1),"aria-label":e(`close`)}),(0,z.jsxs)(`div`,{className:`export-panel`,children:[(0,z.jsxs)(`div`,{className:`export-head`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`export`)}),(0,z.jsx)(`button`,{type:`button`,className:`export-close`,onClick:()=>r(!1),children:`×`})]}),(0,z.jsx)(`div`,{className:`export-list`,children:lie.map(e=>(0,z.jsxs)(`div`,{className:`export-item`,children:[(0,z.jsx)(`span`,{className:`export-item-label`,children:e.label}),(0,z.jsxs)(`div`,{className:`export-item-actions`,children:[(0,z.jsx)(w9,{variant:`ghost`,disabled:i!==null,onClick:()=>c(e.scope,`csv`),children:i===`${e.scope}:csv`?`…`:`CSV`}),(0,z.jsx)(w9,{variant:`ghost`,disabled:i!==null,onClick:()=>c(e.scope,`json`),children:i===`${e.scope}:json`?`…`:`JSON`})]})]},e.scope))}),o!==null&&(0,z.jsx)(`div`,{className:`export-error`,children:o})]})]})]})}function die(){let{t:e}=rs(),t=z9(),n=t.data;if(t.isLoading)return(0,z.jsx)(Z9,{});if(!n)return(0,z.jsx)(Q9,{error:t.error});let r=n.summary.tokens.input+n.summary.tokens.output+n.summary.tokens.reasoning,i=n.projection,a=n.anomalies[n.anomalies.length-1];return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`global`in n?`${n.summary.projects} PROJECTS`:`${n.config.budget.toUpperCase()} MODE`,title:`Пульс оркестра`,text:`global`in n?`Общая локальная статистика по всем зарегистрированным проектам.`:`Маршрутизация, токены и стоимость — без отправки телеметрии наружу.`}),(0,z.jsxs)(`div`,{className:`metrics-grid`,children:[(0,z.jsx)(W9,{label:e(`sessions`),value:B9(n.summary.sessions),note:`локальных запусков`,icon:fs}),(0,z.jsx)(W9,{label:e(`calls`),value:B9(n.summary.calls),note:`ответов агентов`,icon:ss}),(0,z.jsx)(W9,{label:e(`tokens`),value:B9(r),note:`${B9(n.summary.tokens.cache.read)} из кэша`,icon:cs}),(0,z.jsx)(W9,{label:e(`cost`),value:V9(n.summary.cost),note:`по данным провайдеров`,icon:us})]}),!(`global`in n)&&(0,z.jsx)(gie,{projectId:n.projectId}),(0,z.jsxs)(T9,{className:`insight-banner`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`monthProjection`)}),(0,z.jsx)(`strong`,{children:V9(i.projected)}),(0,z.jsxs)(`small`,{children:[V9(i.monthToDate),` `,e(`monthToDate`),i.isAheadOfPace?` · ${e(`aheadOfPace`)}`:``]})]}),a&&(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`anomaly`)}),(0,z.jsxs)(`strong`,{children:[new Date(`${a.date}T00:00:00`).toLocaleDateString(),` · `,V9(a.cost)]}),(0,z.jsxs)(`small`,{children:[e(`anomalyNote`),` `,V9(a.threshold)]})]})]}),(0,z.jsxs)(`div`,{className:`dashboard-grid`,children:[(0,z.jsxs)(T9,{className:`chart-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`usage`)}),(0,z.jsx)(`h2`,{children:`Токены и расходы`})]}),(0,z.jsx)(`span`,{className:`updated`,children:new Date(n.updatedAt).toLocaleTimeString()})]}),n.daily.length?(0,z.jsx)(`div`,{className:`chart-wrap`,children:(0,z.jsx)(aj,{width:`100%`,height:`100%`,children:(0,z.jsxs)($0,{data:n.daily,children:[(0,z.jsx)(`defs`,{children:(0,z.jsxs)(`linearGradient`,{id:`tokens`,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,z.jsx)(`stop`,{offset:`0%`,stopColor:`#8b5cf6`,stopOpacity:.5}),(0,z.jsx)(`stop`,{offset:`100%`,stopColor:`#8b5cf6`,stopOpacity:0})]})}),(0,z.jsx)(DQ,{stroke:`rgba(255,255,255,.05)`,vertical:!1}),(0,z.jsx)(q$,{dataKey:`date`,tickFormatter:e=>String(e).slice(5),stroke:`#71717a`,tickLine:!1,axisLine:!1}),(0,z.jsx)(c1,{stroke:`#71717a`,tickLine:!1,axisLine:!1,width:48,tickFormatter:B9}),(0,z.jsx)(eq,{contentStyle:{background:`#11141b`,border:`1px solid rgba(255,255,255,.1)`,borderRadius:12}}),(0,z.jsx)(E$,{type:`monotone`,dataKey:`input`,stackId:`1`,stroke:`#8b5cf6`,fill:`url(#tokens)`}),(0,z.jsx)(E$,{type:`monotone`,dataKey:`output`,stackId:`1`,stroke:`#22d3ee`,fill:`#22d3ee`,fillOpacity:.12})]})})}):(0,z.jsx)(G9,{})]}),`global`in n?(0,z.jsx)(fie,{data:n}):(0,z.jsxs)(T9,{className:`mcp-card`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`MEMORY LAYER`}),(0,z.jsx)(`h2`,{children:`MCP-сервисы`}),(0,z.jsx)(`div`,{className:`mcp-list`,children:Object.entries({context7:`Context7`,codebaseMemory:`Codebase Memory`,memoryGraph:`MemoryGraph`,playwright:`Playwright`}).map(([e,t])=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:C9(`status-dot`,!n.mcp[e]&&`off`)}),(0,z.jsx)(`span`,{children:t}),(0,z.jsx)(`small`,{children:n.mcp[e]?`подключён`:`не настроен`})]},e))})]})]}),!(`global`in n)&&(0,z.jsxs)(T9,{className:`list-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:e(`recent`)}),(0,z.jsx)(`h2`,{children:`Последние вызовы`})]}),(0,z.jsx)(sa,{to:`/activity`,className:`text-link`,children:`Открыть журнал →`})]}),(0,z.jsx)(pie,{rows:n.activity.slice(0,6)})]})]})}function fie({data:e}){let t=L9(e=>e.setSelectedProject);return(0,z.jsxs)(T9,{className:`mcp-card`,children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`PROJECTS`}),(0,z.jsx)(`h2`,{children:`Проекты`}),(0,z.jsx)(`div`,{className:`project-list`,children:e.projects.map(e=>(0,z.jsxs)(`button`,{type:`button`,onClick:()=>t(e.id),children:[(0,z.jsxs)(`span`,{children:[(0,z.jsx)(`strong`,{children:e.name}),(0,z.jsx)(`small`,{children:e.directory})]}),(0,z.jsxs)(`span`,{children:[B9(e.summary.calls),` calls`]}),(0,z.jsx)(`span`,{children:V9(e.summary.cost)})]},e.id))})]})}function pie({rows:e}){return e.length?(0,z.jsx)(`div`,{className:`recent-list`,children:e.map(e=>(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`agent-badge`,children:e.agent?.replace(`orch-`,``)??`unknown`}),(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`strong`,{children:e.provider&&e.model?`${e.provider}/${e.model}`:`Модель не определена`}),(0,z.jsx)(`small`,{children:e.completedAt?new Date(e.completedAt).toLocaleString():`в процессе`})]}),(0,z.jsxs)(`span`,{children:[B9(e.tokens.input+e.tokens.output+e.tokens.reasoning),` tok`]}),(0,z.jsx)(`span`,{children:V9(e.cost)})]},e.id))}):(0,z.jsx)(G9,{})}function mie(e){let[t,n]=(0,R.useState)(null),[r,i]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{let t=!0,r=cne(e,e=>{t&&(n(e),i(!0))},()=>{t&&i(!1)});return()=>{t=!1,r.close()}},[e]),{snapshot:t,connected:r}}function K9(e){return e?.replace(`orch-`,``)??`unknown`}function hie(e){return e.reduce((e,t)=>e+t.cost,0)}function gie({projectId:e}){let{t}=rs(),{snapshot:n,connected:r}=mie(e),i=n?.active??[],a=hie(i),o=i.length>0,s=(n?.recent.length??0)>0;return(0,z.jsxs)(T9,{className:`live-card`,children:[(0,z.jsxs)(`div`,{className:`card-heading`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`span`,{className:`eyebrow`,children:`LIVE · ORCHESTRATION`}),(0,z.jsx)(`h2`,{children:`Что происходит сейчас`})]}),(0,z.jsxs)(`span`,{className:C9(`live-state`,o&&`active`,!r&&`off`),children:[(0,z.jsx)(`span`,{className:`status-dot`}),o?t(`live`)+` · `+i.length:r?`ожидание`:`нет соединения`]})]}),i.length?(0,z.jsxs)(`div`,{className:`live-list`,children:[i.map(e=>(0,z.jsx)(_ie,{row:e},e.key)),(0,z.jsxs)(`div`,{className:`live-total`,children:[(0,z.jsx)(`span`,{children:`Идёт в эту секунду`}),(0,z.jsxs)(`strong`,{children:[i.length,` `,i.length===1?`агент`:`агента`]}),(0,z.jsx)(`span`,{children:`оценочная стоимость`}),(0,z.jsx)(`strong`,{children:V9(a)})]})]}):r?s?(0,z.jsxs)(`div`,{className:`empty-state`,children:[(0,z.jsx)(os,{icon:ss,size:24}),(0,z.jsx)(`span`,{children:t(`liveIdle`)})]}):(0,z.jsx)(G9,{}):(0,z.jsxs)(`div`,{className:`empty-state`,children:[(0,z.jsx)(os,{icon:ss,size:24}),(0,z.jsx)(`span`,{children:t(`liveDisconnected`)})]})]})}function _ie({row:e}){let[t,n]=(0,R.useState)(Date.now());(0,R.useEffect)(()=>{let e=window.setInterval(()=>n(Date.now()),1e3);return()=>window.clearInterval(e)},[]);let r=Math.max(0,t-e.startedAt)/1e3,i=Math.floor(r),a=r>0?e.tokens.output/r:0;return(0,z.jsxs)(`div`,{className:`live-row`,children:[(0,z.jsx)(`span`,{className:`agent-badge`,children:K9(e.agent)}),(0,z.jsxs)(`div`,{className:`live-body`,children:[(0,z.jsxs)(`div`,{className:`live-meta`,children:[(0,z.jsx)(`strong`,{children:K9(e.agent)}),(0,z.jsx)(`span`,{children:e.provider&&e.model?e.provider+`/`+e.model:`модель…`})]}),(0,z.jsx)(`p`,{className:`live-snippet`,children:e.text||`начинает отвечать…`}),(0,z.jsxs)(`div`,{className:`live-stats`,children:[(0,z.jsx)(`span`,{children:i+`s`}),(0,z.jsx)(`span`,{children:B9(e.tokens.output)+` output (`+B9(e.tokens.reasoning)+` reasoning)`}),(0,z.jsx)(`span`,{children:`≈`+oie.format(a)+` tok/s`}),e.flags?.length?(0,z.jsx)(`span`,{className:`live-warn`,title:e.flags.join(`, `),children:`⚑`}):null]})]}),(0,z.jsx)(`span`,{className:`live-cost`,children:V9(e.cost)})]})}var vie=of({columnSizingFeature:kf}),q9=af(),yie=q9.columns([q9.accessor(`completedAt`,{header:`Время`,cell:({getValue:e})=>e()?new Date(e()).toLocaleString():`—`,size:180}),q9.accessor(`agent`,{header:`Агент`,cell:({getValue:e})=>e()?.replace(`orch-`,``)??`unknown`,size:130}),q9.accessor(e=>e.provider&&e.model?`${e.provider}/${e.model}`:`unknown`,{id:`model`,header:`Модель`,size:300}),q9.accessor(e=>e.tokens.input+e.tokens.output+e.tokens.reasoning,{id:`tokens`,header:`Токены`,cell:({getValue:e})=>B9(e()),size:120}),q9.accessor(`cost`,{header:`Цена`,cell:({getValue:e})=>V9(e()),size:100}),q9.accessor(`pricingStatus`,{header:`Цена/источник`,cell:({row:e})=>sie(e.original.pricingStatus),size:120}),q9.accessor(`finish`,{header:`Статус`,cell:({getValue:e})=>e()??`—`,size:110})]);function bie(){let e=L9(e=>e.selectedProject),t=R9();return e===`global`?(0,z.jsx)(X9,{title:`Журнал работы`}):t.data?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`LOCAL EVENT STREAM`,title:`Журнал работы`,text:`Метаданные вызовов без содержимого промптов и ответов.`}),(0,z.jsx)(T9,{className:`table-card`,children:(0,z.jsx)(J9,{data:t.data.activity})})]}):t.isLoading?(0,z.jsx)(Z9,{}):(0,z.jsx)(Q9,{error:t.error})}function J9({data:e}){let t=jf({features:vie,columns:yie,data:e}),n=t.getRowModel().rows,r=(0,R.useRef)(null),i=np({count:n.length,getScrollElement:()=>r.current,estimateSize:()=>46,overscan:8});return n.length?(0,z.jsxs)(`div`,{className:`virtual-table`,children:[(0,z.jsx)(`div`,{className:`table-head`,children:t.getHeaderGroups()[0]?.headers.map(e=>(0,z.jsx)(`div`,{style:{width:e.getSize()},children:e.isPlaceholder?null:(0,z.jsx)(t.FlexRender,{header:e})},e.id))}),(0,z.jsx)(`div`,{ref:r,className:`table-scroll`,children:(0,z.jsx)(`div`,{style:{height:i.getTotalSize(),position:`relative`,minWidth:940},children:i.getVirtualItems().map(e=>{let r=n[e.index];return r?(0,z.jsx)(`div`,{className:`table-row`,"data-index":e.index,ref:i.measureElement,style:{transform:`translateY(${e.start}px)`},children:r.getAllCells().map(e=>(0,z.jsx)(`div`,{style:{width:e.column.getSize()},children:(0,z.jsx)(t.FlexRender,{cell:e})},e.id))},r.id):null})})})]}):(0,z.jsx)(G9,{})}function Y9({kind:e}){let t=z9().data?.[e]??aie,n=e===`models`?`Экономика моделей`:`Нагрузка агентов`,r=e===`models`?`Фактические токены и стоимость по каждой использованной модели.`:`Кто выполняет работу, сколько контекста потребляет и где происходит эскалация.`;return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:e.toUpperCase(),title:n,text:r}),(0,z.jsx)(T9,{className:`ranking-card`,children:t.length?(0,z.jsx)(`div`,{className:`ranking-list`,children:t.map((e,n)=>(0,z.jsxs)(iC.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:n*.025},children:[(0,z.jsx)(`span`,{className:`rank`,children:String(n+1).padStart(2,`0`)}),(0,z.jsxs)(`div`,{className:`rank-main`,children:[(0,z.jsx)(`strong`,{children:e.id.replace(`orch-`,``)}),(0,z.jsx)(`div`,{className:`usage-bar`,children:(0,z.jsx)(`span`,{style:{width:`${Math.max(3,H9(e)/Math.max(...t.map(H9))*100)}%`}})})]}),(0,z.jsxs)(`span`,{children:[e.calls,` calls`]}),(0,z.jsxs)(`span`,{children:[B9(H9(e)),` tok`]}),(0,z.jsx)(`span`,{children:V9(e.cost)})]},e.id))}):(0,z.jsx)(G9,{})})]})}var xie=[{id:`orch-lead`,name:`Lead`,role:`Планирование и координация`,group:`Основные`},{id:`orch-judge`,name:`Judge`,role:`Арбитраж сложных решений`,group:`Основные`},{id:`orch-repo`,name:`Repository`,role:`Анализ и изменение кода`,group:`Разработка`},{id:`orch-tests`,name:`Tests`,role:`Тесты и верификация`,group:`Разработка`},{id:`orch-critic`,name:`Critic`,role:`Ревью и поиск проблем`,group:`Разработка`},{id:`orch-docs`,name:`Docs`,role:`Документация и API`,group:`Исследование`},{id:`orch-research`,name:`Research`,role:`Внешнее исследование`,group:`Исследование`},{id:`orch-security`,name:`Security`,role:`Безопасность`,group:`Исследование`},{id:`orch-visual-reference`,name:`Visual Reference`,role:`Анализ визуальных референсов`,group:`Визуальные`},{id:`orch-visual-generate`,name:`Visual Generate`,role:`Генерация изображений`,group:`Визуальные`},{id:`orch-visual-review`,name:`Visual Review`,role:`Визуальная проверка`,group:`Визуальные`}],Sie=j5({budget:z5([`eco`,`balanced`,`quality`,`ebobo`]),models:j5({strategy:z5([`auto`,`manual`]),agents:L5(t5(),t5())}),telemetry:j5({enabled:C5(),storeTexts:C5()})});function Cie(){let{t:e}=rs(),t=R9(),n=L9(e=>e.selectedProject),r=Be(),i=il({resolver:ml(Sie),defaultValues:t.data?.config});(0,R.useEffect)(()=>{t.data&&i.reset(t.data.config)},[t.data,i]);let a=nt({mutationFn:e=>s7.saveConfig(e,n),onSuccess:async()=>{await r.invalidateQueries({queryKey:[`snapshot`]})}});return n===`global`?(0,z.jsx)(X9,{title:`Настройка Orchestra`}):t.data?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`CONFIGURATION`,title:`Настройка Orchestra`,text:`Изменения сохраняются локально с резервной копией текущего JSONC.`}),(0,z.jsxs)(`form`,{onSubmit:i.handleSubmit(e=>a.mutate(e)),className:`settings-stack`,children:[(0,z.jsxs)(T9,{className:`settings-card`,children:[(0,z.jsx)(`div`,{className:`setting-title`,children:(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Режим бюджета`}),(0,z.jsx)(`p`,{children:`Один активный runtime-профиль для всей команды.`})]})}),(0,z.jsx)(nc,{name:`budget`,control:i.control,render:({field:e})=>(0,z.jsx)(`div`,{className:`budget-grid`,children:[`eco`,`balanced`,`quality`,`ebobo`].map(t=>(0,z.jsxs)(`button`,{type:`button`,className:C9(`budget-option`,e.value===t&&`selected`),onClick:()=>e.onChange(t),children:[(0,z.jsx)(`strong`,{children:t}),(0,z.jsx)(`span`,{children:{eco:`Бесплатные workers`,balanced:`Разумный баланс`,quality:`Качество прежде цены`,ebobo:`Максимальный роинг`}[t]})]},t))})})]}),(0,z.jsxs)(T9,{className:`settings-card model-settings`,children:[(0,z.jsxs)(`div`,{className:`setting-title`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Назначение моделей`}),(0,z.jsx)(`p`,{children:`Выберите подключённую модель отдельно для каждого участника команды.`})]}),(0,z.jsxs)(`select`,{...i.register(`models.strategy`),children:[(0,z.jsx)(`option`,{value:`auto`,children:`Автоподбор`}),(0,z.jsx)(`option`,{value:`manual`,children:`Ручной режим`})]})]}),t.data.availableModels.length===0&&(0,z.jsxs)(`div`,{className:`model-empty`,children:[`OpenCode не вернул подключённые модели. Проверьте авторизацию провайдера и команду `,(0,z.jsx)(`code`,{children:`opencode models`}),`.`]}),(0,z.jsx)(`div`,{className:`agent-model-list`,children:xie.map(e=>(0,z.jsxs)(`div`,{className:`agent-model-row`,children:[(0,z.jsxs)(`div`,{className:`agent-identity`,children:[(0,z.jsx)(`strong`,{children:e.name}),(0,z.jsx)(`span`,{children:e.role}),(0,z.jsx)(`small`,{children:e.id})]}),(0,z.jsxs)(`select`,{"aria-label":`Модель для ${e.name}`,...i.register(`models.agents.${e.id}`),children:[(0,z.jsx)(`option`,{value:``,children:`Автоматически`}),t.data.availableModels.map(e=>(0,z.jsx)(`option`,{value:e,children:e},e))]})]},e.id))})]}),(0,z.jsxs)(T9,{className:`settings-card inline-setting`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:`Локальная телеметрия`}),(0,z.jsx)(`p`,{children:`Хранить только usage-метаданные. Тексты запросов и ответов не записываются.`})]}),(0,z.jsx)(nc,{name:`telemetry.enabled`,control:i.control,render:({field:e})=>(0,z.jsx)(P9,{checked:e.value,onCheckedChange:e.onChange})})]}),(0,z.jsxs)(T9,{className:`settings-card inline-setting`,children:[(0,z.jsxs)(`div`,{children:[(0,z.jsx)(`h2`,{children:e(`storeTexts`)}),(0,z.jsx)(`p`,{children:`Опционально, для отладки. По умолчанию выключено — журнал остаётся без промптов и ответов.`})]}),(0,z.jsx)(nc,{name:`telemetry.storeTexts`,control:i.control,render:({field:e})=>(0,z.jsx)(P9,{checked:e.value,onCheckedChange:e.onChange})})]}),(0,z.jsxs)(`div`,{className:`form-actions`,children:[(0,z.jsx)(`span`,{children:a.isError?a.error.message:a.isSuccess?`Настройки сохранены`:t.data.configPath}),(0,z.jsx)(w9,{type:`submit`,disabled:a.isPending,children:a.isPending?`Сохраняю…`:`Сохранить настройки`})]})]})]}):t.isLoading?(0,z.jsx)(Z9,{}):(0,z.jsx)(Q9,{error:t.error})}function X9({title:e}){return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(U9,{kicker:`PROJECT REQUIRED`,title:e,text:`Выберите конкретный проект в верхней панели.`}),(0,z.jsx)(T9,{children:(0,z.jsx)(G9,{})})]})}function Z9(){return(0,z.jsxs)(`div`,{className:`loading`,children:[(0,z.jsx)(os,{icon:gs,size:24,className:`spin`}),`Читаю локальную телеметрию…`]})}function Q9({error:e}){return(0,z.jsxs)(`div`,{className:`error-state`,children:[`Не удалось загрузить dashboard: `,e instanceof Error?e.message:`unknown error`]})}var $9=da({component:cie}),wie=la({getParentRoute:()=>$9,path:`/`,component:die}),Tie=la({getParentRoute:()=>$9,path:`/activity`,component:bie}),Eie=la({getParentRoute:()=>$9,path:`/models`,component:()=>(0,z.jsx)(Y9,{kind:`models`})}),Die=la({getParentRoute:()=>$9,path:`/agents`,component:()=>(0,z.jsx)(Y9,{kind:`agents`})}),Oie=la({getParentRoute:()=>$9,path:`/settings`,component:Cie}),kie=Oa({routeTree:$9.addChildren([wie,Tie,Eie,Die,Oie])}),Aie=new Pe({defaultOptions:{queries:{retry:1,staleTime:1e3}}});(0,La.createRoot)(document.getElementById(`root`)).render((0,z.jsx)(R.StrictMode,{children:(0,z.jsx)(Ve,{client:Aie,children:(0,z.jsx)(ja,{router:kie})})}));
|