durable-actors-observer 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/DatatContext.d.ts +2 -0
- package/dist/client/cacheKeys.d.ts +1 -3
- package/dist/client/events.d.ts +22 -0
- package/dist/components/actorType/timingCard.d.ts +1 -2
- package/dist/components/ui/residencyBar.d.ts +3 -4
- package/dist/components/ui/statCard.d.ts +1 -2
- package/dist/components/ui/trendCard.d.ts +2 -11
- package/dist/format.d.ts +1 -2
- package/dist/hooks/useActorRequests.d.ts +2 -3
- package/dist/hooks/useActors.d.ts +3 -3
- package/dist/hooks/useLiveView.d.ts +11 -0
- package/dist/hooks/useNow.d.ts +2 -0
- package/dist/hooks/useRequests.d.ts +3 -3
- package/dist/hooks/useWebSockets.d.ts +3 -3
- package/dist/index.js +1327 -1153
- package/dist/lib/requestStats.d.ts +0 -3
- package/dist/lib/sockets.d.ts +1 -1
- package/dist/lib/timeRange.d.ts +3 -2
- package/dist/lib/views/actors.d.ts +6 -0
- package/dist/lib/views/logs.d.ts +15 -0
- package/dist/lib/views/requests.d.ts +8 -0
- package/dist/lib/views/residency.d.ts +4 -0
- package/dist/lib/views/sockets.d.ts +5 -0
- package/dist/standalone/app.css +1 -1
- package/dist/standalone/app.js +15 -15
- package/dist/theme.css +1 -1
- package/dist/types/Actors.d.ts +13 -6
- package/dist/types/Events.d.ts +71 -0
- package/dist/types/Overview.d.ts +0 -8
- package/dist/types/Requests.d.ts +1 -3
- package/dist/types/Sockets.d.ts +10 -5
- package/package.json +1 -1
- package/dist/client/streams/actorStream.d.ts +0 -2
- package/dist/client/streams/logStream.d.ts +0 -2
- package/dist/client/streams/requestStream.d.ts +0 -2
- package/dist/components/overview/trendCard.d.ts +0 -22
- package/dist/components/ui/delta.d.ts +0 -5
- package/dist/hooks/useWindowedSWR.d.ts +0 -5
package/dist/standalone/app.js
CHANGED
|
@@ -5,15 +5,15 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
5
5
|
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
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{Ae=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ke(n):``}function Me(e,t){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke(`Lazy`);case 13:return e.child!==t&&t!==null?ke(`Suspense Fallback`):ke(`Suspense`);case 19:return ke(`SuspenseList`);case 0:case 15:return je(e.type,!1);case 11:return je(e.type.render,!1);case 1:return je(e.type,!0);case 31:return ke(`Activity`);case 30:return ke(`ViewTransition`);default:return``}}function Ne(e){try{var t=``,n=null;do t+=Me(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var Pe=Object.prototype.hasOwnProperty,Fe=t.unstable_scheduleCallback,Ie=t.unstable_cancelCallback,Le=t.unstable_shouldYield,Re=t.unstable_requestPaint,ze=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,He=t.unstable_UserBlockingPriority,Ue=t.unstable_NormalPriority,We=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,Ke=t.log,qe=t.unstable_setDisableYieldValue,Je=null,Ye=null;function Xe(e){if(typeof Ke==`function`&&qe(e),Ye&&typeof Ye.setStrictMode==`function`)try{Ye.setStrictMode(Je,e)}catch{}}var Ze=Math.clz32?Math.clz32:et,Qe=Math.log,$e=Math.LN2;function et(e){return e>>>=0,e===0?32:31-(Qe(e)/$e|0)|0}var tt=256,nt=262144,rt=4194304;function it(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&-e;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 at(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=it(n))):i=it(o):i=it(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=it(n))):i=it(o)):i=it(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 ot(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function st(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ze(n),i=1<<r;t|=e[r],n&=~i}return t}function ct(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 lt(){var e=rt;return rt<<=1,!(rt&62914560)&&(rt=4194304),e}function ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ft(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-Ze(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&&pt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function pt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ht(e,t){var n=t&-t;return n=n&42?1:gt(n),(n&(e.suspendedLanes|t))===0?n:0}function gt(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 _t(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function vt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function yt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var bt=Math.random().toString(36).slice(2),xt=`__reactFiber$`+bt,St=`__reactProps$`+bt,Ct=`__reactContainer$`+bt,wt=`__reactEvents$`+bt,Tt=`__reactListeners$`+bt,Et=`__reactHandles$`+bt,Dt=`__reactResources$`+bt,Ot=`__reactMarker$`+bt,kt=`__reactLoad$`+bt;function At(e){delete e[xt],delete e[St],delete e[Tt],delete e[Et]}function jt(e){var t;if(t=e[xt])return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[xt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function Mt(e){if(e=e[xt]||e[Ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Pt(e){var t=e[Dt];return t||=e[Dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ft(e){e[Ot]=!0}function It(e){e[kt]=void 0}var Lt=new Set,Rt={};function zt(e,t){Bt(e,t),Bt(e+`Capture`,t)}function Bt(e,t){for(Rt[e]=t,e=0;e<t.length;e++)Lt.add(t[e])}var Vt=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]*$`),Ht={},Ut={};function Wt(e){return Pe.call(Ut,e)?!0:Pe.call(Ht,e)?!1:Vt.test(e)?Ut[e]=!0:(Ht[e]=!0,!1)}var Gt=!1;function Kt(){var e=Gt;return Gt=!1,e}function qt(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 Jt(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 Yt(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 Xt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Qt(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 $t(e){if(!e._valueTracker){var t=Zt(e)?`checked`:`value`;e._valueTracker=Qt(e,t,``+e[t])}}function en(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Zt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var tn=/[\n"\\]/g;function nn(e){return e.replace(tn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function rn(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=``+Xt(t)):e.value!==``+Xt(t)&&(e.value=``+Xt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):on(e,Xt(n)):o===`number`&&e.value==t?on(e,Xt(e.value)):on(e,Xt(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=``+Xt(s):e.removeAttribute(`name`)}function an(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)){$t(e);return}n=n==null?``:``+Xt(n),t=t==null?n:``+Xt(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),$t(e)}function on(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function sn(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=``+Xt(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 cn(e,t,n){if(t!=null&&(t=``+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Xt(n)}function ln(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),$t(e)}function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dn=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 fn(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||dn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function pn(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]=``,Gt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(fn(e,a,r),Gt=!0)}else for(var o in t)t.hasOwnProperty(o)&&fn(e,o,t[o])}function mn(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 hn=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`],[`maskType`,`mask-type`],[`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`]]),gn=/^[\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 _n(e){return gn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function vn(){}var yn=null;function bn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,Sn=null;function Cn(e){var t=Mt(e);if(t&&(e=t.stateNode)){var n=e[St]||null;a:switch(e=t.stateNode,t.type){case`input`:if(rn(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="`+nn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[St]||null;if(!a)throw Error(i(90));rn(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&&en(r)}break a;case`textarea`:cn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}}}var wn=!1;function Tn(e,t,n){if(wn)return e(t,n);wn=!0;try{return e(t)}finally{if(wn=!1,(xn!==null||Sn!==null)&&(zd(),xn&&(t=xn,e=Sn,Sn=xn=null,Cn(t),e)))for(t=0;t<e.length;t++)Cn(e[t])}}function En(e,t){var n=e.stateNode;if(n===null)return null;var r=n[St]||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 Dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),On=!1;if(Dn)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){On=!0}}),window.addEventListener(`test`,kn,kn),window.removeEventListener(`test`,kn,kn)}catch{On=!1}var An=null,jn=null,Mn=null;function Nn(){if(Mn)return Mn;var e,t=jn,n=t.length,r,i=`value`in An?An.value:An.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 Mn=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 Fn(){return!0}function In(){return!1}function Ln(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)?Fn:In,this.isPropagationStopped=In,this}return D(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=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zn=Ln(Rn),Bn=D({},Rn,{view:0,detail:0}),Vn=Ln(Bn),Hn,Un,Wn,B=D({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tr,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!==Wn&&(Wn&&e.type===`mousemove`?(Hn=e.screenX-Wn.screenX,Un=e.screenY-Wn.screenY):Un=Hn=0,Wn=e),Hn)},movementY:function(e){return`movementY`in e?e.movementY:Un}}),Gn=Ln(B),Kn=Ln(D({},B,{dataTransfer:0})),qn=Ln(D({},Bn,{relatedTarget:0})),Jn=Ln(D({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0})),Yn=Ln(D({},Rn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Xn=Ln(D({},Rn,{data:0})),Zn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Qn={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`},$n={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function er(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$n[e])?!!t[e]:!1}function tr(){return er}var nr=Ln(D({},Bn,{key:function(e){if(e.key){var t=Zn[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`?Qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tr,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}})),rr=Ln(D({},B,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=Ln(D({},Rn,{submitter:0})),ar=Ln(D({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tr})),or=Ln(D({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),sr=Ln(D({},B,{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})),cr=Ln(D({},Rn,{newState:0,oldState:0,source:0})),lr=[9,13,27,32],ur=Dn&&`CompositionEvent`in window,dr=null;Dn&&`documentMode`in document&&(dr=document.documentMode);var fr=Dn&&`TextEvent`in window&&!dr,pr=Dn&&(!ur||dr&&8<dr&&11>=dr),mr=` `,hr=!1;function gr(e,t){switch(e){case`keyup`:return lr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function _r(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var vr=!1;function yr(e,t){switch(e){case`compositionend`:return _r(t);case`keypress`:return t.which===32?(hr=!0,mr):null;case`textInput`:return e=t.data,e===mr&&hr?null:e;default:return null}}function br(e,t){if(vr)return e===`compositionend`||!ur&&gr(e,t)?(e=Nn(),Mn=jn=An=null,vr=!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 pr&&t.locale!==`ko`?null:t.data;default:return null}}var xr={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 Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!xr[e.type]:t===`textarea`}function Cr(e,t,n,r){xn?Sn?Sn.push(r):Sn=[r]:xn=r,t=Yf(t,`onChange`),0<t.length&&(n=new zn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var wr=null,Tr=null;function Er(e){Hf(e,0)}function Dr(e){if(en(Nt(e)))return e}function Or(e,t){if(e===`change`)return t}var kr=!1;if(Dn){var Ar;if(Dn){var jr=`oninput`in document;if(!jr){var Mr=document.createElement(`div`);Mr.setAttribute(`oninput`,`return;`),jr=typeof Mr.oninput==`function`}Ar=jr}else Ar=!1;kr=Ar&&(!document.documentMode||9<document.documentMode)}function Nr(){wr&&(wr.detachEvent(`onpropertychange`,Pr),Tr=wr=null)}function Pr(e){if(e.propertyName===`value`&&Dr(Tr)){var t=[];Cr(t,Tr,e,bn(e)),Tn(Er,t)}}function Fr(e,t,n){e===`focusin`?(Nr(),wr=t,Tr=n,wr.attachEvent(`onpropertychange`,Pr)):e===`focusout`&&Nr()}function Ir(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dr(Tr)}function Lr(e,t){if(e===`click`)return Dr(t)}function Rr(e,t){if(e===`input`||e===`change`)return Dr(t)}function zr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Br=typeof Object.is==`function`?Object.is:zr;function Vr(e,t){if(Br(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(!Pe.call(t,i)||!Br(e[i],t[i]))return!1}return!0}function Hr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wr(e,t){var n=Ur(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=Ur(n)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(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=Hr(e.document)}return t}function qr(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 Jr=Dn&&`documentMode`in document&&11>=document.documentMode,Yr=null,Xr=null,Zr=null,Qr=!1;function $r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qr||Yr==null||Yr!==Hr(r)||(r=Yr,`selectionStart`in r&&qr(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}),Zr&&Vr(Zr,r)||(Zr=r,r=Yf(Xr,`onSelect`),0<r.length&&(t=new zn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ti={animationend:ei(`Animation`,`AnimationEnd`),animationiteration:ei(`Animation`,`AnimationIteration`),animationstart:ei(`Animation`,`AnimationStart`),transitionrun:ei(`Transition`,`TransitionRun`),transitionstart:ei(`Transition`,`TransitionStart`),transitioncancel:ei(`Transition`,`TransitionCancel`),transitionend:ei(`Transition`,`TransitionEnd`)},ni={},ri={};Dn&&(ri=document.createElement(`div`).style,`AnimationEvent`in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),`TransitionEvent`in window||delete ti.transitionend.transition);function ii(e){if(ni[e])return ni[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ri)return ni[e]=t[n];return e}var ai=ii(`animationend`),oi=ii(`animationiteration`),si=ii(`animationstart`),ci=ii(`transitionrun`),li=ii(`transitionstart`),ui=ii(`transitioncancel`),di=ii(`transitionend`),fi=new Map,pi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);pi.push(`scrollEnd`);function mi(e,t){fi.set(e,t),zt(t,[e])}var hi=0;function gi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=hi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function _i(e){if(e==null||typeof e==`string`)return e;var t=null,n=Od;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function vi(e,t){return e=_i(e),t=_i(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var yi=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)},bi=[],xi=0,Si=0;function Ci(){for(var e=xi,t=Si=xi=0;t<e;){var n=bi[t];bi[t++]=null;var r=bi[t];bi[t++]=null;var i=bi[t];bi[t++]=null;var a=bi[t];if(bi[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&&Di(n,i,a)}}function wi(e,t,n,r){bi[xi++]=e,bi[xi++]=t,bi[xi++]=n,bi[xi++]=r,Si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ti(e,t,n,r){return wi(e,t,n,r),Oi(e)}function Ei(e,t){return wi(e,null,null,t),Oi(e)}function Di(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-Ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Oi(e){if(50<kd)throw kd=0,Ad=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ki={};function Ai(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 ji(e,t,n,r){return new Ai(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ni(e,t){var n=e.alternate;return n===null?(n=ji(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&1206910976,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 Pi(e,t){e.flags&=1206910978;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 Fi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Mi(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,ye.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ae:return e=ji(31,n,t,a),e.elementType=ae,e.lanes=o,e;case ee:return Ii(n.children,a,o,t);case te:s=8,a|=24;break;case j:return e=ji(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case ne:return e=ji(13,n,t,a),e.elementType=ne,e.lanes=o,e;case F:return e=ji(19,n,t,a),e.elementType=F,e.lanes=o,e;case oe:case ce:return e=a|32,e=ji(30,n,t,e),e.elementType=ce,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ji(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ii(e,t,n,r){return e=ji(7,e,r,t),e.lanes=n,e}function Li(e,t,n){return e=ji(6,e,null,t),e.lanes=n,e}function Ri(e){var t=ji(18,null,null,0);return t.stateNode=e,t}function zi(e,t,n){return t=ji(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bi=new WeakMap;function Vi(e,t){if(typeof e==`object`&&e){var n=Bi.get(e);return n===void 0?(t={value:e,source:t,stack:Ne(t)},Bi.set(e,t),t):n}return{value:e,source:t,stack:Ne(t)}}var Hi=[],Ui=0,Wi=null,Gi=0,Ki=[],qi=0,V=null,Ji=1,Yi=``;function Xi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Wi,Wi=e,Gi=t}function Zi(e,t,n){Ki[qi++]=Ji,Ki[qi++]=Yi,Ki[qi++]=V,V=e;var r=Ji;e=Yi;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var a=32-Ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Ze(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null;for(;e===V;)V=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null,Ji=Ki[--qi],Ki[qi]=null}function ea(e,t){Ki[qi++]=Ji,Ki[qi++]=Yi,Ki[qi++]=V,Ji=t.id,Yi=t.overflow,V=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[xt]=e,t[St]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Z(Bf[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),an(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),ln(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||tp(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||hp(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=pm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=pm(e)}else t===27?(t=na,wp(e.type)?(e=fm,fm=null,na=e):na=t):na=ta?dm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=_e(null),ma=null,ha=null;function ga(e,t,n){z(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,ve(pa)}function va(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 ya(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),va(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),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):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 ba(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;Br(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=[lh]:e.push(lh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function U(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Sa(e){return wa(ma,e)}function Ca(e,t){return ma===null&&xa(e),wa(e,t)}function wa(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ta=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()})}},Ea=t.unstable_scheduleCallback,Da=t.unstable_NormalPriority,Oa={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ka(){return{controller:new Ta,data:new Map,refCount:0}}function Aa(e){e.refCount--,e.refCount===0&&Ea(Da,function(){e.controller.abort()})}function ja(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ma=null;function Na(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Pa=null,Fa=0,Ia=0,La=null;function Ra(e,t){if(Pa===null){var n=Pa=[];Fa=0,Ia=Ff(),La={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Fa++,t.then(za,za),t}function za(){if(--Fa===0&&(Ma=null,Pa!==null)){La!==null&&(La.status=`fulfilled`);var e=Pa;Pa=null,Ia=0,La=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ba(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 Va=L.S;L.S=function(e,t){if(hd=ze(),typeof t==`object`&&t&&typeof t.then==`function`&&Ra(e,t),Ma!==null)for(var n=xf;n!==null;)ja(n,Ma),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)ja(r,n),r=r.next;if(Ia!==0){r=Ma,r===null&&(r=Ma=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Va!==null&&Va(e,t)};var Ha=_e(null);function Ua(){var e=Ha.current;return e===null?Qu.pooledCache:e}function Wa(e,t){t===null?z(Ha,Ha.current):z(Ha,t.pool)}function Ga(){var e=Ua();return e===null?null:{parent:Oa._currentValue,pool:e}}var Ka=Error(i(460)),qa=Error(i(474)),Ja=Error(i(542)),Ya={then:function(){}};function Xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Za(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(vn,vn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,to(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(vn,vn);else{if(e=Qu,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,to(e),e}throw $a=t,Ka}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?($a=e,Ka):e}}var $a=null;function eo(){if($a===null)throw Error(i(459));var e=$a;return $a=null,e}function to(e){if(e===Ka||e===Ja)throw Error(i(483))}var no=null,ro=0;function io(e){var t=ro;return ro+=1,no===null&&(no=[]),Za(no,e,t)}function ao(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function oo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function so(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=Ni(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|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Li(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===ee?(e=d(e,t,n.props.children,r,n.key),ao(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ie&&Qa(i)===t.type)?(t=a(t,n.props),ao(t,n),t.return=e,t):(t=Fi(n.type,n.key,n.props,null,e.mode,r),ao(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=zi(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=Ii(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=Li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Fi(t.type,t.key,t.props,null,e.mode,n),ao(n,t),n.return=e,n;case A:return t=zi(t,e.mode,n),t.return=e,t;case ie:return t=Qa(t),f(e,t,n)}if(pe(t)||de(t))return t=Ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,io(t),n);if(t.$$typeof===N)return f(e,Ca(e,t),n);oo(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 k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case ie:return n=Qa(n),p(e,t,n,r)}if(pe(n)||de(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,io(n),r);if(n.$$typeof===N)return p(e,t,Ca(e,n),r);oo(e,n)}return null}function m(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ie:return r=Qa(r),m(e,t,n,r,i)}if(pe(r)||de(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,io(r),i);if(r.$$typeof===N)return m(e,t,n,Ca(t,r),i);oo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),H&&Xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&Xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),H&&Xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&Xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&Xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ao(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ie&&Qa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ao(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Ii(o.props.children,e.mode,c,o.key),ao(c,o),c.return=e,e=c):(c=Fi(o.type,o.key,o.props,null,e.mode,c),ao(c,o),c.return=e,e=c)}return s(e);case A: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=zi(o,e.mode,c),c.return=e,e=c}return s(e);case ie:return o=Qa(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(de(o)){if(l=de(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,io(o),c);if(o.$$typeof===N)return _(e,r,Ca(e,o),c);oo(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=Li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ro=0;var i=_(e,t,n,r);return no=null,i}catch(t){if(t===Ka||t===Ja)throw t;var a=ji(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var co=so(!0),lo=so(!1),uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function po(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 mo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Oi(e),Di(e,null,n),t}return wi(e,r,t,n),Oi(e)}function go(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,mt(e,n)}}function _o(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 vo=!1;function yo(){if(vo){var e=La;if(e!==null)throw e}}function bo(e,t,n,r){vo=!1;var i=e.updateQueue;uo=!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 f=s.lane&-536870913,p=f!==s.lane;if(p?(X&f)===f:(r&f)===f){f!==0&&f===Ia&&(vo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:uo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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),od|=o,e.lanes=o,e.memoizedState=d}}function xo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function So(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)xo(n[e],t)}var Co=_e(null),wo=_e(0);function To(e,t){e=id,z(wo,e),z(Co,t),id=e|t.baseLanes}function Eo(){z(wo,id),z(Co,Co.current)}function Do(){id=wo.current,ve(Co),ve(wo)}var Oo=_e(null),ko=null;function Ao(e){var t=e.alternate;z(Fo,Fo.current&1),z(Oo,e),ko===null&&(t===null||Co.current!==null||t.memoizedState!==null)&&(ko=e)}function jo(e){z(Fo,Fo.current),z(Oo,e),ko===null&&(ko=e)}function Mo(e){e.tag===22?(z(Fo,Fo.current),z(Oo,e),ko===null&&(ko=e)):No()}function No(){z(Fo,Fo.current),z(Oo,Oo.current)}function Po(e){ve(Oo),ko===e&&(ko=null),ve(Fo)}var Fo=_e(0);function Io(e,t){z(Oo,Oo.current),z(Fo,t)}function Lo(e){ve(Fo),ve(Oo),ko===e&&(ko=null)}function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cm(n)||lm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){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 zo=0,W=null,Bo=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return zo=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?dc:fc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){L.H=uc;var t=Bo!==null&&Bo.next!==null;if(zo=0,Vo=Bo=W=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||Oc||(e=e.dependencies,e!==null&&U(e)&&(Oc=!0))}function $o(e,t,n,r){W=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=Bo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=pc,o=t(n,r)}while(Uo);return o}function es(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(Bo===null?null:Bo.memoizedState)!==e&&(W.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}zo=0,Vo=Bo=W=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(Bo===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=Bo.next;var t=Vo===null?W.memoizedState:Vo.next;if(t!==null)Vo=t,Bo=e;else{if(e===null)throw W.alternate===null?Error(i(467)):Error(i(310));Bo=e,e={memoizedState:Bo.memoizedState,baseState:Bo.baseState,baseQueue:Bo.baseQueue,queue:Bo.queue,next:null},Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Za(qo,e,t),t=W,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?dc:fc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===le)return;if(e.$$typeof===N)return Sa(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.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=os(),W.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]=se;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(as(),Bo,e)}function fs(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?(zo&f)===f:(X&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===Ia&&(d=!0);else if((zo&p)===p){u=u.next,p===Ia&&(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,W.lanes|=p,od|=p;f=u.action,Wo&&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,W.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Br(o,e.memoizedState)&&(Oc=!0,d&&(n=La,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 ps(e){var t=as(),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);Br(o,t.memoizedState)||(Oc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=W,a=as(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Br((Bo||a).memoizedState,n);if(s&&(a.memoizedState=n,Oc=!0),a=a.queue,Rs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(i(349));o||zo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=os(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Br(e,n)}catch{return!0}}function ys(e){var t=Ei(e,2);t!==null&&Pd(t,e,2)}function bs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){Xe(!0);try{n()}finally{Xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,Bo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(sc(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)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if(H){var n=Qu.formState;if(n!==null){a:{var r=W;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;){if(!a){i=null;break b}if(i=dm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=dm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=ic.bind(null,W,r),r.dispatch=n,r=bs(!1),a=oc.bind(null,W,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(as(),Bo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Ka?Ja:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=as(),n=Bo;if(n!==null)return js(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=os(),W.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 Fs(){return as().memoizedState}function Is(e,t,n,r){var i=is();W.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;Bo!==null&&r!==null&&Xo(r,Bo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(W.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function G(e,t){Is(8390656,8,e,t)}function Rs(e,t){Ls(2048,8,e,t)}function zs(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=os(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=as().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Ls(4,2,e,t)}function Hs(e,t){return Ls(4,4,e,t)}function Us(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 Ws(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||zo&1073741824&&!(X&261930)?e.memoizedState=t:(e.memoizedState=n,e=Md(),W.lanes|=e,od|=e,n)}function K(e,t,n,r){return Br(n,t)?n:Co.current===null?!(zo&106)||zo&1073741824&&!(X&261930)?(Oc=!0,e.memoizedState=n):(e=Md(),W.lanes|=e,od|=e,t):(e=Js(e,n,r),Br(e,t)||(Oc=!0),e)}function Ys(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,oc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?ac(e,t,Ba(c,r),jd(e)):ac(e,t,r,jd(e))}catch(n){ac(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Xs(){}function Zs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Qs(e).queue;Ys(e,a,t,me,n===null?Xs:function(){return $s(e),n(r)})}function Qs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $s(e){var t=Qs(e);t.next===null&&(t=e.alternate.memoizedState),ac(e,t.next.queue,{},jd())}function ec(){return Sa(lh)}function tc(){return as().memoizedState}function q(){return as().memoizedState}function nc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=mo(n);var r=ho(t,e,n);r!==null&&(Pd(r,t,n),go(r,t,n)),t={cache:ka()},e.payload=t;return}t=t.return}}function rc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},sc(e)?cc(t,n):(n=Ti(e,t,n,r),n!==null&&(Pd(n,e,r),lc(n,t,r)))}function ic(e,t,n){ac(e,t,n,jd())}function ac(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(sc(e))cc(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,Br(s,o))return wi(e,t,i,0),Qu===null&&Ci(),!1}catch{}if(n=Ti(e,t,i,r),n!==null)return Pd(n,e,r),lc(n,t,r),!0}return!1}function oc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},sc(e)){if(t)throw Error(i(479))}else t=Ti(e,n,r,2),t!==null&&Pd(t,e,2)}function sc(e){var t=e.alternate;return e===W||t!==null&&t===W}function cc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function lc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mt(e,n)}}var uc={readContext:Sa,use:cs,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},dc={readContext:Sa,use:cs,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:Sa,useEffect:G,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){Xe(!0);try{n(t)}finally{Xe(!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=rc.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=ic.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(is(),e,t)},useTransition:function(){var e=bs(!1);return e=Ys.bind(null,W,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=is();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));X&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,G(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=Qu.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=oc.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return is().memoizedState=nc.bind(null,W)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:Sa,use:cs,useCallback:Ks,useContext:Sa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Gs,useDeferredValue:function(e,t){return K(as(),Bo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:tc,useHostTransitionStatus:ec,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(as(),Bo,e,t)},useMemoCache:ls,useCacheRefresh:q,useEffectEvent:Bs},pc={readContext:Sa,use:cs,useCallback:Ks,useContext:Sa,useEffect:Rs,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=as();return Bo===null?Js(n,e,t):K(n,Bo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:tc,useHostTransitionStatus:ec,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=as();return Bo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,Bo,e,t)},useMemoCache:ls,useCacheRefresh:q,useEffectEvent:Bs};function mc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jd(),i=mo(r);i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Pd(t,e,r),go(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jd(),i=mo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Pd(t,e,r),go(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jd(),r=mo(n);r.tag=2,t!=null&&(r.callback=t),t=ho(e,r,n),t!==null&&(Pd(t,e,n),go(t,e,n))}};function gc(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?!Vr(n,r)||!Vr(i,a):!0}function _c(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&&hc.enqueueReplaceState(t,t.state,null)}function vc(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function yc(e){yi(e)}function J(e){console.error(e)}function bc(e){yi(e)}function xc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Sc(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 Cc(e,t,n){return n=mo(n),n.tag=3,n.payload={element:null},n.callback=function(){xc(e,t)},n}function wc(e){return e=mo(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(){Sc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Sc(t,n,r),typeof i!=`function`&&(vd===null?vd=new Set([this]):vd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ec(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=Oo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ko===null?Kd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ya?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)),hf(e,r,a)),!1}throw Error(i(435,n.tag))}return hf(e,r,a),Kd(),!1}if(H)return t=Oo.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Vi(r,n),a=Cc(e.stateNode,r,a),_o(e,a),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Vi(o,n),dd===null?dd=[o]:dd.push(o),ad!==4&&(ad=2),t===null)return!0;r=Vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Cc(n.stateNode,r,e),_o(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`&&(vd===null||!vd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=wc(a),Tc(a,e,n,r),_o(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Dc=Error(i(461)),Oc=!1;function kc(e,t,n,r){t.child=e===null?lo(t,null,n,r):co(t,e.child,n,r)}function Ac(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 xa(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!Oc?(ns(e,t,i),il(e,t,i)):(H&&s&&Qi(t),t.flags|=1,kc(e,t,r,i),t.child)}function jc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Mi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Mc(e,t,a,r,i)):(e=Fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!al(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Vr:n,n(o,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,e=Ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Vr(a,r)&&e.ref===t.ref){if(Oc=!1,t.pendingProps=r=a,al(e,i))e.flags&131072&&(Oc=!0);else return t.lanes=e.lanes,il(e,t,i)}}return Bc(e,t,n,r,i)}function Nc(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 Fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wa(t,a===null?null:a.cachePool),a===null?Eo():To(t,a),Mo(t);else return r=t.lanes=536870912,Fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Wa(t,null),Eo(),No()):(Wa(t,a.cachePool),To(t,a),No(),t.memoizedState=null);return kc(e,t,i,n),t.child}function Pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fc(e,t,n,r,i){var a=Ua();return a=a===null?null:{parent:Oa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Wa(t,null),Eo(),Mo(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Ic(e,t){return t=Yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lc(e,t,n){return co(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,Po(t),t.memoizedState=null,e}function Rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Ic(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Pc(null,e);if(jo(t),(e=na)?(e=sm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:V===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(jo(t),a){if(t.flags&256)t.flags&=-257,t=Lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Oc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Oc||a){if(Co.current===null){if(r=Qu,r!==null&&(s=ht(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ei(e,s),Pd(r,e,s),Dc;Kd()}t=Lc(e,t,n)}else e=o.treeContext,na=dm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Ic(t,r),t.flags|=134221824;return t}return e=Ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zc(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 Bc(e,t,n,r,i){return xa(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!Oc?(ns(e,t,i),il(e,t,i)):(H&&r&&Qi(t),t.flags|=1,kc(e,t,n,i),t.child)}function Vc(e,t,n,r,i,a){return xa(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!Oc?(ns(e,t,a),il(e,t,a)):(H&&r&&Qi(t),t.flags|=1,kc(e,t,n,a),t.child)}function Hc(e,t,n,r,i){if(xa(t),t.stateNode===null){var a=ki,o=n.contextType;typeof o==`object`&&o&&(a=Sa(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fo(t),o=n.contextType,a.context=typeof o==`object`&&o?Sa(o):ki,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(mc(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&&hc.enqueueReplaceState(a,a.state,null),bo(t,r,a,i),yo(),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=vc(n,s);a.props=c;var l=a.context,u=n.contextType;o=ki,typeof u==`object`&&u&&(o=Sa(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)&&_c(t,a,r,o),uo=!1;var f=t.memoizedState;a.state=f,bo(t,r,a,i),yo(),l=t.memoizedState,s||f!==l||uo?(typeof d==`function`&&(mc(t,n,d,r),l=t.memoizedState),(c=uo||gc(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,po(e,t),o=t.memoizedProps,u=vc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ki,typeof l==`object`&&l&&(c=Sa(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)&&_c(t,a,r,c),uo=!1,f=t.memoizedState,a.state=f,bo(t,r,a,i),yo();var p=t.memoizedState;o!==d||f!==p||uo||e!==null&&e.dependencies!==null&&U(e.dependencies)?(typeof s==`function`&&(mc(t,n,s,r),p=t.memoizedState),(u=uo||gc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&U(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,zc(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=co(t,e.child,null,i),t.child=co(t,null,n,i)):kc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=il(e,t,i),e}function Uc(e,t,n,r){return ua(),t.flags|=256,kc(e,t,n,r),t.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Ga()}}function Kc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Fo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?Ao(t):No(),(e=na)?(e=sm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:V===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=lm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(No(),i=t.mode,a=Yc({mode:`hidden`,children:a},i),r=Ii(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Gc(n),r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(null,r)):(Ao(t),Jc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Zc(e,t,a,o,r,c,s,n)}return i?(No(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ni(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ii(i,a,n,null),i.flags|=2):i=Ni(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Pc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Gc(n):(a=i.cachePool,a===null?a=Ga():(s=Oa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(e.child,r)):(Ao(t),n=e.child,e=n.sibling,n=Ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=Yc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return e=ji(22,e,null,t),e.lanes=0,e}function Xc(e,t,n){return co(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Ao(t),t.flags&=-257,Xc(e,t,c)):t.memoizedState===null?(No(),o=a.fallback,s=t.mode,a=Yc({mode:`visible`,children:a.children},s),o=Ii(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,co(t,e.child,null,c),a=t.child,a.memoizedState=Gc(c),a.childLanes=Kc(e,r,c),t.memoizedState=Wc,Pc(null,a)):(No(),t.child=e.child,t.flags|=128,null);if(Ao(t),lm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),Xc(e,t,c)}if(Oc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Oc||r){if(Co.current!==null)return Xc(e,t,c);if(r=Qu,r!==null&&(a=ht(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ei(e,a),Pd(r,e,a),Dc;return cm(o)||Kd(),Xc(e,t,c)}return cm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=dm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Jc(t,a.children),t.flags|=134221824,t)}function Qc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function $c(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ro(n)===null&&(t=e),e=e.sibling}return t}function el(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 tl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function nl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Fo.current;if(t.flags&128)return Io(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Io(t,o),i===`backwards`&&e!==null?(tl(e),kc(e,t,r,n),tl(e)):kc(e,t,r,n),r=H?Gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qc(e,n,t);else if(e.tag===19)Qc(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`backwards`:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,tl(t)),el(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}el(t,!0,n,null,a,r);break;case`together`:el(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),el(t,!1,i,n,a,r)}return t.child}function rl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),kc(e,t,r.children,n),t.child}function il(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(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=Ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function al(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&U(e)))}function ol(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),ga(t,Oa,e.memoizedState.cache),ua();break;case 27:case 5:Te(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Ao(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?qc(e,t,n):(Ao(t),e=il(e,t,n),e===null?null:e.sibling)}Ao(t);break;case 19:if(t.flags&128)return nl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return nl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Io(t,Fo.current),r)break;return null;case 22:return t.lanes=0,Nc(e,t,n,t.pendingProps);case 24:ga(t,Oa,e.memoizedState.cache)}return il(e,t,n)}function sl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Oc=!0;else{if(!al(e,n)&&!(t.flags&128))return Oc=!1,ol(e,t,n);Oc=!!(e.flags&131072)}}else Oc=!1,H&&t.flags&1048576&&Zi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e==`function`)Mi(e)?(r=vc(e,r),t.tag=1,t=Hc(null,t,e,r,n)):(t.tag=0,t=Bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Ac(null,t,e,r,n);break a}if(a===re){t.tag=14,t=jc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=rl(null,t,n);break a}}throw t=I(e)||e,Error(i(306,t,``))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=vc(r,t.pendingProps),Hc(e,t,r,a,n);case 3:a:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,po(e,t),bo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,Oa,r),r!==o.cache&&ya(t,[Oa],n,!0),yo(),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=Uc(e,t,r,n);break a}if(r!==a){a=Vi(Error(i(424)),t),fa(a),t=Uc(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(na=dm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=lo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=il(e,t,n);break a}kc(e,t,r,n)}t=t.child}return t;case 26:return zc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=mp(t.type,t.pendingProps,xe.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&H&&(r=t.stateNode=_m(t.type,t.pendingProps,xe.current),ta=t,ia=!0,a=na,wp(t.type)?(fm=a,na=dm(r.firstChild)):na=a),kc(e,t,t.pendingProps.children,n),zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=am(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=dm(r.firstChild),ia=!1,a=!0)),a||oa(t)),Te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,hp(a,o)?r=null:s!==null&&hp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),lh._currentValue=a),zc(e,t),kc(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=om(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return qc(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):kc(e,t,r,n),t.child;case 11:return Ac(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,zc(e,t),kc(e,t,r,n),t.child;case 8:return kc(e,t,t.pendingProps.children,n),t.child;case 12:return kc(e,t,t.pendingProps.children,n),t.child;case 10:return rl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,xa(t),a=Sa(a),r=r(a),t.flags|=1,kc(e,t,r,n),t.child;case 14:return jc(e,t,t.type,t.pendingProps,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 19:return nl(e,t,n);case 31:return Rc(e,t,n);case 22:return Nc(e,t,n,t.pendingProps);case 24:return xa(t),r=Sa(Oa),e===null?(a=Ua(),a===null&&(a=Qu,o=ka(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},fo(t),ga(t,Oa,a)):((e.lanes&n)!==0&&(po(e,t),bo(t,null,null,n),yo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,Oa,r),r!==a.cache&&ya(t,[Oa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,Oa,r))),kc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:zc(e,t),kc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function cl(e){e.flags|=4}function ll(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw $a=Ya,qa}}else e.flags&=-16777217}function ul(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Ud())e.flags|=8192;else throw $a=Ya,qa}}function dl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:lt(),e.lanes|=t,ud|=t)}function fl(e,t){if(!H)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function pl(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&1206910976,r|=i.flags&1206910976,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 ml(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pl(t),null;case 1:return pl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(Oa),we(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?cl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),pl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(cl(t),o===null?(pl(t),ll(t,a,null,r,n)):(pl(t),ul(t,o))):o?o===e.memoizedState?(pl(t),t.flags&=-16777217):(cl(t),pl(t),ul(t,o)):(e=e.memoizedProps,e!==r&&cl(t),pl(t),ll(t,a,e,r,n)),null;case 27:if(Ee(t),n=xe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}e=ye.current,la(t)?sa(t,e):(e=_m(a,r,n),t.stateNode=e,cl(t))}return pl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ee(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}if(o=ye.current,la(t))sa(t,o);else{var s=dp(xe.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[xt]=t,o[St]=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(ip(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&&cl(t)}}return pl(t),t.subtreeFlags&=-33554433,ll(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=xe.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||oa(t,!0)}else e=dp(e).createTextNode(r),e[xt]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Po(t),t):(Po(t),null);if(t.flags&128)throw Error(i(558))}return pl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Po(t),t):(Po(t),null)}return Po(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),dl(t,t.updateQueue),pl(t),null);case 4:return we(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,pl(t),null;case 10:return _a(t.type),pl(t),null;case 19:if(Lo(t),r=t.memoizedState,r===null)return pl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)fl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ro(e),o!==null){for(t.flags|=128,fl(r,!1),e=o.updateQueue,t.updateQueue=e,dl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Pi(n,e),n=n.sibling;return Io(t,Fo.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ze()>gd&&(t.flags|=128,a=!0,fl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,dl(t,e),fl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return pl(t),null}else 2*ze()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,fl(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)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ze(),e.sibling=null,o=Fo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Io(t,o):(n=o,z(Oo,t),z(Fo,n),ko===null&&(ko=t)),H&&Xi(t,r.treeForkCount),e}return pl(t),null;case 22:case 23:return Po(t),Do(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(pl(t),t.subtreeFlags&6&&(t.flags|=8192)):pl(t),n=t.updateQueue,n!==null&&dl(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&&ve(Ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(Oa),pl(t),null;case 25:return null;case 30:return t.flags|=33554432,pl(t),null}throw Error(i(156,t.tag))}function hl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(Oa),we(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Po(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return we(),null;case 10:return _a(t.type),null;case 22:case 23:return Po(t),Do(),e!==null&&ve(Ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(Oa),null;case 25:return null;default:return null}}function gl(e,t){switch($i(t),t.tag){case 3:_a(Oa),we();break;case 26:case 27:case 5:Ee(t);break;case 4:we();break;case 31:t.memoizedState!==null&&Po(t);break;case 13:Po(t);break;case 19:Lo(t);break;case 10:_a(t.type);break;case 22:case 23:Po(t),Do(),e!==null&&ve(Ha);break;case 24:_a(Oa)}}function _l(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){mf(t,t.return,e)}}function vl(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){mf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){mf(t,t.return,e)}}function yl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{So(t,n)}catch(t){mf(e,e.return,t)}}}function bl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){mf(e,t,n)}}function xl(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:var i=e.stateNode,a=gi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Ip(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Lp(e);m(e.child,!1,em,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){mf(e,t,n)}}function Sl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){mf(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){mf(e,t,n)}else n.current=null}}function Cl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)nm(e.stateNode,t[n])}function wl(e){for(var t=e.return;t!==null&&(Dl(t)&&nm(e.stateNode,t.stateNode),!El(t));)t=t.return}function Tl(e){for(var t=e.return;t!==null&&(Dl(t)&&rm(e.stateNode,t.stateNode),!El(t));)t=t.return}function El(e){return e.tag===5||e.tag===3||e.tag===27}function Dl(e){return e&&e.tag===7&&e.stateNode!==null}function Ol(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){mf(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;op(r,e.type,n,t),r[St]=t}catch(t){mf(e,e.return,t)}}function Al(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wp(e.type)||e.tag===4}function jl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Al(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&&wp(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 Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vn)),Cl(e,r),Gt=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,wp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Cl(e,r),Gt=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,wp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ip(t,r,n),t[xt]=e,t[St]=n}catch(t){mf(e,e.return,t)}}var Fl=!1,Il=null;function Ll(e){(e.tag===30||e.subtreeFlags&33554432)&&(Fl=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ap(o);r.push(s),s.view&&(a=!0)}else a||Ap(o).view&&(a=!0);Fl=!0,Dp(o,Bl===0?t:t+`_`+Bl,n),Bl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?Op(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ul(e.child,t)),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=vi(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=gi(r,n),a=vi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Nd(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Il!==null&&Il.size!==0){var t=Il;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=vi(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Nd(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode),r=Il===null?void 0:Il.get(n),i=vi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Nd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Il.delete(n),Nd(e,t.onShare)):Ul(e.child,!1)),Il!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Il!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=Ap(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Dp(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=gi(n,r),a=vi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(jp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Nd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,lp=vh,e=Kr(e),qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(up={focusedElem:e,selectionRange:r},vh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Ll(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ll(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Il=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=vc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){mf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)im(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:im(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=gi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=vi(a.default,a.update),a!==`none`&&Vl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&_l(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){mf(n,n.return,e)}else{var i=vc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){mf(n,n.return,e)}}}r&64&&yl(n),r&512&&xl(n,n.return);break;case 3:if(Mu(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{So(e,t)}catch(e){mf(n,n.return,e)}}break;case 27:t===null&&r&4&&Pl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Ol(n),r&512&&xl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),um(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&xl(n,n.return);break;case 7:r&512&&xl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){mf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Gt=!0}catch(t){mf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ep(s,!0):Ep(e.stateNode,!1)}catch(t){mf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&At(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 _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount==`function`)try{Ye.onCommitFiberUnmount(Je,n)}catch{}switch(n.tag){case 26:tu||Sl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Sl(n,t),Tl(n);var r=_u,i=vu;wp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),vm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Sl(n,t),Tl(n);case 6:if(n.tag===6&&Tl(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Gt=!0}catch(e){mf(n,t,e)}else try{_u.removeChild(n.stateNode),Gt=!0}catch(e){mf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Tp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Tp(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),tu||vl(4,n,t),yu(e,t,n);break;case 1:tu||(Sl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&bl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Sl(n,t),yu(e,t,n);break;case 7:tu||Sl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){mf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){mf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(wp(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),a&4&&(vl(3,e,e.return),_l(3,e),vl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=mp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ot]||r[xt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ip(r,t,n),r[xt]=e,Ft(r),t=r;break a;case`link`:if(o=qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[xt]=e,Ft(r),t=r}e.stateNode=t}}else eu||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&kl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),r!==null&&a&4&&kl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),e.flags&32){t=e.stateNode;try{un(t,``),Gt=!0}catch(t){mf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Gt=!0}catch(t){mf(e,e.return,t)}}break;case 3:if(Gt=!1,Km=null,o=Eu,Eu=Sm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){mf(e,e.return,t)}ru&&(ru=!1,ku(e)),Gt=!1;break;case 4:a=nu,nu=eu,r=Kt(),o=Eu,Eu=Sm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Gt&&su&&(cu=!0),Gt=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=ze()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||Sl(r,r.return)),a=Kt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&vi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Gt&&(e.flags|=4),su=o,Gt=a;break;case 21:break;case 7:a&512&&(tu||r===null||Sl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Al(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Dl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(El(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Nl(e,jl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(un(l,``),n.flags&=-33),Nl(e,jl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ml(e,jl(e),u,s);break;default:throw Error(i(161))}}catch(t){mf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vh=!0,t.reset(),vh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Op(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=gi(a,o),o=gi(n.memoizedProps,o);var s=vi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Nd(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),Nu(n,r);break;case 1:Sl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&bl(n,n.return,i),Nu(n,r);break;case 27:r&2&&vm(n.stateNode,n.type,n.memoizedProps);case 5:Sl(n,n.return),n.tag!==5&&n.tag!==27||Tl(n),Nu(n,r);break;case 6:Tl(n);break;case 26:Sl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Sl(n,n.return),Nu(n,r);break;case 7:Sl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),_l(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){mf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)xo(l[i],c)}catch(e){mf(r,r.return,e)}}s&&o&64&&yl(a),xl(a,a.return);break;case 27:n&2&&Pl(a);case 5:a.tag!==5&&a.tag!==27||wl(a),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 6:wl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Jm(Sm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),xl(a,a.return);break;case 30:Pu(i,a,n),xl(a,a.return);break;case 7:xl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(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&&Aa(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Aa(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&_l(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Aa(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){mf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(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:zu(a,o,s,c,i),_l(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(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:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=Eu;Eu=Sm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Il===null&&(Il=new Map),Il.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(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 Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&vl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:vl(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:Aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=Sa(Oa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Sa(Oa).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,Y=null,X=0,$u=0,ed=null,td=!1,nd=!1,rd=!1,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=null,fd=null,pd=!1,md=0,hd=0,gd=1/0,_d=null,vd=null,yd=0,bd=null,xd=null,Sd=0,Cd=0,wd=null,Td=null,Ed=null,Dd=null,Od=null,kd=0,Ad=null;function jd(){return Zu&2&&X!==0?X&-X:L.T===null?vt():Ff()}function Md(){if(ld===0){if(!(X&536870912)||H){var e=nt;nt<<=1,!(nt&3932160)&&(nt=262144),ld=e}else ld=536870912}return e=Oo.current,e!==null&&(e.flags|=32),ld}function Nd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Ip(gi(e.memoizedProps,n))),Dd===null&&(Dd=[]),Dd.push(t.bind(null,r))}}function Pd(e,t,n){(e===Qu&&($u===2||$u===9)||e.cancelPendingCommit!==null)&&(Vd(e,0),Rd(e,X,ld,!1)),dt(e,n),(!(Zu&2)||e!==Qu)&&(e===Qu&&(!(Zu&2)&&(sd|=n),ad===4&&Rd(e,X,ld,!1)),Df(e))}function Fd(e,t,n){if(Zu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ot(e,t),a=r?Yd(e,t):qd(e,t,!0),o=r;do{if(a===0){nd&&!r&&Rd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ld(n)){a=qd(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=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Vd(c,s).flags|=256),s=qd(c,s,!1),s!==2&&s!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=o,sd|=o,a=4;break a}o=fd,fd=a,o!==null&&(fd===null?fd=o:fd.push.apply(fd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Vd(e,0),Rd(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&&(t&62914560)!==t)break;case 6:Rd(r,t,ld,!td);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=md+300-ze(),10<a)){if(Rd(r,t,ld,!td),at(r,0,!0)!==0)break a;Sd=t,r.timeoutHandle=vp(Id.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,td,o,`Throttled`,-0,0),a);break a}Id(r,n,fd,_d,pd,t,ld,sd,ud,td,o,null,-0,0)}break}while(1);Df(e)}function Id(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},Il=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-ze():(a&4194048)===a?hd-ze():0,m=nh(d,m),m!==null)){Sd=a,e.cancelPendingCommit=m(nf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Rd(e,a,o,!l);return}nf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ld(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(!Br(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 Rd(e,t,n,r){t=st(e,t),t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&pt(e,n,t)}function zd(){return Zu&6?!0:(Of(0,!1),!1)}function Bd(){if(Y!==null){if($u===0)var e=Y.return;else e=Y,ha=ma=null,rs(e),no=null,ro=0,e=Y;for(;e!==null;)gl(e.alternate,e),e=e.return;Y=null}}function Vd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sd=0,Bd(),Qu=e,Y=n=Ni(e.current,null),X=t,$u=0,ed=null,td=!1,nd=ot(e,t),rd=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,id=st(e,t),Ci(),n}function Hd(e,t){W=null,L.H=uc,t===Ka||t===Ja?(t=eo(),$u=3):t===qa?(t=eo(),$u=4):$u=t===Dc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,Y===null&&(ad=1,xc(e,Vi(t,e.current)))}function Ud(){var e=Oo.current;return e===null?!0:(X&4194048)===X?ko===null:(X&62914560)===X||X&536870912?e===ko:!1}function Wd(){var e=L.H;return L.H=uc,e===null?uc:e}function Gd(){var e=L.A;return L.A=Yu,e}function Kd(){ad=4,td||(X&4194048)!==X&&Oo.current!==null||(nd=!0),!(od&134217727)&&!(sd&134217727)||Qu===null||Rd(Qu,X,ld,!1)}function qd(e,t,n){var r=Zu;Zu|=2;var i=Wd(),a=Gd();(Qu!==e||X!==t)&&(_d=null,Vd(e,t)),t=!1;var o=ad;a:do try{if($u!==0&&Y!==null){var s=Y,c=ed;switch($u){case 8:Bd(),o=6;break a;case 3:case 2:case 9:case 6:Oo.current===null&&(t=!0);var l=$u;if($u=0,ed=null,$d(e,s,c,l),n&&nd){o=0;break a}break;default:l=$u,$u=0,ed=null,$d(e,s,c,l)}}Jd(),o=ad;break}catch(t){Hd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,Zu=r,L.H=i,L.A=a,Y===null&&(Qu=null,X=0,Ci()),o}function Jd(){for(;Y!==null;)Zd(Y)}function Yd(e,t){var n=Zu;Zu|=2;var r=Wd(),a=Gd();Qu!==e||X!==t?(_d=null,gd=ze()+500,Vd(e,t)):nd=ot(e,t);a:do try{if($u!==0&&Y!==null){t=Y;var o=ed;b:switch($u){case 1:$u=0,ed=null,$d(e,t,o,1);break;case 2:case 9:if(Xa(o)){$u=0,ed=null,Qd(t);break}t=function(){$u!==2&&$u!==9||Qu!==e||($u=7),Df(e)},o.then(t,t);break a;case 3:$u=7;break a;case 4:$u=5;break a;case 7:Xa(o)?($u=0,ed=null,Qd(t)):($u=0,ed=null,$d(e,t,o,7));break;case 5:var s=null;switch(Y.tag){case 26:s=Y.memoizedState;case 5:case 27:var c=Y;if(s?Zm(s):c.stateNode.complete){$u=0,ed=null;var l=c.sibling;if(l!==null)Y=l;else{var u=c.return;u===null?Y=null:(Y=u,ef(u))}break b}}$u=0,ed=null,$d(e,t,o,5);break;case 6:$u=0,ed=null,$d(e,t,o,6);break;case 8:Bd(),ad=6;break a;default:throw Error(i(462))}}Xd();break}catch(t){Hd(e,t)}while(1);return ha=ma=null,L.H=r,L.A=a,Zu=n,Y===null?(Qu=null,X=0,Ci(),ad):0}function Xd(){for(;Y!==null&&!Le();)Zd(Y)}function Zd(e){var t=sl(e.alternate,e,id);e.memoizedProps=e.pendingProps,t===null?ef(e):Y=t}function Qd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vc(n,t,t.pendingProps,t.type,void 0,X);break;case 11:t=Vc(n,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:rs(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:gl(n,t),t=Y=Pi(t,id),t=sl(n,t,id)}e.memoizedProps=e.pendingProps,t===null?ef(e):Y=t}function $d(e,t,n,r){ha=ma=null,rs(t),no=null,ro=0;var i=t.return;try{if(Ec(e,i,t,n,X)){ad=1,xc(e,Vi(n,e.current)),Y=null;return}}catch(t){if(i!==null)throw Y=i,t;ad=1,xc(e,Vi(n,e.current)),Y=null;return}t.flags&32768?(H||r===1?e=!0:nd||X&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=Oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),tf(t,e)):ef(t)}function ef(e){var t=e;do{if(t.flags&32768){tf(t,td);return}e=t.return;var n=ml(t.alternate,t,id);if(n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ad===0&&(ad=5)}function tf(e,t){do{var n=hl(e.alternate,e);if(n!==null){n.flags&=32767,Y=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=n}while(e!==null);ad=6,Y=null}function nf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do df();while(yd!==0);if(Zu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Qu&&(Y=Qu=null,X=0),xd=t,bd=e,Sd=n,wd=a,Td=r,rf(e,t,n,s,c,l,f)}}function rf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Cd=s,s|=Si,ft(e,n,s,r,i,a),Dd=null,(n&335544064)===n?(Od=Na(e),r=10262):(Od=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Ue,function(){return ff(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,R.p=i,L.T=r}}yd=1,Fl?Ed=Pp(o,e.containerInfo,Od,sf,cf,of,lf,ff,af,null,null):(sf(),cf(),lf())}function af(e){if(yd!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function of(){yd===3&&(yd=0,ju(xd,bd),yd=4)}function sf(){if(yd===1){yd=0;var e=bd,t=xd,n=Sd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=up;var o=Kr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Gr(s.ownerDocument.documentElement,s)){if(c!==null&&qr(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 _=Wr(s,h),v=Wr(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}}vh=!!lp,up=lp=null}finally{Zu=a,R.p=i,L.T=r}}e.current=t,yd=2}}function cf(){if(yd===2){yd=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,R.p=r,L.T=n}}yd=3}}function lf(){if(yd===4||yd===3){yd=0;var e=Ed;Ed=null,Re();var t=bd,n=xd,r=Sd,i=Td,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?yd=5:(yd=0,xd=bd=null,uf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(vd=null),_t(r),n=n.stateNode,Ye&&typeof Ye.onCommitFiberRoot==`function`)try{Ye.onCommitFiberRoot(Je,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=Dd,o=Od,Od=null,i!==null&&(Dd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Sd&3&&df(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===Ad?kd++:(kd=0,Ad=t):(kd=0,Ad=null),Of(0,!1)}}function uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Aa(t)))}function df(){return Ed!==null&&(Ed.skipTransition(),Ed=null),sf(),cf(),lf(),ff()}function ff(){if(yd!==5)return!1;var e=bd,t=Cd;Cd=0;var n=_t(Sd),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Of(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot==`function`)try{Ye.onPostCommitFiberRoot(Je,o)}catch{}return!0}finally{R.p=a,L.T=r,uf(e,t)}}function pf(e,t,n){t=Vi(n,t),t=Cc(e.stateNode,t,2),e=ho(e,t,2),e!==null&&(dt(e,2),Df(e))}function mf(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Vi(n,e),n=wc(2),r=ho(t,n,2),r!==null&&(Tc(n,r,t,e),dt(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;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)||(rd=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(X&n)===n&&(ad===4||ad===3&&(X&62914560)===X&&300>ze()-md?Zu&2?cd|=n:Vd(e,0):cd|=n,ud===X&&(ud=0)),Df(e)}function _f(e,t){t===0&&(t=lt()),e=Ei(e,t),e!==null&&(dt(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(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),_f(e,n)}function bf(e,t){return Fe(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;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-Ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=X,a=at(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ot(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&_p()&&(e=Ef);for(var t=ze(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}yd!==0&&yd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ct(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=X,n=at(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($u===2||$u===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ot(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ie(r),_t(n)){case 2:case 8:n=He;break;case 32:n=Ue;break;case 268435456:n=Ge;break;default:n=Ue}return r=Mf.bind(null,e),n=Fe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ie(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(yd!==0&&yd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=X;return r=at(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Fd(e,r,t),jf(e,ze()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(df())return null;Fd(e,t,!0)}function Pf(){Sp(function(){Zu&6?Fe(Ve,kf):Af()})}function Ff(){if(Ef===0){var e=Ia;e===0&&(e=tt,tt<<=1,!(tt&261888)&&(tt=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:_n(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[St]||null).action),o=r.submitter;o&&(t=(t=o[St]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new zn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);Zs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Zs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<pi.length;Rf++){var zf=pi[Rf];mi(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}mi(ai,`onAnimationEnd`),mi(oi,`onAnimationIteration`),mi(si,`onAnimationStart`),mi(`dblclick`,`onDoubleClick`),mi(`focusin`,`onFocus`),mi(`focusout`,`onBlur`),mi(ci,`onTransitionRun`),mi(li,`onTransitionStart`),mi(ui,`onTransitionCancel`),mi(di,`onTransitionEnd`),Bt(`onMouseEnter`,[`mouseout`,`mouseover`]),Bt(`onMouseLeave`,[`mouseout`,`mouseover`]),Bt(`onPointerEnter`,[`pointerout`,`pointerover`]),Bt(`onPointerLeave`,[`pointerout`,`pointerover`]),zt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),zt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),zt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),zt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`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(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(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){yi(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){yi(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[wt];n===void 0&&(n=t[wt]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Lt.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(Th(t)){case 2:var i=yh;break;case 8:i=bh;break;default:i=xh}n=i.bind(null,t,n,e),i=void 0,!On||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 qf(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=jt(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}Tn(function(){var r=a,i=bn(n),s=[];a:{var c=fi.get(e);if(c!==void 0){var l=zn,u=e;switch(e){case`keypress`:if(Pn(n)===0)break a;case`keydown`:case`keyup`:l=nr;break;case`focusin`:u=`focus`,l=qn;break;case`focusout`:u=`blur`,l=qn;break;case`beforeblur`:case`afterblur`:l=qn;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=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ar;break;case ai:case oi:case si:l=Jn;break;case di:l=or;break;case`scroll`:case`scrollend`:l=Vn;break;case`wheel`:l=sr;break;case`copy`:case`cut`:case`paste`:l=Yn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=rr;break;case`submit`:l=ir;break;case`toggle`:case`beforetoggle`:l=cr}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=En(m,p),g!=null&&d.push(Jf(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(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==yn&&(u=n.relatedTarget||n.fromElement)&&(jt(u)||u[Ct]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?jt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Gn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=rr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Nt(c),h=l==null?u:Nt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,jt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?Nt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Or;else if(Sr(c)){if(kr)_=Rr;else{_=Ir;var v=Fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&mn(r.elementType)&&(_=Or):_=Lr;if(_&&=_(e,r)){Cr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Nt(r):window,e){case`focusin`:(Sr(v)||v.contentEditable===`true`)&&(Yr=v,Xr=r,Zr=null);break;case`focusout`:Zr=Xr=Yr=null;break;case`mousedown`:Qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Qr=!1,$r(s,n,i);break;case`selectionchange`:if(Jr)break;case`keydown`:case`keyup`:$r(s,n,i)}var y;if(ur)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else vr?gr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(pr&&n.locale!==`ko`&&(vr||b!==`onCompositionStart`?b===`onCompositionEnd`&&vr&&(y=Nn()):(An=i,jn=`value`in An?An.value:An.textContent,vr=!0)),v=Yf(r,b),0<v.length&&(b=new Xn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=_r(n),y!==null&&(b.data=y)))),(y=fr?yr(e,n):br(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new Xn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Hf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(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=En(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=En(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(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=En(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=En(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
9
|
-
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||un(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&un(e,``+r);else return;break;case`className`:Jt(e,`class`,r);break;case`tabIndex`:Jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Jt(e,n,r);break;case`style`:pn(e,r,o);return;case`data`:if(t!==`object`){Jt(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=_n(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`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=_n(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=vn);return;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;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));o?.__html!==n&&(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=_n(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`credentialless`: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`:Z(`beforetoggle`,e),Z(`toggle`,e),qt(e,`popover`,r);break;case`xlinkActuate`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:qt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=hn.get(n)||n,qt(e,n,r);else return}Gt=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:pn(e,r,o);return;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));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)un(e,r);else if(typeof r==`number`||typeof r==`bigint`)un(e,``+r);else return;break;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=vn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Rt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[St]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Gt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):qt(e,n,r)}return}Gt=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`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:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Z(`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:np(e,t,r,d,n,null)}}an(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`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:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&sn(e,!!r,n,!0):sn(e,!!r,t,!1);return;case`textarea`:for(s in Z(`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:np(e,t,s,c,n,null)}ln(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:np(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Z(Bf[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`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:np(e,t,u,r,n,null)}return;default:if(mn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(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)||np(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`:m!==f&&(Gt=!0),o=m;break;case`name`:m!==f&&(Gt=!0),a=m;break;case`checked`:m!==f&&(Gt=!0),u=m;break;case`defaultChecked`:m!==f&&(Gt=!0),d=m;break;case`value`:m!==f&&(Gt=!0),s=m;break;case`defaultValue`:m!==f&&(Gt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}rn(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)||np(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`:o!==l&&(Gt=!0),p=o;break;case`defaultValue`:o!==l&&(Gt=!0),c=o;break;case`multiple`:o!==l&&(Gt=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?sn(e,!!n,n?[]:``,!1):sn(e,!!n,t,!0)):sn(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:np(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`:a!==o&&(Gt=!0),p=a;break;case`defaultValue`:a!==o&&(Gt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}cn(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:np(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`:p!==m&&(Gt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(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)&&np(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:np(e,t,u,p,r,m)}return;default:if(mn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(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||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(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||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){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&&sp(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&&sp(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 lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(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 pp(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 mp(e,t,n,r){return n=dp(n).createElement(e),n[xt]=r,n[St]=t,ip(n,e,t),Ft(n),n}function hp(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 gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(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),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Ep(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 Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=b(e),hm(e,t))}Lp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=dp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Jp.length;n++){var r=Jp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Jp[t++]=r}Jp.length=t}};function qp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Jp=[],Yp=!1;function Xp(e,t,n){Jp.push({fragmentInstance:e,observer:t,instance:n}),Yp||(Yp=!0,gm(function(){Yp=!1;var e=Jp;Jp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,Zp,e,void 0,void 0),e};function Zp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Qp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Qp(e,t,n,r,i){var a=jt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),$p(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),$p(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function em(e,t){return e=b(e),tm(e,t),!1}function tm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Jp.length;i++){var a=Jp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Jp[r++]=a)}Jp.length=r,n.observe(e)}),tm(e,t))}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Xp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function im(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`:im(n),At(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function am(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[Ot])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=dm(e.nextSibling),e===null)break}return null}function om(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e){return e.data===`$?`||e.data===`$~`}function lm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function um(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 dm(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 fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(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 hm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gm(e){xp(function(){xp(function(t){return e(t)})})}function _m(e,t,n){switch(t=dp(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 vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===vn&&(e.onclick=null),At(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);At(e)}var bm=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=zd();return e||t}function Tm(e){var t=Mt(e);t!==null&&t.tag===5&&t.type===`form`?$s(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=nn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),Ft(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+nn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nn(n.imageSizes)+`"]`)):i+=`[href="`+nn(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[kt]=!0,o.onload=o.onerror=function(){It(o)}),Ft(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nn(r)+`"][href="`+nn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),Ft(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Pt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Ft(c),ip(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,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Pt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Ft(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Pt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Ft(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=xe.current)?Sm(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`?(n=Im(n.href),t=Pt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Im(n.href);var o=Pt(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(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bm.set(e,o)),zm(a,e,o,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`?(n=Bm(n),t=Pt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+nn(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[kt]){r.loading=1;return}}else t=e.createElement(`link`),t[kt]=!0,t.onload=t.onerror=It.bind(null,t),ip(t,`link`,n),Ft(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+nn(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nn(n.href)+`"]`);if(r)return t.instance=r,Ft(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ft(r),ip(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Ft(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Ft(a),a):(r=n,(a=bm.get(o))&&(r=D({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ft(a),ip(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,Um(r,n.precedence,e));return t.instance}function Um(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 Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,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[Ot]||a[xt]||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 Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(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 Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(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=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ft(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(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=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.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=ih.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 lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function uh(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=ut(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ut(0),this.hiddenUpdates=ut(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ji(3,null,null,t),e.current=a,a.stateNode=e,t=ka(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fo(a),e}function fh(e){return e?(e=ki,e):ki}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=mo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ho(e,r,t),n!==null&&(Pd(n,e,t),go(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=Ei(e,67108864);t!==null&&Pd(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=jd();t=gt(t);var n=Ei(e,t);n!==null&&Pd(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)qf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=Mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=it(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ze(o);s.entanglements[1]|=c,o&=~c}Df(a),!(Zu&6)&&(gd=ze()+500,Of(0,!1))}}break;case 31:case 13:s=Ei(a,2),s!==null&&Pd(s,a,2),zd(),hh(a,2)}if(a=Sh(r),a===null&&qf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function Sh(e){return e=bn(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=jt(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 Ch=e,null}function Th(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Be()){case Ve:return 2;case He:return 8;case Ue:case We:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(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=Mt(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=jt(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,yt(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,yt(e.priority,function(){_h(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 Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yn=r,n.target.dispatchEvent(r),yn=null}else return t=Mt(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=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(wh(r||n)===null)continue;break}var a=Mt(n);a!==null&&(e.splice(t,3),t-=3,Zs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.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[St]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[St]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){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 Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,jd(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),zd(),t[Ct]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=vt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.0`)throw Error(i(527,Jh,`19.3.0`));R.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:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Je=Xh.inject(Yh),Ye=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=yc,s=J,c=bc;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=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[Ct]=t.current,Gf(e),new Kh(t)}})),_=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=g()})),v=`modulepreload`,y=function(e,t){return new URL(e,t).href},b={},x=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=function(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href},a=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=y(e,n),e=i(e),e in b)return;b[e]=!0;let t=e.endsWith(`.css`);for(let n=a.length-1;n>=0;n--){let r=a[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}let r=document.createElement(`link`);if(r.rel=t?`stylesheet`:v,t||(r.as=`script`),r.crossOrigin=``,r.href=e,s&&r.setAttribute(`nonce`,s),document.head.appendChild(r),t)return new Promise((t,n)=>{r.addEventListener(`load`,t),r.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},S=l(p(),1),C=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,w=/^[\\/]{2}/;function T(e,t){return t+e.replace(/\\/g,`/`)}var E=`popstate`;function D(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function O(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=N(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),j(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:M(t))}function r(e,t){A(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return P(t,n,r,e)}function k(e,t){if(e===!1||e==null)throw Error(t)}function A(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ee(){return Math.random().toString(36).substring(2,10)}function te(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function j(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?N(t):t,state:n,key:t&&t.key||r||ee(),mask:i}}function M({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function N(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function P(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=D(e)?e:j(h.location,e,t);n&&n(r,e),l=u()+1;let d=te(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=D(e)?e:j(h.location,e,t);n&&n(r,e),l=u();let i=te(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ne(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(E,d),c=e,()=>{i.removeEventListener(E,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ne(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),k(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:M(t);return i=i.replace(/ $/,`%20`),!n&&w.test(i)&&(i=r+i),new URL(i,r)}function F(e,t,n=`/`){return re(e,t,n,!1)}function re(e,t,n,r,i){let a=z((typeof t==`string`?N(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ie(e),s=null,c=ve(a);for(let e=0;s==null&&e<o.length;++e)s=me(o[e],c,r);return s}function ie(e){let t=ae(e);return se(t),t}function ae(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;k(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ee([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(k(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ae(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:L(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=_e(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of oe(e.path))a(e,t,!0,n)}),t}function oe(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=oe(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function se(e){e.sort((e,t)=>e.score===t.score?R(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ce=/^:[\w-]+$/,le=3,ue=2,de=1,fe=10,I=-2,pe=e=>e===`*`;function L(e,t){let n=e.split(`/`),r=n.length;return n.some(pe)&&(r+=I),t&&(r+=ue),n.filter(e=>!pe(e)).reduce((e,t)=>e+(ce.test(t)?le:t===``?de:fe),r)}function R(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function me(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ge(u,l,s.matcher,s.compiledParams):he(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=he({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ee([a,d.pathname]),pathnameBase:Oe(Ee([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ee([a,d.pathnameBase]))}return o}function he(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_e(e.path,e.caseSensitive,e.end);return ge(e,t,n,r)}function ge(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=De(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=De(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function _e(e,t=!1,n=!0){A(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ve(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return A(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ye(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?N(e):e,a;return n?(n=Te(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?be(n.substring(1),`/`):be(n,t)):a=t,{pathname:a,search:ke(r),hash:Ae(i)}}function be(e,t){let n=De(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function xe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Se(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ce(e){let t=Se(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function we(e,t,n,r=!1){let i;typeof e==`string`?i=N(e):(i={...e},k(!i.pathname||!i.pathname.includes(`?`),xe(`?`,`pathname`,`search`,i)),k(!i.pathname||!i.pathname.includes(`#`),xe(`#`,`pathname`,`hash`,i)),k(!i.search||!i.search.includes(`#`),xe(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ye(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Te=e=>e.replace(/[\\/]{2,}/g,`/`),Ee=e=>Te(e.join(`/`));function De(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Oe=e=>De(e).replace(/^\/*/,`/`),ke=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ae=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,je=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Me(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ne(e){return Ee(e.map(e=>e.route.path).filter(Boolean))||`/`}var Pe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Fe(e,t){let n=e;if(typeof n!=`string`||!C.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Pe)try{let e=new URL(window.location.href),r=w.test(n)?new URL(T(n,e.protocol)):new URL(n),a=z(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{A(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ie=new URL(`http://localhost`);function Le(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Ie)}catch{return Ie}}function Re(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ze(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Be(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Re(i,n),s=!Re(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ze(e,i)||!Re(i,a)))throw Error(`External navigation is not allowed`)}var Ve=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ve);var He=[`GET`,...Ve];new Set(He);var Ue=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function We(e){try{return Ue.includes(new URL(e).protocol)}catch{return!1}}var Ge=S.createContext(null);Ge.displayName=`DataRouter`;var Ke=S.createContext(null);Ke.displayName=`DataRouterState`;var qe=S.createContext(!1);function Je(){return S.useContext(qe)}var Ye=S.createContext({isTransitioning:!1});Ye.displayName=`ViewTransition`;var Xe=S.createContext(new Map);Xe.displayName=`Fetchers`;var Ze=S.createContext(null);Ze.displayName=`Await`;var Qe=S.createContext(null);Qe.displayName=`Navigation`;var $e=S.createContext(null);$e.displayName=`Location`;var et=S.createContext({outlet:null,matches:[],isDataRoute:!1});et.displayName=`Route`;var tt=S.createContext(null);tt.displayName=`RouteError`;var nt=`REACT_ROUTER_ERROR`,rt=`REDIRECT`,it=`ROUTE_ERROR_RESPONSE`;function at(e){if(e.startsWith(`${nt}:${rt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ot(e){if(e.startsWith(`${nt}:${it}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new je(t.status,t.statusText,t.data)}catch{}}function st(e,{relative:t}={}){k(ct(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(Qe),{hash:i,pathname:a,search:o}=ht(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ee([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ct(){return S.useContext($e)!=null}function lt(){return k(ct(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext($e).location}var ut=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function dt(e){S.useContext(Qe).static||S.useLayoutEffect(e)}function ft(){let{isDataRoute:e}=S.useContext(et);return e?Mt():pt()}function pt(){k(ct(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Ge),{basename:t,navigator:n}=S.useContext(Qe),{matches:r}=S.useContext(et),{pathname:i}=lt(),a=JSON.stringify(Ce(r)),o=S.useRef(!1);return dt(()=>{o.current=!0}),S.useCallback((r,s={})=>{if(A(o.current,ut),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=we(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ee([t,c.pathname])),Be(typeof r==`string`?r:M(r),n.createHref(c),Le(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}S.createContext(null);function mt(){let{matches:e}=S.useContext(et);return e[e.length-1]?.params??{}}function ht(e,{relative:t}={}){let{matches:n}=S.useContext(et),{pathname:r}=lt(),i=JSON.stringify(Ce(n));return S.useMemo(()=>we(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function gt(e,t){return _t(e,t)}function _t(e,t,n){k(ct(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(Qe),{matches:i}=S.useContext(et),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Pt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
8
|
+
`+e.stack}}var Pe=Object.prototype.hasOwnProperty,Fe=t.unstable_scheduleCallback,Ie=t.unstable_cancelCallback,Le=t.unstable_shouldYield,Re=t.unstable_requestPaint,ze=t.unstable_now,Be=t.unstable_getCurrentPriorityLevel,Ve=t.unstable_ImmediatePriority,He=t.unstable_UserBlockingPriority,Ue=t.unstable_NormalPriority,We=t.unstable_LowPriority,Ge=t.unstable_IdlePriority,Ke=t.log,qe=t.unstable_setDisableYieldValue,Je=null,Ye=null;function Xe(e){if(typeof Ke==`function`&&qe(e),Ye&&typeof Ye.setStrictMode==`function`)try{Ye.setStrictMode(Je,e)}catch{}}var Ze=Math.clz32?Math.clz32:et,Qe=Math.log,$e=Math.LN2;function et(e){return e>>>=0,e===0?32:31-(Qe(e)/$e|0)|0}var tt=256,nt=262144,rt=4194304;function it(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&-e;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 at(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=it(n))):i=it(o):i=it(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=it(n))):i=it(o)):i=it(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 ot(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function st(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ze(n),i=1<<r;t|=e[r],n&=~i}return t}function ct(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 lt(){var e=rt;return rt<<=1,!(rt&62914560)&&(rt=4194304),e}function ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function dt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ft(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-Ze(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&&pt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function pt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ht(e,t){var n=t&-t;return n=n&42?1:gt(n),(n&(e.suspendedLanes|t))===0?n:0}function gt(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 _t(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function vt(){var e=R.p;return e===0?(e=window.event,e===void 0?32:Th(e.type)):e}function yt(e,t){var n=R.p;try{return R.p=e,t()}finally{R.p=n}}var bt=Math.random().toString(36).slice(2),xt=`__reactFiber$`+bt,St=`__reactProps$`+bt,Ct=`__reactContainer$`+bt,wt=`__reactEvents$`+bt,Tt=`__reactListeners$`+bt,Et=`__reactHandles$`+bt,Dt=`__reactResources$`+bt,Ot=`__reactMarker$`+bt,kt=`__reactLoad$`+bt;function At(e){delete e[xt],delete e[St],delete e[Tt],delete e[Et]}function jt(e){var t;if(t=e[xt])return t;for(var n=e.parentNode;n;){if(t=n[Ct]||n[xt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=mm(e);e!==null;){if(n=e[xt])return n;e=mm(e)}return t}e=n,n=e.parentNode}return null}function Mt(e){if(e=e[xt]||e[Ct]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Pt(e){var t=e[Dt];return t||=e[Dt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ft(e){e[Ot]=!0}function It(e){e[kt]=void 0}var Lt=new Set,Rt={};function zt(e,t){Bt(e,t),Bt(e+`Capture`,t)}function Bt(e,t){for(Rt[e]=t,e=0;e<t.length;e++)Lt.add(t[e])}var Vt=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]*$`),Ht={},Ut={};function Wt(e){return Pe.call(Ut,e)?!0:Pe.call(Ht,e)?!1:Vt.test(e)?Ut[e]=!0:(Ht[e]=!0,!1)}var Gt=!1;function Kt(){var e=Gt;return Gt=!1,e}function qt(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 Jt(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 Yt(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 Xt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Zt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Qt(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 $t(e){if(!e._valueTracker){var t=Zt(e)?`checked`:`value`;e._valueTracker=Qt(e,t,``+e[t])}}function en(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Zt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var tn=/[\n"\\]/g;function nn(e){return e.replace(tn,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function rn(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=``+Xt(t)):e.value!==``+Xt(t)&&(e.value=``+Xt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):on(e,Xt(n)):o===`number`&&e.value==t?on(e,Xt(e.value)):on(e,Xt(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=``+Xt(s):e.removeAttribute(`name`)}function an(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)){$t(e);return}n=n==null?``:``+Xt(n),t=t==null?n:``+Xt(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),$t(e)}function on(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function sn(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=``+Xt(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 cn(e,t,n){if(t!=null&&(t=``+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Xt(n)}function ln(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(pe(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Xt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),$t(e)}function un(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dn=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 fn(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||dn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function pn(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]=``,Gt=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(fn(e,a,r),Gt=!0)}else for(var o in t)t.hasOwnProperty(o)&&fn(e,o,t[o])}function mn(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 hn=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`],[`maskType`,`mask-type`],[`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`]]),gn=/^[\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 _n(e){return gn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function vn(){}var yn=null;function bn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xn=null,Sn=null;function Cn(e){var t=Mt(e);if(t&&(e=t.stateNode)){var n=e[St]||null;a:switch(e=t.stateNode,t.type){case`input`:if(rn(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="`+nn(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[St]||null;if(!a)throw Error(i(90));rn(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&&en(r)}break a;case`textarea`:cn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&sn(e,!!n.multiple,t,!1)}}}var wn=!1;function Tn(e,t,n){if(wn)return e(t,n);wn=!0;try{return e(t)}finally{if(wn=!1,(xn!==null||Sn!==null)&&(zd(),xn&&(t=xn,e=Sn,Sn=xn=null,Cn(t),e)))for(t=0;t<e.length;t++)Cn(e[t])}}function En(e,t){var n=e.stateNode;if(n===null)return null;var r=n[St]||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 Dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),On=!1;if(Dn)try{var kn={};Object.defineProperty(kn,"passive",{get:function(){On=!0}}),window.addEventListener(`test`,kn,kn),window.removeEventListener(`test`,kn,kn)}catch{On=!1}var An=null,jn=null,Mn=null;function Nn(){if(Mn)return Mn;var e,t=jn,n=t.length,r,i=`value`in An?An.value:An.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 Mn=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 Fn(){return!0}function In(){return!1}function Ln(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)?Fn:In,this.isPropagationStopped=In,this}return D(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=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zn=Ln(Rn),Bn=D({},Rn,{view:0,detail:0}),Vn=Ln(Bn),Hn,Un,Wn,Gn=D({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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!==Wn&&(Wn&&e.type===`mousemove`?(Hn=e.screenX-Wn.screenX,Un=e.screenY-Wn.screenY):Un=Hn=0,Wn=e),Hn)},movementY:function(e){return`movementY`in e?e.movementY:Un}}),Kn=Ln(Gn),qn=Ln(D({},Gn,{dataTransfer:0})),Jn=Ln(D({},Bn,{relatedTarget:0})),Yn=Ln(D({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0})),Xn=Ln(D({},Rn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Zn=Ln(D({},Rn,{data:0})),Qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},$n={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`},er={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=er[e])?!!t[e]:!1}function nr(){return tr}var rr=Ln(D({},Bn,{key:function(e){if(e.key){var t=Qn[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`?$n[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,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}})),ir=Ln(D({},Gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ar=Ln(D({},Rn,{submitter:0})),or=Ln(D({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr})),sr=Ln(D({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),cr=Ln(D({},Gn,{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})),lr=Ln(D({},Rn,{newState:0,oldState:0,source:0})),ur=[9,13,27,32],dr=Dn&&`CompositionEvent`in window,B=null;Dn&&`documentMode`in document&&(B=document.documentMode);var fr=Dn&&`TextEvent`in window&&!B,pr=Dn&&(!dr||B&&8<B&&11>=B),mr=` `,hr=!1;function gr(e,t){switch(e){case`keyup`:return ur.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function _r(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var vr=!1;function yr(e,t){switch(e){case`compositionend`:return _r(t);case`keypress`:return t.which===32?(hr=!0,mr):null;case`textInput`:return e=t.data,e===mr&&hr?null:e;default:return null}}function br(e,t){if(vr)return e===`compositionend`||!dr&&gr(e,t)?(e=Nn(),Mn=jn=An=null,vr=!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 pr&&t.locale!==`ko`?null:t.data;default:return null}}var xr={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 Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!xr[e.type]:t===`textarea`}function Cr(e,t,n,r){xn?Sn?Sn.push(r):Sn=[r]:xn=r,t=Yf(t,`onChange`),0<t.length&&(n=new zn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var wr=null,Tr=null;function Er(e){Hf(e,0)}function Dr(e){if(en(Nt(e)))return e}function Or(e,t){if(e===`change`)return t}var kr=!1;if(Dn){var Ar;if(Dn){var jr=`oninput`in document;if(!jr){var Mr=document.createElement(`div`);Mr.setAttribute(`oninput`,`return;`),jr=typeof Mr.oninput==`function`}Ar=jr}else Ar=!1;kr=Ar&&(!document.documentMode||9<document.documentMode)}function Nr(){wr&&(wr.detachEvent(`onpropertychange`,Pr),Tr=wr=null)}function Pr(e){if(e.propertyName===`value`&&Dr(Tr)){var t=[];Cr(t,Tr,e,bn(e)),Tn(Er,t)}}function Fr(e,t,n){e===`focusin`?(Nr(),wr=t,Tr=n,wr.attachEvent(`onpropertychange`,Pr)):e===`focusout`&&Nr()}function Ir(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Dr(Tr)}function Lr(e,t){if(e===`click`)return Dr(t)}function Rr(e,t){if(e===`input`||e===`change`)return Dr(t)}function zr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Br=typeof Object.is==`function`?Object.is:zr;function Vr(e,t){if(Br(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(!Pe.call(t,i)||!Br(e[i],t[i]))return!1}return!0}function Hr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Wr(e,t){var n=Ur(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=Ur(n)}}function Gr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hr(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=Hr(e.document)}return t}function qr(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 Jr=Dn&&`documentMode`in document&&11>=document.documentMode,Yr=null,Xr=null,Zr=null,Qr=!1;function $r(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Qr||Yr==null||Yr!==Hr(r)||(r=Yr,`selectionStart`in r&&qr(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}),Zr&&Vr(Zr,r)||(Zr=r,r=Yf(Xr,`onSelect`),0<r.length&&(t=new zn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Yr)))}function ei(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ti={animationend:ei(`Animation`,`AnimationEnd`),animationiteration:ei(`Animation`,`AnimationIteration`),animationstart:ei(`Animation`,`AnimationStart`),transitionrun:ei(`Transition`,`TransitionRun`),transitionstart:ei(`Transition`,`TransitionStart`),transitioncancel:ei(`Transition`,`TransitionCancel`),transitionend:ei(`Transition`,`TransitionEnd`)},ni={},ri={};Dn&&(ri=document.createElement(`div`).style,`AnimationEvent`in window||(delete ti.animationend.animation,delete ti.animationiteration.animation,delete ti.animationstart.animation),`TransitionEvent`in window||delete ti.transitionend.transition);function ii(e){if(ni[e])return ni[e];if(!ti[e])return e;var t=ti[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ri)return ni[e]=t[n];return e}var ai=ii(`animationend`),oi=ii(`animationiteration`),si=ii(`animationstart`),ci=ii(`transitionrun`),li=ii(`transitionstart`),ui=ii(`transitioncancel`),di=ii(`transitionend`),fi=new Map,pi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);pi.push(`scrollEnd`);function mi(e,t){fi.set(e,t),zt(t,[e])}var hi=0;function gi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=bd.identifierPrefix;var n=hi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function _i(e){if(e==null||typeof e==`string`)return e;var t=null,n=Od;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function vi(e,t){return e=_i(e),t=_i(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var yi=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)},bi=[],xi=0,Si=0;function Ci(){for(var e=xi,t=Si=xi=0;t<e;){var n=bi[t];bi[t++]=null;var r=bi[t];bi[t++]=null;var i=bi[t];bi[t++]=null;var a=bi[t];if(bi[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&&Di(n,i,a)}}function wi(e,t,n,r){bi[xi++]=e,bi[xi++]=t,bi[xi++]=n,bi[xi++]=r,Si|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ti(e,t,n,r){return wi(e,t,n,r),Oi(e)}function Ei(e,t){return wi(e,null,null,t),Oi(e)}function Di(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-Ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Oi(e){if(50<kd)throw kd=0,Ad=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ki={};function Ai(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 ji(e,t,n,r){return new Ai(e,t,n,r)}function Mi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ni(e,t){var n=e.alternate;return n===null?(n=ji(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&1206910976,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 Pi(e,t){e.flags&=1206910978;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 Fi(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Mi(r)&&(s=1);else if(typeof r==`string`)s=Ym(e,n,ye.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ae:return e=ji(31,n,t,a),e.elementType=ae,e.lanes=o,e;case ee:return Ii(n.children,a,o,t);case te:s=8,a|=24;break;case j:return e=ji(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case ne:return e=ji(13,n,t,a),e.elementType=ne,e.lanes=o,e;case F:return e=ji(19,n,t,a),e.elementType=F,e.lanes=o,e;case oe:case ce:return e=a|32,e=ji(30,n,t,e),e.elementType=ce,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ji(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Ii(e,t,n,r){return e=ji(7,e,r,t),e.lanes=n,e}function Li(e,t,n){return e=ji(6,e,null,t),e.lanes=n,e}function Ri(e){var t=ji(18,null,null,0);return t.stateNode=e,t}function zi(e,t,n){return t=ji(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Bi=new WeakMap;function Vi(e,t){if(typeof e==`object`&&e){var n=Bi.get(e);return n===void 0?(t={value:e,source:t,stack:Ne(t)},Bi.set(e,t),t):n}return{value:e,source:t,stack:Ne(t)}}var Hi=[],Ui=0,Wi=null,Gi=0,Ki=[],qi=0,V=null,Ji=1,Yi=``;function Xi(e,t){Hi[Ui++]=Gi,Hi[Ui++]=Wi,Wi=e,Gi=t}function Zi(e,t,n){Ki[qi++]=Ji,Ki[qi++]=Yi,Ki[qi++]=V,V=e;var r=Ji;e=Yi;var i=32-Ze(r)-1;r&=~(1<<i),n+=1;var a=32-Ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ji=1<<32-Ze(t)+i|n<<i|r,Yi=a+e}else Ji=1<<a|n<<i|r,Yi=e}function Qi(e){e.return!==null&&(Xi(e,1),Zi(e,1,0))}function $i(e){for(;e===Wi;)Wi=Hi[--Ui],Hi[Ui]=null,Gi=Hi[--Ui],Hi[Ui]=null;for(;e===V;)V=Ki[--qi],Ki[qi]=null,Yi=Ki[--qi],Ki[qi]=null,Ji=Ki[--qi],Ki[qi]=null}function ea(e,t){Ki[qi++]=Ji,Ki[qi++]=Yi,Ki[qi++]=V,Ji=t.id,Yi=t.overflow,V=e}var ta=null,na=null,H=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(Vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[xt]=e,t[St]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<Bf.length;n++)Z(Bf[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),an(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),ln(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||tp(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=vn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ta=e.return;ta;)switch(ta.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ta=ta.return}}function la(e){if(e!==ta)return!1;if(!H)return ca(e),H=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||hp(e.type,e.memoizedProps)),n=!n),n&&na&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=pm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));na=pm(e)}else t===27?(t=na,wp(e.type)?(e=fm,fm=null,na=e):na=t):na=ta?dm(e.stateNode.nextSibling):null;return!0}function ua(){na=ta=null,H=!1}function da(){var e=ra;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=_e(null),ma=null,ha=null;function ga(e,t,n){z(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,ve(pa)}function va(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 ya(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),va(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),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):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 ba(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;Br(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=[lh]:e.push(lh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!Br(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=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()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,U={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ka(){return{controller:new Ea,data:new Map,refCount:0}}function Aa(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function ja(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Ma=null;function Na(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Pa=null,Fa=0,Ia=0,La=null;function Ra(e,t){if(Pa===null){var n=Pa=[];Fa=0,Ia=Ff(),La={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Fa++,t.then(za,za),t}function za(){if(--Fa===0&&(Ma=null,Pa!==null)){La!==null&&(La.status=`fulfilled`);var e=Pa;Pa=null,Ia=0,La=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ba(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 Va=L.S;L.S=function(e,t){if(hd=ze(),typeof t==`object`&&t&&typeof t.then==`function`&&Ra(e,t),Ma!==null)for(var n=xf;n!==null;)ja(n,Ma),n=n.next;if(n=e.types,n!==null){for(var r=xf;r!==null;)ja(r,n),r=r.next;if(Ia!==0){r=Ma,r===null&&(r=Ma=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Va!==null&&Va(e,t)};var Ha=_e(null);function Ua(){var e=Ha.current;return e===null?Qu.pooledCache:e}function Wa(e,t){t===null?z(Ha,Ha.current):z(Ha,t.pool)}function Ga(){var e=Ua();return e===null?null:{parent:U._currentValue,pool:e}}var Ka=Error(i(460)),qa=Error(i(474)),Ja=Error(i(542)),Ya={then:function(){}};function Xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Za(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(vn,vn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,to(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(vn,vn);else{if(e=Qu,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,to(e),e}throw $a=t,Ka}}function Qa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?($a=e,Ka):e}}var $a=null;function eo(){if($a===null)throw Error(i(459));var e=$a;return $a=null,e}function to(e){if(e===Ka||e===Ja)throw Error(i(483))}var no=null,ro=0;function io(e){var t=ro;return ro+=1,no===null&&(no=[]),Za(no,e,t)}function ao(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function oo(e,t){throw t.$$typeof===O?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function so(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=Ni(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|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Li(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===ee?(e=d(e,t,n.props.children,r,n.key),ao(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ie&&Qa(i)===t.type)?(t=a(t,n.props),ao(t,n),t.return=e,t):(t=Fi(n.type,n.key,n.props,null,e.mode,r),ao(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=zi(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=Ii(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=Li(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Fi(t.type,t.key,t.props,null,e.mode,n),ao(n,t),n.return=e,n;case A:return t=zi(t,e.mode,n),t.return=e,t;case ie:return t=Qa(t),f(e,t,n)}if(pe(t)||de(t))return t=Ii(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,io(t),n);if(t.$$typeof===N)return f(e,wa(e,t),n);oo(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 k:return n.key===i?l(e,t,n,r):null;case A:return n.key===i?u(e,t,n,r):null;case ie:return n=Qa(n),p(e,t,n,r)}if(pe(n)||de(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,io(n),r);if(n.$$typeof===N)return p(e,t,wa(e,n),r);oo(e,n)}return null}function m(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 k:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case A:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ie:return r=Qa(r),m(e,t,n,r,i)}if(pe(r)||de(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,io(r),i);if(r.$$typeof===N)return m(e,t,n,wa(t,r),i);oo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),H&&Xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return H&&Xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),H&&Xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),H&&Xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return H&&Xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),H&&Xi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===ee&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case k:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===ee){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),ao(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===ie&&Qa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ao(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===ee?(c=Ii(o.props.children,e.mode,c,o.key),ao(c,o),c.return=e,e=c):(c=Fi(o.type,o.key,o.props,null,e.mode,c),ao(c,o),c.return=e,e=c)}return s(e);case A: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=zi(o,e.mode,c),c.return=e,e=c}return s(e);case ie:return o=Qa(o),_(e,r,o,c)}if(pe(o))return h(e,r,o,c);if(de(o)){if(l=de(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,io(o),c);if(o.$$typeof===N)return _(e,r,wa(e,o),c);oo(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=Li(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{ro=0;var i=_(e,t,n,r);return no=null,i}catch(t){if(t===Ka||t===Ja)throw t;var a=ji(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var co=so(!0),lo=so(!1),uo=!1;function fo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function po(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 mo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Zu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Oi(e),Di(e,null,n),t}return wi(e,r,t,n),Oi(e)}function go(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,mt(e,n)}}function _o(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 vo=!1;function yo(){if(vo){var e=La;if(e!==null)throw e}}function bo(e,t,n,r){vo=!1;var i=e.updateQueue;uo=!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 f=s.lane&-536870913,p=f!==s.lane;if(p?(X&f)===f:(r&f)===f){f!==0&&f===Ia&&(vo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=D({},d,f);break a;case 2:uo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,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),od|=o,e.lanes=o,e.memoizedState=d}}function xo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function So(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)xo(n[e],t)}var Co=_e(null),wo=_e(0);function To(e,t){e=id,z(wo,e),z(Co,t),id=e|t.baseLanes}function Eo(){z(wo,id),z(Co,Co.current)}function Do(){id=wo.current,ve(Co),ve(wo)}var Oo=_e(null),ko=null;function Ao(e){var t=e.alternate;z(Fo,Fo.current&1),z(Oo,e),ko===null&&(t===null||Co.current!==null||t.memoizedState!==null)&&(ko=e)}function jo(e){z(Fo,Fo.current),z(Oo,e),ko===null&&(ko=e)}function Mo(e){e.tag===22?(z(Fo,Fo.current),z(Oo,e),ko===null&&(ko=e)):No()}function No(){z(Fo,Fo.current),z(Oo,Oo.current)}function Po(e){ve(Oo),ko===e&&(ko=null),ve(Fo)}var Fo=_e(0);function Io(e,t){z(Oo,Oo.current),z(Fo,t)}function Lo(e){ve(Fo),ve(Oo),ko===e&&(ko=null)}function Ro(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||cm(n)||lm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){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 zo=0,W=null,Bo=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Br(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return zo=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?q:fc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){L.H=dc;var t=Bo!==null&&Bo.next!==null;if(zo=0,Vo=Bo=W=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||kc||(e=e.dependencies,e!==null&&xa(e)&&(kc=!0))}function $o(e,t,n,r){W=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=Bo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}L.H=pc,o=t(n,r)}while(Uo);return o}function es(){var e=L.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(Bo===null?null:Bo.memoizedState)!==e&&(W.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}zo=0,Vo=Bo=W=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(Bo===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=Bo.next;var t=Vo===null?W.memoizedState:Vo.next;if(t!==null)Vo=t,Bo=e;else{if(e===null)throw W.alternate===null?Error(i(467)):Error(i(310));Bo=e,e={memoizedState:Bo.memoizedState,baseState:Bo.baseState,baseQueue:Bo.baseQueue,queue:Bo.queue,next:null},Vo===null?W.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Za(qo,e,t),t=W,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?q:fc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===le)return;if(e.$$typeof===N)return Ca(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.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=os(),W.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]=se;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(as(),Bo,e)}function fs(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?(zo&f)===f:(X&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===Ia&&(d=!0);else if((zo&p)===p){u=u.next,p===Ia&&(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,W.lanes|=p,od|=p;f=u.action,Wo&&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,W.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Br(o,e.memoizedState)&&(kc=!0,d&&(n=La,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 ps(e){var t=as(),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);Br(o,t.memoizedState)||(kc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=W,a=as(),o=H;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Br((Bo||a).memoizedState,n);if(s&&(a.memoizedState=n,kc=!0),a=a.queue,zs(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Qu===null)throw Error(i(349));o||zo&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=os(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Br(e,n)}catch{return!0}}function ys(e){var t=Ei(e,2);t!==null&&Pd(t,e,2)}function bs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){Xe(!0);try{n()}finally{Xe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,Bo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(cc(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)}};L.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=L.T,o={};o.types=a===null?null:a.types,L.T=o;try{var s=n(i,r),c=L.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),L.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if(H){var n=Qu.formState;if(n!==null){a:{var r=W;if(H){if(na){b:{for(var i=na,a=ia;i.nodeType!==8;){if(!a){i=null;break b}if(i=dm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){na=dm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=ac.bind(null,W,r),r.dispatch=n,r=bs(!1),a=sc.bind(null,W,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(as(),Bo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===Ka?Ja:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=as(),n=Bo;if(n!==null)return js(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=os(),W.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 Fs(){return as().memoizedState}function Is(e,t,n,r){var i=is();W.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;Bo!==null&&r!==null&&Xo(r,Bo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(W.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=os(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=as().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(Zu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(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 Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function G(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||zo&1073741824&&!(X&261930)?e.memoizedState=t:(e.memoizedState=n,e=Md(),W.lanes|=e,od|=e,n)}function Ys(e,t,n,r){return Br(n,t)?n:Co.current===null?!(zo&106)||zo&1073741824&&!(X&261930)?(kc=!0,e.memoizedState=n):(e=Md(),W.lanes|=e,od|=e,t):(e=Js(e,n,r),Br(e,t)||(kc=!0),e)}function Xs(e,t,n,r,i){var a=R.p;R.p=a!==0&&8>a?a:8;var o=L.T,s={};s.types=o===null?null:o.types,L.T=s,sc(e,!1,t,n);try{var c=i(),l=L.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?oc(e,t,Ba(c,r),jd(e)):oc(e,t,r,jd(e))}catch(n){oc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{R.p=a,o!==null&&s.types!==null&&(o.types=s.types),L.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,me,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:me,baseState:me,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:me},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),oc(e,t.next.queue,{},jd())}function tc(){return Ca(lh)}function nc(){return as().memoizedState}function rc(){return as().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=mo(n);var r=ho(t,e,n);r!==null&&(Pd(r,t,n),go(r,t,n)),t={cache:ka()},e.payload=t;return}t=t.return}}function K(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?lc(t,n):(n=Ti(e,t,n,r),n!==null&&(Pd(n,e,r),uc(n,t,r)))}function ac(e,t,n){oc(e,t,n,jd())}function oc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))lc(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,Br(s,o))return wi(e,t,i,0),Qu===null&&Ci(),!1}catch{}if(n=Ti(e,t,i,r),n!==null)return Pd(n,e,r),uc(n,t,r),!0}return!1}function sc(e,t,n,r){if(r={lane:2,revertLane:Ff(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(i(479))}else t=Ti(e,n,r,2),t!==null&&Pd(t,e,2)}function cc(e){var t=e.alternate;return e===W||t!==null&&t===W}function lc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function uc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,mt(e,n)}}var dc={readContext:Ca,use:cs,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},q={readContext:Ca,use:cs,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){Xe(!0);try{e()}finally{Xe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){Xe(!0);try{n(t)}finally{Xe(!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=K.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=ac.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Js(is(),e,t)},useTransition:function(){var e=bs(!1);return e=Xs.bind(null,W,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,a=is();if(H){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Qu===null)throw Error(i(349));X&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=Qu.identifierPrefix;if(H){var n=Yi,r=Ji;n=(r&~(1<<32-Ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=sc.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return is().memoizedState=ic.bind(null,W)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(Zu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},fc={readContext:Ca,use:cs,useCallback:qs,useContext:Ca,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:G,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(as(),Bo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:nc,useHostTransitionStatus:tc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(as(),Bo,e,t)},useMemoCache:ls,useCacheRefresh:rc,useEffectEvent:Vs},pc={readContext:Ca,use:cs,useCallback:qs,useContext:Ca,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:G,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=as();return Bo===null?Js(n,e,t):Ys(n,Bo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:nc,useHostTransitionStatus:tc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=as();return Bo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,Bo,e,t)},useMemoCache:ls,useCacheRefresh:rc,useEffectEvent:Vs};function mc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:D({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var hc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jd(),i=mo(r);i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Pd(t,e,r),go(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jd(),i=mo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ho(e,i,r),t!==null&&(Pd(t,e,r),go(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jd(),r=mo(n);r.tag=2,t!=null&&(r.callback=t),t=ho(e,r,n),t!==null&&(Pd(t,e,n),go(t,e,n))}};function gc(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?!Vr(n,r)||!Vr(i,a):!0}function _c(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&&hc.enqueueReplaceState(t,t.state,null)}function vc(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=D({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function yc(e){yi(e)}function bc(e){console.error(e)}function xc(e){yi(e)}function Sc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Cc(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 wc(e,t,n){return n=mo(n),n.tag=3,n.payload={element:null},n.callback=function(){Sc(e,t)},n}function Tc(e){return e=mo(e),e.tag=3,e}function Ec(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(){Cc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Cc(t,n,r),typeof i!=`function`&&(vd===null?vd=new Set([this]):vd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Dc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=Oo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ko===null?Kd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),hf(e,r,a)),!1;case 22:return n.flags|=65536,r===Ya?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)),hf(e,r,a)),!1}throw Error(i(435,n.tag))}return hf(e,r,a),Kd(),!1}if(H)return t=Oo.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(Vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Vi(r,n),a=wc(e.stateNode,r,a),_o(e,a),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(Vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=Vi(o,n),dd===null?dd=[o]:dd.push(o),ad!==4&&(ad=2),t===null)return!0;r=Vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=wc(n.stateNode,r,e),_o(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`&&(vd===null||!vd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Tc(a),Ec(a,e,n,r),_o(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Oc=Error(i(461)),kc=!1;function J(e,t,n,r){t.child=e===null?lo(t,null,n,r):co(t,e.child,n,r)}function Ac(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 Sa(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!kc?(ns(e,t,i),il(e,t,i)):(H&&s&&Qi(t),t.flags|=1,J(e,t,r,i),t.child)}function jc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Mi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Mc(e,t,a,r,i)):(e=Fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!al(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Vr:n,n(o,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,e=Ni(a,r),e.ref=t.ref,e.return=t,t.child=e}function Mc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Vr(a,r)&&e.ref===t.ref){if(kc=!1,t.pendingProps=r=a,al(e,i))e.flags&131072&&(kc=!0);else return t.lanes=e.lanes,il(e,t,i)}}return Bc(e,t,n,r,i)}function Nc(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 Fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wa(t,a===null?null:a.cachePool),a===null?Eo():To(t,a),Mo(t);else return r=t.lanes=536870912,Fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Wa(t,null),Eo(),No()):(Wa(t,a.cachePool),To(t,a),No(),t.memoizedState=null);return J(e,t,i,n),t.child}function Pc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fc(e,t,n,r,i){var a=Ua();return a=a===null?null:{parent:U._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Wa(t,null),Eo(),Mo(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Ic(e,t){return t=Yc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Lc(e,t,n){return co(t,e.child,null,n),e=Ic(t,t.pendingProps),e.flags|=2,Po(t),t.memoizedState=null,e}function Rc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(H){if(r.mode===`hidden`)return e=Ic(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Pc(null,e);if(jo(t),(e=na)?(e=sm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:V===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Ic(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(jo(t),a){if(t.flags&256)t.flags&=-257,t=Lc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(kc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,kc||a){if(Co.current===null){if(r=Qu,r!==null&&(s=ht(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Ei(e,s),Pd(r,e,s),Oc;Kd()}t=Lc(e,t,n)}else e=o.treeContext,na=dm(s.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Ic(t,r),t.flags|=134221824;return t}return e=Ni(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zc(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 Bc(e,t,n,r,i){return Sa(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!kc?(ns(e,t,i),il(e,t,i)):(H&&r&&Qi(t),t.flags|=1,J(e,t,n,i),t.child)}function Vc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!kc?(ns(e,t,a),il(e,t,a)):(H&&r&&Qi(t),t.flags|=1,J(e,t,n,a),t.child)}function Hc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=ki,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=hc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fo(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):ki,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(mc(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&&hc.enqueueReplaceState(a,a.state,null),bo(t,r,a,i),yo(),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=vc(n,s);a.props=c;var l=a.context,u=n.contextType;o=ki,typeof u==`object`&&u&&(o=Ca(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)&&_c(t,a,r,o),uo=!1;var f=t.memoizedState;a.state=f,bo(t,r,a,i),yo(),l=t.memoizedState,s||f!==l||uo?(typeof d==`function`&&(mc(t,n,d,r),l=t.memoizedState),(c=uo||gc(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,po(e,t),o=t.memoizedProps,u=vc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ki,typeof l==`object`&&l&&(c=Ca(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)&&_c(t,a,r,c),uo=!1,f=t.memoizedState,a.state=f,bo(t,r,a,i),yo();var p=t.memoizedState;o!==d||f!==p||uo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(mc(t,n,s,r),p=t.memoizedState),(u=uo||gc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(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,zc(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=co(t,e.child,null,i),t.child=co(t,null,n,i)):J(e,t,n,i),t.memoizedState=a.state,e=t.child):e=il(e,t,i),e}function Uc(e,t,n,r){return ua(),t.flags|=256,J(e,t,n,r),t.child}var Wc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gc(e){return{baseLanes:e,cachePool:Ga()}}function Kc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function qc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Fo.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(H){if(i?Ao(t):No(),(e=na)?(e=sm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:V===null?null:{id:Ji,overflow:Yi},retryLane:536870912,hydrationErrors:null},n=Ri(e),n.return=t,t.child=n,ta=t,na=null)):e=null,e===null)throw oa(t);return t.lanes=lm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(No(),i=t.mode,a=Yc({mode:`hidden`,children:a},i),r=Ii(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Gc(n),r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(null,r)):(Ao(t),Jc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return Zc(e,t,a,o,r,c,s,n)}return i?(No(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Ni(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ii(i,a,n,null),i.flags|=2):i=Ni(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Pc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Gc(n):(a=i.cachePool,a===null?a=Ga():(s=U._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Kc(e,o,n),t.memoizedState=Wc,Pc(e.child,r)):(Ao(t),n=e.child,e=n.sibling,n=Ni(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=Yc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Yc(e,t){return e=ji(22,e,null,t),e.lanes=0,e}function Xc(e,t,n){return co(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zc(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(Ao(t),t.flags&=-257,Xc(e,t,c)):t.memoizedState===null?(No(),o=a.fallback,s=t.mode,a=Yc({mode:`visible`,children:a.children},s),o=Ii(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,co(t,e.child,null,c),a=t.child,a.memoizedState=Gc(c),a.childLanes=Kc(e,r,c),t.memoizedState=Wc,Pc(null,a)):(No(),t.child=e.child,t.flags|=128,null);if(Ao(t),lm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),Xc(e,t,c)}if(kc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,kc||r){if(Co.current!==null)return Xc(e,t,c);if(r=Qu,r!==null&&(a=ht(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ei(e,a),Pd(r,e,a),Oc;return cm(o)||Kd(),Xc(e,t,c)}return cm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,na=dm(o.nextSibling),ta=t,H=!0,ra=null,ia=!1,e!==null&&ea(t,e),t=Jc(t,a.children),t.flags|=134221824,t)}function Qc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function $c(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Ro(n)===null&&(t=e),e=e.sibling}return t}function el(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 tl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function nl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Fo.current;if(t.flags&128)return Io(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Io(t,o),i===`backwards`&&e!==null?(tl(e),J(e,t,r,n),tl(e)):J(e,t,r,n),r=H?Gi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Qc(e,n,t);else if(e.tag===19)Qc(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`backwards`:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,tl(t)),el(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ro(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}el(t,!0,n,null,a,r);break;case`together`:el(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=$c(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),el(t,!1,i,n,a,r)}return t.child}function rl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),J(e,t,r.children,n),t.child}function il(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(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=Ni(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ni(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function al(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function ol(e,t,n){switch(t.tag){case 3:Ce(t,t.stateNode.containerInfo),ga(t,U,e.memoizedState.cache),ua();break;case 27:case 5:Te(t);break;case 4:Ce(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,jo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Ao(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?qc(e,t,n):(Ao(t),e=il(e,t,n),e===null?null:e.sibling)}Ao(t);break;case 19:if(t.flags&128)return nl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return nl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Io(t,Fo.current),r)break;return null;case 22:return t.lanes=0,Nc(e,t,n,t.pendingProps);case 24:ga(t,U,e.memoizedState.cache)}return il(e,t,n)}function sl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)kc=!0;else{if(!al(e,n)&&!(t.flags&128))return kc=!1,ol(e,t,n);kc=!!(e.flags&131072)}}else kc=!1,H&&t.flags&1048576&&Zi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Qa(t.elementType),t.type=e,typeof e==`function`)Mi(e)?(r=vc(e,r),t.tag=1,t=Hc(null,t,e,r,n)):(t.tag=0,t=Bc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Ac(null,t,e,r,n);break a}if(a===re){t.tag=14,t=jc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=rl(null,t,n);break a}}throw t=I(e)||e,Error(i(306,t,``))}}return t;case 0:return Bc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=vc(r,t.pendingProps),Hc(e,t,r,a,n);case 3:a:{if(Ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,po(e,t),bo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,U,r),r!==o.cache&&ya(t,[U],n,!0),yo(),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=Uc(e,t,r,n);break a}if(r!==a){a=Vi(Error(i(424)),t),fa(a),t=Uc(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(na=dm(e.firstChild),ta=t,H=!0,ra=null,ia=!0,n=lo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=il(e,t,n);break a}J(e,t,r,n)}t=t.child}return t;case 26:return zc(e,t),e===null?(n=Fm(t.type,null,t.pendingProps,null))?t.memoizedState=n:H||(t.stateNode=mp(t.type,t.pendingProps,xe.current,t)):t.memoizedState=Fm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&H&&(r=t.stateNode=_m(t.type,t.pendingProps,xe.current),ta=t,ia=!0,a=na,wp(t.type)?(fm=a,na=dm(r.firstChild)):na=a),J(e,t,t.pendingProps.children,n),zc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&H&&((a=r=na)&&(r=am(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ta=t,na=dm(r.firstChild),ia=!1,a=!0)),a||oa(t)),Te(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,hp(a,o)?r=null:s!==null&&hp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),lh._currentValue=a),zc(e,t),J(e,t,r,n),t.child;case 6:return e===null&&H&&((e=n=na)&&(n=om(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ta=t,na=null,e=!0)),e||oa(t)),null;case 13:return qc(e,t,n);case 4:return Ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=co(t,null,r,n):J(e,t,r,n),t.child;case 11:return Ac(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,zc(e,t),J(e,t,r,n),t.child;case 8:return J(e,t,t.pendingProps.children,n),t.child;case 12:return J(e,t,t.pendingProps.children,n),t.child;case 10:return rl(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,J(e,t,r,n),t.child;case 14:return jc(e,t,t.type,t.pendingProps,n);case 15:return Mc(e,t,t.type,t.pendingProps,n);case 19:return nl(e,t,n);case 31:return Rc(e,t,n);case 22:return Nc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(U),e===null?(a=Ua(),a===null&&(a=Qu,o=ka(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},fo(t),ga(t,U,a)):((e.lanes&n)!==0&&(po(e,t),bo(t,null,null,n),yo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,U,r),r!==a.cache&&ya(t,[U],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,U,r))),J(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:H&&Qi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:zc(e,t),J(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function cl(e){e.flags|=4}function ll(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Xm(t,r):Xm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Ud())e.flags|=8192;else throw $a=Ya,qa}}else e.flags&=-16777217}function ul(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Zm(t)){if(Ud())e.flags|=8192;else throw $a=Ya,qa}}function dl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:lt(),e.lanes|=t,ud|=t)}function fl(e,t){if(!H)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function pl(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&1206910976,r|=i.flags&1206910976,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 ml(e,t,n){var r=t.pendingProps;switch($i(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pl(t),null;case 1:return pl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(U),we(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?cl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),pl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(cl(t),o===null?(pl(t),ll(t,a,null,r,n)):(pl(t),ul(t,o))):o?o===e.memoizedState?(pl(t),t.flags&=-16777217):(cl(t),pl(t),ul(t,o)):(e=e.memoizedProps,e!==r&&cl(t),pl(t),ll(t,a,e,r,n)),null;case 27:if(Ee(t),n=xe.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}e=ye.current,la(t)?sa(t,e):(e=_m(a,r,n),t.stateNode=e,cl(t))}return pl(t),t.subtreeFlags&=-33554433,null;case 5:if(Ee(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return pl(t),t.subtreeFlags&=-33554433,null}if(o=ye.current,la(t))sa(t,o);else{var s=dp(xe.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[xt]=t,o[St]=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(ip(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&&cl(t)}}return pl(t),t.subtreeFlags&=-33554433,ll(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&cl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=xe.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ta,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[xt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||tp(e.nodeValue,n)),e||oa(t,!0)}else e=dp(e).createTextNode(r),e[xt]=t,t.stateNode=e}return pl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Po(t),t):(Po(t),null);if(t.flags&128)throw Error(i(558))}return pl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(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[xt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Po(t),t):(Po(t),null)}return Po(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),dl(t,t.updateQueue),pl(t),null);case 4:return we(),e===null&&Gf(t.stateNode.containerInfo),t.flags|=67108864,pl(t),null;case 10:return _a(t.type),pl(t),null;case 19:if(Lo(t),r=t.memoizedState,r===null)return pl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)fl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ro(e),o!==null){for(t.flags|=128,fl(r,!1),e=o.updateQueue,t.updateQueue=e,dl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Pi(n,e),n=n.sibling;return Io(t,Fo.current&1|2),H&&Xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ze()>gd&&(t.flags|=128,a=!0,fl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Ro(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,dl(t,e),fl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!H)return pl(t),null}else 2*ze()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,fl(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)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ze(),e.sibling=null,o=Fo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||H?Io(t,o):(n=o,z(Oo,t),z(Fo,n),ko===null&&(ko=t)),H&&Xi(t,r.treeForkCount),e}return pl(t),null;case 22:case 23:return Po(t),Do(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(pl(t),t.subtreeFlags&6&&(t.flags|=8192)):pl(t),n=t.updateQueue,n!==null&&dl(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&&ve(Ha),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(U),pl(t),null;case 25:return null;case 30:return t.flags|=33554432,pl(t),null}throw Error(i(156,t.tag))}function hl(e,t){switch($i(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(U),we(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Po(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Po(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Lo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return we(),null;case 10:return _a(t.type),null;case 22:case 23:return Po(t),Do(),e!==null&&ve(Ha),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(U),null;case 25:return null;default:return null}}function gl(e,t){switch($i(t),t.tag){case 3:_a(U),we();break;case 26:case 27:case 5:Ee(t);break;case 4:we();break;case 31:t.memoizedState!==null&&Po(t);break;case 13:Po(t);break;case 19:Lo(t);break;case 10:_a(t.type);break;case 22:case 23:Po(t),Do(),e!==null&&ve(Ha);break;case 24:_a(U)}}function _l(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){mf(t,t.return,e)}}function vl(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){mf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){mf(t,t.return,e)}}function yl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{So(t,n)}catch(t){mf(e,e.return,t)}}}function bl(e,t,n){n.props=vc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){mf(e,t,n)}}function xl(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:var i=e.stateNode,a=gi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Ip(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Lp(e);m(e.child,!1,em,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){mf(e,t,n)}}function Sl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){mf(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){mf(e,t,n)}else n.current=null}}function Cl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)nm(e.stateNode,t[n])}function wl(e){for(var t=e.return;t!==null&&(Dl(t)&&nm(e.stateNode,t.stateNode),!El(t));)t=t.return}function Tl(e){for(var t=e.return;t!==null&&(Dl(t)&&rm(e.stateNode,t.stateNode),!El(t));)t=t.return}function El(e){return e.tag===5||e.tag===3||e.tag===27}function Dl(e){return e&&e.tag===7&&e.stateNode!==null}function Ol(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){mf(e,e.return,t)}}function kl(e,t,n){try{var r=e.stateNode;op(r,e.type,n,t),r[St]=t}catch(t){mf(e,e.return,t)}}function Al(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wp(e.type)||e.tag===4}function jl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Al(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&&wp(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 Ml(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vn)),Cl(e,r),Gt=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,wp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Ml(e,t,n,r),e=e.sibling;e!==null;)Ml(e,t,n,r),e=e.sibling}function Nl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Cl(e,r),Gt=!0;else if(i!==4&&(i===27&&(Cl(e,r),r=null,wp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Nl(e,t,n,r),e=e.sibling;e!==null;)Nl(e,t,n,r),e=e.sibling}function Pl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ip(t,r,n),t[xt]=e,t[St]=n}catch(t){mf(e,e.return,t)}}var Fl=!1,Il=null;function Ll(e){(e.tag===30||e.subtreeFlags&33554432)&&(Fl=!0)}var Rl=null;function zl(){var e=Rl;return Rl=null,e}var Bl=0;function Vl(e,t,n,r,i){return Bl=0,Hl(e.child,t,n,r,i)}function Hl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ap(o);r.push(s),s.view&&(a=!0)}else a||Ap(o).view&&(a=!0);Fl=!0,Dp(o,Bl===0?t:t+`_`+Bl,n),Bl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Hl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Ul(e,t){for(;e!==null;)e.tag===5?Op(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Ul(e.child,t)),e=e.sibling}function Wl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Wl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=vi(t.default,t.share),t!==`none`&&(Vl(e,n,t,null,!1)||Ul(e.child,!1))}e=e.sibling}}function Gl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=gi(r,n),a=vi(r.default,n.paired?r.share:r.enter);a===`none`?Wl(e):Vl(e,i,a,null,!1)?(Wl(e),n.paired||t||Nd(e,r.onEnter)):Ul(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Gl(e,t),e=e.sibling;else Wl(e)}function Kl(e){if(Il!==null&&Il.size!==0){var t=Il;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=vi(n.default,n.share);if(a!==`none`&&(Vl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Nd(e,n.onShare)):Ul(e.child,!1)),t.delete(r),t.size===0)break}}}Kl(e)}e=e.sibling}}}function ql(e){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode),r=Il===null?void 0:Il.get(n),i=vi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Vl(e,n,i,null,!1)?r===void 0?Nd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Il.delete(n),Nd(e,t.onShare)):Ul(e.child,!1)),Il!==null&&Kl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e),e=e.sibling;else Il!==null&&Kl(e)}function Jl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=gi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!==`none`&&Vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Jl(e);e=e.sibling}}function Yl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Ul(e.child,!1))}Yl(e)}e=e.sibling}}function Xl(e){if(e.tag===30)e.stateNode.paired=null,Ul(e.child,!1),Yl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else Yl(e)}function Zl(e){for(e=e.child;e!==null;)e.tag===30?Ul(e.child,!1):e.subtreeFlags&33554432&&Zl(e),e=e.sibling}function Ql(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Bl<a.length){var l=a[Bl],u=Ap(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Dp(c,Bl===0?n:n+`_`+Bl,i),s&&e.flags&4||(Rl===null&&(Rl=[]),Rl.push(c,Bl===0?r:r+`_`+Bl,t.memoizedProps)),Bl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:Ql(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function $l(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=gi(n,r),a=vi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(jp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Bl=0,i=Ql(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Nd(e,n.onUpdate))}else e.subtreeFlags&33554432&&$l(e,t);e=e.sibling}}var eu=!1,tu=!1,nu=!1,ru=!1,iu=typeof WeakSet==`function`?WeakSet:Set,au=null,ou=!1,su=!1,cu=!1,lu=!1;function uu(e,t,n){if(e=e.containerInfo,lp=vh,e=Kr(e),qr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(up={focusedElem:e,selectionRange:r},vh=!1,n=(n&335544064)===n,au=t,t=n?9270:1024;au!==null;){if(e=au,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&ql(r[a]);if(e.alternate===null&&e.flags&2)n&&Ll(e),du(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&ql(r),du(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ll(e),du(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,au=r):(n&&Jl(e),du(n))}}Il=null}function du(e){for(;au!==null;){var t=au,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=vc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){mf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)im(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:im(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=gi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=vi(a.default,a.update),a!==`none`&&Vl(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,au=r;break}au=t.return}}function fu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Mu(e,n),r&4&&_l(5,n);break;case 1:if(Mu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){mf(n,n.return,e)}else{var i=vc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){mf(n,n.return,e)}}}r&64&&yl(n),r&512&&xl(n,n.return);break;case 3:if(Mu(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{So(e,t)}catch(e){mf(n,n.return,e)}}break;case 27:t===null&&r&4&&Pl(n);case 26:case 5:Mu(e,n),t===null&&r&4&&Ol(n),r&512&&xl(n,n.return);break;case 12:Mu(e,n);break;case 31:Mu(e,n),r&4&&xu(e,n);break;case 13:Mu(e,n),r&4&&Su(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=vf.bind(null,n),um(e,n))));break;case 22:if(r=n.memoizedState!==null||eu,!r){var a=t!==null&&t.memoizedState!==null||tu;t=eu,i=tu,eu=r,(tu=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Pu(e,n,r)):Mu(e,n),eu=t,tu=i}break;case 30:Mu(e,n),r&512&&xl(n,n.return);break;case 7:r&512&&xl(n,n.return);default:Mu(e,n)}}function pu(e,t){for(e=e.child;e!==null;)mu(e,t),e=e.sibling}function mu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){mf(e,e.return,t)}hu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Gt=!0}catch(t){mf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Ep(s,!0):Ep(e.stateNode,!1)}catch(t){mf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&pu(e,t);break;default:pu(e,t)}}function hu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:mu(n,r);break a;case 22:n.memoizedState===null&&hu(n,r);break a;default:hu(n,r)}}e=e.sibling}}function gu(e){var t=e.alternate;t!==null&&(e.alternate=null,gu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&At(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 _u=null,vu=!1;function yu(e,t,n){for(n=n.child;n!==null;)bu(e,t,n),n=n.sibling}function bu(e,t,n){if(Ye&&typeof Ye.onCommitFiberUnmount==`function`)try{Ye.onCommitFiberUnmount(Je,n)}catch{}switch(n.tag){case 26:tu||Sl(n,t),yu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!tu&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:tu||Sl(n,t),Tl(n);var r=_u,i=vu;wp(n.type)&&(_u=n.stateNode,vu=!1),yu(e,t,n),vm(n.stateNode,n.type,n.memoizedProps),_u=r,vu=i;break;case 5:tu||Sl(n,t),Tl(n);case 6:if(n.tag===6&&Tl(n),r=_u,i=vu,_u=null,yu(e,t,n),_u=r,vu=i,_u!==null){if(vu)try{(_u.nodeType===9?_u.body:_u.nodeName===`HTML`?_u.ownerDocument.body:_u).removeChild(n.stateNode),Gt=!0}catch(e){mf(n,t,e)}else try{_u.removeChild(n.stateNode),Gt=!0}catch(e){mf(n,t,e)}}break;case 18:_u!==null&&(vu?(e=_u,Tp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Wh(e)):Tp(_u,n.stateNode));break;case 4:r=_u,i=vu,_u=n.stateNode.containerInfo,vu=!0,yu(e,t,n),_u=r,vu=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),tu||vl(4,n,t),yu(e,t,n);break;case 1:tu||(Sl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&bl(n,t,r)),yu(e,t,n);break;case 21:yu(e,t,n);break;case 22:tu=(r=tu)||n.memoizedState!==null,yu(e,t,n),tu=r;break;case 30:Sl(n,t),yu(e,t,n);break;case 7:tu||Sl(n,t),yu(e,t,n);break;default:yu(e,t,n)}}function xu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wh(e)}catch(e){mf(t,t.return,e)}}}function Su(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wh(e)}catch(e){mf(t,t.return,e)}}function Cu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iu),t;default:throw Error(i(435,e.tag))}}function wu(e,t){var n=Cu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=yf.bind(null,e,t);t.then(r,r)}})}function Tu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(wp(l.type)){_u=l.stateNode,vu=!1;break a}break;case 5:_u=l.stateNode,vu=!1;break a;case 3:case 4:_u=l.stateNode.containerInfo,vu=!0;break a}l=l.return}if(_u===null)throw Error(i(160));bu(s,c,o),_u=null,vu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Du(t,e,n),t=t.sibling}var Eu=null;function Du(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Tu(t,e,n),Ou(e),a&4&&(vl(3,e,e.return),_l(3,e),vl(5,e,e.return));break;case 1:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&64&&eu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Eu,Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(eu)e.stateNode=mp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Ot]||r[xt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),ip(r,t,n),r[xt]=e,Ft(r),t=r;break a;case`link`:if(o=qm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=qm(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),ip(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[xt]=e,Ft(r),t=r}e.stateNode=t}}else eu||Jm(o,e.type,e.stateNode)}else e.stateNode=Hm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&kl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||tu||t.parentNode.removeChild(t)):a.count--,n===null?eu||Jm(o,e.type,e.stateNode):Hm(o,n,e.memoizedProps))}break;case 27:Tu(t,e,n),Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),r!==null&&a&4&&kl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=nu,nu=!1,Tu(t,e,n),nu=o,Ou(e),a&512&&(tu||r===null||Sl(r,r.return)),e.flags&32){t=e.stateNode;try{un(t,``),Gt=!0}catch(t){mf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,kl(e,t,r===null?t:r.memoizedProps)),a&1024&&(ru=!0);break;case 6:if(Tu(t,e,n),Ou(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Gt=!0}catch(t){mf(e,e.return,t)}}break;case 3:if(Gt=!1,Km=null,o=Eu,Eu=Sm(t.containerInfo),Tu(t,e,n),Eu=o,Ou(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Wh(t.containerInfo)}catch(t){mf(e,e.return,t)}ru&&(ru=!1,ku(e)),Gt=!1;break;case 4:a=nu,nu=eu,r=Kt(),o=Eu,Eu=Sm(e.stateNode.containerInfo),Tu(t,e,n),Ou(e),Eu=o,Gt&&su&&(cu=!0),Gt=r,nu=a;break;case 12:Tu(t,e,n),Ou(e);break;case 31:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 13:Tu(t,e,n),Ou(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=ze()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=eu,l=tu,u=nu;eu=c||o,nu=u||o,tu=l||s,Tu(t,e,n),tu=l,nu=u,eu=c,Ou(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||eu||tu||(t=s||tu,n=eu,r=tu,eu=o||eu,tu=t,Nu(e,2),eu=n,tu=r),!o&&nu||pu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,wu(e,n))));break;case 19:Tu(t,e,n),Ou(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,wu(e,t)));break;case 30:a&512&&(tu||r===null||Sl(r,r.return)),a=Kt(),o=su,s=(n&335544064)===n,c=e.memoizedProps,su=s&&vi(c.default,c.update)!==`none`,Tu(t,e,n),Ou(e),s&&r!==null&&Gt&&(e.flags|=4),su=o,Gt=a;break;case 21:break;case 7:a&512&&(tu||r===null||Sl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Tu(t,e,n),Ou(e)}}function Ou(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Al(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Dl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(El(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Nl(e,jl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(un(l,``),n.flags&=-33),Nl(e,jl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Ml(e,jl(e),u,s);break;default:throw Error(i(161))}}catch(t){mf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ku(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ku(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,vh=!0,t.reset(),vh=!1),e=e.sibling}}function Au(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ju(t,e),t=t.sibling;else $l(t,!1)}function ju(e,t){var n=e.alternate;if(n===null)Gl(e,!1);else switch(e.tag){case 3:if(lu=ou=!1,zl(),Au(t,e),!ou&&!cu){if(e=Rl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Op(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),lu=!0}Rl=null;break;case 5:Au(t,e);break;case 4:r=ou,ou=!1,Au(t,e),ou&&(cu=!0),ou=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Au(t,e):Gl(e,!1));break;case 30:r=ou,i=zl(),ou=!1,Au(t,e),ou&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=gi(a,o),o=gi(n.memoizedProps,o);var s=vi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Bl=0,t=Ql(e,n,t,o,s,a,!0),Bl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Nd(e,e.memoizedProps.onUpdate),Rl=i):i!==null&&(i.push.apply(i,Rl),Rl=i),ou=e.flags&32?!0:r;break;default:Au(t,e)}}function Mu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fu(e,t.alternate,t),t=t.sibling}function Nu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:vl(4,n,n.return),Nu(n,r);break;case 1:Sl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&bl(n,n.return,i),Nu(n,r);break;case 27:r&2&&vm(n.stateNode,n.type,n.memoizedProps);case 5:Sl(n,n.return),n.tag!==5&&n.tag!==27||Tl(n),Nu(n,r);break;case 6:Tl(n);break;case 26:Sl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||tu||i.parentNode.removeChild(i),Nu(n,r);break;case 22:n.memoizedState===null&&Nu(n,r);break;case 30:Sl(n,n.return),Nu(n,r);break;case 7:Sl(n,n.return);default:Nu(n,r)}e=e.sibling}}function Pu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Pu(i,a,n),_l(4,a);break;case 1:if(Pu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){mf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)xo(l[i],c)}catch(e){mf(r,r.return,e)}}s&&o&64&&yl(a),xl(a,a.return);break;case 27:n&2&&Pl(a);case 5:a.tag!==5&&a.tag!==27||wl(a),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 6:wl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||eu||Jm(Sm(c.ownerDocument),a.type,c),Pu(i,a,n),s&&r===null&&o&4&&Ol(a),xl(a,a.return);break;case 12:Pu(i,a,n);break;case 31:Pu(i,a,n),s&&o&4&&xu(i,a);break;case 13:Pu(i,a,n),s&&o&4&&Su(i,a);break;case 22:a.memoizedState===null&&Pu(i,a,n),xl(a,a.return);break;case 30:Pu(i,a,n),xl(a,a.return);break;case 7:xl(a,a.return);default:Pu(i,a,n)}t=t.sibling}}function Fu(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&&Aa(n))}function Iu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Aa(e))}function Lu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Ru(e,t,n,r),t=t.sibling;else i&&Zl(t)}function Ru(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Xl(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Lu(e,t,n,r),a&2048&&_l(9,t);break;case 1:Lu(e,t,n,r);break;case 3:Lu(e,t,n,r),i&&lu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Aa(a)));break;case 12:if(a&2048){Lu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){mf(t,t.return,e)}}else Lu(e,t,n,r);break;case 31:Lu(e,t,n,r);break;case 13:Lu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Xl(t),o._visibility&2?Lu(e,t,n,r):(o._visibility|=2,zu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Xl(s),o._visibility&2?Lu(e,t,n,r):Bu(e,t)),a&2048&&Fu(s,t);break;case 24:Lu(e,t,n,r),a&2048&&Iu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Ul(a.child,!0),Ul(t.child,!0))),Lu(e,t,n,r);break;default:Lu(e,t,n,r)}}function zu(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:zu(a,o,s,c,i),_l(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,zu(a,o,s,c,i)):u._visibility&2?zu(a,o,s,c,i):Bu(a,o),i&&l&2048&&Fu(o.alternate,o);break;case 24:zu(a,o,s,c,i),i&&l&2048&&Iu(o.alternate,o);break;default:zu(a,o,s,c,i)}t=t.sibling}}function Bu(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:Bu(n,r),i&2048&&Fu(r.alternate,r);break;case 24:Bu(n,r),i&2048&&Iu(r.alternate,r);break;default:Bu(n,r)}t=t.sibling}}var Vu=8192;function Hu(e,t,n){if(e.subtreeFlags&Vu)for(e=e.child;e!==null;)Uu(e,t,n),e=e.sibling}function Uu(e,t,n){switch(e.tag){case 26:Hu(e,t,n),e.flags&Vu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&$m(n,e)):eh(n,Eu,e.memoizedState,e.memoizedProps));break;case 5:Hu(e,t,n),e.flags&Vu&&(e=e.stateNode,(t&335544128)===t&&$m(n,e));break;case 3:case 4:var r=Eu;Eu=Sm(e.stateNode.containerInfo),Hu(e,t,n),Eu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Vu,Vu=16777216,Hu(e,t,n),Vu=r):Hu(e,t,n));break;case 30:if((e.flags&Vu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Il===null&&(Il=new Map),Il.set(r,i)}Hu(e,t,n);break;default:Hu(e,t,n)}}function Wu(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 Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ku(e),e=e.sibling}function Ku(e){switch(e.tag){case 0:case 11:case 15:Gu(e),e.flags&2048&&vl(9,e,e.return);break;case 3:Gu(e);break;case 12:Gu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qu(e)):Gu(e);break;default:Gu(e)}}function qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];au=r,Ju(r,e)}Wu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:vl(8,t,t.return),qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qu(t));break;default:qu(t)}e=e.sibling}}function Ju(e,t){for(;au!==null;){var n=au;switch(n.tag){case 0:case 11:case 15:vl(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:Aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,au=r;else a:for(n=e;au!==null;){r=au;var i=r.sibling,a=r.return;if(gu(r),r===n){au=null;break a}if(i!==null){i.return=a,au=i;break a}au=a}}}var Yu={getCacheForType:function(e){var t=Ca(U),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(U).controller.signal}},Xu=typeof WeakMap==`function`?WeakMap:Map,Zu=0,Qu=null,Y=null,X=0,$u=0,ed=null,td=!1,nd=!1,rd=!1,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=null,fd=null,pd=!1,md=0,hd=0,gd=1/0,_d=null,vd=null,yd=0,bd=null,xd=null,Sd=0,Cd=0,wd=null,Td=null,Ed=null,Dd=null,Od=null,kd=0,Ad=null;function jd(){return Zu&2&&X!==0?X&-X:L.T===null?vt():Ff()}function Md(){if(ld===0){if(!(X&536870912)||H){var e=nt;nt<<=1,!(nt&3932160)&&(nt=262144),ld=e}else ld=536870912}return e=Oo.current,e!==null&&(e.flags|=32),ld}function Nd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Ip(gi(e.memoizedProps,n))),Dd===null&&(Dd=[]),Dd.push(t.bind(null,r))}}function Pd(e,t,n){(e===Qu&&($u===2||$u===9)||e.cancelPendingCommit!==null)&&(Vd(e,0),Rd(e,X,ld,!1)),dt(e,n),(!(Zu&2)||e!==Qu)&&(e===Qu&&(!(Zu&2)&&(sd|=n),ad===4&&Rd(e,X,ld,!1)),Df(e))}function Fd(e,t,n){if(Zu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ot(e,t),a=r?Yd(e,t):qd(e,t,!0),o=r;do{if(a===0){nd&&!r&&Rd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ld(n)){a=qd(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=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Vd(c,s).flags|=256),s=qd(c,s,!1),s!==2&&s!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=o,sd|=o,a=4;break a}o=fd,fd=a,o!==null&&(fd===null?fd=o:fd.push.apply(fd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Vd(e,0),Rd(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&&(t&62914560)!==t)break;case 6:Rd(r,t,ld,!td);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=md+300-ze(),10<a)){if(Rd(r,t,ld,!td),at(r,0,!0)!==0)break a;Sd=t,r.timeoutHandle=vp(Id.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,td,o,`Throttled`,-0,0),a);break a}Id(r,n,fd,_d,pd,t,ld,sd,ud,td,o,null,-0,0)}break}while(1);Df(e)}function Id(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vn},Il=null,Uu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=ih.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-ze():(a&4194048)===a?hd-ze():0,m=nh(d,m),m!==null)){Sd=a,e.cancelPendingCommit=m(nf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Rd(e,a,o,!l);return}nf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ld(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(!Br(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 Rd(e,t,n,r){t=st(e,t),t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&pt(e,n,t)}function zd(){return Zu&6?!0:(Of(0,!1),!1)}function Bd(){if(Y!==null){if($u===0)var e=Y.return;else e=Y,ha=ma=null,rs(e),no=null,ro=0,e=Y;for(;e!==null;)gl(e.alternate,e),e=e.return;Y=null}}function Vd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,yp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sd=0,Bd(),Qu=e,Y=n=Ni(e.current,null),X=t,$u=0,ed=null,td=!1,nd=ot(e,t),rd=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,id=st(e,t),Ci(),n}function Hd(e,t){W=null,L.H=dc,t===Ka||t===Ja?(t=eo(),$u=3):t===qa?(t=eo(),$u=4):$u=t===Oc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,Y===null&&(ad=1,Sc(e,Vi(t,e.current)))}function Ud(){var e=Oo.current;return e===null?!0:(X&4194048)===X?ko===null:(X&62914560)===X||X&536870912?e===ko:!1}function Wd(){var e=L.H;return L.H=dc,e===null?dc:e}function Gd(){var e=L.A;return L.A=Yu,e}function Kd(){ad=4,td||(X&4194048)!==X&&Oo.current!==null||(nd=!0),!(od&134217727)&&!(sd&134217727)||Qu===null||Rd(Qu,X,ld,!1)}function qd(e,t,n){var r=Zu;Zu|=2;var i=Wd(),a=Gd();(Qu!==e||X!==t)&&(_d=null,Vd(e,t)),t=!1;var o=ad;a:do try{if($u!==0&&Y!==null){var s=Y,c=ed;switch($u){case 8:Bd(),o=6;break a;case 3:case 2:case 9:case 6:Oo.current===null&&(t=!0);var l=$u;if($u=0,ed=null,$d(e,s,c,l),n&&nd){o=0;break a}break;default:l=$u,$u=0,ed=null,$d(e,s,c,l)}}Jd(),o=ad;break}catch(t){Hd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,Zu=r,L.H=i,L.A=a,Y===null&&(Qu=null,X=0,Ci()),o}function Jd(){for(;Y!==null;)Zd(Y)}function Yd(e,t){var n=Zu;Zu|=2;var r=Wd(),a=Gd();Qu!==e||X!==t?(_d=null,gd=ze()+500,Vd(e,t)):nd=ot(e,t);a:do try{if($u!==0&&Y!==null){t=Y;var o=ed;b:switch($u){case 1:$u=0,ed=null,$d(e,t,o,1);break;case 2:case 9:if(Xa(o)){$u=0,ed=null,Qd(t);break}t=function(){$u!==2&&$u!==9||Qu!==e||($u=7),Df(e)},o.then(t,t);break a;case 3:$u=7;break a;case 4:$u=5;break a;case 7:Xa(o)?($u=0,ed=null,Qd(t)):($u=0,ed=null,$d(e,t,o,7));break;case 5:var s=null;switch(Y.tag){case 26:s=Y.memoizedState;case 5:case 27:var c=Y;if(s?Zm(s):c.stateNode.complete){$u=0,ed=null;var l=c.sibling;if(l!==null)Y=l;else{var u=c.return;u===null?Y=null:(Y=u,ef(u))}break b}}$u=0,ed=null,$d(e,t,o,5);break;case 6:$u=0,ed=null,$d(e,t,o,6);break;case 8:Bd(),ad=6;break a;default:throw Error(i(462))}}Xd();break}catch(t){Hd(e,t)}while(1);return ha=ma=null,L.H=r,L.A=a,Zu=n,Y===null?(Qu=null,X=0,Ci(),ad):0}function Xd(){for(;Y!==null&&!Le();)Zd(Y)}function Zd(e){var t=sl(e.alternate,e,id);e.memoizedProps=e.pendingProps,t===null?ef(e):Y=t}function Qd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Vc(n,t,t.pendingProps,t.type,void 0,X);break;case 11:t=Vc(n,t,t.pendingProps,t.type.render,t.ref,X);break;case 5:rs(t);var r=t;r===ta&&(H?(ca(r),r.tag===5&&r.stateNode!=null&&(na=r.stateNode)):(ca(r),H=!0));default:gl(n,t),t=Y=Pi(t,id),t=sl(n,t,id)}e.memoizedProps=e.pendingProps,t===null?ef(e):Y=t}function $d(e,t,n,r){ha=ma=null,rs(t),no=null,ro=0;var i=t.return;try{if(Dc(e,i,t,n,X)){ad=1,Sc(e,Vi(n,e.current)),Y=null;return}}catch(t){if(i!==null)throw Y=i,t;ad=1,Sc(e,Vi(n,e.current)),Y=null;return}t.flags&32768?(H||r===1?e=!0:nd||X&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=Oo.current,r!==null&&r.tag===13&&(r.flags|=16384))),tf(t,e)):ef(t)}function ef(e){var t=e;do{if(t.flags&32768){tf(t,td);return}e=t.return;var n=ml(t.alternate,t,id);if(n!==null){Y=n;return}if(t=t.sibling,t!==null){Y=t;return}Y=t=e}while(t!==null);ad===0&&(ad=5)}function tf(e,t){do{var n=hl(e.alternate,e);if(n!==null){n.flags&=32767,Y=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Y=e;return}Y=e=n}while(e!==null);ad=6,Y=null}function nf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do df();while(yd!==0);if(Zu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Qu&&(Y=Qu=null,X=0),xd=t,bd=e,Sd=n,wd=a,Td=r,rf(e,t,n,s,c,l,f)}}function rf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Cd=s,s|=Si,ft(e,n,s,r,i,a),Dd=null,(n&335544064)===n?(Od=Na(e),r=10262):(Od=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,bf(Ue,function(){return ff(),null})):(e.callbackNode=null,e.callbackPriority=0),Fl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=L.T,L.T=null,i=R.p,R.p=2,a=Zu,Zu|=4;try{uu(e,t,n)}finally{Zu=a,R.p=i,L.T=r}}yd=1,Fl?Ed=Pp(o,e.containerInfo,Od,sf,cf,of,lf,ff,af,null,null):(sf(),cf(),lf())}function af(e){if(yd!==0){var t=bd.onRecoverableError;t(e,{componentStack:null})}}function of(){yd===3&&(yd=0,ju(xd,bd),yd=4)}function sf(){if(yd===1){yd=0;var e=bd,t=xd,n=Sd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=L.T,L.T=null;var i=R.p;R.p=2;var a=Zu;Zu|=4;try{su=cu=!1,Du(t,e,n),n=up;var o=Kr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Gr(s.ownerDocument.documentElement,s)){if(c!==null&&qr(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 _=Wr(s,h),v=Wr(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}}vh=!!lp,up=lp=null}finally{Zu=a,R.p=i,L.T=r}}e.current=t,yd=2}}function cf(){if(yd===2){yd=0;var e=bd,t=xd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=L.T,L.T=null;var r=R.p;R.p=2;var i=Zu;Zu|=4;try{fu(e,t.alternate,t)}finally{Zu=i,R.p=r,L.T=n}}yd=3}}function lf(){if(yd===4||yd===3){yd=0;var e=Ed;Ed=null,Re();var t=bd,n=xd,r=Sd,i=Td,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?yd=5:(yd=0,xd=bd=null,uf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(vd=null),_t(r),n=n.stateNode,Ye&&typeof Ye.onCommitFiberRoot==`function`)try{Ye.onCommitFiberRoot(Je,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=L.T,a=R.p,R.p=2,L.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{L.T=n,R.p=a}}if(i=Dd,o=Od,Od=null,i!==null&&(Dd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);Sd&3&&df(),Df(t),a=t.pendingLanes,r&261930&&a&42?t===Ad?kd++:(kd=0,Ad=t):(kd=0,Ad=null),Of(0,!1)}}function uf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Aa(t)))}function df(){return Ed!==null&&(Ed.skipTransition(),Ed=null),sf(),cf(),lf(),ff()}function ff(){if(yd!==5)return!1;var e=bd,t=Cd;Cd=0;var n=_t(Sd),r=L.T,a=R.p;try{R.p=32>n?32:n,L.T=null,n=wd,wd=null;var o=bd,s=Sd;if(yd=0,xd=bd=null,Sd=0,Zu&6)throw Error(i(331));var c=Zu;if(Zu|=4,Ku(o.current),Ru(o,o.current,s,n),Zu=c,Of(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot==`function`)try{Ye.onPostCommitFiberRoot(Je,o)}catch{}return!0}finally{R.p=a,L.T=r,uf(e,t)}}function pf(e,t,n){t=Vi(n,t),t=wc(e.stateNode,t,2),e=ho(e,t,2),e!==null&&(dt(e,2),Df(e))}function mf(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=Vi(n,e),n=Tc(2),r=ho(t,n,2),r!==null&&(Ec(n,r,t,e),dt(r,2),Df(r));break}}t=t.return}}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xu;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)||(rd=!0,i.add(n),e=gf.bind(null,e,t,n),t.then(e,e))}function gf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Qu===e&&(X&n)===n&&(ad===4||ad===3&&(X&62914560)===X&&300>ze()-md?Zu&2?cd|=n:Vd(e,0):cd|=n,ud===X&&(ud=0)),Df(e)}function _f(e,t){t===0&&(t=lt()),e=Ei(e,t),e!==null&&(dt(e,t),Df(e))}function vf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function yf(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),_f(e,n)}function bf(e,t){return Fe(e,t)}var xf=null,Sf=null,Cf=!1,wf=!1,Tf=!1,Ef=0;function Df(e){e!==Sf&&e.next===null&&(Sf===null?xf=Sf=e:Sf=Sf.next=e),wf=!0,Cf||(Cf=!0,Pf())}function Of(e,t){if(!Tf&&wf){Tf=!0;do for(var n=!1,r=xf;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-Ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Nf(r,a))}else a=X,a=at(r,r===Qu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ot(r,a)||(n=!0,Nf(r,a))}r=r.next}while(n);Tf=!1}}function kf(){Af()}function Af(){wf=Cf=!1;var e=0;Ef!==0&&_p()&&(e=Ef);for(var t=ze(),n=null,r=xf;r!==null;){var i=r.next,a=jf(r,t);a===0?(r.next=null,n===null?xf=i:n.next=i,i===null&&(Sf=n)):(n=r,(e!==0||a&3)&&(wf=!0)),r=i}yd!==0&&yd!==5||Of(e,!1),Ef!==0&&(Ef=0)}function jf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ct(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Qu,n=X,n=at(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($u===2||$u===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ie(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ot(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ie(r),_t(n)){case 2:case 8:n=He;break;case 32:n=Ue;break;case 268435456:n=Ge;break;default:n=Ue}return r=Mf.bind(null,e),n=Fe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ie(r),e.callbackPriority=2,e.callbackNode=null,2}function Mf(e,t){if(yd!==0&&yd!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(df()&&e.callbackNode!==n)return null;var r=X;return r=at(e,e===Qu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Fd(e,r,t),jf(e,ze()),e.callbackNode!=null&&e.callbackNode===n?Mf.bind(null,e):null)}function Nf(e,t){if(df())return null;Fd(e,t,!0)}function Pf(){Sp(function(){Zu&6?Fe(Ve,kf):Af()})}function Ff(){if(Ef===0){var e=Ia;e===0&&(e=tt,tt<<=1,!(tt&261888)&&(tt=256)),Ef=e}return Ef}function If(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:_n(e)}function Lf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=If((i[St]||null).action),o=r.submitter;o&&(t=(t=o[St]||null)?If(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new zn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ef!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Rf=0;Rf<pi.length;Rf++){var zf=pi[Rf];mi(zf.toLowerCase(),`on`+(zf[0].toUpperCase()+zf.slice(1)))}mi(ai,`onAnimationEnd`),mi(oi,`onAnimationIteration`),mi(si,`onAnimationStart`),mi(`dblclick`,`onDoubleClick`),mi(`focusin`,`onFocus`),mi(`focusout`,`onBlur`),mi(ci,`onTransitionRun`),mi(li,`onTransitionStart`),mi(ui,`onTransitionCancel`),mi(di,`onTransitionEnd`),Bt(`onMouseEnter`,[`mouseout`,`mouseover`]),Bt(`onMouseLeave`,[`mouseout`,`mouseover`]),Bt(`onPointerEnter`,[`pointerout`,`pointerover`]),Bt(`onPointerLeave`,[`pointerout`,`pointerover`]),zt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),zt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),zt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),zt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),zt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Bf=`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(` `),Vf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Bf));function Hf(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){yi(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){yi(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[wt];n===void 0&&(n=t[wt]=new Set);var r=e+`__bubble`;n.has(r)||(Kf(t,e,2,!1),n.add(r))}function Uf(e,t,n){var r=0;t&&(r|=4),Kf(n,e,r,t)}var Wf=`_reactListening`+Math.random().toString(36).slice(2);function Gf(e){if(!e[Wf]){e[Wf]=!0,Lt.forEach(function(t){t!==`selectionchange`&&(Vf.has(t)||Uf(t,!1,e),Uf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wf]||(t[Wf]=!0,Uf(`selectionchange`,!1,t))}}function Kf(e,t,n,r){switch(Th(t)){case 2:var i=yh;break;case 8:i=bh;break;default:i=xh}n=i.bind(null,t,n,e),i=void 0,!On||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 qf(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=jt(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}Tn(function(){var r=a,i=bn(n),s=[];a:{var c=fi.get(e);if(c!==void 0){var l=zn,u=e;switch(e){case`keypress`:if(Pn(n)===0)break a;case`keydown`:case`keyup`:l=rr;break;case`focusin`:u=`focus`,l=Jn;break;case`focusout`:u=`blur`,l=Jn;break;case`beforeblur`:case`afterblur`:l=Jn;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=Kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=qn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=or;break;case ai:case oi:case si:l=Yn;break;case di:l=sr;break;case`scroll`:case`scrollend`:l=Vn;break;case`wheel`:l=cr;break;case`copy`:case`cut`:case`paste`:l=Xn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=ir;break;case`submit`:l=ar;break;case`toggle`:case`beforetoggle`:l=lr}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=En(m,p),g!=null&&d.push(Jf(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(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==yn&&(u=n.relatedTarget||n.fromElement)&&(jt(u)||u[Ct]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?jt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=ir,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:Nt(c),h=l==null?u:Nt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,jt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?E(c,l,Xf):null,c!==null&&Zf(s,u,c,d,!1),l!==null&&f!==null&&Zf(s,f,l,d,!0)))}a:{if(c=r?Nt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Or;else if(Sr(c)){if(kr)_=Rr;else{_=Ir;var v=Fr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&mn(r.elementType)&&(_=Or):_=Lr;if(_&&=_(e,r)){Cr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?Nt(r):window,e){case`focusin`:(Sr(v)||v.contentEditable===`true`)&&(Yr=v,Xr=r,Zr=null);break;case`focusout`:Zr=Xr=Yr=null;break;case`mousedown`:Qr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Qr=!1,$r(s,n,i);break;case`selectionchange`:if(Jr)break;case`keydown`:case`keyup`:$r(s,n,i)}var y;if(dr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else vr?gr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(pr&&n.locale!==`ko`&&(vr||b!==`onCompositionStart`?b===`onCompositionEnd`&&vr&&(y=Nn()):(An=i,jn=`value`in An?An.value:An.textContent,vr=!0)),v=Yf(r,b),0<v.length&&(b=new Zn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=_r(n),y!==null&&(b.data=y)))),(y=fr?yr(e,n):br(e,n))&&(b=Yf(r,`onBeforeInput`),0<b.length&&(v=new Zn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Lf(s,e,r,n,i)}Hf(s,t)})}function Jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(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=En(e,n),i!=null&&r.unshift(Jf(e,i,a)),i=En(e,t),i!=null&&r.push(Jf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Xf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Zf(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=En(n,a),l!=null&&o.unshift(Jf(n,l,c))):i||(l=En(n,a),l!=null&&o.push(Jf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Qf=/\r\n?/g,$f=/\u0000|\uFFFD/g;function ep(e){return(typeof e==`string`?e:``+e).replace(Qf,`
|
|
9
|
+
`).replace($f,``)}function tp(e,t){return t=ep(t),ep(e)===t}function np(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||un(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&un(e,``+r);else return;break;case`className`:Jt(e,`class`,r);break;case`tabIndex`:Jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Jt(e,n,r);break;case`style`:pn(e,r,o);return;case`data`:if(t!==`object`){Jt(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=_n(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`&&np(e,t,`name`,a.name,a,null),np(e,t,`formEncType`,a.formEncType,a,null),np(e,t,`formMethod`,a.formMethod,a,null),np(e,t,`formTarget`,a.formTarget,a,null)):(np(e,t,`encType`,a.encType,a,null),np(e,t,`method`,a.method,a,null),np(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=_n(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=vn);return;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;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));o?.__html!==n&&(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=_n(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`credentialless`: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`:Z(`beforetoggle`,e),Z(`toggle`,e),qt(e,`popover`,r);break;case`xlinkActuate`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Yt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Yt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:qt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=hn.get(n)||n,qt(e,n,r);else return}Gt=!0}function rp(e,t,n,r,a,o){switch(n){case`style`:pn(e,r,o);return;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));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)un(e,r);else if(typeof r==`number`||typeof r==`bigint`)un(e,``+r);else return;break;case`onScroll`:r!=null&&Z(`scroll`,e);return;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=vn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Rt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[St]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Gt=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):qt(e,n,r)}return}Gt=!0}function ip(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`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:np(e,t,o,s,n,null)}}a&&np(e,t,`srcSet`,n.srcSet,n,null),r&&np(e,t,`src`,n.src,n,null);return;case`input`:Z(`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:np(e,t,r,d,n,null)}}an(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`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:np(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&sn(e,!!r,n,!0):sn(e,!!r,t,!1);return;case`textarea`:for(s in Z(`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:np(e,t,s,c,n,null)}ln(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:np(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<Bf.length;r++)Z(Bf[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`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:np(e,t,u,r,n,null)}return;default:if(mn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&rp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&np(e,t,c,r,n,null))}var ap={};function op(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)||np(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`:m!==f&&(Gt=!0),o=m;break;case`name`:m!==f&&(Gt=!0),a=m;break;case`checked`:m!==f&&(Gt=!0),u=m;break;case`defaultChecked`:m!==f&&(Gt=!0),d=m;break;case`value`:m!==f&&(Gt=!0),s=m;break;case`defaultValue`:m!==f&&(Gt=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&np(e,t,p,m,r,f)}}rn(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)||np(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`:o!==l&&(Gt=!0),p=o;break;case`defaultValue`:o!==l&&(Gt=!0),c=o;break;case`multiple`:o!==l&&(Gt=!0),s=o;default:o!==l&&np(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?sn(e,!!n,n?[]:``,!1):sn(e,!!n,t,!0)):sn(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:np(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`:a!==o&&(Gt=!0),p=a;break;case`defaultValue`:a!==o&&(Gt=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&np(e,t,s,a,r,o)}cn(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:np(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`:p!==m&&(Gt=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:np(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)&&np(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:np(e,t,u,p,r,m)}return;default:if(mn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&rp(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||rp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&np(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||np(e,t,f,p,r,m)}function sp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function cp(){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&&sp(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&&sp(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 lp=null,up=null;function dp(e){return e.nodeType===9?e:e.ownerDocument}function fp(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 pp(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 mp(e,t,n,r){return n=dp(n).createElement(e),n[xt]=r,n[St]=t,ip(n,e,t),Ft(n),n}function hp(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 gp=null;function _p(){var e=window.event;return e&&e.type===`popstate`?e!==gp&&(gp=e,!0):(gp=null,!1)}var vp=typeof setTimeout==`function`?setTimeout:void 0,yp=typeof clearTimeout==`function`?clearTimeout:void 0,bp=typeof Promise==`function`?Promise:void 0,xp=typeof requestAnimationFrame==`function`?requestAnimationFrame:vp,Sp=typeof queueMicrotask==`function`?queueMicrotask:bp===void 0?vp:function(e){return bp.resolve(null).then(e).catch(Cp)};function Cp(e){setTimeout(function(){throw e})}function wp(e){return e===`head`}function Tp(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),Wh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)ym(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,ym(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Ot]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&ym(e.ownerDocument.body)}n=i}while(n);Wh(t)}function Ep(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 Dp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Op(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function kp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ap(e){return kp(e.getBoundingClientRect(),getComputedStyle(e),e)}function jp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return kp(t,n,e)}function Mp(e){return e.documentElement.clientHeight}function Np(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Pp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Mp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Qm(f),u>th){s.length=o;break}f=new Promise(Np.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Fp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Fp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Fp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Fp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Ip(e){return{name:e,group:new Fp(`group`,e),imagePair:new Fp(`image-pair`,e),old:new Fp(`old`,e),new:new Fp(`new`,e)}}function Lp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Lp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Hp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Bp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Rp,e,s,r)}this._eventListeners=a}};function Rp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Lp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Hp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Bp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,zp,e,n,i),r.splice(t,1),a!==null&&a()}};function zp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Bp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Vp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Hp(e,t,n,r){if(e.length===0)return-1;r=Vp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Vp(a.optionsOrUseCapture)===r)return i}return-1}Lp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Bp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Lp.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Up,e,void 0,void 0)};function Up(e,t){return e.tag!==6&&(e=b(e),hm(e,t))}Lp.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Wp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Up(t[n],e);n--);};function Wp(e,t){return t.push(e),!1}Lp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=dp(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Gp,e,void 0,void 0))};function Gp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Lp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Kp,e,void 0,void 0)};function Kp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Lp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,qp,e,void 0,void 0);for(var n=t=0;n<Jp.length;n++){var r=Jp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Jp[t++]=r}Jp.length=t}};function qp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Jp=[],Yp=!1;function Xp(e,t,n){Jp.push({fragmentInstance:e,observer:t,instance:n}),Yp||(Yp=!0,gm(function(){Yp=!1;var e=Jp;Jp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Lp.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,Zp,e,void 0,void 0),e};function Zp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Lp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Lp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Wp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Qp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Qp(e,t,n,r,i){var a=jt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=E(n,a,T),t===null?t=!1:(m(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=E(r,a,T),t===null?t=!1:(m(t,!0,w,a,r),a=x,S=x=null,t=a!==null)),t):!1}function $p(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Lp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Wp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),$p(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=b(a),$p(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function em(e,t){return e=b(e),tm(e,t),!1}function tm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Jp.length;i++){var a=Jp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Jp[r++]=a)}Jp.length=r,n.observe(e)}),tm(e,t))}function rm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Bp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Xp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function im(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`:im(n),At(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function am(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[Ot])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=dm(e.nextSibling),e===null)break}return null}function om(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=dm(e.nextSibling),e===null))return null;return e}function sm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=dm(e.nextSibling),e===null))return null;return e}function cm(e){return e.data===`$?`||e.data===`$~`}function lm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function um(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 dm(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 fm=null;function pm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return dm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function mm(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 hm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function gm(e){xp(function(){xp(function(t){return e(t)})})}function _m(e,t,n){switch(t=dp(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 vm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&np(e,t,r,null,ap,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===vn&&(e.onclick=null),At(e)}function ym(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);At(e)}var bm=new Map,xm=new Set;function Sm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Cm=R.d;R.d={f:wm,r:Tm,D:Om,C:km,L:Am,m:jm,X:Nm,S:Mm,M:Pm};function wm(){var e=Cm.f(),t=zd();return e||t}function Tm(e){var t=Mt(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Cm.r(e)}var Em=typeof document>`u`?null:document;function Dm(e,t,n){var r=Em;if(r&&typeof t==`string`&&t){var i=nn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),xm.has(i)||(xm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),ip(t,`link`,e),Ft(t),r.head.appendChild(t)))}}function Om(e){Cm.D(e),Dm(`dns-prefetch`,e,null)}function km(e,t){Cm.C(e,t),Dm(`preconnect`,e,t)}function Am(e,t,n){Cm.L(e,t,n);var r=Em;if(r&&e&&t){var i=`link[rel="preload"][as="`+nn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+nn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+nn(n.imageSizes)+`"]`)):i+=`[href="`+nn(e)+`"]`;var a=i;switch(t){case`style`:a=Im(e);break;case`script`:a=Bm(e)}if(!(bm.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),bm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Lm(a))||t===`script`&&r.querySelector(Vm(a))))){var o=r.createElement(`link`);ip(o,`link`,e),t===`style`&&(o[kt]=!0,o.onload=o.onerror=function(){It(o)}),Ft(o),r.head.appendChild(o)}}}function jm(e,t){Cm.m(e,t);var n=Em;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+nn(r)+`"][href="`+nn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Bm(e)}if(!bm.has(a)&&(e=D({rel:`modulepreload`,href:e},t),bm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Vm(a)))return}r=n.createElement(`link`),ip(r,`link`,e),Ft(r),n.head.appendChild(r)}}}function Mm(e,t,n){Cm.S(e,t,n);var r=Em;if(r&&e){var i=Pt(r).hoistableStyles,a=Im(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Lm(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=bm.get(a))&&Wm(e,n);var c=o=r.createElement(`link`);Ft(c),ip(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,Um(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Nm(e,t){Cm.X(e,t);var n=Em;if(n&&e){var r=Pt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Ft(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t){Cm.M(e,t);var n=Em;if(n&&e){var r=Pt(n).hoistableScripts,i=Bm(e),a=r.get(i);a||(a=n.querySelector(Vm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=bm.get(i))&&Gm(e,t),a=n.createElement(`script`),Ft(a),ip(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Fm(e,t,n,r){var a=(a=xe.current)?Sm(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`?(n=Im(n.href),t=Pt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Im(n.href);var o=Pt(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(Lm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=bm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bm.set(e,o)),zm(a,e,o,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`?(n=Bm(n),t=Pt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Im(e){return`href="`+nn(e)+`"`}function Lm(e){return`link[rel="stylesheet"][`+e+`]`}function Rm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function zm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[kt]){r.loading=1;return}}else t=e.createElement(`link`),t[kt]=!0,t.onload=t.onerror=It.bind(null,t),ip(t,`link`,n),Ft(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Bm(e){return`[src="`+nn(e)+`"]`}function Vm(e){return`script[async]`+e}function Hm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+nn(n.href)+`"]`);if(r)return t.instance=r,Ft(r),r;var a=D({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ft(r),ip(r,`style`,a),Um(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Im(n.href);var o=e.querySelector(Lm(a));if(o)return t.state.loading|=4,t.instance=o,Ft(o),o;r=Rm(n),(a=bm.get(a))&&Wm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),ip(o,`link`,r),t.state.loading|=4,Um(o,n.precedence,e),t.instance=o;case`script`:return o=Bm(n.src),(a=e.querySelector(Vm(o)))?(t.instance=a,Ft(a),a):(r=n,(a=bm.get(o))&&(r=D({},n),Gm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ft(a),ip(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,Um(r,n.precedence,e));return t.instance}function Um(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 Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Gm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Km=null;function qm(e,t,n){if(Km===null){var r=new Map,i=Km=new Map;i.set(n,r)}else i=Km,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[Ot]||a[xt]||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 Jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Ym(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 Xm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Zm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Qm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function $m(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Qm(t),e.suspenseyImages.push(t)),e=ah.bind(e),t.decode().then(e,e))}function eh(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=Im(r.href),a=t.querySelector(Lm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=ih.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ft(a);return}a=t.ownerDocument||t,r=Rm(r),(i=bm.get(i))&&Wm(r,i),a=a.createElement(`link`),Ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),ip(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=ih.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var th=0;function nh(e,t){return e.stylesheets&&e.count===0&&sh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&th===0&&(th=62500*cp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&sh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>th?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)sh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ih(){this.count--,rh(this)}function ah(){this.imgCount--,rh(this)}var oh=null;function sh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,oh=new Map,t.forEach(ch,e),oh=null,ih.call(e))}function ch(e,t){if(!(t.state.loading&4)){var n=oh.get(e);if(n)var r=n.get(null);else{n=new Map,oh.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=ih.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 lh={$$typeof:N,Provider:null,Consumer:null,_currentValue:me,_currentValue2:me,_threadCount:0};function uh(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=ut(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ut(0),this.hiddenUpdates=ut(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function dh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new uh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ji(3,null,null,t),e.current=a,a.stateNode=e,t=ka(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fo(a),e}function fh(e){return e?(e=ki,e):ki}function ph(e,t,n,r,i,a){i=fh(i),r.context===null?r.context=i:r.pendingContext=i,r=mo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=ho(e,r,t),n!==null&&(Pd(n,e,t),go(n,e,t))}function mh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hh(e,t){mh(e,t),(e=e.alternate)&&mh(e,t)}function gh(e){if(e.tag===13||e.tag===31){var t=Ei(e,67108864);t!==null&&Pd(t,e,67108864),hh(e,67108864)}}function _h(e){if(e.tag===13||e.tag===31){var t=jd();t=gt(t);var n=Ei(e,t);n!==null&&Pd(n,e,t),hh(e,t)}}var vh=!0;function yh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=2,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function bh(e,t,n,r){var i=L.T;L.T=null;var a=R.p;try{R.p=8,xh(e,t,n,r)}finally{R.p=a,L.T=i}}function xh(e,t,n,r){if(vh){var i=Sh(r);if(i===null)qf(e,t,r,Ch,n),Ph(e,r);else if(Ih(i,e,t,n,r))r.stopPropagation();else if(Ph(e,r),t&4&&-1<Nh.indexOf(e)){for(;i!==null;){var a=Mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=it(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ze(o);s.entanglements[1]|=c,o&=~c}Df(a),!(Zu&6)&&(gd=ze()+500,Of(0,!1))}}break;case 31:case 13:s=Ei(a,2),s!==null&&Pd(s,a,2),zd(),hh(a,2)}if(a=Sh(r),a===null&&qf(e,t,r,Ch,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else qf(e,t,r,null,n)}}function Sh(e){return e=bn(e),wh(e)}var Ch=null;function wh(e){if(Ch=null,e=jt(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 Ch=e,null}function Th(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Be()){case Ve:return 2;case He:return 8;case Ue:case We:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Eh=!1,Dh=null,Oh=null,kh=null,Ah=new Map,jh=new Map,Mh=[],Nh=`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 Ph(e,t){switch(e){case`focusin`:case`focusout`:Dh=null;break;case`dragenter`:case`dragleave`:Oh=null;break;case`mouseover`:case`mouseout`:kh=null;break;case`pointerover`:case`pointerout`:Ah.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:jh.delete(t.pointerId)}}function Fh(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=Mt(t),t!==null&&gh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ih(e,t,n,r,i){switch(t){case`focusin`:return Dh=Fh(Dh,e,t,n,r,i),!0;case`dragenter`:return Oh=Fh(Oh,e,t,n,r,i),!0;case`mouseover`:return kh=Fh(kh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ah.set(a,Fh(Ah.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,jh.set(a,Fh(jh.get(a)||null,e,t,n,r,i)),!0}return!1}function Lh(e){var t=jt(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,yt(e.priority,function(){_h(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,yt(e.priority,function(){_h(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 Rh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Sh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);yn=r,n.target.dispatchEvent(r),yn=null}else return t=Mt(n),t!==null&&gh(t),e.blockedOn=n,!1;t.shift()}return!0}function zh(e,t,n){Rh(e)&&n.delete(t)}function Bh(){Eh=!1,Dh!==null&&Rh(Dh)&&(Dh=null),Oh!==null&&Rh(Oh)&&(Oh=null),kh!==null&&Rh(kh)&&(kh=null),Ah.forEach(zh),jh.forEach(zh)}function Vh(e,n){e.blockedOn===n&&(e.blockedOn=null,Eh||(Eh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Bh)))}var Hh=null;function Uh(e){Hh!==e&&(Hh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Hh===e&&(Hh=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(wh(r||n)===null)continue;break}var a=Mt(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Wh(e){function t(t){return Vh(t,e)}Dh!==null&&Vh(Dh,e),Oh!==null&&Vh(Oh,e),kh!==null&&Vh(kh,e),Ah.forEach(t),jh.forEach(t);for(var n=0;n<Mh.length;n++){var r=Mh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Mh.length&&(n=Mh[0],n.blockedOn===null);)Lh(n),n.blockedOn===null&&Mh.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[St]||null;if(typeof a==`function`)o||Uh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[St]||null)s=o.formAction;else if(wh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Uh(n)}}}function Gh(){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 Kh(e){this._internalRoot=e}qh.prototype.render=Kh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ph(n,jd(),e,t,null,null)},qh.prototype.unmount=Kh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ph(e.current,2,null,e,null,null),zd(),t[Ct]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=vt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mh.length&&t!==0&&t<Mh[n].priority;n++);Mh.splice(n,0,e),n===0&&Lh(e)}};var Jh=n.version;if(Jh!==`19.3.0`)throw Error(i(527,Jh,`19.3.0`));R.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:f(e),e=e===null?null:e.stateNode,e};var Yh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:L,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Xh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xh.isDisabled&&Xh.supportsFiber)try{Je=Xh.inject(Yh),Ye=Xh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=yc,s=bc,c=xc;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=dh(e,1,!1,null,null,n,r,null,o,s,c,Gh),e[Ct]=t.current,Gf(e),new Kh(t)}})),_=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=g()})),v=`modulepreload`,y=function(e,t){return new URL(e,t).href},b={},x=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=function(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))},i=function(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href},a=document.getElementsByTagName(`link`),o=document.querySelector(`meta[property=csp-nonce]`),s=o?.nonce||o?.getAttribute(`nonce`);r=e(t.map(e=>{if(e=y(e,n),e=i(e),e in b)return;b[e]=!0;let t=e.endsWith(`.css`);for(let n=a.length-1;n>=0;n--){let r=a[n];if(r.href===e&&(!t||r.rel===`stylesheet`))return}let r=document.createElement(`link`);if(r.rel=t?`stylesheet`:v,t||(r.as=`script`),r.crossOrigin=``,r.href=e,s&&r.setAttribute(`nonce`,s),document.head.appendChild(r),t)return new Promise((t,n)=>{r.addEventListener(`load`,t),r.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${e}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},S=l(p(),1),C=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,w=/^[\\/]{2}/;function T(e,t){return t+e.replace(/\\/g,`/`)}var E=`popstate`;function D(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function O(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=N(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),j(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:M(t))}function r(e,t){A(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return P(t,n,r,e)}function k(e,t){if(e===!1||e==null)throw Error(t)}function A(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function ee(){return Math.random().toString(36).substring(2,10)}function te(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function j(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?N(t):t,state:n,key:t&&t.key||r||ee(),mask:i}}function M({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function N(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function P(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=D(e)?e:j(h.location,e,t);n&&n(r,e),l=u()+1;let d=te(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=D(e)?e:j(h.location,e,t);n&&n(r,e),l=u();let i=te(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return ne(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(E,d),c=e,()=>{i.removeEventListener(E,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function ne(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),k(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:M(t);return i=i.replace(/ $/,`%20`),!n&&w.test(i)&&(i=r+i),new URL(i,r)}function F(e,t,n=`/`){return re(e,t,n,!1)}function re(e,t,n,r,i){let a=z((typeof t==`string`?N(t):t).pathname||`/`,n);if(a==null)return null;let o=i??ie(e),s=null,c=ve(a);for(let e=0;s==null&&e<o.length;++e)s=me(o[e],c,r);return s}function ie(e){let t=ae(e);return se(t),t}function ae(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;k(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ee([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(k(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ae(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:L(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=_e(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of oe(e.path))a(e,t,!0,n)}),t}function oe(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=oe(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function se(e){e.sort((e,t)=>e.score===t.score?R(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var ce=/^:[\w-]+$/,le=3,ue=2,de=1,fe=10,I=-2,pe=e=>e===`*`;function L(e,t){let n=e.split(`/`),r=n.length;return n.some(pe)&&(r+=I),t&&(r+=ue),n.filter(e=>!pe(e)).reduce((e,t)=>e+(ce.test(t)?le:t===``?de:fe),r)}function R(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function me(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?ge(u,l,s.matcher,s.compiledParams):he(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=he({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Ee([a,d.pathname]),pathnameBase:Oe(Ee([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Ee([a,d.pathnameBase]))}return o}function he(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_e(e.path,e.caseSensitive,e.end);return ge(e,t,n,r)}function ge(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=De(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=De(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function _e(e,t=!1,n=!0){A(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function ve(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return A(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function z(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function ye(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?N(e):e,a;return n?(n=Te(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?be(n.substring(1),`/`):be(n,t)):a=t,{pathname:a,search:ke(r),hash:Ae(i)}}function be(e,t){let n=De(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function xe(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Se(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ce(e){let t=Se(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function we(e,t,n,r=!1){let i;typeof e==`string`?i=N(e):(i={...e},k(!i.pathname||!i.pathname.includes(`?`),xe(`?`,`pathname`,`search`,i)),k(!i.pathname||!i.pathname.includes(`#`),xe(`#`,`pathname`,`hash`,i)),k(!i.search||!i.search.includes(`#`),xe(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=ye(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Te=e=>e.replace(/[\\/]{2,}/g,`/`),Ee=e=>Te(e.join(`/`));function De(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Oe=e=>De(e).replace(/^\/*/,`/`),ke=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Ae=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,je=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Me(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Ne(e){return Ee(e.map(e=>e.route.path).filter(Boolean))||`/`}var Pe=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Fe(e,t){let n=e;if(typeof n!=`string`||!C.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Pe)try{let e=new URL(window.location.href),r=w.test(n)?new URL(T(n,e.protocol)):new URL(n),a=z(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{A(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Ie=new URL(`http://localhost`);function Le(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),Ie)}catch{return Ie}}function Re(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ze(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function Be(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!Re(i,n),s=!Re(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ze(e,i)||!Re(i,a)))throw Error(`External navigation is not allowed`)}var Ve=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(Ve);var He=[`GET`,...Ve];new Set(He);var Ue=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function We(e){try{return Ue.includes(new URL(e).protocol)}catch{return!1}}var Ge=S.createContext(null);Ge.displayName=`DataRouter`;var Ke=S.createContext(null);Ke.displayName=`DataRouterState`;var qe=S.createContext(!1);function Je(){return S.useContext(qe)}var Ye=S.createContext({isTransitioning:!1});Ye.displayName=`ViewTransition`;var Xe=S.createContext(new Map);Xe.displayName=`Fetchers`;var Ze=S.createContext(null);Ze.displayName=`Await`;var Qe=S.createContext(null);Qe.displayName=`Navigation`;var $e=S.createContext(null);$e.displayName=`Location`;var et=S.createContext({outlet:null,matches:[],isDataRoute:!1});et.displayName=`Route`;var tt=S.createContext(null);tt.displayName=`RouteError`;var nt=`REACT_ROUTER_ERROR`,rt=`REDIRECT`,it=`ROUTE_ERROR_RESPONSE`;function at(e){if(e.startsWith(`${nt}:${rt}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ot(e){if(e.startsWith(`${nt}:${it}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new je(t.status,t.statusText,t.data)}catch{}}function st(e,{relative:t}={}){k(ct(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=S.useContext(Qe),{hash:i,pathname:a,search:o}=ht(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ee([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ct(){return S.useContext($e)!=null}function lt(){return k(ct(),`useLocation() may be used only in the context of a <Router> component.`),S.useContext($e).location}var ut=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function dt(e){S.useContext(Qe).static||S.useLayoutEffect(e)}function ft(){let{isDataRoute:e}=S.useContext(et);return e?Mt():pt()}function pt(){k(ct(),`useNavigate() may be used only in the context of a <Router> component.`);let e=S.useContext(Ge),{basename:t,navigator:n}=S.useContext(Qe),{matches:r}=S.useContext(et),{pathname:i}=lt(),a=JSON.stringify(Ce(r)),o=S.useRef(!1);return dt(()=>{o.current=!0}),S.useCallback((r,s={})=>{if(A(o.current,ut),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=we(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ee([t,c.pathname])),Be(typeof r==`string`?r:M(r),n.createHref(c),Le(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}S.createContext(null);function mt(){let{matches:e}=S.useContext(et);return e[e.length-1]?.params??{}}function ht(e,{relative:t}={}){let{matches:n}=S.useContext(et),{pathname:r}=lt(),i=JSON.stringify(Ce(n));return S.useMemo(()=>we(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function gt(e,t){return _t(e,t)}function _t(e,t,n){k(ct(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=S.useContext(Qe),{matches:i}=S.useContext(et),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;Pt(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
10
10
|
|
|
11
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=lt(),d;if(t){let e=typeof t==`string`?N(t):t;k(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):F(e,{pathname:p});A(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),A(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=wt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ee([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ee([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement($e.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function vt(){let e=jt(),t=Me(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var yt=S.createElement(vt,null),bt=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ot(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(et.Provider,{value:this.props.routeContext},S.createElement(tt.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(St,{error:e},t):t}};bt.contextType=qe;var xt=new WeakMap;function St({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(Qe);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=at(t.digest);if(e){let i=xt.get(t);if(i)throw i;let a=Fe(e.location,n),o=a.absoluteURL||a.to;if(Be(e.location,o,Le(r),`allow-explicit`),We(o))throw Error(`Invalid redirect location`);if(Pe&&!xt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw xt.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ct({routeContext:e,match:t,children:n}){let r=S.useContext(Ge);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(et.Provider,{value:e},n)}function wt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);k(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ne(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||yt,o&&(s<0&&c===0?(Pt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Ct,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(bt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Tt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Et(e){let t=S.useContext(Ge);return k(t,Tt(e)),t}function Dt(e){let t=S.useContext(Ke);return k(t,Tt(e)),t}function Ot(e){let t=S.useContext(et);return k(t,Tt(e)),t}function kt(e){let t=Ot(e),n=t.matches[t.matches.length-1];return k(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function At(){return kt(`useRouteId`)}function jt(){let e=S.useContext(tt),t=Dt(`useRouteError`),n=kt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Mt(){let{router:e}=Et(`useNavigate`),t=kt(`useNavigate`),n=S.useRef(!1);return dt(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{A(n.current,ut),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Nt={};function Pt(e,t,n){!t&&!Nt[e]&&(Nt[e]=!0,A(!1,n))}S.memo(Ft);function Ft({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return _t(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function It({to:e,replace:t,state:n,relative:r}){k(ct(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=S.useContext(Qe);A(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=S.useContext(et),{pathname:s}=lt(),c=ft(),l=we(e,Ce(o),s,r===`path`);Be(typeof e==`string`?e:M(e),a.createHref(l),Le(a),`reject`);let u=JSON.stringify(l);return S.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lt(e){k(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Rt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){k(!ct(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=N(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=z(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return A(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(Qe.Provider,{value:c},S.createElement($e.Provider,{children:t,value:h}))}function zt({children:e,location:t}){return gt(Bt(e),t)}S.Component;function Bt(e,t=[]){let n=[];return S.Children.forEach(e,(e,r)=>{if(!S.isValidElement(e))return;let i=[...t,r];if(e.type===S.Fragment){n.push.apply(n,Bt(e.props.children,i));return}k(e.type===Lt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),k(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Bt(e.props.children,i)),n.push(a)}),n}var Vt=`get`,Ht=`application/x-www-form-urlencoded`;function Ut(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Wt(e){return Ut(e)&&e.tagName.toLowerCase()===`button`}function Gt(e){return Ut(e)&&e.tagName.toLowerCase()===`form`}function Kt(e){return Ut(e)&&e.tagName.toLowerCase()===`input`}function qt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jt(e,t){return e.button===0&&(!t||t===`_self`)&&!qt(e)}var Yt=null;function Xt(){if(Yt===null)try{new FormData(document.createElement(`form`),0),Yt=!1}catch{Yt=!0}return Yt}var Zt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Qt(e){return e!=null&&!Zt.has(e)?(A(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ht}"`),null):e}function $t(e,t){let n,r,i,a,o;if(Gt(e)){let o=e.getAttribute(`action`);r=o?z(o,t):null,n=e.getAttribute(`method`)||Vt,i=Qt(e.getAttribute(`enctype`))||Ht,a=new FormData(e)}else if(Wt(e)||Kt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?z(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Vt,i=Qt(e.getAttribute(`formenctype`))||Qt(o.getAttribute(`enctype`))||Ht,a=new FormData(o,e),!Xt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Ut(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Vt,r=null,i=Ht,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function en(e,t){if(e===!1||e==null)throw Error(t)}function tn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&z(i.pathname,t)===`/`?`${De(t)}/_root.${r}`:`${De(i.pathname)}.${r}`,i}async function nn(e,t){if(e.id in t)return t[e.id];try{let n=await x(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rn(e){return e!=null&&typeof e.page==`string`}function an(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function on(e,t,n){return dn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await nn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(an).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function sn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function cn(e,t,{includeHydrateFallback:n}={}){return ln(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function ln(e){return[...new Set(e)]}function un(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!rn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(un(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function fn(){let e=S.useContext(Ge);return en(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function pn(){let e=S.useContext(Ke);return en(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var mn=S.createContext(void 0);mn.displayName=`FrameworkContext`;function hn(){let e=S.useContext(mn);return en(e,`You must render this element inside a <HydratedRouter> element`),e}function gn(e,t){let n=S.useContext(mn),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:_n(s,p),onBlur:_n(c,m),onMouseEnter:_n(l,p),onMouseLeave:_n(u,m),onTouchStart:_n(d,p)}]:[a,f,{}]:[!1,f,{}]}function _n(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function vn({page:e,...t}){let n=Je(),{nonce:r}=hn(),{router:i}=fn(),a=S.useMemo(()=>F(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(bn,{page:e,matches:a,...t}):S.createElement(xn,{page:e,matches:a,...t})):null}function yn(e){let{manifest:t,routeModules:n}=hn(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return on(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function bn({page:e,matches:t,...n}){let r=lt(),{future:i}=hn(),{basename:a}=fn(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=tn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function xn({page:e,matches:t,...n}){let r=lt(),{future:i,manifest:a,routeModules:o}=hn(),{basename:s}=fn(),{loaderData:c,matches:l}=pn(),u=S.useMemo(()=>sn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>sn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=tn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>cn(d,a),[d,a]),m=yn(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Sn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var Cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Cn&&(window.__reactRouterVersion=`7.18.5`)}catch{}function wn({basename:e,children:t,useTransitions:n,window:r}){let i=S.useRef();i.current??=O({window:r,v5Compat:!0});let a=i.current,[o,s]=S.useState({action:a.action,location:a.location}),c=S.useCallback(e=>{n===!1?s(e):S.startTransition(()=>s(e))},[n]);return S.useLayoutEffect(()=>a.listen(c),[a,c]),S.createElement(Rt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Tn=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(Qe),v=typeof l==`string`&&C.test(l),y=Fe(l,h);l=y.to;let b=st(l,{relative:r}),x=lt(),w=null;if(o){let e=we(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ee([h,e.pathname])),w=g.createHref(e)}let[T,E,D]=gn(n,p),O=An(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(y.isExternal||i),ee=S.createElement(`a`,{...p,...D,href:(A?w:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:Sn(m,E),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return T&&!v?S.createElement(S.Fragment,null,ee,S.createElement(vn,{page:b})):ee});Tn.displayName=`Link`;var En=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ht(a,{relative:c.relative}),d=lt(),f=S.useContext(Ke),{navigator:p,basename:m}=S.useContext(Qe),h=f!=null&&Fn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=z(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(Tn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});En.displayName=`NavLink`;var Dn=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Vt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(Qe),g=Nn(),_=Pn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&C.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Dn.displayName=`Form`;function On(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kn(e){let t=S.useContext(Ge);return k(t,On(e)),t}function An(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=ft(),d=lt(),f=ht(e,{relative:o});return S.useCallback(p=>{if(Jt(p,t)){p.preventDefault();let t=n===void 0?M(d)===M(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var jn=0,Mn=()=>`__${String(++jn)}__`;function Nn(){let{router:e}=kn(`useSubmit`),{basename:t}=S.useContext(Qe),n=At(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=$t(e,t);if(a.navigate===!1){let e=a.fetcherKey||Mn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Pn(e,{relative:t}={}){let{basename:n}=S.useContext(Qe),r=S.useContext(et);k(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ht(e||`.`,{relative:t})},o=lt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ee([n,a.pathname])),M(a)}function Fn(e,{relative:t}={}){let n=S.useContext(Ye);k(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=kn(`useViewTransitionState`),i=ht(e,{relative:t});if(!n.isTransitioning)return!1;let a=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return he(i.pathname,o)!=null||he(i.pathname,a)!=null}var In=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Ln=o(((e,t)=>{t.exports=In()})),Rn=_(),zn=Ln(),Bn=Object.prototype.hasOwnProperty;function Vn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Vn(e[r],t[r]););return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(Bn.call(e,n)&&++r&&!Bn.call(t,n)||!(n in t)||!Vn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Hn=new WeakMap,Un=()=>{},Wn=Object,B=e=>e===void 0,Gn=e=>typeof e==`function`,Kn=(e,t)=>({...e,...t}),qn=e=>Gn(e.then),Jn={},Yn={},Xn=`undefined`,Zn=typeof window!=Xn,Qn=typeof document!=Xn,$n=Zn&&`Deno`in window,er=()=>Zn&&typeof window.requestAnimationFrame!=Xn,tr=(e,t)=>{let n=Hn.get(e);return[()=>!B(t)&&e.get(t)||Jn,r=>{if(!B(t)){let i=e.get(t);t in Yn||(Yn[t]=i),n[5](t,Kn(i,r),i||Jn)}},n[6],()=>!B(t)&&t in Yn?Yn[t]:!B(t)&&e.get(t)||Jn]},nr=!0,rr=()=>nr,[ir,ar]=Zn&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Un,Un],or=()=>{let e=Qn&&document.visibilityState;return B(e)||e!==`hidden`},sr=e=>(Qn&&document.addEventListener(`visibilitychange`,e),ir(`focus`,e),()=>{Qn&&document.removeEventListener(`visibilitychange`,e),ar(`focus`,e)}),cr=e=>{let t=()=>{nr=!0,e()},n=()=>{nr=!1};return ir(`online`,t),ir(`offline`,n),()=>{ar(`online`,t),ar(`offline`,n)}},lr={isOnline:rr,isVisible:or},ur={initFocus:sr,initReconnect:cr},dr=!S.useId,fr=!Zn||$n,pr=e=>er()?window.requestAnimationFrame(e):setTimeout(e,1),mr=fr?S.useEffect:S.useLayoutEffect,hr=typeof navigator<`u`&&navigator.connection,gr=!fr&&hr&&([`slow-2g`,`2g`].includes(hr.effectiveType)||hr.saveData),_r=new WeakMap,vr=e=>Wn.prototype.toString.call(e),yr=(e,t)=>e===`[object ${t}]`,br=0,xr=e=>{let t=typeof e,n=vr(e),r=yr(n,`Date`),i=yr(n,`RegExp`),a=yr(n,`Object`),o,s;if(Wn(e)===e&&!r&&!i){if(o=_r.get(e),o)return o;if(o=++br+`~`,_r.set(e,o),Array.isArray(e)){for(o=`@`,s=0;s<e.length;s++)o+=xr(e[s])+`,`;_r.set(e,o)}if(a){o=`#`;let t=Wn.keys(e).sort();for(;!B(s=t.pop());)B(e[s])||(o+=s+`:`+xr(e[s])+`,`);_r.set(e,o)}}else o=r?e.toJSON():t==`symbol`?e.toString():t==`string`?JSON.stringify(e):``+e;return o},Sr=e=>{if(Gn(e))try{e=e()}catch{e=``}let t=e;return e=typeof e==`string`?e:(Array.isArray(e)?e.length:e)?xr(e):``,[e,t]},Cr=0,wr=()=>++Cr;async function Tr(...e){let[t,n,r,i]=e,a=Kn({populateCache:!0,throwOnError:!0},typeof i==`boolean`?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,c=a.optimisticData,l=e=>typeof s==`function`?s(e):s!==!1,u=a.throwOnError;if(Gn(n)){let e=n,r=[],i=t.keys();for(let n of i)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){let[i]=Sr(n);if(!i)return;let[s,d]=tr(t,i),[f,p,m,h]=Hn.get(t),g=()=>{let e=f[i];return(Gn(a.revalidate)?a.revalidate(s().data,n):a.revalidate!==!1)&&(delete m[i],delete h[i],e&&e[0])?e[0](2).then(()=>s().data):s().data};if(e.length<3)return g();let _=r,v,y=!1,b=wr();p[i]=[b,0];let x=!B(c),S=s(),C=S.data,w=S._c,T=B(w)?C:w;if(x&&(c=Gn(c)?c(T,C):c,d({data:c,_c:T})),Gn(_))try{_=_(T)}catch(e){v=e,y=!0}if(_&&qn(_)){if(_=await _.catch(e=>{v=e,y=!0}),b!==p[i][0]){if(y)throw v;return _}y&&x&&l(v)&&(o=!0,d({data:T,_c:void 0}))}if(o&&(y||(Gn(o)?d({data:o(_,T),error:void 0,_c:void 0}):d({data:_,error:void 0,_c:void 0}))),p[i][1]=wr(),Promise.resolve(g()).then(()=>{d({_c:void 0})}),y){if(u)throw v;return}return _}}var Er=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},Dr=(e,t)=>{if(!Hn.has(e)){let n=Kn(ur,t),r=Object.create(null),i=Tr.bind(void 0,e),a=Un,o=Object.create(null),s=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>{let e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}},c=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},l=t=>{let n=Hn.get(e),[,i,a,s]=n,c=wr();n[8]++;for(let e in a)delete a[e];for(let e in s)delete s[e];for(let e in i)i[e]=[c,c];let l={};for(let t of[...e.keys()]){let n=e.get(t);e.delete(t);let r=o[t];if(r)for(let e of r)e(l,n)}let u=!t||t.revalidate!==!1;for(let e in r){let t=r[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:u&&!e})}},u=()=>{if(!Hn.has(e)&&(Hn.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,c,s,l,0]),!fr)){let t=n.initFocus(setTimeout.bind(void 0,Er.bind(void 0,r,0))),i=n.initReconnect(setTimeout.bind(void 0,Er.bind(void 0,r,1)));a=()=>{t&&t(),i&&i(),Hn.delete(e)}}};return u(),[e,i,u,a,l]}let n=Hn.get(e);return[e,n[4],void 0,void 0,n[7]]},Or=(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!B(a)&&o>a||setTimeout(r,s,i)},kr=Vn,[Ar,jr,,,Mr]=Dr(new Map),Nr=Kn({onLoadingSlow:Un,onSuccess:Un,onError:Un,onErrorRetry:Or,onDiscarded:Un,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:gr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:gr?5e3:3e3,compare:kr,isPaused:()=>!1,cache:Ar,mutate:jr,unload:Mr,fallback:{}},lr),Pr=(e,t)=>{let n=Kn(e,t);if(t){let{use:r,fallback:i,cacheData:a}=e,{use:o,fallback:s,cacheData:c}=t;r&&o&&(n.use=r.concat(o)),i&&s&&(n.fallback=Kn(i,s)),a&&c&&(n.cacheData=Kn(a,c))}return n},Fr=(0,S.createContext)({}),Ir=e=>{let{value:t}=e,n=(0,S.useContext)(Fr),r=Gn(t),i=(0,S.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,S.useMemo)(()=>r?i:Pr(n,i),[r,n,i]),o=i&&i.provider,s=(0,S.useRef)(void 0);o&&!s.current&&(s.current=Dr(o(a.cache||Ar),i));let c=s.current;return c&&(a.cache=c[0],a.mutate=c[1],a.unload=c[4]),mr(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,S.createElement)(Fr.Provider,Kn(e,{value:a}))},Lr=`$inf$`,Rr=Zn&&window.__SWR_DEVTOOLS_USE__,zr=Rr?window.__SWR_DEVTOOLS_USE__:[],Br=()=>{Rr&&(window.__SWR_DEVTOOLS_REACT__=S.default)},Vr=e=>Gn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],Hr=()=>{let e=(0,S.useContext)(Fr);return(0,S.useMemo)(()=>Kn(Nr,e),[e])},Ur=zr.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{let[r]=Sr(t),[,,,i]=Hn.get(Ar);if(r.startsWith(`$inf$`))return n(...e);let a=i[r];return B(a)?n(...e):(delete i[r],a)}),r)),Wr=e=>function(...t){let n=Hr(),[r,i,a]=Vr(t),o=Pr(n,a),s=e,{use:c}=o,l=(c||[]).concat(Ur);for(let e=l.length;e--;)s=l[e](s);return s(r,i||o.fetcher||null,o)},Gr=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Kr=(e,t)=>(...n)=>{let[r,i,a]=Vr(n),o=(a.use||[]).concat(t);return e(r,i,{...a,use:o})};Br();var qr=S.use||(e=>{switch(e.status){case`pending`:throw e;case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:throw e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t}),e}}),Jr={dedupe:!0},Yr=(e,t,n)=>t?e.get(t)?.has(n)===!0:!1,Xr=(e,t,n)=>{if(!t)return;let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)},Zr=({value:e,getCacheData:t,canCommit:n,setCache:r})=>{let i=e=>{n()&&B(t())&&r(e)};Promise.resolve(e).then(e=>{i({data:e,error:void 0})},e=>{i({error:e})})},Qr=Promise.resolve(void 0);Qr.status=`fulfilled`,Qr.value=void 0;var $r=()=>Un,ei=(e,t,n)=>{let{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:l,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f,strictServerPrefetchWarning:p}=n,[m,h,g,_]=Hn.get(r),[v,y]=Sr(e),b=(0,S.useRef)(!1),x=(0,S.useRef)(!1),C=(0,S.useRef)(v),w=(0,S.useRef)(t),T=(0,S.useRef)(n),E=()=>T.current,D=()=>E().isVisible()&&E().isOnline(),[O,k,A,ee]=tr(r,v),te=(0,S.useRef)({}).current,j=B(o)?B(n.fallback)?void 0:n.fallback[v]:o,M=n.cacheData,N=v?M?.[v]:void 0,P=v?_[v]:void 0,ne=B(P)&&!B(N),F=ne?N:P,re=(e,t)=>{for(let n in te){let r=n;if(r===`data`){if(!i(e[r],t[r])&&(!B(e[r])||!i(L,t[r])))return!1}else if(t[r]!==e[r])return!1}return!0},ie=!b.current,ae=(0,S.useMemo)(()=>{let e=O(),n=ee(),r=e=>{let n=Kn(e);return delete n._k,(()=>{if(!v||!t||E().isPaused())return!1;if(ie&&!B(s))return s;let e=B(j)?n.data:j;return a&&ne&&B(e)?!1:B(e)||c})()?{isValidating:!0,isLoading:!0,...n}:n},i=r(e),o=e===n?i:r(n),l=i;return[()=>{let e=r(O());return re(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>o]},[r,v]),oe=(0,zn.useSyncExternalStore)((0,S.useCallback)(e=>A(v,(t,n)=>{re(n,t)||e()}),[r,v]),ae[0],ae[1]),se=m[v]&&m[v].length>0,ce=oe.data,le=B(ce)?j&&qn(j)?qr(j):j:ce,ue=oe.error,de=(0,S.useRef)(le),fe=(0,S.useRef)(void 0),I=fe.current;I||(I=new WeakMap,fe.current=I);let pe=(0,S.useRef)(null),L=f?B(ce)?B(de.current)?le:de.current:ce:le,R=v&&B(le),me=(0,S.useRef)(null);!fr&&(0,zn.useSyncExternalStore)($r,()=>(me.current=!1,me),()=>(me.current=!0,me));let he=me.current;p&&he&&!a&&R&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ge=!v||!t||E().isPaused()||se&&!B(ue)?!1:ie&&!B(s)?s:a&&ne&&R?!1:a?!B(le)&&c:B(le)||c,_e=ie&&ge,ve=B(oe.isValidating)?_e:oe.isValidating,z=B(oe.isLoading)?_e:oe.isLoading,ye=(0,S.useCallback)(async e=>{let t=w.current;if(!v||!t||x.current||E().isPaused())return!1;let r,a,o=!0,s=e||{},c=!g[v]||!s.dedupe,l=ne&&!Yr(I,M,v)&&!B(F)&&B(O().data),u=()=>dr?!x.current&&v===C.current&&b.current:v===C.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{let e=g[v];e&&e[1]===a&&delete g[v]},S={isValidating:!0};B(O().data)&&(S.isLoading=!0);try{if(c&&(k(S),n.loadingTimeout&&B(O().data)&&setTimeout(()=>{o&&u()&&E().onLoadingSlow(v,n)},n.loadingTimeout),l&&Xr(I,M,v),g[v]=[l?F:t(y),wr()],l&&_[v]&&delete _[v]),[r,a]=g[v],r=await r,c&&setTimeout(p,n.dedupingInterval),!g[v]||g[v][1]!==a)return c&&u()&&E().onDiscarded(v),!1;d.error=void 0;let e=h[v];if(!B(e)&&(a<=e[0]||a<=e[1]||e[1]===0))return f(),c&&u()&&E().onDiscarded(v),!1;let s=O().data;d.data=i(s,r)?s:r,c&&u()&&E().onSuccess(r,v,n)}catch(e){p();let t=E(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&u()&&(t.onError(e,v,t),(n===!0||Gn(n)&&n(e))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||D())&&t.onErrorRetry(e,v,t,e=>{let t=m[v];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[v,r]),be=(0,S.useCallback)((...e)=>Tr(r,C.current,...e),[]);if(mr(()=>{let e=pe.current;e&&(pe.current=null,Xr(I,e.cacheData,e.key),B(O().data)&&k({data:e.data,error:void 0,_k:e._k}),_[e.key]&&delete _[e.key])}),mr(()=>{w.current=t,T.current=n,B(ce)||(de.current=ce)}),mr(()=>{if(t||!ne||B(F)||Yr(I,M,v)||!B(O().data))return;Xr(I,M,v);let e=h[v];Zr({value:F,getCacheData:()=>O().data,canCommit:()=>!x.current&&v===C.current&&h[v]===e,setCache:e=>k({...e,_k:y})})}),mr(()=>{if(!v)return;let e=ye.bind(void 0,Jr),t=0;E().revalidateOnFocus&&(t=Date.now()+E().focusThrottleInterval);let n=Gr(v,m,(n,r={})=>{if(n==0){let n=Date.now();E().revalidateOnFocus&&n>t&&D()&&(t=n+E().focusThrottleInterval,e())}else if(n==1)E().revalidateOnReconnect&&D()&&e();else if(n==2)return ye();else if(n==3)return ye(r);else if(n==4&&(de.current=void 0,r.revalidate))return ye()});return x.current=!1,C.current=v,b.current=!0,k({_k:y}),ge&&(g[v]||(B(le)||fr?e():pr(e))),()=>{x.current=!0,n()}},[v]),mr(()=>{let e;function t(){let t=Gn(l)?l(O().data):l;t&&e!==-1&&(e=setTimeout(n,t))}function n(){!O().error&&(u||E().isVisible())&&(d||E().isOnline())?ye(Jr).then(t):t()}return t(),()=>{e&&=(clearTimeout(e),-1)}},[l,u,d,v]),(0,S.useDebugValue)(L),a){if(!dr&&fr&&R&&B(F))throw Error(`Fallback data is required when using Suspense in SSR.`);R&&(w.current=t,T.current=n,x.current=!1);let e=!B(F)&&R,r;if(e&&ne?(r=F&&qn(F)?qr(F):F,le=r,L=r,fr||(pe.current={data:r,_k:y,key:v,cacheData:M})):qr(e?be(F):Qr),!B(ue)&&R)throw ue;let i=R&&B(r)?ye(Jr):Qr;!B(L)&&R&&(i.status=`fulfilled`,i.value=!0),qr(i)}return{mutate:be,get data(){return te.data=!0,L},get error(){return te.error=!0,ue},get isValidating(){return te.isValidating=!0,ve},get isLoading(){return te.isLoading=!0,z}}};Wn.defineProperty(Ir,`defaultValue`,{value:Nr});var ti=Wr(ei),ni=new WeakMap,ri=`$sub$`,ii=Kr(ti,e=>(t,n,r)=>{let[i,a]=Sr(t),o=i?ri+i:void 0,s=e(o,null,r),{cache:c}=r;ni.has(c)||ni.set(c,[new Map,new Map]);let[l,u]=ni.get(c);return mr(()=>{if(!o)return;let[,e]=tr(c,o),t=l.get(o)||0,r=(t,n)=>{t==null?(e({error:void 0}),s.mutate(n,!1)):e({error:t})};if(l.set(o,t+1),!t){let e=n(a,{next:r});if(typeof e!=`function`)throw Error("The `subscribe` function must return a function to unsubscribe.");u.set(o,e)}return()=>{let e=l.get(o)-1;l.set(o,e),e||(u.get(o)?.(),l.delete(o),u.delete(o))}},[o]),{get data(){return s.data},get error(){return s.error}}}),ai=e=>[`actors`,e],oi=e=>[`actors/events`,e],si=e=>[`requests`,e],ci=(e,t)=>[`requests/events`,e,t],li=(e,t)=>[`residency`,e,t],ui=e=>[`websockets`,e],di=(e,{actorName:t,actorId:n,requestId:r,level:i,search:a})=>[`logs`,e,t,n,r,i,a],fi=(e,{actorName:t,actorId:n,requestId:r,search:i})=>[`logs/histogram`,e,t,n,r,i],pi=(e,t)=>[`logs/events`,...di(e,t).slice(1)],mi=500,hi=20,gi=`/api/observe`,_i=200,vi=class{baseUrl;constructor(e=gi){this.baseUrl=e}async listActorTypes(){return await this.get(`actors`)}async listRequests({fromMs:e,toMs:t,limit:n=mi,cursor:r,actorName:i,actorId:a}){let o=new URLSearchParams({fromMs:String(e),toMs:String(t),limit:String(n)});return r&&o.set(`cursor`,r),i&&o.set(`actorName`,i),a&&o.set(`actorId`,a),await this.get(`requests?${o}`)}async listResidency(e,{fromMs:t,toMs:n}){let r=new URLSearchParams({actorName:e,fromMs:String(t),toMs:String(n)});return await this.get(`residency?${r}`)}async listWebSockets(){return await this.get(`websockets`)}async listLogs(e,{fromMs:t,toMs:n},r){let i=yi(e);return i.set(`fromMs`,String(t)),i.set(`toMs`,String(n)),i.set(`limit`,String(_i)),r&&i.set(`cursor`,r),await this.get(`logs?${i}`)}async getLogHistogram(e,{fromMs:t,toMs:n},r){let i=yi({...e,level:null});return i.set(`fromMs`,String(t)),i.set(`toMs`,String(n)),i.set(`bucketMs`,String(r)),await this.get(`logs/histogram?${i}`)}async collectRequests(e,t={}){let n=[],r;for(let i=0;i<hi;i++){let i=await this.listRequests({...e,...t,cursor:r});if(n.push(...i.records),!i.nextCursor||i.nextCursor===r||i.records.length===0)break;r=i.nextCursor}return n}async get(e){let t=await fetch(`${this.baseUrl.replace(/\/$/u,``)}/${e}`,{method:`GET`,credentials:`include`,redirect:`error`,headers:{accept:`application/json`}});if(!t.ok)throw Error(`Connection check failed (HTTP ${t.status}).`);return await t.json()}};function yi({actorName:e,actorId:t,requestId:n,level:r,search:i}){let a=new URLSearchParams({actorName:e,actorId:t});return n&&a.set(`requestId`,n),r&&a.set(`level`,r),i&&a.set(`search`,i),a}function bi(e,t){let n=new EventSource(`${e}/events`,{withCredentials:!0});return n.addEventListener(`inventory`,e=>t(JSON.parse(e.data))),()=>n.close()}function xi(e){let{data:t,error:n,isLoading:r}=ti(ai(e),()=>new vi(e).listActorTypes()),{data:i}=ii(oi(e),(t,{next:n})=>bi(e,e=>n(null,e)));return{actorTypes:i??t??null,isLoading:r,isError:!i&&!!n,error:n}}function Si(e,t){let n=new EventSource(`${e}/requests/events`,{withCredentials:!0});return n.addEventListener(`requests`,e=>t(JSON.parse(e.data))),()=>n.close()}function Ci(e,t,n,r){return ti([...e,...wi(t)],()=>n(Ti(t)),r)}function wi({fromMs:e,toMs:t,live:n}){return n?[`live`,t-e]:[e,t]}function Ti({fromMs:e,toMs:t,live:n}){if(!n)return{fromMs:e,toMs:t};let r=Date.now();return{fromMs:r-(t-e),toMs:r}}function Ei(e,t){let{live:n,fromMs:r,toMs:i}=t,a=i-r,{data:o,error:s,isLoading:c}=Ci(si(e),t,t=>new vi(e).collectRequests(t)),{data:l}=ii(n?ci(e,a):null,(t,{next:n})=>Si(e,e=>n(null,t=>Di(t??[],e.records,a))));return{requests:n&&(o||l)?Di(o??[],l??[],a):o??null,isLoading:c,isError:!l&&!!s,error:s}}function Di(e,t,n){let r=Date.now()-n;return[...new Map([...e,...t].map(e=>[e.eventId,e])).values()].filter(e=>e.startedAtMs>=r)}var Oi=15e3;function ki(e){let{data:t,error:n,isLoading:r}=ti(ui(e),()=>new vi(e).listWebSockets(),{refreshInterval:Oi});return{sessions:t??null,isLoading:r,isError:!t&&!!n,error:n}}var Ai=new Intl.NumberFormat(`en-US`),ji=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:1}),Mi=new Intl.NumberFormat(`en-US`,{maximumSignificantDigits:2}),Ni=new Intl.NumberFormat(`en-US`,{style:`percent`,minimumFractionDigits:1,maximumFractionDigits:1}),Pi=new Intl.NumberFormat(`en-US`,{style:`percent`,signDisplay:`exceptZero`,minimumFractionDigits:1,maximumFractionDigits:1}),Fi=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),Ii=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),Li=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),Ri=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),zi=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hourCycle:`h23`}),Bi=(e,t)=>(n,r)=>`${e.format(n)} – ${new Date(n).toDateString()===new Date(r).toDateString()?t.format(r):e.format(r)}`,Vi=e=>Fi.format(e),Hi=e=>Li.format(e),Ui=e=>Ri.format(e),Wi=(e,t)=>(t<864e5?Fi:Ii).format(e),Gi=Bi(Ii,Fi),Ki=Bi(Ri,Li),qi=e=>zi.format(e),V=e=>Ai.format(e),Ji=e=>ji.format(e),Yi=e=>Ni.format(e),Xi=e=>Pi.format(e),Zi=e=>e<10?Mi.format(e):Ai.format(Math.round(e)),Qi=e=>`${Zi(e)}\u00a0ms`,$i=(e,t)=>`${Ai.format(e)} ${e===1?t:`${t}s`}`;function ea(e){if(e<6e4)return`${Math.round(e/1e3)}\u00a0s`;let t=Math.round(e/6e4);return t<60?`${t}\u00a0min`:t<2880?`${ji.format(t/60)}\u00a0h`:`${ji.format(t/1440)}\u00a0d`}function ta(e,t){let n=Math.max(0,Math.round((t-e)/1e3));return n<60?`${n}\u00a0s ago`:n<3600?`${Math.floor(n/60)}\u00a0min ago`:n<86400?`${Math.floor(n/3600)}\u00a0h ago`:`${Math.floor(n/86400)}\u00a0d ago`}var na=1e3,H=60*na,ra=60*H,ia=30,aa=[10*na,30*na,H,2*H,5*H,15*H,30*H,ra,3*ra,6*ra,12*ra,24*ra],oa={mode:`live`,durationMs:ra};function sa(){let e=Date.now();return{mode:`static`,fromMs:e-ra,toMs:e}}var ca=[{label:`Last 15 minutes`,durationMs:15*H},{label:`Last 1 hour`,durationMs:ra},{label:`Last 6 hours`,durationMs:6*ra},{label:`Last 24 hours`,durationMs:24*ra},{label:`Last 7 days`,durationMs:168*ra}];function la(e){return ca.find(t=>t.durationMs===e)?.label??`Last ${Math.round(e/H)} minutes`}function ua(e,t){let[n,r]=e.mode===`live`?[t-e.durationMs,t]:[e.fromMs,e.toMs];return{fromMs:n,toMs:r,stepMs:ya(r-n),live:e.mode===`live`}}function da(e,t){let[n=0,r=0]=t.split(`:`).map(Number);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),n,r).getTime()}function fa({fromMs:e,toMs:t,live:n}){return n?{mode:`static`,fromMs:e,toMs:t}:{mode:`live`,durationMs:t-e}}function pa({fromMs:e,toMs:t,live:n}){return n?`last ${ea(t-e)}`:Gi(e,t)}function ma({fromMs:e,toMs:t,live:n},r){let i=t-e;return Array.from({length:r+1},(t,a)=>n&&a===r?`Now`:Wi(e+a/r*i,i))}function ha(e,t){return Wi(ga(e,t),e.toMs-e.fromMs)}function ga({fromMs:e,toMs:t,stepMs:n},r){return Math.min(e+(r+1)*n,t)}function _a({fromMs:e,toMs:t,stepMs:n}){return Math.max(1,Math.ceil((t-e)/n))}function va(e,t){return t<e.fromMs||t>e.toMs?null:Math.min(Math.floor((t-e.fromMs)/e.stepMs),_a(e)-1)}function ya(e){return aa.find(t=>e/t<=ia)??aa.at(-1)}var ba=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),U=o(((e,t)=>{t.exports=ba()}))(),xa=5e3,Sa=(0,S.createContext)(void 0);function Ca({initialRange:e=oa,children:t}){let[n,r]=(0,S.useState)(e),i=Da(n.mode===`live`);return(0,U.jsx)(Sa.Provider,{value:{timeWindow:ua(n,i),setRange:r},children:t})}function wa(){return Ea().timeWindow}function Ta(){return Ea().setRange}function Ea(){let e=(0,S.useContext)(Sa);if(!e)throw Error(`Time range hooks must be used within a TimeRangeProvider`);return e}function Da(e){let[t,n]=(0,S.useState)(Date.now);return(0,S.useEffect)(()=>{if(!e)return;n(Date.now());let t=setInterval(()=>n(Date.now()),xa);return()=>clearInterval(t)},[e]),t}var Oa=(0,S.createContext)(void 0),ka=({baseUrl:e=gi,children:t})=>{let{actorTypes:n,isError:r}=xi(e),{requests:i,isError:a}=Ei(e,wa()),{sessions:o,isError:s}=ki(e);return(0,U.jsx)(Oa.Provider,{value:{baseUrl:e,actorTypes:n,isError:r,requests:i,isRequestsError:a,sessions:o,isSocketsError:s},children:t})},Aa=()=>{let e=(0,S.useContext)(Oa);if(!e)throw Error(`useData must be used within a DataProvider`);return e},ja=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Ma(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:ja(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Na=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Pa=e=>{let t=Na(e);return t.charAt(0).toUpperCase()+t.slice(1)},Fa=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ia={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function La(e){return e!=null}function Ra(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ia.width,a=e.size??e.height??Ia.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Fa(...c):Fa(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ia[`stroke-width`])*Number(e.size??e.width??Ia.width)/Number(t.size??t.width??Ia.width):t.strokeWidth??Ia[`stroke-width`];return[`svg`,{...Object.entries(Ia).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&La(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&La(t.width)&&{[r(`width`)]:t.width},...`height`in t&&La(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function za(e,t={}){return Ra(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Ba=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Va=(0,S.createContext)({}),Ha=()=>(0,S.useContext)(Va),Ua=(0,S.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Ha()??{},y=!!c||Ba(d),[b,x,C=[]]=za(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Fa(v,s),hasA11yProp:y,attributes:d});return(0,S.createElement)(b,{ref:f,...x},[...C.map(([e,t])=>(0,S.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function Wa(e,t=[],n=[]){let r=typeof e==`string`?Ma(e,t,n):e,i=(0,S.forwardRef)(({className:e,...t},n)=>(0,S.createElement)(Ua,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Pa(r.name)),i}var Ga={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};Ga.node;var Ka=Wa(Ga),qa={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};qa.node;var Ja=Wa(qa),Ya={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};Ya.node;var Xa=Wa(Ya),Za={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};Za.node;var Qa=Wa(Za),$a={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};$a.node;var eo=Wa($a),to={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};to.node;var no=Wa(to),ro={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};ro.node;var io=Wa(ro),ao={name:`chevrons-down-up`,size:24,node:[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]};ao.node;var oo=Wa(ao),so={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};so.node;var co=Wa(so),lo={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};lo.node;var uo=Wa(lo),fo={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};fo.node;var po=Wa(fo),mo={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};mo.node;var ho=Wa(mo),go={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};go.node;var _o=Wa(go),vo={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};vo.node;var yo=Wa(vo),bo={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};bo.node;var xo=Wa(bo),So=Object.defineProperty,Co=(e,t)=>So(e,`name`,{value:t,configurable:!0});function wo(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Co(wo,`setRef`);function To(...e){return t=>{let n=!1,r=e.map(e=>{let r=wo(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():wo(e[t],null)}}}}Co(To,`composeRefs`);function Eo(...e){return S.useCallback(To(...e),e)}Co(Eo,`useComposedRefs`);var Do=Object.defineProperty,Oo=(e,t)=>Do(e,`name`,{value:t,configurable:!0});function ko(e){let t=S.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=W(r),S.Children.forEach(r,e=>{if(Io(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;Ro(n)&&typeof Uo==`function`;)n=Uo(n._payload);a=No(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=S.cloneElement(a,void 0,s):!o&&S.Children.count(r)===1&&S.isValidElement(r)&&(a=r);let c=a?Fo(a):void 0,l=Eo(n,c);if(!a){if(r||r===0)throw Error(o?Ho(e):Vo(e));return r}let u=Po(i,a.props??{});return a.type!==S.Fragment&&(u.ref=n?l:c),S.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Oo(ko,`createSlot`);var Ao=ko(`Slot`),jo=Symbol.for(`radix.slottable`);function Mo(e){let t=Oo(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=jo,t}Oo(Mo,`createSlottable`);var No=Oo((e,t)=>`child`in e.props?S.isValidElement(t)?S.cloneElement(t,void 0,e.props.children(t.props.children)):null:S.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Po(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Bo(a,i))}return{...e,...n}}Oo(Po,`mergeProps`);function Fo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Oo(Fo,`getElementRef`);function Io(e){return S.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===jo}Oo(Io,`isSlottable`);var Lo=Symbol.for(`react.lazy`);function Ro(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Lo&&`_payload`in e&&zo(e._payload)}Oo(Ro,`isLazyComponent`);function zo(e){return typeof e==`object`&&!!e&&`then`in e}Oo(zo,`isPromiseLike`);function W(e){let t=e;for(;Ro(t)&&typeof Uo==`function`;)t=Uo(t._payload);return t}Oo(W,`useUnwrappedLazy`);function Bo(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Oo(Bo,`concatAriaDescribedby`);var Vo=Oo(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Ho=Oo(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Uo=S.use;function Wo(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=Wo(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Go(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Wo(e))&&(r&&(r+=` `),r+=t);return r}var Ko=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,qo=Go,Jo=(e,t)=>n=>{if(t?.variants==null)return qo(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=Ko(t)||Ko(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 qo(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)},Yo=(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},Xo=(e,t)=>({classGroupId:e,validator:t}),Zo=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Qo=`-`,$o=[],es=`arbitrary..`,ts=e=>{let t=is(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return rs(e);let n=e.split(Qo);return ns(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Yo(i,t):t:i||$o}return n[e]||$o}}},ns=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=ns(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Qo):e.slice(t).join(Qo),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},rs=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?es+r:void 0})(),is=e=>{let{theme:t,classGroups:n}=e;return as(n,t)},as=(e,t)=>{let n=Zo();for(let r in e){let i=e[r];os(i,n,r,t)}return n},os=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];ss(i,t,n,r)}},ss=(e,t,n,r)=>{if(typeof e==`string`){cs(e,t,n);return}if(typeof e==`function`){ls(e,t,n,r);return}us(e,t,n,r)},cs=(e,t,n)=>{let r=e===``?t:ds(t,e);r.classGroupId=n},ls=(e,t,n,r)=>{if(fs(e)){os(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Xo(n,e))},us=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];os(o,ds(t,a),n,r)}},ds=(e,t)=>{let n=e,r=t.split(Qo),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Zo(),n.nextPart.set(t,i)),n=i}return n},fs=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,ps=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)}}},ms=`!`,hs=`:`,gs=[],_s=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),vs=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===hs){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(ms)?(c=s.slice(0,-1),l=!0):s.startsWith(ms)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return _s(t,l,c,u)};if(t){let e=t+hs,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):_s(gs,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ys=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}},bs=e=>({cache:ps(e.cacheSize),parseClassName:vs(e),sortModifiers:ys(e),postfixLookupClassGroupIds:xs(e),...ts(e)}),xs=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},Ss=/\s+/,Cs=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ss),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?_+ms:_,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},ws=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ts(n))&&(i&&(i+=` `),i+=r);return i},Ts=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ts(e[r]))&&(n&&(n+=` `),n+=t);return n},Es=(e,...t)=>{let n,r,i,a,o=o=>(n=bs(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=Cs(e,n);return i(e,a),a};return a=o,(...e)=>a(ws(...e))},Ds=[],Os=e=>{let t=t=>t[e]||Ds;return t.isThemeGetter=!0,t.themeKey=e,t},ks=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,As=/^\((?:(\w[\w-]*):)?(.+)\)$/i,js=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ms=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ns=/\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$/,Ps=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Fs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Is=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ls=e=>js.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Rs=e=>!!e&&Number.isInteger(Number(e)),zs=e=>e.endsWith(`%`)&&G(e.slice(0,-1)),Bs=e=>Ms.test(e),Vs=()=>!0,Hs=e=>Ns.test(e)&&!Ps.test(e),Us=()=>!1,Ws=e=>Fs.test(e),Gs=e=>Is.test(e),Ks=e=>!K(e)&&!q(e),qs=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)),Js=e=>lc(e,pc,Us),K=e=>ks.test(e),Ys=e=>lc(e,mc,Hs),Xs=e=>lc(e,hc,G),Zs=e=>lc(e,_c,Vs),Qs=e=>lc(e,gc,Us),$s=e=>lc(e,dc,Us),ec=e=>lc(e,fc,Gs),tc=e=>lc(e,vc,Ws),q=e=>As.test(e),nc=e=>uc(e,mc),rc=e=>uc(e,gc),ic=e=>uc(e,dc),ac=e=>uc(e,pc),oc=e=>uc(e,fc),sc=e=>uc(e,vc,!0),cc=e=>uc(e,_c,!0),lc=(e,t,n)=>{let r=ks.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},uc=(e,t,n=!1)=>{let r=As.exec(e);return r?r[1]?t(r[1]):n:!1},dc=e=>e===`position`||e===`percentage`,fc=e=>e===`image`||e===`url`,pc=e=>e===`length`||e===`size`||e===`bg-size`,mc=e=>e===`length`,hc=e=>e===`number`,gc=e=>e===`family-name`,_c=e=>e===`number`||e===`weight`,vc=e=>e===`shadow`,yc=Es(()=>{let e=Os(`color`),t=Os(`font`),n=Os(`text`),r=Os(`font-weight`),i=Os(`tracking`),a=Os(`leading`),o=Os(`breakpoint`),s=Os(`container`),c=Os(`spacing`),l=Os(`radius`),u=Os(`shadow`),d=Os(`inset-shadow`),f=Os(`text-shadow`),p=Os(`drop-shadow`),m=Os(`blur`),h=Os(`perspective`),g=Os(`aspect`),_=Os(`ease`),v=Os(`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,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[q,K,c],T=()=>[Ls,`full`,`auto`,...w()],E=()=>[Rs,`none`,`subgrid`,q,K],D=()=>[`auto`,{span:[`full`,Rs,q,K]},Rs,q,K],O=()=>[Rs,`auto`,q,K],k=()=>[`auto`,`min`,`max`,`fr`,q,K],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ee=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],te=()=>[`auto`,...w()],j=()=>[Ls,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[s,Ls,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[Ls,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,q,K],ne=()=>[...b(),ic,$s,{position:[q,K]}],F=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,ac,Js,{size:[q,K]}],ie=()=>[zs,nc,Ys],ae=()=>[``,`none`,`full`,l,q,K],oe=()=>[``,G,nc,Ys],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],le=()=>[G,zs,ic,$s],ue=()=>[``,`none`,m,q,K],de=()=>[`none`,G,q,K],fe=()=>[`none`,G,q,K],I=()=>[G,q,K],pe=()=>[Ls,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Bs],breakpoint:[Bs],color:[Vs],container:[Bs],"drop-shadow":[Bs],ease:[`in`,`out`,`in-out`],font:[Ks],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Bs],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Bs],shadow:[Bs],spacing:[`px`,G],text:[Bs],"text-shadow":[Bs],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Ls,K,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,K]}],"container-named":[qs],columns:[{columns:[G,`auto`,K,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:[Rs,`auto`,q,K]}],basis:[{basis:[Ls,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[G,Ls,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,G,q,K]}],shrink:[{shrink:[``,G,q,K]}],order:[{order:[Rs,`first`,`last`,`none`,q,K]}],"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":[...ee(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ee()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...ee(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ee(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...ee(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ee()]}],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:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mbs:[{mbs:te()}],mbe:[{mbe:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...j()]}],"font-size":[{text:[`base`,n,nc,Ys]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,cc,Zs]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,zs,K]}],"font-family":[{font:[rc,Qs,t]}],"font-features":[{"font-features":[K]}],"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,K]}],"line-clamp":[{"line-clamp":[G,`none`,q,Xs]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,q,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,K]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[G,`from-font`,`auto`,q,Ys]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[G,`auto`,q,K]}],"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:[Rs,q,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,K]}],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,K]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Rs,q,K],radial:[``,q,K],conic:[``,Rs,q,K]},oc,ec]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[G,q,K]}],"outline-w":[{outline:[``,G,nc,Ys]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,sc,tc]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,sc,tc]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[G,Ys]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,sc,tc]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[G,q,K]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,K]}],filter:[{filter:[``,`none`,q,K]}],blur:[{blur:ue()}],brightness:[{brightness:[G,q,K]}],contrast:[{contrast:[G,q,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,sc,tc]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,G,q,K]}],"hue-rotate":[{"hue-rotate":[G,q,K]}],invert:[{invert:[``,G,q,K]}],saturate:[{saturate:[G,q,K]}],sepia:[{sepia:[``,G,q,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,K]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[G,q,K]}],"backdrop-contrast":[{"backdrop-contrast":[G,q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,G,q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,q,K]}],"backdrop-invert":[{"backdrop-invert":[``,G,q,K]}],"backdrop-opacity":[{"backdrop-opacity":[G,q,K]}],"backdrop-saturate":[{"backdrop-saturate":[G,q,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,G,q,K]}],"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,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[G,`initial`,q,K]}],ease:[{ease:[`linear`,`initial`,_,q,K]}],delay:[{delay:[G,q,K]}],animate:[{animate:[`none`,v,q,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[q,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Rs,q,K]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"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,K]}],"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":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"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,K]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[G,nc,Ys,Xs]}],stroke:[{stroke:[`none`,...P()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 J(...e){return yc(Go(e))}var bc=Jo(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function xc({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,U.jsx)(r?Ao:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:J(bc({variant:t,size:n,className:e})),...i})}var Sc=Object.defineProperty,Cc=(e,t)=>Sc(e,`name`,{value:t,configurable:!0}),wc=!!(typeof window<`u`&&window.document&&window.document.createElement);function Tc(e,t,{checkForDefaultPrevented:n=!0}={}){return Cc(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Cc(Tc,`composeEventHandlers`);function Ec(e){if(!wc)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Cc(Ec,`getOwnerWindow`);function Dc(e){if(!wc)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Cc(Dc,`getOwnerDocument`);function Oc(e,t=!1){let{activeElement:n}=Dc(e);if(!n?.nodeName)return null;if(kc(n)&&n.contentDocument)return Oc(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Dc(n).getElementById(e);if(t)return t}}return n}Cc(Oc,`getActiveElement`);function kc(e){return e.tagName===`IFRAME`}Cc(kc,`isFrame`);var Ac=Object.defineProperty,jc=(e,t)=>Ac(e,`name`,{value:t,configurable:!0});function Mc(e,t){let n=S.createContext(t);n.displayName=e+`Context`;let r=jc(e=>{let{children:t,...r}=e,i=S.useMemo(()=>r,Object.values(r));return(0,U.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=S.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return jc(i,`useContext`),[r,i]}jc(Mc,`createContext`);function Nc(e,t=[]){let n=[];function r(t,r){let i=S.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=jc(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=S.useMemo(()=>o,Object.values(o));return(0,U.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=S.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return jc(s,`useContext`),[o,s]}jc(r,`createContext`);let i=jc(()=>{let t=n.map(e=>S.createContext(e));return jc(function(n){let r=n?.[e]||t;return S.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Pc(i,...t)]}jc(Nc,`createContextScope`);function Pc(...e){let t=e[0];if(e.length===1)return t;let n=jc(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return jc(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}jc(Pc,`composeContextScopes`);var Fc=globalThis?.document?S.useLayoutEffect:()=>{},Ic=Object.defineProperty,Lc=(e,t)=>Ic(e,`name`,{value:t,configurable:!0}),Rc=S.useId||(()=>void 0),zc=0;function Bc(e){let[t,n]=S.useState(Rc());return Fc(()=>{e||n(e=>e??String(zc++))},[e]),e||(t?`radix-${t}`:``)}Lc(Bc,`useId`);var Vc=Object.defineProperty,Hc=(e,t)=>Vc(e,`name`,{value:t,configurable:!0}),Uc=S.useEffectEvent,Wc=S.useInsertionEffect;function Gc(e){if(typeof Uc==`function`)return Uc(e);let t=S.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Wc==`function`?Wc(()=>{t.current=e}):Fc(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}Hc(Gc,`useEffectEvent`);var Kc=Object.defineProperty,qc=(e,t)=>Kc(e,`name`,{value:t,configurable:!0}),Jc=S.useInsertionEffect||Fc;function Yc({prop:e,defaultProp:t,onChange:n=qc(()=>{},`onChange`),caller:r}){let[i,a,o]=Xc({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,S.useCallback(t=>{if(s){let n=Zc(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}qc(Yc,`useControllableState`);function Xc({defaultProp:e,onChange:t}){let[n,r]=S.useState(e),i=S.useRef(n),a=S.useRef(t);return Jc(()=>{a.current=t},[t]),S.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}qc(Xc,`useUncontrolledState`);function Zc(e){return typeof e==`function`}qc(Zc,`isFunction`);var Qc=Symbol(`RADIX:SYNC_STATE`);function $c(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Gc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=S.useReducer((t,n)=>{if(n.type===Qc)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=S.useRef(p);S.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=S.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return S.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Qc,state:i})},[i,d.state,c]),[h,f]}qc($c,`useControllableStateReducer`);var el=l(h(),1),tl=Object.defineProperty,nl=(e,t)=>tl(e,`name`,{value:t,configurable:!0});function rl(e){let t=S.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];dl(r)&&typeof hl==`function`&&(r=hl(r._payload)),S.Children.forEach(r,e=>{if(ll(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;dl(n)&&typeof hl==`function`&&(n=hl(n._payload)),a=ol(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=S.cloneElement(a,void 0,s):!o&&S.Children.count(r)===1&&S.isValidElement(r)&&(a=r);let c=a?cl(a):void 0,l=Eo(n,c);if(!a){if(r||r===0)throw Error(o?ml(e):pl(e));return r}let u=sl(i,a.props??{});return a.type!==S.Fragment&&(u.ref=n?l:c),S.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}nl(rl,`createSlot`);var il=Symbol.for(`radix.slottable`);function al(e){let t=nl(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=il,t}nl(al,`createSlottable`);var ol=nl((e,t)=>{if(`child`in e.props){let t=e.props.child;return S.isValidElement(t)?S.cloneElement(t,void 0,e.props.children(t.props.children)):null}return S.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function sl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}nl(sl,`mergeProps`);function cl(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}nl(cl,`getElementRef`);function ll(e){return S.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===il}nl(ll,`isSlottable`);var ul=Symbol.for(`react.lazy`);function dl(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===ul&&`_payload`in e&&fl(e._payload)}nl(dl,`isLazyComponent`);function fl(e){return typeof e==`object`&&!!e&&`then`in e}nl(fl,`isPromiseLike`);var pl=nl(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),ml=nl(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),hl=S.use,gl=Object.defineProperty,_l=(e,t)=>gl(e,`name`,{value:t,configurable:!0}),vl=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=rl(`Primitive.${t}`),r=S.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,U.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yl(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))}_l(yl,`dispatchDiscreteCustomEvent`);var bl=Object.defineProperty,xl=(e,t)=>bl(e,`name`,{value:t,configurable:!0});function Sl(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}xl(Sl,`useCallbackRef`);var Cl=Object.defineProperty,wl=(e,t)=>Cl(e,`name`,{value:t,configurable:!0}),Tl=`dismissableLayer.update`,El=`dismissableLayer.pointerDownOutside`,Dl=`dismissableLayer.focusOutside`,Ol,kl=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Al=S.forwardRef(wl(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=S.useContext(kl),[d,f]=S.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=S.useState({}),h=Eo(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,C=S.useRef(!1),w=Nl(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),T=Pl(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?y===g.length-1:!1,D=Sl(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return S.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ol=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Fl(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Ol))}},[d,p,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Fl())},[d,u]),S.useEffect(()=>{let e=wl(()=>m({}),`handleUpdate`);return document.addEventListener(Tl,e),()=>document.removeEventListener(Tl,e)},[]),(0,U.jsx)(vl.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Tc(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Tc(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Tc(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function jl(){let e=S.useContext(kl),[t,n]=S.useState(null);return S.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}wl(jl,`useDismissableLayerSurface`);var Ml=wl(()=>!0,`IS_TRUE`);function Nl(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Ml}=t,s=Sl(e),c=S.useRef(!1),l=S.useRef(!1),u=S.useRef(new Map),d=S.useRef(()=>{});return S.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}wl(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}wl(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}wl(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}wl(p,`handleInteractionBubble`);let m=wl(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Il(El,s,p,{discrete:!0})};if(wl(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:wl(()=>c.current=!0,`onPointerDownCapture`)}}wl(Nl,`usePointerDownOutside`);function Pl(e,t=globalThis?.document){let n=Sl(e),r=S.useRef(!1);return S.useEffect(()=>{let e=wl(e=>{e.target&&!r.current&&Il(Dl,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:wl(()=>r.current=!0,`onFocusCapture`),onBlurCapture:wl(()=>r.current=!1,`onBlurCapture`)}}wl(Pl,`useFocusOutside`);function Fl(){let e=new CustomEvent(Tl);document.dispatchEvent(e)}wl(Fl,`dispatchUpdate`);function Il(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?yl(i,a):i.dispatchEvent(a)}wl(Il,`handleAndDispatchCustomEvent`);var Ll=Object.defineProperty,Rl=(e,t)=>Ll(e,`name`,{value:t,configurable:!0}),zl=`focusScope.autoFocusOnMount`,Bl=`focusScope.autoFocusOnUnmount`,Vl={bubbles:!1,cancelable:!0},Hl=S.forwardRef(Rl(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=S.useState(null),l=Sl(i),u=Sl(a),d=S.useRef(null),f=Eo(t,c),p=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Yl(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Yl(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Yl(s)};Rl(e,`handleFocusIn`),Rl(t,`handleFocusOut`),Rl(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),S.useEffect(()=>{if(s){Xl.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(zl,Vl);s.addEventListener(zl,l),s.dispatchEvent(t),t.defaultPrevented||(Ul($l(Gl(s)),{select:!0}),document.activeElement===e&&Yl(s))}return()=>{s.removeEventListener(zl,l),setTimeout(()=>{let t=new CustomEvent(Bl,Vl);s.addEventListener(Bl,u),s.dispatchEvent(t),t.defaultPrevented||Yl(e??document.body,{select:!0}),s.removeEventListener(Bl,u),Xl.remove(p)},0)}}},[s,l,u,p]);let m=S.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Wl(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Yl(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Yl(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,U.jsx)(vl.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Ul(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Yl(r,{select:t}),document.activeElement!==n)return}Rl(Ul,`focusFirst`);function Wl(e){let t=Gl(e);return[Kl(t,e),Kl(t.reverse(),e)]}Rl(Wl,`getTabbableEdges`);function Gl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Rl(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}Rl(Gl,`getTabbableCandidates`);function Kl(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ql(r,{upTo:t})))return r}Rl(Kl,`findVisible`);function ql(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}Rl(ql,`isHidden`);function Jl(e){return e instanceof HTMLInputElement&&`select`in e}Rl(Jl,`isSelectableInput`);function Yl(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Jl(e)&&t&&e.select()}}Rl(Yl,`focus`);var Xl=Zl();function Zl(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ql(e,t),e.unshift(t)},remove(t){e=Ql(e,t),e[0]?.resume()}}}Rl(Zl,`createFocusScopesStack`);function Ql(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}Rl(Ql,`arrayRemove`);function $l(e){return e.filter(e=>e.tagName!==`A`)}Rl($l,`removeLinks`);var eu=Object.defineProperty,tu=S.forwardRef(((e,t)=>eu(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=S.useState(!1);Fc(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?el.createPortal((0,U.jsx)(vl.div,{...r,ref:t}),o):null},`Portal`)),nu=Object.defineProperty,ru=(e,t)=>nu(e,`name`,{value:t,configurable:!0});function iu(e,t){return S.useReducer((e,n)=>t[e][n]??e,e)}ru(iu,`useStateMachine`);var au=ru(e=>{let{present:t,children:n}=e,r=ou(t),i=typeof n==`function`?n({present:r.isPresent}):S.Children.only(n),a=cu(r.ref,uu(i));return typeof n==`function`||r.isPresent?S.cloneElement(i,{ref:a}):null},`Presence`);function ou(e){let[t,n]=S.useState(),r=S.useRef(null),i=S.useRef(e),a=S.useRef(`none`),o=S.useRef(void 0),[s,c]=iu(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return S.useEffect(()=>{s===`mounted`?(a.current=o.current??lu(r.current),o.current=void 0):a.current=`none`},[s]),Fc(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=lu(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Fc(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=ru(a=>{let o=lu(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=ru(e=>{e.target===t&&(a.current=lu(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:S.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=lu(t)}else r.current=null;n(e)},[])}}ru(ou,`usePresence`);function su(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ru(su,`setRef`);function cu(...e){let t=S.useRef(e);return t.current=e,S.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=su(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():su(n[e],null)}}},[])}ru(cu,`useStableComposedRefs`);function lu(e){return e?.animationName||`none`}ru(lu,`getAnimationName`);function uu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}ru(uu,`getElementRef`);var du=Object.defineProperty,fu=(e,t)=>du(e,`name`,{value:t,configurable:!0}),pu=0,mu=null;function hu(e){return gu(),e.children}fu(hu,`FocusGuards`);function gu(){S.useEffect(()=>{mu||={start:_u(),end:_u()};let{start:e,end:t}=mu;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),pu++,()=>{pu===1&&(mu?.start.remove(),mu?.end.remove(),mu=null),pu=Math.max(0,pu-1)}},[])}fu(gu,`useFocusGuards`);function _u(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}fu(_u,`createFocusGuard`);var vu=function(){return vu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},vu.apply(this,arguments)};function yu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function bu(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var xu=`right-scroll-bar-position`,Su=`width-before-scroll-bar`,Cu=`with-scroll-bars-hidden`,wu=`--removed-body-scroll-bar-size`;function Tu(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Eu(e,t){var n=(0,S.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Du=typeof window<`u`?S.useLayoutEffect:S.useEffect,Ou=new WeakMap;function ku(e,t){var n=Eu(t||null,function(t){return e.forEach(function(e){return Tu(e,t)})});return Du(function(){var t=Ou.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Tu(e,null)}),i.forEach(function(e){r.has(e)||Tu(e,a)})}Ou.set(n,e)},[e]),n}function Au(e){return e}function ju(e,t){t===void 0&&(t=Au);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Mu(e){e===void 0&&(e={});var t=ju(null);return t.options=vu({async:!0,ssr:!1},e),t}var Nu=function(e){var t=e.sideCar,n=yu(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return S.createElement(r,vu({},n))};Nu.isSideCarExport=!0;function Pu(e,t){return e.useMedium(t),Nu}var Fu=Mu(),Iu=function(){},Lu=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:Iu,onWheelCapture:Iu,onTouchMoveCapture:Iu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=yu(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,C=ku([n,t]),w=vu(vu({},b),i);return S.createElement(S.Fragment,null,u&&S.createElement(x,{sideCar:Fu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?S.cloneElement(S.Children.only(s),vu(vu({},w),{ref:C})):S.createElement(v,vu({},w,{className:c,ref:C}),s))});Lu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Lu.classNames={fullWidth:Su,zeroRight:xu};var Ru=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function zu(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Ru();return t&&e.setAttribute(`nonce`,t),e}function Bu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Vu(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Hu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zu())&&(Bu(t,n),Vu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uu=function(){var e=Hu();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wu=function(){var e=Uu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Gu={left:0,top:0,right:0,gap:0},Ku=function(e){return parseInt(e||``,10)||0},qu=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[Ku(n),Ku(r),Ku(i)]},Ju=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Gu;var t=qu(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Yu=Wu(),Xu=`data-scroll-locked`,Zu=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
12
|
-
.${
|
|
11
|
+
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=lt(),d;if(t){let e=typeof t==`string`?N(t):t;k(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):F(e,{pathname:p});A(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),A(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=wt(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ee([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ee([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?S.createElement($e.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function vt(){let e=jt(),t=Me(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=S.createElement(S.Fragment,null,S.createElement(`p`,null,`💿 Hey developer 👋`),S.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,S.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,S.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),S.createElement(S.Fragment,null,S.createElement(`h2`,null,`Unexpected Application Error!`),S.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?S.createElement(`pre`,{style:i},n):null,o)}var yt=S.createElement(vt,null),bt=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ot(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:S.createElement(et.Provider,{value:this.props.routeContext},S.createElement(tt.Provider,{value:e,children:this.props.component}));return this.context?S.createElement(St,{error:e},t):t}};bt.contextType=qe;var xt=new WeakMap;function St({children:e,error:t}){let{basename:n,navigator:r}=S.useContext(Qe);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=at(t.digest);if(e){let i=xt.get(t);if(i)throw i;let a=Fe(e.location,n),o=a.absoluteURL||a.to;if(Be(e.location,o,Le(r),`allow-explicit`),We(o))throw Error(`Invalid redirect location`);if(Pe&&!xt.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw xt.set(t,n),n}}return S.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Ct({routeContext:e,match:t,children:n}){let r=S.useContext(Ge);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(et.Provider,{value:e},n)}function wt(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);k(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Ne(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||yt,o&&(s<0&&c===0?(Pt(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?S.createElement(n.route.Component,null):n.route.element?n.route.element:e,S.createElement(Ct,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?S.createElement(bt,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Tt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Et(e){let t=S.useContext(Ge);return k(t,Tt(e)),t}function Dt(e){let t=S.useContext(Ke);return k(t,Tt(e)),t}function Ot(e){let t=S.useContext(et);return k(t,Tt(e)),t}function kt(e){let t=Ot(e),n=t.matches[t.matches.length-1];return k(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function At(){return kt(`useRouteId`)}function jt(){let e=S.useContext(tt),t=Dt(`useRouteError`),n=kt(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Mt(){let{router:e}=Et(`useNavigate`),t=kt(`useNavigate`),n=S.useRef(!1);return dt(()=>{n.current=!0}),S.useCallback(async(r,i={})=>{A(n.current,ut),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var Nt={};function Pt(e,t,n){!t&&!Nt[e]&&(Nt[e]=!0,A(!1,n))}S.memo(Ft);function Ft({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return _t(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function It({to:e,replace:t,state:n,relative:r}){k(ct(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=S.useContext(Qe);A(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=S.useContext(et),{pathname:s}=lt(),c=ft(),l=we(e,Ce(o),s,r===`path`);Be(typeof e==`string`?e:M(e),a.createHref(l),Le(a),`reject`);let u=JSON.stringify(l);return S.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function Lt(e){k(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function Rt({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){k(!ct(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=S.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=N(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=S.useMemo(()=>{let e=z(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return A(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:S.createElement(Qe.Provider,{value:c},S.createElement($e.Provider,{children:t,value:h}))}function zt({children:e,location:t}){return gt(Bt(e),t)}S.Component;function Bt(e,t=[]){let n=[];return S.Children.forEach(e,(e,r)=>{if(!S.isValidElement(e))return;let i=[...t,r];if(e.type===S.Fragment){n.push.apply(n,Bt(e.props.children,i));return}k(e.type===Lt,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),k(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=Bt(e.props.children,i)),n.push(a)}),n}var Vt=`get`,Ht=`application/x-www-form-urlencoded`;function Ut(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Wt(e){return Ut(e)&&e.tagName.toLowerCase()===`button`}function Gt(e){return Ut(e)&&e.tagName.toLowerCase()===`form`}function Kt(e){return Ut(e)&&e.tagName.toLowerCase()===`input`}function qt(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Jt(e,t){return e.button===0&&(!t||t===`_self`)&&!qt(e)}var Yt=null;function Xt(){if(Yt===null)try{new FormData(document.createElement(`form`),0),Yt=!1}catch{Yt=!0}return Yt}var Zt=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Qt(e){return e!=null&&!Zt.has(e)?(A(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ht}"`),null):e}function $t(e,t){let n,r,i,a,o;if(Gt(e)){let o=e.getAttribute(`action`);r=o?z(o,t):null,n=e.getAttribute(`method`)||Vt,i=Qt(e.getAttribute(`enctype`))||Ht,a=new FormData(e)}else if(Wt(e)||Kt(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?z(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Vt,i=Qt(e.getAttribute(`formenctype`))||Qt(o.getAttribute(`enctype`))||Ht,a=new FormData(o,e),!Xt()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Ut(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Vt,r=null,i=Ht,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function en(e,t){if(e===!1||e==null)throw Error(t)}function tn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&z(i.pathname,t)===`/`?`${De(t)}/_root.${r}`:`${De(i.pathname)}.${r}`,i}async function nn(e,t){if(e.id in t)return t[e.id];try{let n=await x(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rn(e){return e!=null&&typeof e.page==`string`}function an(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function on(e,t,n){return dn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await nn(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(an).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function sn(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function cn(e,t,{includeHydrateFallback:n}={}){return ln(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function ln(e){return[...new Set(e)]}function un(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function dn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!rn(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(un(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function fn(){let e=S.useContext(Ge);return en(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function pn(){let e=S.useContext(Ke);return en(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var mn=S.createContext(void 0);mn.displayName=`FrameworkContext`;function hn(){let e=S.useContext(mn);return en(e,`You must render this element inside a <HydratedRouter> element`),e}function gn(e,t){let n=S.useContext(mn),[r,i]=S.useState(!1),[a,o]=S.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=S.useRef(null);S.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),S.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:_n(s,p),onBlur:_n(c,m),onMouseEnter:_n(l,p),onMouseLeave:_n(u,m),onTouchStart:_n(d,p)}]:[a,f,{}]:[!1,f,{}]}function _n(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function vn({page:e,...t}){let n=Je(),{nonce:r}=hn(),{router:i}=fn(),a=S.useMemo(()=>F(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?S.createElement(bn,{page:e,matches:a,...t}):S.createElement(xn,{page:e,matches:a,...t})):null}function yn(e){let{manifest:t,routeModules:n}=hn(),[r,i]=S.useState([]);return S.useEffect(()=>{let r=!1;return on(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function bn({page:e,matches:t,...n}){let r=lt(),{future:i}=hn(),{basename:a}=fn(),o=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=tn(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return S.createElement(S.Fragment,null,o.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function xn({page:e,matches:t,...n}){let r=lt(),{future:i,manifest:a,routeModules:o}=hn(),{basename:s}=fn(),{loaderData:c,matches:l}=pn(),u=S.useMemo(()=>sn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=S.useMemo(()=>sn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=tn(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=S.useMemo(()=>cn(d,a),[d,a]),m=yn(d);return S.createElement(S.Fragment,null,f.map(e=>S.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>S.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>S.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Sn(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}S.Component;var Cn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Cn&&(window.__reactRouterVersion=`7.18.5`)}catch{}function wn({basename:e,children:t,useTransitions:n,window:r}){let i=S.useRef();i.current??=O({window:r,v5Compat:!0});let a=i.current,[o,s]=S.useState({action:a.action,location:a.location}),c=S.useCallback(e=>{n===!1?s(e):S.startTransition(()=>s(e))},[n]);return S.useLayoutEffect(()=>a.listen(c),[a,c]),S.createElement(Rt,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Tn=S.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=S.useContext(Qe),v=typeof l==`string`&&C.test(l),y=Fe(l,h);l=y.to;let b=st(l,{relative:r}),x=lt(),w=null;if(o){let e=we(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ee([h,e.pathname])),w=g.createHref(e)}let[T,E,D]=gn(n,p),O=An(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function k(t){e&&e(t),t.defaultPrevented||O(t)}let A=!(y.isExternal||i),ee=S.createElement(`a`,{...p,...D,href:(A?w:void 0)||y.absoluteURL||b,onClick:A?k:e,ref:Sn(m,E),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return T&&!v?S.createElement(S.Fragment,null,ee,S.createElement(vn,{page:b})):ee});Tn.displayName=`Link`;var En=S.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=ht(a,{relative:c.relative}),d=lt(),f=S.useContext(Ke),{navigator:p,basename:m}=S.useContext(Qe),h=f!=null&&Fn(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=z(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),C={isActive:b,isPending:x,isTransitioning:h},w=b?e:void 0,T;T=typeof n==`function`?n(C):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return S.createElement(Tn,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});En.displayName=`NavLink`;var Dn=S.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Vt,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=S.useContext(Qe),g=Nn(),_=Pn(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&C.test(s);return S.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?S.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Dn.displayName=`Form`;function On(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function kn(e){let t=S.useContext(Ge);return k(t,On(e)),t}function An(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=ft(),d=lt(),f=ht(e,{relative:o});return S.useCallback(p=>{if(Jt(p,t)){p.preventDefault();let t=n===void 0?M(d)===M(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?S.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var jn=0,Mn=()=>`__${String(++jn)}__`;function Nn(){let{router:e}=kn(`useSubmit`),{basename:t}=S.useContext(Qe),n=At(),r=e.fetch,i=e.navigate;return S.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=$t(e,t);if(a.navigate===!1){let e=a.fetcherKey||Mn();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function Pn(e,{relative:t}={}){let{basename:n}=S.useContext(Qe),r=S.useContext(et);k(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...ht(e||`.`,{relative:t})},o=lt();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ee([n,a.pathname])),M(a)}function Fn(e,{relative:t}={}){let n=S.useContext(Ye);k(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=kn(`useViewTransitionState`),i=ht(e,{relative:t});if(!n.isTransitioning)return!1;let a=z(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=z(n.nextLocation.pathname,r)||n.nextLocation.pathname;return he(i.pathname,o)!=null||he(i.pathname,a)!=null}var In=_(),Ln=e=>[`actors`,e],Rn=e=>[`requests`,e],zn=(e,t)=>[`residency`,e,t],Bn=e=>[`websockets`,e],Vn=(e,{actorName:t,actorId:n,requestId:r,level:i,search:a})=>[`logs`,e,t,n,r,i,a],Hn=(e,{actorName:t,actorId:n,requestId:r,search:i})=>[`logs/histogram`,e,t,n,r,i],Un=(e,t)=>[`logs/streamed`,...Vn(e,t).slice(1)],Wn=500,Gn=20,Kn=`/api/observe`,qn=200,Jn=class{baseUrl;constructor(e=Kn){this.baseUrl=e}async listActorTypes(){return await this.get(`actors`)}async listRequests({fromMs:e,toMs:t,limit:n=Wn,cursor:r,actorName:i,actorId:a}){let o=new URLSearchParams({fromMs:String(e),toMs:String(t),limit:String(n)});return r&&o.set(`cursor`,r),i&&o.set(`actorName`,i),a&&o.set(`actorId`,a),await this.get(`requests?${o}`)}async listResidency(e,{fromMs:t,toMs:n}){let r=new URLSearchParams({actorName:e,fromMs:String(t),toMs:String(n)});return await this.get(`residency?${r}`)}async listWebSockets(){return await this.get(`websockets`)}async listLogs(e,{fromMs:t,toMs:n},r){let i=Yn(e);return i.set(`fromMs`,String(t)),i.set(`toMs`,String(n)),i.set(`limit`,String(qn)),r&&i.set(`cursor`,r),await this.get(`logs?${i}`)}async getLogHistogram(e,{fromMs:t,toMs:n},r){let i=Yn({...e,level:null});return i.set(`fromMs`,String(t)),i.set(`toMs`,String(n)),i.set(`bucketMs`,String(r)),await this.get(`logs/histogram?${i}`)}async collectRequests(e,t={}){let n=[],r;for(let i=0;i<Gn;i++){let i=await this.listRequests({...e,...t,cursor:r});if(n.push(...i.records),!i.nextCursor||i.nextCursor===r||i.records.length===0)break;r=i.nextCursor}return n}async get(e){let t=await fetch(`${this.baseUrl.replace(/\/$/u,``)}/${e}`,{method:`GET`,credentials:`include`,redirect:`error`,headers:{accept:`application/json`}});if(!t.ok)throw Error(`Connection check failed (HTTP ${t.status}).`);return await t.json()}};function Yn({actorName:e,actorId:t,requestId:n,level:r,search:i}){let a=new URLSearchParams({actorName:e,actorId:t});return n&&a.set(`requestId`,n),r&&a.set(`level`,r),i&&a.set(`search`,i),a}function Xn(e,t){let n=new Map(e.actors.map(e=>[e.actorName,{...e,instances:[...e.instances]}])),r={...e.gateways};for(let e of t)Qn(n,r,e);return{actors:[...n.values()].sort((e,t)=>e.actorName.localeCompare(t.actorName)),gateways:r}}function Zn({actors:e,gateways:t},n){let r=e=>{let r=t?.[e];return r===void 0||r+3e4>=n};return{gateways:t,actors:e.map(e=>tr(e,e.instances.map(e=>er(e,r,n)).filter(e=>e.reportedAtMs!==null||e.connections.length>0)))}}function Qn(e,t,n){let r=(e,n)=>t[e]=Math.max(t[e]??0,n);switch(n.type){case`instance`:{let{actorName:t,actorId:r,...i}=n.item,a=$n(e,t,r),o=e.get(t).instances[a];if((o.reportedAtMs??0)>i.reportedAtMs)return;let{status:s,reportedAtMs:c,staleAtMs:l,lastActiveAtMs:u,waiting:d}=i;e.get(t).instances[a]={...o,status:s,reportedAtMs:c,staleAtMs:l,lastActiveAtMs:u,waiting:d};return}case`connectionOpened`:{let{actorName:t,actorId:i,connectionId:a,gatewayId:o,metadata:s,openedAtMs:c}=n.item,l=$n(e,t,i),u=e.get(t).instances[l];u.connections.some(e=>e.id===a)||(e.get(t).instances[l]={...u,connections:[...u.connections,{id:a,gatewayId:o,metadata:s}]}),r(o,c);return}case`connectionClosed`:{let{actorName:t,actorId:i,connectionId:a,gatewayId:o,closedAtMs:s}=n.item,c=e.get(t),l=c?.instances.findIndex(e=>e.actorId===i)??-1;c&&l>=0&&(c.instances[l]={...c.instances[l],connections:c.instances[l].connections.filter(e=>e.id!==a)}),r(o,s);return}case`gatewayAlive`:r(n.item.gatewayId,n.item.atMs);return;case`deployment`:{let t=new Map(n.item.actors.map(e=>[e.actorName,e.methods]));for(let[n,r]of e)e.set(n,{...r,methods:t.get(n)});for(let[n,r]of t)e.has(n)||e.set(n,{...nr(n),methods:r})}}}function $n(e,t,n){e.has(t)||e.set(t,nr(t));let r=e.get(t),i=r.instances.findIndex(e=>e.actorId===n);return i>=0?i:(r.instances.push({actorId:n,status:`dormant`,lastActiveAtMs:null,reportedAtMs:null,staleAtMs:null,connections:[],waiting:null}),r.instances.length-1)}function er(e,t,n){let r=e.staleAtMs!=null&&n>e.staleAtMs;return{...e,status:r?`unknown`:e.status,waiting:r?null:e.waiting,connections:e.connections.filter(e=>t(e.gatewayId))}}function tr(e,t){let n=e=>t.filter(t=>t.status===e).length;return{...e,instances:t,live:n(`live`),dormant:n(`dormant`),unknown:n(`unknown`)}}function nr(e){return{actorName:e,live:0,dormant:0,unknown:0,instances:[]}}var rr=o((e=>{var t=p();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),ir=o(((e,t)=>{t.exports=rr()})),ar=l(h(),1),or=ir(),sr=Object.prototype.hasOwnProperty;function cr(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&cr(e[r],t[r]););return r===-1}if(!n||typeof e==`object`){for(n in r=0,e)if(sr.call(e,n)&&++r&&!sr.call(t,n)||!(n in t)||!cr(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var lr=new WeakMap,ur=()=>{},dr=Object,B=e=>e===void 0,fr=e=>typeof e==`function`,pr=(e,t)=>({...e,...t}),mr=e=>fr(e.then),hr={},gr={},_r=`undefined`,vr=typeof window!=_r,yr=typeof document!=_r,br=vr&&`Deno`in window,xr=()=>vr&&typeof window.requestAnimationFrame!=_r,Sr=(e,t)=>{let n=lr.get(e);return[()=>!B(t)&&e.get(t)||hr,r=>{if(!B(t)){let i=e.get(t);t in gr||(gr[t]=i),n[5](t,pr(i,r),i||hr)}},n[6],()=>!B(t)&&t in gr?gr[t]:!B(t)&&e.get(t)||hr]},Cr=!0,wr=()=>Cr,[Tr,Er]=vr&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[ur,ur],Dr=()=>{let e=yr&&document.visibilityState;return B(e)||e!==`hidden`},Or=e=>(yr&&document.addEventListener(`visibilitychange`,e),Tr(`focus`,e),()=>{yr&&document.removeEventListener(`visibilitychange`,e),Er(`focus`,e)}),kr=e=>{let t=()=>{Cr=!0,e()},n=()=>{Cr=!1};return Tr(`online`,t),Tr(`offline`,n),()=>{Er(`online`,t),Er(`offline`,n)}},Ar={isOnline:wr,isVisible:Dr},jr={initFocus:Or,initReconnect:kr},Mr=!S.useId,Nr=!vr||br,Pr=e=>xr()?window.requestAnimationFrame(e):setTimeout(e,1),Fr=Nr?S.useEffect:S.useLayoutEffect,Ir=typeof navigator<`u`&&navigator.connection,Lr=!Nr&&Ir&&([`slow-2g`,`2g`].includes(Ir.effectiveType)||Ir.saveData),Rr=new WeakMap,zr=e=>dr.prototype.toString.call(e),Br=(e,t)=>e===`[object ${t}]`,Vr=0,Hr=e=>{let t=typeof e,n=zr(e),r=Br(n,`Date`),i=Br(n,`RegExp`),a=Br(n,`Object`),o,s;if(dr(e)===e&&!r&&!i){if(o=Rr.get(e),o)return o;if(o=++Vr+`~`,Rr.set(e,o),Array.isArray(e)){for(o=`@`,s=0;s<e.length;s++)o+=Hr(e[s])+`,`;Rr.set(e,o)}if(a){o=`#`;let t=dr.keys(e).sort();for(;!B(s=t.pop());)B(e[s])||(o+=s+`:`+Hr(e[s])+`,`);Rr.set(e,o)}}else o=r?e.toJSON():t==`symbol`?e.toString():t==`string`?JSON.stringify(e):``+e;return o},Ur=e=>{if(fr(e))try{e=e()}catch{e=``}let t=e;return e=typeof e==`string`?e:(Array.isArray(e)?e.length:e)?Hr(e):``,[e,t]},Wr=0,Gr=()=>++Wr;async function Kr(...e){let[t,n,r,i]=e,a=pr({populateCache:!0,throwOnError:!0},typeof i==`boolean`?{revalidate:i}:i||{}),o=a.populateCache,s=a.rollbackOnError,c=a.optimisticData,l=e=>typeof s==`function`?s(e):s!==!1,u=a.throwOnError;if(fr(n)){let e=n,r=[],i=t.keys();for(let n of i)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(d))}return d(n);async function d(n){let[i]=Ur(n);if(!i)return;let[s,d]=Sr(t,i),[f,p,m,h]=lr.get(t),g=()=>{let e=f[i];return(fr(a.revalidate)?a.revalidate(s().data,n):a.revalidate!==!1)&&(delete m[i],delete h[i],e&&e[0])?e[0](2).then(()=>s().data):s().data};if(e.length<3)return g();let _=r,v,y=!1,b=Gr();p[i]=[b,0];let x=!B(c),S=s(),C=S.data,w=S._c,T=B(w)?C:w;if(x&&(c=fr(c)?c(T,C):c,d({data:c,_c:T})),fr(_))try{_=_(T)}catch(e){v=e,y=!0}if(_&&mr(_)){if(_=await _.catch(e=>{v=e,y=!0}),b!==p[i][0]){if(y)throw v;return _}y&&x&&l(v)&&(o=!0,d({data:T,_c:void 0}))}if(o&&(y||(fr(o)?d({data:o(_,T),error:void 0,_c:void 0}):d({data:_,error:void 0,_c:void 0}))),p[i][1]=Gr(),Promise.resolve(g()).then(()=>{d({_c:void 0})}),y){if(u)throw v;return}return _}}var qr=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},Jr=(e,t)=>{if(!lr.has(e)){let n=pr(jr,t),r=Object.create(null),i=Kr.bind(void 0,e),a=ur,o=Object.create(null),s=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>{let e=n.indexOf(t);e>=0&&(n[e]=n[n.length-1],n.pop())}},c=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},l=t=>{let n=lr.get(e),[,i,a,s]=n,c=Gr();n[8]++;for(let e in a)delete a[e];for(let e in s)delete s[e];for(let e in i)i[e]=[c,c];let l={};for(let t of[...e.keys()]){let n=e.get(t);e.delete(t);let r=o[t];if(r)for(let e of r)e(l,n)}let u=!t||t.revalidate!==!1;for(let e in r){let t=r[e];for(let e=0;e<t.length;e++)t[e](4,{revalidate:u&&!e})}},u=()=>{if(!lr.has(e)&&(lr.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,c,s,l,0]),!Nr)){let t=n.initFocus(setTimeout.bind(void 0,qr.bind(void 0,r,0))),i=n.initReconnect(setTimeout.bind(void 0,qr.bind(void 0,r,1)));a=()=>{t&&t(),i&&i(),lr.delete(e)}}};return u(),[e,i,u,a,l]}let n=lr.get(e);return[e,n[4],void 0,void 0,n[7]]},Yr=(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,s=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!B(a)&&o>a||setTimeout(r,s,i)},Xr=cr,[Zr,Qr,,,$r]=Jr(new Map),ei=pr({onLoadingSlow:ur,onSuccess:ur,onError:ur,onErrorRetry:Yr,onDiscarded:ur,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Lr?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Lr?5e3:3e3,compare:Xr,isPaused:()=>!1,cache:Zr,mutate:Qr,unload:$r,fallback:{}},Ar),ti=(e,t)=>{let n=pr(e,t);if(t){let{use:r,fallback:i,cacheData:a}=e,{use:o,fallback:s,cacheData:c}=t;r&&o&&(n.use=r.concat(o)),i&&s&&(n.fallback=pr(i,s)),a&&c&&(n.cacheData=pr(a,c))}return n},ni=(0,S.createContext)({}),ri=e=>{let{value:t}=e,n=(0,S.useContext)(ni),r=fr(t),i=(0,S.useMemo)(()=>r?t(n):t,[r,n,t]),a=(0,S.useMemo)(()=>r?i:ti(n,i),[r,n,i]),o=i&&i.provider,s=(0,S.useRef)(void 0);o&&!s.current&&(s.current=Jr(o(a.cache||Zr),i));let c=s.current;return c&&(a.cache=c[0],a.mutate=c[1],a.unload=c[4]),Fr(()=>{if(c)return c[2]&&c[2](),c[3]},[]),(0,S.createElement)(ni.Provider,pr(e,{value:a}))},ii=`$inf$`,ai=vr&&window.__SWR_DEVTOOLS_USE__,oi=ai?window.__SWR_DEVTOOLS_USE__:[],si=()=>{ai&&(window.__SWR_DEVTOOLS_REACT__=S.default)},ci=e=>fr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],li=()=>{let e=(0,S.useContext)(ni);return(0,S.useMemo)(()=>pr(ei,e),[e])},ui=oi.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{let[r]=Ur(t),[,,,i]=lr.get(Zr);if(r.startsWith(`$inf$`))return n(...e);let a=i[r];return B(a)?n(...e):(delete i[r],a)}),r)),di=e=>function(...t){let n=li(),[r,i,a]=ci(t),o=ti(n,a),s=e,{use:c}=o,l=(c||[]).concat(ui);for(let e=l.length;e--;)s=l[e](s);return s(r,i||o.fetcher||null,o)},fi=(e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},pi=(e,t)=>(...n)=>{let[r,i,a]=ci(n),o=(a.use||[]).concat(t);return e(r,i,{...a,use:o})};si();var mi=S.use||(e=>{switch(e.status){case`pending`:throw e;case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:throw e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t}),e}}),hi={dedupe:!0},gi=(e,t,n)=>t?e.get(t)?.has(n)===!0:!1,_i=(e,t,n)=>{if(!t)return;let r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)},vi=({value:e,getCacheData:t,canCommit:n,setCache:r})=>{let i=e=>{n()&&B(t())&&r(e)};Promise.resolve(e).then(e=>{i({data:e,error:void 0})},e=>{i({error:e})})},yi=Promise.resolve(void 0);yi.status=`fulfilled`,yi.value=void 0;var bi=()=>ur,xi=(e,t,n)=>{let{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:s,revalidateIfStale:c,refreshInterval:l,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:f,strictServerPrefetchWarning:p}=n,[m,h,g,_]=lr.get(r),[v,y]=Ur(e),b=(0,S.useRef)(!1),x=(0,S.useRef)(!1),C=(0,S.useRef)(v),w=(0,S.useRef)(t),T=(0,S.useRef)(n),E=()=>T.current,D=()=>E().isVisible()&&E().isOnline(),[O,k,A,ee]=Sr(r,v),te=(0,S.useRef)({}).current,j=B(o)?B(n.fallback)?void 0:n.fallback[v]:o,M=n.cacheData,N=v?M?.[v]:void 0,P=v?_[v]:void 0,ne=B(P)&&!B(N),F=ne?N:P,re=(e,t)=>{for(let n in te){let r=n;if(r===`data`){if(!i(e[r],t[r])&&(!B(e[r])||!i(L,t[r])))return!1}else if(t[r]!==e[r])return!1}return!0},ie=!b.current,ae=(0,S.useMemo)(()=>{let e=O(),n=ee(),r=e=>{let n=pr(e);return delete n._k,(()=>{if(!v||!t||E().isPaused())return!1;if(ie&&!B(s))return s;let e=B(j)?n.data:j;return a&&ne&&B(e)?!1:B(e)||c})()?{isValidating:!0,isLoading:!0,...n}:n},i=r(e),o=e===n?i:r(n),l=i;return[()=>{let e=r(O());return re(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>o]},[r,v]),oe=(0,or.useSyncExternalStore)((0,S.useCallback)(e=>A(v,(t,n)=>{re(n,t)||e()}),[r,v]),ae[0],ae[1]),se=m[v]&&m[v].length>0,ce=oe.data,le=B(ce)?j&&mr(j)?mi(j):j:ce,ue=oe.error,de=(0,S.useRef)(le),fe=(0,S.useRef)(void 0),I=fe.current;I||(I=new WeakMap,fe.current=I);let pe=(0,S.useRef)(null),L=f?B(ce)?B(de.current)?le:de.current:ce:le,R=v&&B(le),me=(0,S.useRef)(null);!Nr&&(0,or.useSyncExternalStore)(bi,()=>(me.current=!1,me),()=>(me.current=!0,me));let he=me.current;p&&he&&!a&&R&&console.warn(`Missing pre-initiated data for serialized key "${v}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);let ge=!v||!t||E().isPaused()||se&&!B(ue)?!1:ie&&!B(s)?s:a&&ne&&R?!1:a?!B(le)&&c:B(le)||c,_e=ie&&ge,ve=B(oe.isValidating)?_e:oe.isValidating,z=B(oe.isLoading)?_e:oe.isLoading,ye=(0,S.useCallback)(async e=>{let t=w.current;if(!v||!t||x.current||E().isPaused())return!1;let r,a,o=!0,s=e||{},c=!g[v]||!s.dedupe,l=ne&&!gi(I,M,v)&&!B(F)&&B(O().data),u=()=>Mr?!x.current&&v===C.current&&b.current:v===C.current,d={isValidating:!1,isLoading:!1},f=()=>{k(d)},p=()=>{let e=g[v];e&&e[1]===a&&delete g[v]},S={isValidating:!0};B(O().data)&&(S.isLoading=!0);try{if(c&&(k(S),n.loadingTimeout&&B(O().data)&&setTimeout(()=>{o&&u()&&E().onLoadingSlow(v,n)},n.loadingTimeout),l&&_i(I,M,v),g[v]=[l?F:t(y),Gr()],l&&_[v]&&delete _[v]),[r,a]=g[v],r=await r,c&&setTimeout(p,n.dedupingInterval),!g[v]||g[v][1]!==a)return c&&u()&&E().onDiscarded(v),!1;d.error=void 0;let e=h[v];if(!B(e)&&(a<=e[0]||a<=e[1]||e[1]===0))return f(),c&&u()&&E().onDiscarded(v),!1;let s=O().data;d.data=i(s,r)?s:r,c&&u()&&E().onSuccess(r,v,n)}catch(e){p();let t=E(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&u()&&(t.onError(e,v,t),(n===!0||fr(n)&&n(e))&&(!E().revalidateOnFocus||!E().revalidateOnReconnect||D())&&t.onErrorRetry(e,v,t,e=>{let t=m[v];t&&t[0]&&t[0](3,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0})))}return o=!1,f(),!0},[v,r]),be=(0,S.useCallback)((...e)=>Kr(r,C.current,...e),[]);if(Fr(()=>{let e=pe.current;e&&(pe.current=null,_i(I,e.cacheData,e.key),B(O().data)&&k({data:e.data,error:void 0,_k:e._k}),_[e.key]&&delete _[e.key])}),Fr(()=>{w.current=t,T.current=n,B(ce)||(de.current=ce)}),Fr(()=>{if(t||!ne||B(F)||gi(I,M,v)||!B(O().data))return;_i(I,M,v);let e=h[v];vi({value:F,getCacheData:()=>O().data,canCommit:()=>!x.current&&v===C.current&&h[v]===e,setCache:e=>k({...e,_k:y})})}),Fr(()=>{if(!v)return;let e=ye.bind(void 0,hi),t=0;E().revalidateOnFocus&&(t=Date.now()+E().focusThrottleInterval);let n=fi(v,m,(n,r={})=>{if(n==0){let n=Date.now();E().revalidateOnFocus&&n>t&&D()&&(t=n+E().focusThrottleInterval,e())}else if(n==1)E().revalidateOnReconnect&&D()&&e();else if(n==2)return ye();else if(n==3)return ye(r);else if(n==4&&(de.current=void 0,r.revalidate))return ye()});return x.current=!1,C.current=v,b.current=!0,k({_k:y}),ge&&(g[v]||(B(le)||Nr?e():Pr(e))),()=>{x.current=!0,n()}},[v]),Fr(()=>{let e;function t(){let t=fr(l)?l(O().data):l;t&&e!==-1&&(e=setTimeout(n,t))}function n(){!O().error&&(u||E().isVisible())&&(d||E().isOnline())?ye(hi).then(t):t()}return t(),()=>{e&&=(clearTimeout(e),-1)}},[l,u,d,v]),(0,S.useDebugValue)(L),a){if(!Mr&&Nr&&R&&B(F))throw Error(`Fallback data is required when using Suspense in SSR.`);R&&(w.current=t,T.current=n,x.current=!1);let e=!B(F)&&R,r;if(e&&ne?(r=F&&mr(F)?mi(F):F,le=r,L=r,Nr||(pe.current={data:r,_k:y,key:v,cacheData:M})):mi(e?be(F):yi),!B(ue)&&R)throw ue;let i=R&&B(r)?ye(hi):yi;!B(L)&&R&&(i.status=`fulfilled`,i.value=!0),mi(i)}return{mutate:be,get data(){return te.data=!0,L},get error(){return te.error=!0,ue},get isValidating(){return te.isValidating=!0,ve},get isLoading(){return te.isLoading=!0,z}}};dr.defineProperty(ri,`defaultValue`,{value:ei});var Si=di(xi),Ci=[`request`,`log`,`instance`,`connectionOpened`,`connectionClosed`,`gatewayAlive`,`deployment`],wi=1e4,Ti=class{listeners=new Set;reconnectListeners=new Set;recent=[];subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}onReconnect(e){return this.reconnectListeners.add(e),()=>this.reconnectListeners.delete(e)}reset(){this.recent=[]}recentEvents(){let e=Date.now()-wi;return this.recent.filter(t=>t.atMs>=e).map(e=>e.event)}publish(e){let t=Date.now();this.recent=[...this.recent.filter(e=>e.atMs>=t-wi),...e.map(e=>({atMs:t,event:e}))];for(let t of this.listeners)t(e)}reconnected(){for(let e of this.reconnectListeners)e()}};function Ei(e,t,n){let r=new EventSource(`${e}/events?${t}`,{withCredentials:!0});for(let e of Ci)r.addEventListener(e,t=>n.publish(JSON.parse(t.data).map(t=>({type:e,item:t}))));let i=!1;return r.addEventListener(`open`,()=>{i&&n.reconnected(),i=!0}),()=>r.close()}function Di(e,t,n,r,i){let a=(0,S.useRef)(n);a.current=n;let o=Si(e,async()=>{let e=await t();return r?a.current(e,r.recentEvents()):e},i),{mutate:s}=o;return(0,S.useEffect)(()=>{if(!r)return;let e=r.subscribe(e=>void s(t=>t===void 0?t:a.current(t,e),{revalidate:!1})),t=r.onReconnect(()=>void s());return()=>{e(),t()}},[r,s]),o}function Oi(e,t){let[n]=(0,S.useState)(()=>new Ti),r=t?.toString()??null;return(0,S.useEffect)(()=>{if(r!==null)return n.reset(),Ei(e,new URLSearchParams(r),n)},[e,n,r]),r===null?null:n}function ki(e,t){let{data:n,error:r,isLoading:i}=Di(Ln(e),()=>new Jn(e).listActorTypes(),Xn,t);return{inventory:n??null,isLoading:i,isError:!n&&!!r,error:r}}function Ai(e){let[t,n]=(0,S.useState)(Date.now);return(0,S.useEffect)(()=>{let t=setInterval(()=>n(Date.now()),e);return()=>clearInterval(t)},[e]),t}var ji=new Intl.NumberFormat(`en-US`),Mi=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:1}),Ni=new Intl.NumberFormat(`en-US`,{maximumSignificantDigits:2}),Pi=new Intl.NumberFormat(`en-US`,{style:`percent`,minimumFractionDigits:1,maximumFractionDigits:1}),Fi=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),Ii=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,hourCycle:`h23`}),Li=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),Ri=new Intl.DateTimeFormat(`en-US`,{month:`short`,day:`numeric`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`}),zi=new Intl.DateTimeFormat(`en-US`,{hour:`2-digit`,minute:`2-digit`,second:`2-digit`,fractionalSecondDigits:3,hourCycle:`h23`}),Bi=(e,t)=>(n,r)=>`${e.format(n)} – ${new Date(n).toDateString()===new Date(r).toDateString()?t.format(r):e.format(r)}`,Vi=e=>Fi.format(e),Hi=e=>Li.format(e),Ui=e=>Ri.format(e),Wi=(e,t)=>(t<864e5?Fi:Ii).format(e),Gi=Bi(Ii,Fi),Ki=Bi(Ri,Li),qi=e=>zi.format(e),V=e=>ji.format(e),Ji=e=>Mi.format(e),Yi=e=>Pi.format(e),Xi=e=>Qi(e).join(`\xA0`),Zi=(e,t)=>`${ji.format(e)} ${e===1?t:`${t}s`}`;function Qi(e){return e>=999.5?[ta(e/1e3),`s`]:e>=.9995||e===0?[ta(e),`ms`]:[ta(e*1e3),`µs`]}function $i(e){if(e<6e4)return`${Math.round(e/1e3)}\u00a0s`;let t=Math.round(e/6e4);return t<60?`${t}\u00a0min`:t<2880?`${Mi.format(t/60)}\u00a0h`:`${Mi.format(t/1440)}\u00a0d`}function ea(e,t){let n=Math.max(0,Math.round((t-e)/1e3));return n<60?`${n}\u00a0s ago`:n<3600?`${Math.floor(n/60)}\u00a0min ago`:n<86400?`${Math.floor(n/3600)}\u00a0h ago`:`${Math.floor(n/86400)}\u00a0d ago`}function ta(e){return e<10?Ni.format(e):ji.format(Math.round(e))}var na=1e3,H=60*na,ra=60*H,ia=30,aa=[10*na,30*na,H,2*H,5*H,15*H,30*H,ra,3*ra,6*ra,12*ra,24*ra],oa={mode:`live`,durationMs:ra};function sa(){let e=Date.now();return{mode:`static`,fromMs:e-ra,toMs:e}}var ca=[{label:`Last 15 minutes`,durationMs:15*H},{label:`Last 1 hour`,durationMs:ra},{label:`Last 6 hours`,durationMs:6*ra},{label:`Last 24 hours`,durationMs:24*ra},{label:`Last 7 days`,durationMs:168*ra}];function la(e){return ca.find(t=>t.durationMs===e)?.label??`Last ${Math.round(e/H)} minutes`}function ua(e,t){let[n,r]=e.mode===`live`?[t-e.durationMs,t]:[e.fromMs,e.toMs];return{fromMs:n,toMs:r,stepMs:ya(r-n),live:e.mode===`live`}}function da(e,t){let[n=0,r=0]=t.split(`:`).map(Number);return new Date(e.getFullYear(),e.getMonth(),e.getDate(),n,r).getTime()}function fa({fromMs:e,toMs:t,live:n}){return n?{mode:`static`,fromMs:e,toMs:t}:{mode:`live`,durationMs:t-e}}function pa({fromMs:e,toMs:t,live:n}){return n?`last ${$i(t-e)}`:Gi(e,t)}function ma({fromMs:e,toMs:t,live:n},r){let i=t-e;return Array.from({length:r+1},(t,a)=>n&&a===r?`Now`:Wi(e+a/r*i,i))}function ha(e,t){return Wi(ga(e,t),e.toMs-e.fromMs)}function ga({fromMs:e,toMs:t,stepMs:n},r){return Math.min(e+(r+1)*n,t)}function _a({fromMs:e,toMs:t,stepMs:n}){return Math.max(1,Math.ceil((t-e)/n))}function va(e,t){return t<e.fromMs||t>e.toMs?null:Math.min(Math.floor((t-e.fromMs)/e.stepMs),_a(e)-1)}function ya(e){return aa.find(t=>e/t<=ia)??aa.at(-1)}function ba({fromMs:e,toMs:t,live:n}){return n?[`live`,t-e]:[e,t]}function xa({fromMs:e,toMs:t,live:n}){if(!n)return{fromMs:e,toMs:t};let r=Date.now();return{fromMs:r-(t-e),toMs:r}}function Sa(e,{actorName:t,actorId:n}={}){return(r,i)=>{let a=[];for(let e of i){if(e.type!==`request`)continue;let r=e.item;(t===void 0||r.actorName===t)&&(n===void 0||r.actorId===n)&&a.push(r)}if(a.length===0)return r;let o=Date.now()-e;return[...new Map([...r,...a].map(e=>[e.eventId,e])).values()].filter(e=>e.startedAtMs>=o)}}function Ca(e,t,n){let{data:r,error:i,isLoading:a}=Di([...Rn(e),...ba(t)],()=>new Jn(e).collectRequests(xa(t)),Sa(t.toMs-t.fromMs),t.live?n:null);return{requests:r??null,isLoading:a,isError:!r&&!!i,error:i}}var wa=500;function Ta(e,t){let n=new Map(e.map(e=>[e.connectionId,e]));for(let e of t){if(e.type===`connectionOpened`&&!n.has(e.item.connectionId)){let{connectionId:t,actorName:r,actorId:i,gatewayId:a,openedAtMs:o,metadata:s}=e.item;n.set(t,{connectionId:t,actorName:r,actorId:i,gatewayId:a,status:`open`,openedAtMs:o,closedAtMs:null,metadata:s})}if(e.type===`connectionClosed`){let{connectionId:t,actorName:r,actorId:i,gatewayId:a,openedAtMs:o,closedAtMs:s,closeCode:c,closeReason:l,messagesIn:u,messagesOut:d}=e.item,f=n.get(t);n.set(t,{connectionId:t,actorName:r,actorId:i,gatewayId:a,metadata:f?.metadata,status:`closed`,openedAtMs:f?.openedAtMs??o,closedAtMs:s,closeCode:c??void 0,closeReason:l??void 0,messagesIn:u??void 0,messagesOut:d??void 0})}}return[...n.values()].sort((e,t)=>t.openedAtMs-e.openedAtMs).slice(0,wa)}function Ea(e,t,n){return e.map(e=>{if(e.status!==`open`)return e;let r=Math.max(t[e.gatewayId]??0,e.openedAtMs);return r+3e4>=n?e:{...e,status:`lost`,closedAtMs:r}})}function Da(e,t){let{data:n,error:r,isLoading:i}=Di(Bn(e),()=>new Jn(e).listWebSockets(),Ta,t);return{sessions:n??null,isLoading:i,isError:!n&&!!r,error:r}}var Oa=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),U=o(((e,t)=>{t.exports=Oa()}))(),ka=5e3,Aa=(0,S.createContext)(void 0);function ja({initialRange:e=oa,children:t}){let[n,r]=(0,S.useState)(e),i=Fa(n.mode===`live`);return(0,U.jsx)(Aa.Provider,{value:{timeWindow:ua(n,i),setRange:r},children:t})}function Ma(){return Pa().timeWindow}function Na(){return Pa().setRange}function Pa(){let e=(0,S.useContext)(Aa);if(!e)throw Error(`Time range hooks must be used within a TimeRangeProvider`);return e}function Fa(e){let[t,n]=(0,S.useState)(Date.now);return(0,S.useEffect)(()=>{if(!e)return;n(Date.now());let t=setInterval(()=>n(Date.now()),ka);return()=>clearInterval(t)},[e]),t}var Ia=5e3,La=new URLSearchParams({signals:`requests,platform`}),Ra=(0,S.createContext)(void 0),za=({baseUrl:e=Kn,children:t})=>{let n=Oi(e,La),r=Ai(Ia),{inventory:i,isError:a}=ki(e,n),{requests:o,isError:s}=Ca(e,Ma(),n),{sessions:c,isError:l}=Da(e,n);return(0,U.jsx)(Ra.Provider,{value:{baseUrl:e,events:n,actorTypes:i&&Zn(i,r),isError:a,requests:o,isRequestsError:s,sessions:c&&Ea(c,i?.gateways??{},r),isSocketsError:l},children:t})},Ba=()=>{let e=(0,S.useContext)(Ra);if(!e)throw Error(`useData must be used within a DataProvider`);return e},Va=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function Ha(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Va(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Ua=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},Wa=e=>{let t=Ua(e);return t.charAt(0).toUpperCase()+t.slice(1)},Ga=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Ka={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function qa(e){return e!=null}function Ja(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Ka.width,a=e.size??e.height??Ka.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Ga(...c):Ga(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Ka[`stroke-width`])*Number(e.size??e.width??Ka.width)/Number(t.size??t.width??Ka.width):t.strokeWidth??Ka[`stroke-width`];return[`svg`,{...Object.entries(Ka).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&qa(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&qa(t.width)&&{[r(`width`)]:t.width},...`height`in t&&qa(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function Ya(e,t={}){return Ja(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var Xa=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Za=(0,S.createContext)({}),Qa=()=>(0,S.useContext)(Za),$a=(0,S.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=Qa()??{},y=!!c||Xa(d),[b,x,C=[]]=Ya(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:Ga(v,s),hasA11yProp:y,attributes:d});return(0,S.createElement)(b,{ref:f,...x},[...C.map(([e,t])=>(0,S.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function eo(e,t=[],n=[]){let r=typeof e==`string`?Ha(e,t,n):e,i=(0,S.forwardRef)(({className:e,...t},n)=>(0,S.createElement)($a,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Wa(r.name)),i}var to={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};to.node;var no=eo(to),ro={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};ro.node;var io=eo(ro),ao={name:`calendar`,size:24,node:[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};ao.node;var oo=eo(ao),so={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};so.node;var co=eo(so),lo={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};lo.node;var uo=eo(lo),fo={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};fo.node;var po=eo(fo),mo={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};mo.node;var ho=eo(mo),go={name:`chevrons-down-up`,size:24,node:[[`path`,{d:`m7 20 5-5 5 5`,key:`13a0gw`}],[`path`,{d:`m7 4 5 5 5-5`,key:`1kwcof`}]]};go.node;var _o=eo(go),vo={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};vo.node;var yo=eo(vo),bo={name:`columns-3`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]],aliases:[`panels-left-right`]};bo.node;var xo=eo(bo),So={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};So.node;var Co=eo(So),wo={name:`pause`,size:24,node:[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]};wo.node;var To=eo(wo),Eo={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};Eo.node;var Do=eo(Eo),Oo={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};Oo.node;var ko=eo(Oo),Ao={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};Ao.node;var jo=eo(Ao),Mo=Object.defineProperty,No=(e,t)=>Mo(e,`name`,{value:t,configurable:!0});function Po(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}No(Po,`setRef`);function Fo(...e){return t=>{let n=!1,r=e.map(e=>{let r=Po(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Po(e[t],null)}}}}No(Fo,`composeRefs`);function Io(...e){return S.useCallback(Fo(...e),e)}No(Io,`useComposedRefs`);var Lo=Object.defineProperty,Ro=(e,t)=>Lo(e,`name`,{value:t,configurable:!0});function zo(e){let t=S.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];r=Yo(r),S.Children.forEach(r,e=>{if(Go(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;for(;qo(n)&&typeof $o==`function`;)n=$o(n._payload);a=Ho(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=S.cloneElement(a,void 0,s):!o&&S.Children.count(r)===1&&S.isValidElement(r)&&(a=r);let c=a?Wo(a):void 0,l=Io(n,c);if(!a){if(r||r===0)throw Error(o?Qo(e):Zo(e));return r}let u=Uo(i,a.props??{});return a.type!==S.Fragment&&(u.ref=n?l:c),S.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Ro(zo,`createSlot`);var W=zo(`Slot`),Bo=Symbol.for(`radix.slottable`);function Vo(e){let t=Ro(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Bo,t}Ro(Vo,`createSlottable`);var Ho=Ro((e,t)=>`child`in e.props?S.isValidElement(t)?S.cloneElement(t,void 0,e.props.children(t.props.children)):null:S.isValidElement(t)?t:null,`getSlottableElementFromSlottable`);function Uo(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Xo(a,i))}return{...e,...n}}Ro(Uo,`mergeProps`);function Wo(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Ro(Wo,`getElementRef`);function Go(e){return S.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Bo}Ro(Go,`isSlottable`);var Ko=Symbol.for(`react.lazy`);function qo(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Ko&&`_payload`in e&&Jo(e._payload)}Ro(qo,`isLazyComponent`);function Jo(e){return typeof e==`object`&&!!e&&`then`in e}Ro(Jo,`isPromiseLike`);function Yo(e){let t=e;for(;qo(t)&&typeof $o==`function`;)t=$o(t._payload);return t}Ro(Yo,`useUnwrappedLazy`);function Xo(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Ro(Xo,`concatAriaDescribedby`);var Zo=Ro(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Qo=Ro(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),$o=S.use;function es(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=es(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function ts(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=es(e))&&(r&&(r+=` `),r+=t);return r}var ns=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,rs=ts,is=(e,t)=>n=>{if(t?.variants==null)return rs(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=ns(t)||ns(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 rs(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)},as=(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},os=(e,t)=>({classGroupId:e,validator:t}),ss=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),cs=`-`,ls=[],us=`arbitrary..`,ds=e=>{let t=ms(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return ps(e);let n=e.split(cs);return fs(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?as(i,t):t:i||ls}return n[e]||ls}}},fs=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=fs(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(cs):e.slice(t).join(cs),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},ps=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?us+r:void 0})(),ms=e=>{let{theme:t,classGroups:n}=e;return hs(n,t)},hs=(e,t)=>{let n=ss();for(let r in e){let i=e[r];gs(i,n,r,t)}return n},gs=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];_s(i,t,n,r)}},_s=(e,t,n,r)=>{if(typeof e==`string`){vs(e,t,n);return}if(typeof e==`function`){ys(e,t,n,r);return}bs(e,t,n,r)},vs=(e,t,n)=>{let r=e===``?t:xs(t,e);r.classGroupId=n},ys=(e,t,n,r)=>{if(Ss(e)){gs(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(os(n,e))},bs=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];gs(o,xs(t,a),n,r)}},xs=(e,t)=>{let n=e,r=t.split(cs),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=ss(),n.nextPart.set(t,i)),n=i}return n},Ss=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Cs=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)}}},ws=`!`,Ts=`:`,Es=[],Ds=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Os=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===Ts){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(ws)?(c=s.slice(0,-1),l=!0):s.startsWith(ws)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Ds(t,l,c,u)};if(t){let e=t+Ts,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Ds(Es,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},ks=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}},As=e=>({cache:Cs(e.cacheSize),parseClassName:Os(e),sortModifiers:ks(e),postfixLookupClassGroupIds:js(e),...ds(e)}),js=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},Ms=/\s+/,Ns=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Ms),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?_+ws:_,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},Ps=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Fs(n))&&(i&&(i+=` `),i+=r);return i},Fs=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Fs(e[r]))&&(n&&(n+=` `),n+=t);return n},Is=(e,...t)=>{let n,r,i,a,o=o=>(n=As(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=Ns(e,n);return i(e,a),a};return a=o,(...e)=>a(Ps(...e))},Ls=[],Rs=e=>{let t=t=>t[e]||Ls;return t.isThemeGetter=!0,t.themeKey=e,t},zs=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Bs=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Vs=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Us=/\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$/,Ws=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Gs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ks=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,qs=e=>Vs.test(e),G=e=>!!e&&!Number.isNaN(Number(e)),Js=e=>!!e&&Number.isInteger(Number(e)),Ys=e=>e.endsWith(`%`)&&G(e.slice(0,-1)),Xs=e=>Hs.test(e),Zs=()=>!0,Qs=e=>Us.test(e)&&!Ws.test(e),$s=()=>!1,ec=e=>Gs.test(e),tc=e=>Ks.test(e),nc=e=>!K(e)&&!q(e),rc=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)),ic=e=>yc(e,Cc,$s),K=e=>zs.test(e),ac=e=>yc(e,wc,Qs),oc=e=>yc(e,Tc,G),sc=e=>yc(e,Dc,Zs),cc=e=>yc(e,Ec,$s),lc=e=>yc(e,xc,$s),uc=e=>yc(e,Sc,tc),dc=e=>yc(e,Oc,ec),q=e=>Bs.test(e),fc=e=>bc(e,wc),pc=e=>bc(e,Ec),mc=e=>bc(e,xc),hc=e=>bc(e,Cc),gc=e=>bc(e,Sc),_c=e=>bc(e,Oc,!0),vc=e=>bc(e,Dc,!0),yc=(e,t,n)=>{let r=zs.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},bc=(e,t,n=!1)=>{let r=Bs.exec(e);return r?r[1]?t(r[1]):n:!1},xc=e=>e===`position`||e===`percentage`,Sc=e=>e===`image`||e===`url`,Cc=e=>e===`length`||e===`size`||e===`bg-size`,wc=e=>e===`length`,Tc=e=>e===`number`,Ec=e=>e===`family-name`,Dc=e=>e===`number`||e===`weight`,Oc=e=>e===`shadow`,kc=Is(()=>{let e=Rs(`color`),t=Rs(`font`),n=Rs(`text`),r=Rs(`font-weight`),i=Rs(`tracking`),a=Rs(`leading`),o=Rs(`breakpoint`),s=Rs(`container`),c=Rs(`spacing`),l=Rs(`radius`),u=Rs(`shadow`),d=Rs(`inset-shadow`),f=Rs(`text-shadow`),p=Rs(`drop-shadow`),m=Rs(`blur`),h=Rs(`perspective`),g=Rs(`aspect`),_=Rs(`ease`),v=Rs(`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,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[q,K,c],T=()=>[qs,`full`,`auto`,...w()],E=()=>[Js,`none`,`subgrid`,q,K],D=()=>[`auto`,{span:[`full`,Js,q,K]},Js,q,K],O=()=>[Js,`auto`,q,K],k=()=>[`auto`,`min`,`max`,`fr`,q,K],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],ee=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],te=()=>[`auto`,...w()],j=()=>[qs,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],M=()=>[s,qs,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],N=()=>[qs,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[e,q,K],ne=()=>[...b(),mc,lc,{position:[q,K]}],F=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],re=()=>[`auto`,`cover`,`contain`,hc,ic,{size:[q,K]}],ie=()=>[Ys,fc,ac],ae=()=>[``,`none`,`full`,l,q,K],oe=()=>[``,G,fc,ac],se=()=>[`solid`,`dashed`,`dotted`,`double`],ce=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],le=()=>[G,Ys,mc,lc],ue=()=>[``,`none`,m,q,K],de=()=>[`none`,G,q,K],fe=()=>[`none`,G,q,K],I=()=>[G,q,K],pe=()=>[qs,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Xs],breakpoint:[Xs],color:[Zs],container:[Xs],"drop-shadow":[Xs],ease:[`in`,`out`,`in-out`],font:[nc],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Xs],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Xs],shadow:[Xs],spacing:[`px`,G],text:[Xs],"text-shadow":[Xs],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,qs,K,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,K]}],"container-named":[rc],columns:[{columns:[G,`auto`,K,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:[Js,`auto`,q,K]}],basis:[{basis:[qs,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[G,qs,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,G,q,K]}],shrink:[{shrink:[``,G,q,K]}],order:[{order:[Js,`first`,`last`,`none`,q,K]}],"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":[...ee(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...ee()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...ee(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...ee(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...ee(),`baseline`]}],"place-self":[{"place-self":[`auto`,...ee()]}],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:te()}],mx:[{mx:te()}],my:[{my:te()}],ms:[{ms:te()}],me:[{me:te()}],mbs:[{mbs:te()}],mbe:[{mbe:te()}],mt:[{mt:te()}],mr:[{mr:te()}],mb:[{mb:te()}],ml:[{ml:te()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:j()}],"inline-size":[{inline:[`auto`,...M()]}],"min-inline-size":[{"min-inline":[`auto`,...M()]}],"max-inline-size":[{"max-inline":[`none`,...M()]}],"block-size":[{block:[`auto`,...N()]}],"min-block-size":[{"min-block":[`auto`,...N()]}],"max-block-size":[{"max-block":[`none`,...N()]}],w:[{w:[s,`screen`,...j()]}],"min-w":[{"min-w":[s,`screen`,`none`,...j()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...j()]}],h:[{h:[`screen`,`lh`,...j()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...j()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...j()]}],"font-size":[{text:[`base`,n,fc,ac]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,vc,sc]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ys,K]}],"font-family":[{font:[pc,cc,t]}],"font-features":[{"font-features":[K]}],"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,K]}],"line-clamp":[{"line-clamp":[G,`none`,q,oc]}],leading:[{leading:[`none`,a,...w()]}],"list-image":[{"list-image":[`none`,q,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,K]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...se(),`wavy`]}],"text-decoration-thickness":[{decoration:[G,`from-font`,`auto`,q,ac]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[G,`auto`,q,K]}],"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:[Js,q,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,K]}],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,K]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:F()}],"bg-size":[{bg:re()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Js,q,K],radial:[``,q,K],conic:[``,Js,q,K]},gc,uc]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...se(),`hidden`,`none`]}],"divide-style":[{divide:[...se(),`hidden`,`none`]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...se(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[G,q,K]}],"outline-w":[{outline:[``,G,fc,ac]}],"outline-color":[{outline:P()}],shadow:[{shadow:[``,`inner`,`none`,u,_c,dc]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":[`none`,d,_c,dc]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:oe()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[G,ac]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":[`none`,f,_c,dc]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[G,q,K]}],"mix-blend":[{"mix-blend":[...ce(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ce()}],"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":[G]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":[G]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:F()}],"mask-size":[{mask:re()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,K]}],filter:[{filter:[``,`none`,q,K]}],blur:[{blur:ue()}],brightness:[{brightness:[G,q,K]}],contrast:[{contrast:[G,q,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,_c,dc]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:[``,G,q,K]}],"hue-rotate":[{"hue-rotate":[G,q,K]}],invert:[{invert:[``,G,q,K]}],saturate:[{saturate:[G,q,K]}],sepia:[{sepia:[``,G,q,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,K]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[G,q,K]}],"backdrop-contrast":[{"backdrop-contrast":[G,q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,G,q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[G,q,K]}],"backdrop-invert":[{"backdrop-invert":[``,G,q,K]}],"backdrop-opacity":[{"backdrop-opacity":[G,q,K]}],"backdrop-saturate":[{"backdrop-saturate":[G,q,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,G,q,K]}],"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,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[G,`initial`,q,K]}],ease:[{ease:[`linear`,`initial`,_,q,K]}],delay:[{delay:[G,q,K]}],animate:[{animate:[`none`,v,q,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":[`scale-3d`],skew:[{skew:I()}],"skew-x":[{"skew-x":I()}],"skew-y":[{"skew-y":I()}],transform:[{transform:[q,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Js,q,K]}],accent:[{accent:P()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:P()}],"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,K]}],"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":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"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,K]}],fill:[{fill:[`none`,...P()]}],"stroke-w":[{stroke:[G,fc,ac,oc]}],stroke:[{stroke:[`none`,...P()]}],"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":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`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-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`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-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`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-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`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-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`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 J(...e){return kc(ts(e))}var Ac=is(`inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/90`,destructive:`bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40`,outline:`border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2 has-[>svg]:px-3`,xs:`h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5`,lg:`h-10 rounded-md px-6 has-[>svg]:px-4`,icon:`size-9`,"icon-xs":`size-6 rounded-md [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-8`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function jc({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){return(0,U.jsx)(r?W:`button`,{"data-slot":`button`,"data-variant":t,"data-size":n,className:J(Ac({variant:t,size:n,className:e})),...i})}var Mc=Object.defineProperty,Nc=(e,t)=>Mc(e,`name`,{value:t,configurable:!0}),Pc=!!(typeof window<`u`&&window.document&&window.document.createElement);function Fc(e,t,{checkForDefaultPrevented:n=!0}={}){return Nc(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Nc(Fc,`composeEventHandlers`);function Ic(e){if(!Pc)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Nc(Ic,`getOwnerWindow`);function Lc(e){if(!Pc)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Nc(Lc,`getOwnerDocument`);function Rc(e,t=!1){let{activeElement:n}=Lc(e);if(!n?.nodeName)return null;if(zc(n)&&n.contentDocument)return Rc(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Lc(n).getElementById(e);if(t)return t}}return n}Nc(Rc,`getActiveElement`);function zc(e){return e.tagName===`IFRAME`}Nc(zc,`isFrame`);var Bc=Object.defineProperty,Vc=(e,t)=>Bc(e,`name`,{value:t,configurable:!0});function Hc(e,t){let n=S.createContext(t);n.displayName=e+`Context`;let r=Vc(e=>{let{children:t,...r}=e,i=S.useMemo(()=>r,Object.values(r));return(0,U.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=S.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Vc(i,`useContext`),[r,i]}Vc(Hc,`createContext`);function Uc(e,t=[]){let n=[];function r(t,r){let i=S.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Vc(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=S.useMemo(()=>o,Object.values(o));return(0,U.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=S.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Vc(s,`useContext`),[o,s]}Vc(r,`createContext`);let i=Vc(()=>{let t=n.map(e=>S.createContext(e));return Vc(function(n){let r=n?.[e]||t;return S.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Wc(i,...t)]}Vc(Uc,`createContextScope`);function Wc(...e){let t=e[0];if(e.length===1)return t;let n=Vc(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Vc(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Vc(Wc,`composeContextScopes`);var Gc=globalThis?.document?S.useLayoutEffect:()=>{},Kc=Object.defineProperty,qc=(e,t)=>Kc(e,`name`,{value:t,configurable:!0}),Jc=S.useId||(()=>void 0),Yc=0;function Xc(e){let[t,n]=S.useState(Jc());return Gc(()=>{e||n(e=>e??String(Yc++))},[e]),e||(t?`radix-${t}`:``)}qc(Xc,`useId`);var Zc=Object.defineProperty,Qc=(e,t)=>Zc(e,`name`,{value:t,configurable:!0}),$c=S.useEffectEvent,el=S.useInsertionEffect;function tl(e){if(typeof $c==`function`)return $c(e);let t=S.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof el==`function`?el(()=>{t.current=e}):Gc(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}Qc(tl,`useEffectEvent`);var nl=Object.defineProperty,rl=(e,t)=>nl(e,`name`,{value:t,configurable:!0}),il=S.useInsertionEffect||Gc;function al({prop:e,defaultProp:t,onChange:n=rl(()=>{},`onChange`),caller:r}){let[i,a,o]=ol({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,S.useCallback(t=>{if(s){let n=sl(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}rl(al,`useControllableState`);function ol({defaultProp:e,onChange:t}){let[n,r]=S.useState(e),i=S.useRef(n),a=S.useRef(t);return il(()=>{a.current=t},[t]),S.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}rl(ol,`useUncontrolledState`);function sl(e){return typeof e==`function`}rl(sl,`isFunction`);var cl=Symbol(`RADIX:SYNC_STATE`);function ll(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=tl(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=S.useReducer((t,n)=>{if(n.type===cl)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=S.useRef(p);S.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=S.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return S.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:cl,state:i})},[i,d.state,c]),[h,f]}rl(ll,`useControllableStateReducer`);var ul=Object.defineProperty,dl=(e,t)=>ul(e,`name`,{value:t,configurable:!0});function fl(e){let t=S.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];bl(r)&&typeof wl==`function`&&(r=wl(r._payload)),S.Children.forEach(r,e=>{if(vl(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;bl(n)&&typeof wl==`function`&&(n=wl(n._payload)),a=hl(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=S.cloneElement(a,void 0,s):!o&&S.Children.count(r)===1&&S.isValidElement(r)&&(a=r);let c=a?_l(a):void 0,l=Io(n,c);if(!a){if(r||r===0)throw Error(o?Cl(e):Sl(e));return r}let u=gl(i,a.props??{});return a.type!==S.Fragment&&(u.ref=n?l:c),S.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}dl(fl,`createSlot`);var pl=Symbol.for(`radix.slottable`);function ml(e){let t=dl(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=pl,t}dl(ml,`createSlottable`);var hl=dl((e,t)=>{if(`child`in e.props){let t=e.props.child;return S.isValidElement(t)?S.cloneElement(t,void 0,e.props.children(t.props.children)):null}return S.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function gl(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}dl(gl,`mergeProps`);function _l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}dl(_l,`getElementRef`);function vl(e){return S.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===pl}dl(vl,`isSlottable`);var yl=Symbol.for(`react.lazy`);function bl(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===yl&&`_payload`in e&&xl(e._payload)}dl(bl,`isLazyComponent`);function xl(e){return typeof e==`object`&&!!e&&`then`in e}dl(xl,`isPromiseLike`);var Sl=dl(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Cl=dl(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),wl=S.use,Tl=Object.defineProperty,El=(e,t)=>Tl(e,`name`,{value:t,configurable:!0}),Dl=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=fl(`Primitive.${t}`),r=S.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,U.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ol(e,t){e&&ar.flushSync(()=>e.dispatchEvent(t))}El(Ol,`dispatchDiscreteCustomEvent`);var kl=Object.defineProperty,Al=(e,t)=>kl(e,`name`,{value:t,configurable:!0});function jl(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}Al(jl,`useCallbackRef`);var Ml=Object.defineProperty,Nl=(e,t)=>Ml(e,`name`,{value:t,configurable:!0}),Pl=`dismissableLayer.update`,Fl=`dismissableLayer.pointerDownOutside`,Il=`dismissableLayer.focusOutside`,Ll,Rl=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),zl=S.forwardRef(Nl(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=S.useContext(Rl),[d,f]=S.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=S.useState({}),h=Io(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,C=S.useRef(!1),w=Hl(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),T=Ul(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?y===g.length-1:!1,D=jl(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return S.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ll=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Wl(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Ll))}},[d,p,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Wl())},[d,u]),S.useEffect(()=>{let e=Nl(()=>m({}),`handleUpdate`);return document.addEventListener(Pl,e),()=>document.removeEventListener(Pl,e)},[]),(0,U.jsx)(Dl.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:Fc(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Fc(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Fc(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Bl(){let e=S.useContext(Rl),[t,n]=S.useState(null);return S.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Nl(Bl,`useDismissableLayerSurface`);var Vl=Nl(()=>!0,`IS_TRUE`);function Hl(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Vl}=t,s=jl(e),c=S.useRef(!1),l=S.useRef(!1),u=S.useRef(new Map),d=S.useRef(()=>{});return S.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Nl(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Nl(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Nl(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Nl(p,`handleInteractionBubble`);let m=Nl(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Gl(Fl,s,p,{discrete:!0})};if(Nl(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Nl(()=>c.current=!0,`onPointerDownCapture`)}}Nl(Hl,`usePointerDownOutside`);function Ul(e,t=globalThis?.document){let n=jl(e),r=S.useRef(!1);return S.useEffect(()=>{let e=Nl(e=>{e.target&&!r.current&&Gl(Il,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Nl(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Nl(()=>r.current=!1,`onBlurCapture`)}}Nl(Ul,`useFocusOutside`);function Wl(){let e=new CustomEvent(Pl);document.dispatchEvent(e)}Nl(Wl,`dispatchUpdate`);function Gl(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ol(i,a):i.dispatchEvent(a)}Nl(Gl,`handleAndDispatchCustomEvent`);var Kl=Object.defineProperty,ql=(e,t)=>Kl(e,`name`,{value:t,configurable:!0}),Jl=`focusScope.autoFocusOnMount`,Yl=`focusScope.autoFocusOnUnmount`,Xl={bubbles:!1,cancelable:!0},Zl=S.forwardRef(ql(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=S.useState(null),l=jl(i),u=jl(a),d=S.useRef(null),f=Io(t,c),p=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:iu(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||iu(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&iu(s)};ql(e,`handleFocusIn`),ql(t,`handleFocusOut`),ql(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),S.useEffect(()=>{if(s){au.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Jl,Xl);s.addEventListener(Jl,l),s.dispatchEvent(t),t.defaultPrevented||(Ql(cu(eu(s)),{select:!0}),document.activeElement===e&&iu(s))}return()=>{s.removeEventListener(Jl,l),setTimeout(()=>{let t=new CustomEvent(Yl,Xl);s.addEventListener(Yl,u),s.dispatchEvent(t),t.defaultPrevented||iu(e??document.body,{select:!0}),s.removeEventListener(Yl,u),au.remove(p)},0)}}},[s,l,u,p]);let m=S.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=$l(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&iu(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&iu(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,U.jsx)(Dl.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Ql(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(iu(r,{select:t}),document.activeElement!==n)return}ql(Ql,`focusFirst`);function $l(e){let t=eu(e);return[tu(t,e),tu(t.reverse(),e)]}ql($l,`getTabbableEdges`);function eu(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ql(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}ql(eu,`getTabbableCandidates`);function tu(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):nu(r,{upTo:t})))return r}ql(tu,`findVisible`);function nu(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}ql(nu,`isHidden`);function ru(e){return e instanceof HTMLInputElement&&`select`in e}ql(ru,`isSelectableInput`);function iu(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ru(e)&&t&&e.select()}}ql(iu,`focus`);var au=ou();function ou(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=su(e,t),e.unshift(t)},remove(t){e=su(e,t),e[0]?.resume()}}}ql(ou,`createFocusScopesStack`);function su(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}ql(su,`arrayRemove`);function cu(e){return e.filter(e=>e.tagName!==`A`)}ql(cu,`removeLinks`);var lu=Object.defineProperty,uu=S.forwardRef(((e,t)=>lu(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=S.useState(!1);Gc(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ar.createPortal((0,U.jsx)(Dl.div,{...r,ref:t}),o):null},`Portal`)),du=Object.defineProperty,fu=(e,t)=>du(e,`name`,{value:t,configurable:!0});function pu(e,t){return S.useReducer((e,n)=>t[e][n]??e,e)}fu(pu,`useStateMachine`);var mu=fu(e=>{let{present:t,children:n}=e,r=hu(t),i=typeof n==`function`?n({present:r.isPresent}):S.Children.only(n),a=_u(r.ref,yu(i));return typeof n==`function`||r.isPresent?S.cloneElement(i,{ref:a}):null},`Presence`);function hu(e){let[t,n]=S.useState(),r=S.useRef(null),i=S.useRef(e),a=S.useRef(`none`),o=S.useRef(void 0),[s,c]=pu(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return S.useEffect(()=>{s===`mounted`?(a.current=o.current??vu(r.current),o.current=void 0):a.current=`none`},[s]),Gc(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=vu(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Gc(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=fu(a=>{let o=vu(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=fu(e=>{e.target===t&&(a.current=vu(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:S.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=vu(t)}else r.current=null;n(e)},[])}}fu(hu,`usePresence`);function gu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}fu(gu,`setRef`);function _u(...e){let t=S.useRef(e);return t.current=e,S.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=gu(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():gu(n[e],null)}}},[])}fu(_u,`useStableComposedRefs`);function vu(e){return e?.animationName||`none`}fu(vu,`getAnimationName`);function yu(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fu(yu,`getElementRef`);var bu=Object.defineProperty,xu=(e,t)=>bu(e,`name`,{value:t,configurable:!0}),Su=0,Cu=null;function wu(e){return Tu(),e.children}xu(wu,`FocusGuards`);function Tu(){S.useEffect(()=>{Cu||={start:Eu(),end:Eu()};let{start:e,end:t}=Cu;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Su++,()=>{Su===1&&(Cu?.start.remove(),Cu?.end.remove(),Cu=null),Su=Math.max(0,Su-1)}},[])}xu(Tu,`useFocusGuards`);function Eu(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}xu(Eu,`createFocusGuard`);var Du=function(){return Du=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Du.apply(this,arguments)};function Ou(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function ku(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Au=`right-scroll-bar-position`,ju=`width-before-scroll-bar`,Mu=`with-scroll-bars-hidden`,Nu=`--removed-body-scroll-bar-size`;function Pu(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Fu(e,t){var n=(0,S.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Iu=typeof window<`u`?S.useLayoutEffect:S.useEffect,Lu=new WeakMap;function Ru(e,t){var n=Fu(t||null,function(t){return e.forEach(function(e){return Pu(e,t)})});return Iu(function(){var t=Lu.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Pu(e,null)}),i.forEach(function(e){r.has(e)||Pu(e,a)})}Lu.set(n,e)},[e]),n}function zu(e){return e}function Bu(e,t){t===void 0&&(t=zu);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Vu(e){e===void 0&&(e={});var t=Bu(null);return t.options=Du({async:!0,ssr:!1},e),t}var Hu=function(e){var t=e.sideCar,n=Ou(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return S.createElement(r,Du({},n))};Hu.isSideCarExport=!0;function Uu(e,t){return e.useMedium(t),Hu}var Wu=Vu(),Gu=function(){},Ku=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:Gu,onWheelCapture:Gu,onTouchMoveCapture:Gu}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Ou(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,C=Ru([n,t]),w=Du(Du({},b),i);return S.createElement(S.Fragment,null,u&&S.createElement(x,{sideCar:Wu,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?S.cloneElement(S.Children.only(s),Du(Du({},w),{ref:C})):S.createElement(v,Du({},w,{className:c,ref:C}),s))});Ku.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ku.classNames={fullWidth:ju,zeroRight:Au};var qu=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ju(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=qu();return t&&e.setAttribute(`nonce`,t),e}function Yu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Xu(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Zu=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ju())&&(Yu(t,n),Xu(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qu=function(){var e=Zu();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Y=function(){var e=Qu();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},X={left:0,top:0,right:0,gap:0},$u=function(e){return parseInt(e||``,10)||0},ed=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[$u(n),$u(r),$u(i)]},td=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return X;var t=ed(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nd=Y(),rd=`data-scroll-locked`,id=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
12
|
+
.${Mu} {
|
|
13
13
|
overflow: hidden ${r};
|
|
14
14
|
padding-right: ${s}px ${r};
|
|
15
15
|
}
|
|
16
|
-
body[${
|
|
16
|
+
body[${rd}] {
|
|
17
17
|
overflow: hidden ${r};
|
|
18
18
|
overscroll-behavior: contain;
|
|
19
19
|
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
@@ -26,29 +26,29 @@ Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}
|
|
|
26
26
|
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.${
|
|
29
|
+
.${Au} {
|
|
30
30
|
right: ${s}px ${r};
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
.${
|
|
33
|
+
.${ju} {
|
|
34
34
|
margin-right: ${s}px ${r};
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
.${
|
|
37
|
+
.${Au} .${Au} {
|
|
38
38
|
right: 0 ${r};
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.${
|
|
41
|
+
.${ju} .${ju} {
|
|
42
42
|
margin-right: 0 ${r};
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
body[${
|
|
46
|
-
${
|
|
45
|
+
body[${rd}] {
|
|
46
|
+
${Nu}: ${s}px;
|
|
47
47
|
}
|
|
48
|
-
`},
|
|
48
|
+
`},ad=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},od=function(){S.useEffect(function(){return document.body.setAttribute(rd,(ad()+1).toString()),function(){var e=ad()-1;e<=0?document.body.removeAttribute(rd):document.body.setAttribute(rd,e.toString())}},[])},sd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;od();var a=S.useMemo(function(){return td(i)},[i]);return S.createElement(nd,{styles:id(a,!t,i,n?``:`!important`)})},cd=!1;if(typeof window<`u`)try{var ld=Object.defineProperty({},"passive",{get:function(){return cd=!0,!0}});window.addEventListener(`test`,ld,ld),window.removeEventListener(`test`,ld,ld)}catch{cd=!1}var ud=cd?{passive:!1}:!1,dd=function(e){return e.tagName===`TEXTAREA`},fd=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!dd(e)&&n[t]===`visible`)},pd=function(e){return fd(e,`overflowY`)},md=function(e){return fd(e,`overflowX`)},hd=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),vd(e,r)){var i=yd(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},gd=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},_d=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},vd=function(e,t){return e===`v`?pd(t):md(t)},yd=function(e,t){return e===`v`?gd(t):_d(t)},bd=function(e,t){return e===`h`&&t===`rtl`?-1:1},xd=function(e,t,n,r,i){var a=bd(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=yd(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&vd(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Sd=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Cd=function(e){return[e.deltaX,e.deltaY]},wd=function(e){return e&&`current`in e?e.current:e},Td=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Ed=function(e){return`
|
|
49
49
|
.block-interactivity-${e} {pointer-events: none;}
|
|
50
50
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
51
|
-
`},vd=0,yd=[];function bd(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(vd++)[0],a=S.useState(Wu)[0],o=S.useRef(e);S.useEffect(function(){o.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=bu([e.lockRef.current],(e.shards||[]).map(hd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=pd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=od(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=od(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return fd(h,t,e,h===`h`?s:c,!0)},[]),c=S.useCallback(function(e){var n=e;if(yd.length&&yd[yd.length-1]===a){var r=`deltaY`in n?md(n):pd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&gd(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(hd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=S.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:xd(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=S.useCallback(function(e){n.current=pd(e),r.current=void 0},[]),d=S.useCallback(function(t){l(t.type,md(t),t.target,s(t,e.lockRef.current))},[]),f=S.useCallback(function(t){l(t.type,pd(t),t.target,s(t,e.lockRef.current))},[]);S.useEffect(function(){return yd.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,td),document.addEventListener(`touchmove`,c,td),document.addEventListener(`touchstart`,u,td),function(){yd=yd.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,td),document.removeEventListener(`touchmove`,c,td),document.removeEventListener(`touchstart`,u,td)}},[]);var p=e.removeScrollBar,m=e.inert;return S.createElement(S.Fragment,null,m?S.createElement(a,{styles:_d(i)}):null,p?S.createElement(X,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function xd(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Sd=Pu(Fu,bd),Cd=S.forwardRef(function(e,t){return S.createElement(Lu,vu({},e,{ref:t,sideCar:Sd}))});Cd.classNames=Lu.classNames;var wd=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Td=new WeakMap,Ed=new WeakMap,Dd={},Od=0,kd=function(e){return e&&(e.host||kd(e.parentNode))},Ad=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=kd(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},jd=function(e,t,n,r){var i=Ad(t,Array.isArray(e)?e:[e]);Dd[n]||(Dd[n]=new WeakMap);var a=Dd[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Td.get(e)||0)+1,l=(a.get(e)||0)+1;Td.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ed.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Od++,function(){o.forEach(function(e){var t=Td.get(e)-1,i=a.get(e)-1;Td.set(e,t),a.set(e,i),t||(Ed.has(e)||e.removeAttribute(r),Ed.delete(e)),i||e.removeAttribute(n)}),Od--,Od||(Td=new WeakMap,Td=new WeakMap,Ed=new WeakMap,Dd={})}},Md=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||wd(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),jd(r,i,n,`aria-hidden`)):function(){return null}},Nd=Object.defineProperty,Pd=(e,t)=>Nd(e,`name`,{value:t,configurable:!0}),Fd=`Dialog`,[Id,Ld]=Nc(Fd),[Rd,zd]=Id(Fd),Bd=Pd(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=S.useRef(null),c=S.useRef(null),[l,u]=Yc({prop:r,defaultProp:i??!1,onChange:a,caller:Fd}),[d,f]=S.useState(0),[p,m]=S.useState(0);return(0,U.jsx)(Rd,{scope:t,triggerRef:s,contentRef:c,contentId:Bc(),titleId:Bc(),descriptionId:Bc(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Vd=`DialogTrigger`,Hd=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,...r}=e,i=zd(Vd,n),a=Eo(t,i.triggerRef);return(0,U.jsx)(vl.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":lf(i.open),...r,ref:a,onClick:Tc(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Ud=`DialogPortal`,[Wd,Gd]=Id(Ud,{forceMount:void 0}),Kd=Pd(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=zd(Ud,t);return(0,U.jsx)(Wd,{scope:t,forceMount:n,children:S.Children.map(r,e=>(0,U.jsx)(au,{present:n||a.open,children:(0,U.jsx)(tu,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),qd=`DialogOverlay`,Jd=S.forwardRef(Pd(function(e,t){let n=Gd(qd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zd(qd,e.__scopeDialog);return a.modal?(0,U.jsx)(au,{present:r||a.open,children:(0,U.jsx)(Xd,{...i,ref:t})}):null},`DialogOverlay`)),Yd=rl(`DialogOverlay.RemoveScroll`),Xd=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,...r}=e,i=zd(qd,n),a=Eo(t,jl());return(0,U.jsx)(Cd,{as:Yd,allowPinchZoom:!0,shards:[i.contentRef],children:(0,U.jsx)(vl.div,{"data-state":lf(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Zd=`DialogContent`,Qd=S.forwardRef(Pd(function(e,t){let n=Gd(Zd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=zd(Zd,e.__scopeDialog);return(0,U.jsx)(au,{present:r||a.open,children:a.modal?(0,U.jsx)($d,{...i,ref:t}):(0,U.jsx)(ef,{...i,ref:t})})},`DialogContent`)),$d=S.forwardRef(Pd(function(e,t){let n=zd(Zd,e.__scopeDialog),r=S.useRef(null),i=Eo(t,n.contentRef,r);return S.useEffect(()=>{let e=r.current;if(e)return Md(e)},[]),(0,U.jsx)(tf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Tc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Tc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Tc(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),ef=S.forwardRef(Pd(function(e,t){let n=zd(Zd,e.__scopeDialog),r=S.useRef(!1),i=S.useRef(!1);return(0,U.jsx)(tf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),tf=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=zd(Zd,n);return gu(),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Hl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(Al,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":lf(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),nf=`DialogTitle`,rf=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,...r}=e,i=zd(nf,n),{setTitleCount:a}=i;return Fc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(vl.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),af=`DialogDescription`,of=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,...r}=e,i=zd(af,n),{setDescriptionCount:a}=i;return Fc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(vl.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),sf=`DialogClose`,cf=S.forwardRef(Pd(function(e,t){let{__scopeDialog:n,...r}=e,i=zd(sf,n);return(0,U.jsx)(vl.button,{type:`button`,...r,ref:t,onClick:Tc(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function lf(e){return e?`open`:`closed`}Pd(lf,`getState`);function uf(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var df=S.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),ff=()=>{let e=S.useContext(df);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};uf(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
51
|
+
`},Dd=0,Od=[];function kd(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),i=S.useState(Dd++)[0],a=S.useState(Y)[0],o=S.useRef(e);S.useEffect(function(){o.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=ku([e.lockRef.current],(e.shards||[]).map(wd),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Sd(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=hd(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=hd(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return xd(h,t,e,h===`h`?s:c,!0)},[]),c=S.useCallback(function(e){var n=e;if(Od.length&&Od[Od.length-1]===a){var r=`deltaY`in n?Cd(n):Sd(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Td(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(wd).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=S.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Ad(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=S.useCallback(function(e){n.current=Sd(e),r.current=void 0},[]),d=S.useCallback(function(t){l(t.type,Cd(t),t.target,s(t,e.lockRef.current))},[]),f=S.useCallback(function(t){l(t.type,Sd(t),t.target,s(t,e.lockRef.current))},[]);S.useEffect(function(){return Od.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ud),document.addEventListener(`touchmove`,c,ud),document.addEventListener(`touchstart`,u,ud),function(){Od=Od.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ud),document.removeEventListener(`touchmove`,c,ud),document.removeEventListener(`touchstart`,u,ud)}},[]);var p=e.removeScrollBar,m=e.inert;return S.createElement(S.Fragment,null,m?S.createElement(a,{styles:Ed(i)}):null,p?S.createElement(sd,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ad(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jd=Uu(Wu,kd),Md=S.forwardRef(function(e,t){return S.createElement(Ku,Du({},e,{ref:t,sideCar:jd}))});Md.classNames=Ku.classNames;var Nd=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Pd=new WeakMap,Fd=new WeakMap,Id={},Ld=0,Rd=function(e){return e&&(e.host||Rd(e.parentNode))},zd=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Rd(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Bd=function(e,t,n,r){var i=zd(t,Array.isArray(e)?e:[e]);Id[n]||(Id[n]=new WeakMap);var a=Id[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Pd.get(e)||0)+1,l=(a.get(e)||0)+1;Pd.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Fd.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ld++,function(){o.forEach(function(e){var t=Pd.get(e)-1,i=a.get(e)-1;Pd.set(e,t),a.set(e,i),t||(Fd.has(e)||e.removeAttribute(r),Fd.delete(e)),i||e.removeAttribute(n)}),Ld--,Ld||(Pd=new WeakMap,Pd=new WeakMap,Fd=new WeakMap,Id={})}},Vd=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Nd(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Bd(r,i,n,`aria-hidden`)):function(){return null}},Hd=Object.defineProperty,Ud=(e,t)=>Hd(e,`name`,{value:t,configurable:!0}),Wd=`Dialog`,[Gd,Kd]=Uc(Wd),[qd,Jd]=Gd(Wd),Yd=Ud(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=S.useRef(null),c=S.useRef(null),[l,u]=al({prop:r,defaultProp:i??!1,onChange:a,caller:Wd}),[d,f]=S.useState(0),[p,m]=S.useState(0);return(0,U.jsx)(qd,{scope:t,triggerRef:s,contentRef:c,contentId:Xc(),titleId:Xc(),descriptionId:Xc(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:S.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),Xd=`DialogTrigger`,Zd=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,...r}=e,i=Jd(Xd,n),a=Io(t,i.triggerRef);return(0,U.jsx)(Dl.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":vf(i.open),...r,ref:a,onClick:Fc(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),Qd=`DialogPortal`,[$d,ef]=Gd(Qd,{forceMount:void 0}),tf=Ud(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=Jd(Qd,t);return(0,U.jsx)($d,{scope:t,forceMount:n,children:S.Children.map(r,e=>(0,U.jsx)(mu,{present:n||a.open,children:(0,U.jsx)(uu,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),nf=`DialogOverlay`,rf=S.forwardRef(Ud(function(e,t){let n=ef(nf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jd(nf,e.__scopeDialog);return a.modal?(0,U.jsx)(mu,{present:r||a.open,children:(0,U.jsx)(of,{...i,ref:t})}):null},`DialogOverlay`)),af=fl(`DialogOverlay.RemoveScroll`),of=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,...r}=e,i=Jd(nf,n),a=Io(t,Bl());return(0,U.jsx)(Md,{as:af,allowPinchZoom:!0,shards:[i.contentRef],children:(0,U.jsx)(Dl.div,{"data-state":vf(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),sf=`DialogContent`,cf=S.forwardRef(Ud(function(e,t){let n=ef(sf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=Jd(sf,e.__scopeDialog);return(0,U.jsx)(mu,{present:r||a.open,children:a.modal?(0,U.jsx)(lf,{...i,ref:t}):(0,U.jsx)(uf,{...i,ref:t})})},`DialogContent`)),lf=S.forwardRef(Ud(function(e,t){let n=Jd(sf,e.__scopeDialog),r=S.useRef(null),i=Io(t,n.contentRef,r);return S.useEffect(()=>{let e=r.current;if(e)return Vd(e)},[]),(0,U.jsx)(df,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:Fc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Fc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:Fc(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),uf=S.forwardRef(Ud(function(e,t){let n=Jd(sf,e.__scopeDialog),r=S.useRef(!1),i=S.useRef(!1);return(0,U.jsx)(df,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),df=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=Jd(sf,n);return Tu(),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Zl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(zl,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":vf(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),ff=`DialogTitle`,pf=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,...r}=e,i=Jd(ff,n),{setTitleCount:a}=i;return Gc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(Dl.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),mf=`DialogDescription`,hf=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,...r}=e,i=Jd(mf,n),{setDescriptionCount:a}=i;return Gc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(Dl.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),gf=`DialogClose`,_f=S.forwardRef(Ud(function(e,t){let{__scopeDialog:n,...r}=e,i=Jd(gf,n);return(0,U.jsx)(Dl.button,{type:`button`,...r,ref:t,onClick:Fc(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function vf(e){return e?`open`:`closed`}Ud(vf,`getState`);function yf(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var bf=S.createContext({drawerRef:{current:null},overlayRef:{current:null},onPress:()=>{},onRelease:()=>{},onDrag:()=>{},onNestedDrag:()=>{},onNestedOpenChange:()=>{},onNestedRelease:()=>{},openProp:void 0,dismissible:!1,isOpen:!1,isDragging:!1,keyboardIsOpen:{current:!1},snapPointsOffset:null,snapPoints:null,handleOnly:!1,modal:!1,shouldFade:!1,activeSnapPoint:null,onOpenChange:()=>{},setActiveSnapPoint:()=>{},closeDrawer:()=>{},direction:`bottom`,shouldAnimate:{current:!0},shouldScaleBackground:!1,setBackgroundColorOnScale:!0,noBodyStyles:!1,container:null,autoFocus:!1}),xf=()=>{let e=S.useContext(bf);if(!e)throw Error(`useDrawerContext must be used within a Drawer.Root`);return e};yf(`[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32, .72, 0, 1);animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform,100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform,100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height,0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height,0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(0.32,0.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32, .72, 0, 1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true])::after{content:'';position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]::after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]::after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]::after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]::after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not(
|
|
52
52
|
[data-state=closed]
|
|
53
|
-
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function pf(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function mf(){return yf(/^Mac/)}function hf(){return yf(/^iPhone/)}function gf(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function _f(){return yf(/^iPad/)||mf()&&navigator.maxTouchPoints>1}function vf(){return hf()||_f()}function yf(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var bf=24,xf=typeof window<`u`?S.useLayoutEffect:S.useEffect;function Sf(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Cf=typeof document<`u`&&window.visualViewport;function wf(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Tf(e){for(wf(e)&&(e=e.parentElement);e&&!wf(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Ef=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),Df=0,Of;function kf(e={}){let{isDisabled:t}=e;xf(()=>{if(!t)return Df++,Df===1&&vf()&&(Of=Af()),()=>{Df--,Df===0&&Of?.()}},[t])}function Af(){let e,t=0,n=n=>{e=Tf(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Pf(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Pf(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Cf&&(Cf.height<window.innerHeight?requestAnimationFrame(()=>{Nf(t)}):Cf.addEventListener(`resize`,()=>Nf(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=Sf(jf(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=Sf(Mf(document,`touchstart`,n,{passive:!1,capture:!0}),Mf(document,`touchmove`,r,{passive:!1,capture:!0}),Mf(document,`touchend`,i,{passive:!1,capture:!0}),Mf(document,`focus`,a,!0),Mf(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function jf(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Mf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Nf(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Tf(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+bf&&(t.scrollTop+=r-n)}e=t.parentElement}}function Pf(e){return e instanceof HTMLInputElement&&!Ef.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Ff(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function If(...e){return t=>e.forEach(e=>Ff(e,t))}function Lf(...e){return S.useCallback(If(...e),e)}var Rf=new WeakMap;function zf(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Rf.set(e,r)}function Bf(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Rf.get(e);n&&(e.style[t]=n[t])}var Vf=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function Hf(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[Vf(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[Vf(t)?5:4]):null)}function Z(e){return 8*(Math.log(e+1)-2)}function Uf(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var Wf={DURATION:.5,EASE:[.32,.72,0,1]},Gf=.4,Kf=.25,qf=100,Jf=8,Yf=16,Xf=26,Zf=`vaul-dragging`;function Qf(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function $f({defaultProp:e,onChange:t}){let n=S.useState(e),[r]=n,i=S.useRef(r),a=Qf(t);return S.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function ep({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=$f({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=Qf(n);return[o,S.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function tp({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=ep({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=S.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);S.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=S.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=S.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,_=S.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),Vf(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),v=S.useMemo(()=>h===null?null:_?.[h],[_,h]),y=S.useCallback(e=>{let t=_?.findIndex(t=>t===e)??null;o(t),zf(r.current,{transition:`transform ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,transform:Vf(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),_&&t!==_.length-1&&a!==void 0&&t!==a&&t<a?zf(i.current,{transition:`opacity ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,opacity:`0`}):zf(i.current,{transition:`opacity ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,_,a,i,d]);S.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;_&&t!==-1&&typeof _[t]==`number`&&y(_[t])}},[u,e,n,_,y]);function b({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(v??0)-e:(v??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&zf(i.current,{transition:`opacity ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():y(_[0]);return}if(!l&&r>2&&f&&_&&n){y(_[n.length-1]);return}let p=_?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=Vf(s)?window.innerHeight:window.innerWidth;if(r>Gf&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){y(_[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;y(_[h+e]);return}y(p)}function x({draggedDistance:e}){if(v===null)return;let t=s===`bottom`||s===`right`?v-e:v+e;(s===`bottom`||s===`right`)&&t<_[_.length-1]||(s===`top`||s===`left`)&&t>_[_.length-1]||zf(r.current,{transform:Vf(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!_||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?_[i]-_[i-1]:_[i+1]-_[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:b,onDrag:x,snapPointsOffset:_}}function np(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=ff(),a=S.useRef(null),o=(0,S.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-Xf)/window.innerWidth}S.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&Uf(document.body,{background:`black`}),Uf(t,{transformOrigin:Vf(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${Wf.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Wf.EASE.join(`,`)})`});let n=Uf(t,{borderRadius:`${Jf}px`,overflow:`hidden`,...Vf(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},Wf.DURATION*1e3)}}},[t,n,o])}var rp=null;function ip({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=S.useState(()=>typeof window<`u`?window.location.href:``),c=S.useRef(0),l=S.useCallback(()=>{if(gf()&&rp===null&&e&&!a){rp={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=S.useCallback(()=>{if(gf()&&rp!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,rp),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),rp=null}},[o]);return S.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),S.useEffect(()=>{if(t)return()=>{typeof document>`u`||document.querySelector(`[data-vaul-drawer]`)||u()}},[t,u]),S.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function ap({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=Kf,scrollLockTimeout:l=qf,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:_,nested:v,noBodyStyles:y=!1,direction:b=`bottom`,defaultOpen:x=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,ee]=ep({defaultProp:x,prop:e,onChange:e=>{t?.(e),!e&&!v&&xe(),setTimeout(()=>{D?.(e)},Wf.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[te,j]=S.useState(!1),[M,N]=S.useState(!1),[P,ne]=S.useState(!1),F=S.useRef(null),re=S.useRef(null),ie=S.useRef(null),ae=S.useRef(null),oe=S.useRef(null),se=S.useRef(!1),ce=S.useRef(null),le=S.useRef(0),ue=S.useRef(!1),de=S.useRef(!x),fe=S.useRef(0),I=S.useRef(null),pe=S.useRef(I.current?.getBoundingClientRect().height||0),L=S.useRef(I.current?.getBoundingClientRect().width||0),R=S.useRef(0),{activeSnapPoint:me,activeSnapPointIndex:he,setActiveSnapPoint:ge,onRelease:_e,snapPointsOffset:ve,onDrag:z,shouldFade:ye,getPercentageDragged:be}=tp({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:I,fadeFromIndex:f,overlayRef:F,onSnapPointChange:S.useCallback(e=>{a&&e===ve.length-1&&(re.current=new Date)},[]),direction:b,container:O,snapToSequentialPoint:w});kf({isDisabled:!A||M||!g||P||!te||!E||!C});let{restorePositionSetting:xe}=ip({isOpen:A,modal:g,nested:v??!1,hasBeenOpened:te,preventScrollRestoration:T,noBodyStyles:y});function Se(){return(window.innerWidth-Xf)/window.innerWidth}function Ce(e){(u||a)&&(!I.current||I.current.contains(e.target))&&(pe.current=I.current?.getBoundingClientRect().height||0,L.current=I.current?.getBoundingClientRect().width||0,N(!0),ie.current=new Date,vf()&&window.addEventListener(`touchend`,()=>se.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),le.current=Vf(b)?e.pageY:e.pageX)}function we(e,t){let n=e,r=window.getSelection()?.toString(),i=I.current?Hf(I.current,b):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(b===`right`||b===`left`)return!0;if(re.current&&a.getTime()-re.current.getTime()<500)return!1;if(i!==null&&(b===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(oe.current&&a.getTime()-oe.current.getTime()<l&&i===0||t)return oe.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return oe.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function Te(e){if(I.current&&M){let t=b===`bottom`||b===`right`?1:-1,n=(le.current-(Vf(b)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&he===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(b===`bottom`||b===`top`?pe.current:L.current),p=be(c,i);if(p!==null&&(d=p),s&&d>=1||!se.current&&!we(e.target,i))return;if(I.current.classList.add(Zf),se.current=!0,zf(I.current,{transition:`none`}),zf(F.current,{transition:`none`}),a&&z({draggedDistance:n}),i&&!a){let e=Z(n),r=Math.min(e*-1,0)*t;zf(I.current,{transform:Vf(b)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ye||f&&he===f-1)&&(r?.(e,d),zf(F.current,{opacity:`${m}`,transition:`none`},!0)),l&&F.current&&o){let e=Math.min(Se()+d*(1-Se()),1),t=8-d*8,n=Math.max(0,14-d*14);zf(l,{borderRadius:`${t}px`,transform:Vf(b)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;zf(I.current,{transform:Vf(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}S.useEffect(()=>{window.requestAnimationFrame(()=>{de.current=!0})},[]),S.useEffect(()=>{var e;function t(){if(!I.current||!E)return;let e=document.activeElement;if(Pf(e)||ue.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=I.current.getBoundingClientRect().height||0,i=r>t*.8;R.current||=r;let o=I.current.getBoundingClientRect().top;if(Math.abs(fe.current-n)>60&&(ue.current=!ue.current),a&&a.length>0&&ve&&he){let e=ve[he]||0;n+=e}if(fe.current=n,r>e||ue.current){let t=I.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:Xf)),h?I.current.style.height=`${t-Math.max(n,0)}px`:I.current.style.height=`${Math.max(r,e-o)}px`}else pf()||(I.current.style.height=`${R.current}px`);a&&a.length>0&&!ue.current?I.current.style.bottom=`0px`:I.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[he,a,ve]);function Ee(e){Oe(),_?.(),e||ee(!1),setTimeout(()=>{a&&ge(a[0])},Wf.DURATION*1e3)}function De(){if(!I.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=Hf(I.current,b);zf(I.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`}),zf(F.current,{transition:`opacity ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&zf(e,{borderRadius:`${Jf}px`,overflow:`hidden`,...Vf(b)?{transform:`scale(${Se()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${Se()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${Wf.DURATION}s`,transitionTimingFunction:`cubic-bezier(${Wf.EASE.join(`,`)})`},!0)}function Oe(){M&&I.current&&(I.current.classList.remove(Zf),se.current=!1,N(!1),ae.current=new Date)}function ke(e){if(!M||!I.current)return;I.current.classList.remove(Zf),se.current=!1,N(!1),ae.current=new Date;let t=Hf(I.current,b);if(!e||!we(e.target,!1)||!t||Number.isNaN(t)||ie.current===null)return;let n=ae.current.getTime()-ie.current.getTime(),r=le.current-(Vf(b)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(ne(!0),setTimeout(()=>{ne(!1)},200)),a){_e({draggedDistance:r*(b===`bottom`||b===`right`?1:-1),closeDrawer:Ee,velocity:o,dismissible:u}),i?.(e,!0);return}if(b===`bottom`||b===`right`?r>0:r<0){De(),i?.(e,!0);return}if(o>Gf){Ee(),i?.(e,!1);return}let s=Math.min(I.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(I.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(b===`left`||b===`right`?l:s)*c){Ee(),i?.(e,!1);return}i?.(e,!0),De()}S.useEffect(()=>(A&&(zf(document.documentElement,{scrollBehavior:`auto`}),re.current=new Date),()=>{Bf(document.documentElement,`scrollBehavior`)}),[A]);function Ae(e){let t=e?(window.innerWidth-Yf)/window.innerWidth:1,n=e?-16:0;ce.current&&window.clearTimeout(ce.current),zf(I.current,{transition:`transform ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,transform:Vf(b)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&I.current&&(ce.current=setTimeout(()=>{let e=Hf(I.current,b);zf(I.current,{transition:`none`,transform:Vf(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function je(e,t){if(t<0)return;let n=(window.innerWidth-Yf)/window.innerWidth,r=n+t*(1-n),i=-16+t*Yf;zf(I.current,{transform:Vf(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function Me(e,t){let n=Vf(b)?window.innerHeight:window.innerWidth,r=t?(n-Yf)/n:1,i=t?-16:0;t&&zf(I.current,{transition:`transform ${Wf.DURATION}s cubic-bezier(${Wf.EASE.join(`,`)})`,transform:Vf(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return S.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),S.createElement(Bd,{defaultOpen:x,onOpenChange:e=>{(u||e)&&(e?j(!0):Ee(!0),ee(e))},open:A},S.createElement(df.Provider,{value:{activeSnapPoint:me,snapPoints:a,setActiveSnapPoint:ge,drawerRef:I,overlayRef:F,onOpenChange:t,onPress:Ce,onRelease:ke,onDrag:Te,dismissible:u,shouldAnimate:de,handleOnly:d,isOpen:A,isDragging:M,shouldFade:ye,closeDrawer:Ee,onNestedDrag:je,onNestedOpenChange:Ae,onNestedRelease:Me,keyboardIsOpen:ue,modal:g,snapPointsOffset:ve,activeSnapPointIndex:he,direction:b,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:y,container:O,autoFocus:k}},n))}var op=S.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=ff(),l=Lf(t,n),u=r&&r.length>0;if(!s)return null;let d=S.useCallback(e=>i(e),[i]);return S.createElement(Jd,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});op.displayName=`Drawer.Overlay`;var sp=S.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:_,shouldAnimate:v,autoFocus:y}=ff(),[b,x]=S.useState(!1),C=Lf(i,a),w=S.useRef(null),T=S.useRef(null),E=S.useRef(!1),D=h&&h.length>0;np();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};S.useEffect(()=>{D&&window.requestAnimationFrame(()=>{x(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return S.createElement(Qd,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":b?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":v?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{_||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),y||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,_||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});sp.displayName=`Drawer.Content`;var cp=250,lp=120,up=S.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=ff(),m=S.useRef(null),h=S.useRef(!1);function g(){if(h.current){y();return}window.setTimeout(()=>{_()},lp)}function _(){if(a||e||h.current){y();return}if(y(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function v(){m.current=window.setTimeout(()=>{h.current=!0},cp)}function y(){m.current&&window.clearTimeout(m.current),h.current=!1}return S.createElement(`div`,{onClick:g,onPointerCancel:y,onPointerDown:e=>{u&&f(e),v()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},S.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});up.displayName=`Drawer.Handle`;function dp({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=ff();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return S.createElement(ap,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function fp(e){let t=ff(),{container:n=t.container,...r}=e;return S.createElement(Kd,{container:n,...r})}var pp={Root:ap,NestedRoot:dp,Content:sp,Overlay:op,Trigger:Hd,Portal:fp,Handle:up,Close:cf,Title:rf,Description:of};function mp({...e}){return(0,U.jsx)(pp.Root,{"data-slot":`drawer`,...e})}function hp({...e}){return(0,U.jsx)(pp.Portal,{"data-slot":`drawer-portal`,...e})}function gp({...e}){return(0,U.jsx)(pp.Close,{"data-slot":`drawer-close`,...e})}function _p({className:e,...t}){return(0,U.jsx)(pp.Overlay,{"data-slot":`drawer-overlay`,className:J(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function vp({className:e,children:t,container:n,...r}){return(0,U.jsxs)(hp,{container:n,children:[(0,U.jsx)(_p,{}),(0,U.jsxs)(pp.Content,{"data-slot":`drawer-content`,className:J(`group/drawer-content fixed z-50 flex h-auto flex-col bg-background`,`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-full data-[vaul-drawer-direction=right]:max-w-[440px] data-[vaul-drawer-direction=right]:border-l`,`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...r,children:[(0,U.jsx)(`div`,{className:`mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function yp({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`drawer-header`,className:J(`flex flex-col gap-1.5 p-4`,e),...t})}function bp({className:e,...t}){return(0,U.jsx)(pp.Title,{"data-slot":`drawer-title`,className:J(`font-medium text-foreground`,e),...t})}function xp({className:e,...t}){return(0,U.jsx)(pp.Description,{"data-slot":`drawer-description`,className:J(`text-sm text-muted-foreground`,e),...t})}var Sp=(0,S.createContext)(void 0);function Cp({children:e}){let[t,n]=(0,S.useState)({open:!1,entry:null}),r=(0,S.useRef)(null),{pathname:i}=lt();function a(e,t){r.current=t,n({open:!0,entry:e})}function o(){n(({entry:e})=>({open:!1,entry:e}))}return(0,S.useEffect)(o,[i]),(0,U.jsxs)(Sp.Provider,{value:{openKey:t.open?t.entry.key:null,show:a,close:o},children:[e,(0,U.jsx)(mp,{direction:`right`,autoFocus:!0,open:t.open,onOpenChange:e=>!e&&o(),children:(0,U.jsxs)(vp,{className:`bg-card font-satoshi text-card-foreground antialiased shadow-(--shadow-dialog) data-[vaul-drawer-direction=right]:w-full`,onCloseAutoFocus:e=>{e.preventDefault(),r.current?.focus({preventScroll:!0})},children:[t.entry?.content,(0,U.jsx)(gp,{asChild:!0,children:(0,U.jsx)(xc,{className:`absolute top-3 right-3`,variant:`ghost`,size:`icon`,"aria-label":`Close`,children:(0,U.jsx)(xo,{"aria-hidden":!0})})})]})})]})}function wp(){let e=(0,S.useContext)(Sp);if(!e)throw Error(`useDrawer must be used within a DrawerProvider`);return e}var Tp=15e3;function Ep(e){return Op({actorName:e})}function Dp(e,t){return Op({actorName:e,actorId:t})}function Op(e){let{baseUrl:t,requests:n}=Aa(),r=wa(),{data:i,error:a,isLoading:o}=Ci([...si(t),e.actorName,e.actorId],r,n=>new vi(t).collectRequests(n,e),{refreshInterval:r.live?Tp:0}),s=n?.filter(t=>kp(t,e))??[];return{requests:i?Ap([...i,...s]):null,isLoading:o,isError:!i&&!!a,error:a}}function kp(e,{actorName:t,actorId:n}){return e.actorName===t&&(n===void 0||e.actorId===n)}function Ap(e){return[...new Map(e.map(e=>[e.eventId,e])).values()]}var jp=15e3;function Mp(e,t){let{baseUrl:n}=Aa(),{data:r,error:i,isLoading:a}=Ci(li(n,e),t,t=>new vi(n).listResidency(e,t),{refreshInterval:t.live?jp:0});return{residency:r??null,isLoading:a,isError:!r&&!!i,error:i}}var Np=e=>`actors/${encodeURIComponent(e)}`,Pp=e=>`instances/${encodeURIComponent(e)}`;function Fp({actorName:e,instances:t}){return{actorName:e,total:t.length,live:t.filter(e=>e.status===`live`).length,dormant:t.filter(e=>e.status===`dormant`).length}}function Ip(e){return[...e].sort((e,t)=>(t.lastActiveAtMs??0)-(e.lastActiveAtMs??0))}var Lp=e=>e.queueWaitMs,Rp=e=>e.durationMs-(e.queueWaitMs??0);function zp(e,t,n){let r=Yp(e,n);return{average:qp(r),p95:Jp(r,.95),max:r.length?Math.max(...r):0,series:Xp(e,t,n)}}function Bp(e,t){return Vp(e,t).map(e=>e/(t.stepMs/1e3))}function Vp(e,t){let n=Array(_a(t)).fill(0);for(let r of Hp(e)){let e=va(t,r.startedAtMs);e!==null&&(n[e]+=1)}return n}function Hp(e){return e.filter(e=>e.outcome!==`rerouted`)}function Up(e,t){return Hp(e).filter(e=>Gp(e,t))}function Wp(e,t,n){let r=e.filter(e=>e.kind===`websocket`&&e.connectionId===t&&Gp(e,n));return{messages:r.filter(e=>e.operation===`onMessage`).length,failures:r.filter(e=>e.outcome!==`completed`&&e.outcome!==`rerouted`).length}}function Gp(e,t){return e.startedAtMs<=t.toMs&&e.startedAtMs+e.durationMs>=t.fromMs}function Kp(e,t){let n=Yp(e,t);return n.length?qp(n):null}function qp(e){return e.length?e.reduce((e,t)=>e+t,0)/e.length:0}function Jp(e,t){if(!e.length)return 0;let n=[...e].sort((e,t)=>e-t);return n[Math.min(n.length-1,Math.ceil(t*n.length)-1)]}function Yp(e,t){return e.map(t).filter(e=>e!==null)}function Xp(e,t,n){let r=Array.from({length:_a(t)},()=>[]);for(let i of e){let e=va(t,i.startedAtMs),a=n(i);e!==null&&a!==null&&r[e].push(a)}return r.map(qp)}function Zp(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var Qp={},$p={};function em(e,t){try{let n=(Qp[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in $p?$p[n]:nm(n,n.split(`:`))}catch{if(e in $p)return $p[e];let t=e?.match(tm);return t?nm(e,t.slice(1)):NaN}}var tm=/([+-]\d\d):?(\d\d)?/;function nm(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return $p[e]=n*60+r>0?n*60+r+i:n*60-r-i}var rm=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(em(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),sm(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-em(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),am(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},im=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!im.test(e))return;let t=e.replace(im,`$1UTC`);rm.prototype[t]&&(e.startsWith(`get`)?rm.prototype[e]=function(){return this.internal[t]()}:(rm.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),om(this),+this},rm.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),am(this),+this}))});function am(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-em(e.timeZone,e)*60))}function om(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),sm(e)}function sm(e,t){let n=Array.isArray(t)?cm(t):+e.internal,r=em(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=em(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(em(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=em(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&lm(e)-n===y*60*1e3&&lm(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=em(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}am(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),am(e))}function cm(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function lm(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-em(e.timeZone,n)*60)),+n}var um=class e extends rm{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${Zp(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},dm=365.2425,fm=6048e5,pm=864e5,mm=86400;mm*7,mm*dm/12*3;var hm=Symbol.for(`constructDateFrom`);function gm(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&hm in e?e[hm](t):e instanceof Date?new e.constructor(t):new Date(t)}function _m(e,t){return gm(t||e,e)}function vm(e,t,n){let r=_m(e,n?.in);return isNaN(t)?gm(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ym(e,t,n){let r=_m(e,n?.in);if(isNaN(t))return gm(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=gm(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var bm={};function xm(){return bm}function Sm(e,t){let n=xm(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=_m(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Cm(e,t){return Sm(e,{...t,weekStartsOn:1})}function wm(e,t){let n=_m(e,t?.in),r=n.getFullYear(),i=gm(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Cm(i),o=gm(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Cm(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Tm(e){let t=_m(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Em(e,...t){let n=gm.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Dm(e,t){let n=_m(e,t?.in);return n.setHours(0,0,0,0),n}function Om(e,t,n){let[r,i]=Em(n?.in,e,t),a=Dm(r),o=Dm(i),s=+a-Tm(a),c=+o-Tm(o);return Math.round((s-c)/pm)}function km(e,t){let n=wm(e,t),r=gm(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Cm(r)}function Am(e,t,n){return vm(e,t*7,n)}function jm(e,t,n){return ym(e,t*12,n)}function Mm(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=gm.bind(null,e));let t=_m(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),gm(r,n||NaN)}function Nm(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=gm.bind(null,e));let t=_m(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),gm(r,n||NaN)}function Pm(e,t,n){let[r,i]=Em(n?.in,e,t);return+Dm(r)==+Dm(i)}function Fm(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Im(e){return!(!Fm(e)&&typeof e!=`number`||isNaN(+_m(e)))}function Lm(e,t,n){let[r,i]=Em(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Rm(e,t){let n=_m(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function zm(e,t){let[n,r]=Em(e,t.start,t.end);return{start:n,end:r}}function Bm(e,t){let{start:n,end:r}=zm(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(gm(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function Vm(e,t){let n=_m(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Hm(e,t){let n=_m(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Um(e,t){let n=_m(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Wm(e,t){let{start:n,end:r}=zm(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(gm(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Gm(e,t){let n=xm(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=_m(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function Km(e,t){return Gm(e,{...t,weekStartsOn:1})}var qm={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},Jm=(e,t,n)=>{let r,i=qm[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function Ym(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Xm={date:Ym({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:Ym({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:Ym({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Zm={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},Qm=(e,t,n,r)=>Zm[e];function $m(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var eh={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:$m({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:$m({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:$m({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:$m({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:$m({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function th(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?rh(s,e=>e.test(o)):nh(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function nh(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function rh(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ih(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var ah={code:`en-US`,formatDistance:Jm,formatLong:Xm,formatRelative:Qm,localize:eh,match:{ordinalNumber:ih({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:th({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:th({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:th({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:th({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:th({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function oh(e,t){let n=_m(e,t?.in);return Om(n,Um(n))+1}function sh(e,t){let n=_m(e,t?.in),r=+Cm(n)-km(n);return Math.round(r/fm)+1}function ch(e,t){let n=_m(e,t?.in),r=n.getFullYear(),i=xm(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=gm(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=Sm(o,t),c=gm(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=Sm(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function lh(e,t){let n=xm(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=ch(e,t),a=gm(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),Sm(a,t)}function uh(e,t){let n=_m(e,t?.in),r=+Sm(n,t)-lh(n,t);return Math.round(r/fm)+1}function dh(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var fh={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return dh(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):dh(n+1,2)},d(e,t){return dh(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return dh(e.getHours()%12||12,t.length)},H(e,t){return dh(e.getHours(),t.length)},m(e,t){return dh(e.getMinutes(),t.length)},s(e,t){return dh(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return dh(Math.trunc(r*10**(n-3)),t.length)}},ph={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},mh={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return fh.y(e,t)},Y:function(e,t,n,r){let i=ch(e,r),a=i>0?i:1-i;return t===`YY`?dh(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):dh(a,t.length)},R:function(e,t){return dh(wm(e),t.length)},u:function(e,t){return dh(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return dh(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return dh(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return fh.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return dh(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=uh(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):dh(i,t.length)},I:function(e,t,n){let r=sh(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):dh(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):fh.d(e,t)},D:function(e,t,n){let r=oh(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):dh(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return dh(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return dh(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return dh(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?ph.noon:r===0?ph.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?ph.evening:r>=12?ph.afternoon:r>=4?ph.morning:ph.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return fh.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):fh.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):dh(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):dh(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):fh.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):fh.s(e,t)},S:function(e,t){return fh.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return gh(r);case`XXXX`:case`XX`:return _h(r);default:return _h(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return gh(r);case`xxxx`:case`xx`:return _h(r);default:return _h(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+hh(r,`:`);default:return`GMT`+_h(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+hh(r,`:`);default:return`GMT`+_h(r,`:`)}},t:function(e,t,n){return dh(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return dh(+e,t.length)}};function hh(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+dh(a,2)}function gh(e,t){return e%60==0?(e>0?`-`:`+`)+dh(Math.abs(e)/60,2):_h(e,t)}function _h(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=dh(Math.trunc(r/60),2),a=dh(r%60,2);return n+i+t+a}var vh=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},yh=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},bh={p:yh,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return vh(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,vh(r,t)).replace(`{{time}}`,yh(i,t))}},xh=/^D+$/,Sh=/^Y+$/,Ch=[`D`,`DD`,`YY`,`YYYY`];function wh(e){return xh.test(e)}function Th(e){return Sh.test(e)}function Eh(e,t,n){let r=Dh(e,t,n);if(console.warn(r),Ch.includes(e))throw RangeError(r)}function Dh(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Oh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ah=/^'([^]*?)'?$/,jh=/''/g,Mh=/[a-zA-Z]/;function Nh(e,t,n){let r=xm(),i=n?.locale??r.locale??ah,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=_m(e,n?.in);if(!Im(s))throw RangeError(`Invalid time value`);let c=t.match(kh).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=bh[t];return n(e,i.formatLong)}return e}).join(``).match(Oh).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Ph(e)};if(mh[t])return{isToken:!0,value:e};if(t.match(Mh))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Th(a)||!n?.useAdditionalDayOfYearTokens&&wh(a))&&Eh(a,t,String(e));let o=mh[a[0]];return o(s,a,i.localize,l)}).join(``)}function Ph(e){let t=e.match(Ah);return t?t[1].replace(jh,`'`):e}function Fh(e,t){let n=_m(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=gm(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Ih(e,t){return _m(e,t?.in).getMonth()}function Lh(e,t){return _m(e,t?.in).getFullYear()}function Rh(e,t){return+_m(e)>+_m(t)}function zh(e,t){return+_m(e)<+_m(t)}function Bh(e,t,n){let[r,i]=Em(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Vh(e,t,n){let[r,i]=Em(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Hh(e,t,n){let r=_m(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=gm(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Fh(o);return r.setMonth(t,Math.min(a,s)),r}function Uh(e,t,n){let r=_m(e,n?.in);return isNaN(+r)?gm(n?.in||e,NaN):(r.setFullYear(t),r)}var Wh=5,Gh=4;function Kh(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?Wh:Gh}function qh(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Jh(e,t){let n=qh(e,t),r=Kh(e,t);return t.addDays(n,r*7-1)}var Yh={...ah,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Nh(e,t,{locale:ah,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Nh(e,n,{locale:ah,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Nh(e,t,{locale:ah,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Nh(e,n,{locale:ah,...t}),r(e,`cccc`)}}},Xh=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?um.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new um(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):vm(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):ym(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):Am(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):jm(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Om(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Lm(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):Bm(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Wm(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):Jh(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):Km(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Rm(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Gm(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Hm(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Nh(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):sh(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Ih(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Lh(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):uh(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Rh(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):zh(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Fm(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Pm(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Bh(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Vh(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):Mm(e),this.min=e=>this.overrides?.min?this.overrides.min(e):Nm(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Hh(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Uh(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):qh(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Dm(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Cm(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Vm(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):Sm(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Um(e),this.options={locale:Yh,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};Xh.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var Zh=new Xh,Qh=class{constructor(e,t,n=Zh){this.date=e,this.displayMonth=t,this.outside=!(!t||n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},$h=class{constructor(e,t){this.date=e,this.weeks=t}},eg=class{constructor(e,t){this.days=t,this.weekNumber=e}};function tg(e){return S.createElement(`span`,{...e})}function ng(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return S.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&S.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&S.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&S.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&S.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function rg(e){let{day:t,modifiers:n,...r}=e;return S.createElement(`td`,{...r})}function ig(e){let{day:t,modifiers:n,...r}=e,i=S.useRef(null);return S.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),S.createElement(`button`,{ref:i,...r})}var Q;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Q||={});var ag;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(ag||={});var og;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(og||={});var sg;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(sg||={});var cg=(0,S.createContext)(void 0);function lg(){let e=(0,S.useContext)(cg);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function ug(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=lg(),s=[i[Q.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return S.createElement(`span`,{"data-disabled":r.disabled,className:i[Q.DropdownRoot],style:o?.[Q.DropdownRoot]},S.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>S.createElement(a.Option,{key:e,value:e,disabled:n},t))),S.createElement(`span`,{className:i[Q.CaptionLabel],style:o?.[Q.CaptionLabel],"aria-hidden":!0},c?.label,S.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Q.Chevron],style:o?.[Q.Chevron]})))}function dg(e){return S.createElement(`div`,{...e})}function fg(e){return S.createElement(`div`,{...e})}function pg(e){let{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement(`div`,{...r},e.children)}function mg(e){let{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement(`div`,{...r})}function hg(e){return S.createElement(`table`,{...e})}function gg(e){return S.createElement(`div`,{...e})}function _g(e){let{components:t}=lg();return S.createElement(t.Dropdown,{...e})}function vg(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=lg(),d=(0,S.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,S.useCallback)(e=>{r&&t?.(e)},[r,t]);return S.createElement(`nav`,{...a},S.createElement(o.PreviousMonthButton,{type:`button`,className:s[Q.PreviousMonthButton],style:c?.[Q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},S.createElement(o.Chevron,{disabled:!r||void 0,className:s[Q.Chevron],style:c?.[Q.Chevron],orientation:`left`})),S.createElement(o.NextMonthButton,{type:`button`,className:s[Q.NextMonthButton],style:c?.[Q.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},S.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Q.Chevron],style:c?.[Q.Chevron]})))}function yg(e){return S.createElement(`button`,{...e})}function bg(e){return S.createElement(`option`,{...e})}function xg(e){return S.createElement(`button`,{...e})}function Sg(e){let{rootRef:t,...n}=e;return S.createElement(`div`,{...n,ref:t})}function Cg(e){return S.createElement(`select`,{...e})}function wg(e){let{week:t,...n}=e;return S.createElement(`tr`,{...n})}function Tg(e){return S.createElement(`th`,{...e})}function Eg(e){return S.createElement(`thead`,{"aria-hidden":!0},S.createElement(`tr`,{...e}))}function Dg(e){let{week:t,...n}=e;return S.createElement(`th`,{...n})}function Og(e){return S.createElement(`th`,{...e})}function kg(e){return S.createElement(`tbody`,{...e})}function Ag(e){let{components:t}=lg();return S.createElement(t.Dropdown,{...e})}var jg=s({CaptionLabel:()=>tg,Chevron:()=>ng,Day:()=>rg,DayButton:()=>ig,Dropdown:()=>ug,DropdownNav:()=>dg,Footer:()=>fg,Month:()=>pg,MonthCaption:()=>mg,MonthGrid:()=>hg,Months:()=>gg,MonthsDropdown:()=>_g,Nav:()=>vg,NextMonthButton:()=>yg,Option:()=>bg,PreviousMonthButton:()=>xg,Root:()=>Sg,Select:()=>Cg,Week:()=>wg,WeekNumber:()=>Dg,WeekNumberHeader:()=>Og,Weekday:()=>Tg,Weekdays:()=>Eg,Weeks:()=>kg,YearsDropdown:()=>Ag});function Mg(e,t,n=!1,r=Zh){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function Ng(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function Pg(e){return!!(e&&typeof e==`object`&&`from`in e)}function Fg(e){return!!(e&&typeof e==`object`&&`after`in e)}function Ig(e){return!!(e&&typeof e==`object`&&`before`in e)}function Lg(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function Rg(e,t){return Array.isArray(e)&&e.every(t.isDate)}function zg(e,t,n=Zh){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(Rg(t,n))return t.some(t=>i(e,t));if(Pg(t))return Mg(t,e,!1,n);if(Lg(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Ng(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return Fg(t)?a(e,t.after)>0:Ig(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function Bg(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[ag.focused]:[],[ag.outside]:[],[ag.disabled]:[],[ag.hidden]:[],[ag.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!(!n||f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&zg(e,a,i)),S=!!(o&&zg(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&zg(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[ag.focused]:!1,[ag.disabled]:!1,[ag.hidden]:!1,[ag.outside]:!1,[ag.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function Vg(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[ag[r]]?e.push(t[ag[r]]):t[og[r]]&&e.push(t[og[r]]),e),[t[Q.Day]])}function Hg(e){return{...jg,...e}}function Ug(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function Wg(){let e={};for(let t in Q)e[Q[t]]=`rdp-${Q[t]}`;for(let t in ag)e[ag[t]]=`rdp-${ag[t]}`;for(let t in og)e[og[t]]=`rdp-${og[t]}`;for(let t in sg)e[sg[t]]=`rdp-${sg[t]}`;return e}function Gg(e,t,n){return(n??new Xh(t)).formatMonthYear(e)}function Kg(e,t,n){return(n??new Xh(t)).format(e,`d`)}function qg(e,t=Zh){return t.format(e,`LLLL`)}function Jg(e,t,n){return(n??new Xh(t)).format(e,`cccccc`)}function Yg(e,t=Zh){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function Xg(){return``}function Zg(e,t=Zh){return t.format(e,`yyyy`)}var Qg=s({formatCaption:()=>Gg,formatDay:()=>Kg,formatMonthDropdown:()=>qg,formatWeekNumber:()=>Yg,formatWeekNumberHeader:()=>Xg,formatWeekdayName:()=>Jg,formatYearDropdown:()=>Zg});function $g(e){return{...Qg,...e}}function e_(e,t,n,r){let i=(r??new Xh(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function t_(e,t,n){return(n??new Xh(t)).formatMonthYear(e)}function n_(e,t,n,r){let i=(r??new Xh(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function r_(e){return`Choose the Month`}function i_(){return``}var a_=`Go to the Next Month`;function o_(e,t){return a_}function s_(e){return`Go to the Previous Month`}function c_(e,t,n){return(n??new Xh(t)).format(e,`cccc`)}function l_(e,t){return`Week ${e}`}function u_(e){return`Week Number`}function d_(e){return`Choose the Year`}var f_=s({labelDayButton:()=>e_,labelGrid:()=>t_,labelGridcell:()=>n_,labelMonthDropdown:()=>r_,labelNav:()=>i_,labelNext:()=>o_,labelPrevious:()=>s_,labelWeekNumber:()=>l_,labelWeekNumberHeader:()=>u_,labelWeekday:()=>c_,labelYearDropdown:()=>d_}),p_=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function m_(e,t){let n=t.locale?.labels??{};return{...f_,...e??{},labelDayButton:p_(e_,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:p_(r_,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:p_(o_,e?.labelNext,n.labelNext),labelPrevious:p_(s_,e?.labelPrevious,n.labelPrevious),labelWeekNumber:p_(l_,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:p_(d_,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:p_(t_,e?.labelGrid,n.labelGrid),labelGridcell:p_(n_,e?.labelGridcell,n.labelGridcell),labelNav:p_(i_,e?.labelNav,n.labelNav),labelWeekNumberHeader:p_(u_,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:p_(c_,e?.labelWeekday,n.labelWeekday)}}function h_(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function g_(e,t={},n={}){let r={...t?.[Q.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function __(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function v_(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function y_(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new um(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(um.tz(e)),newDate:(t,n,r)=>new um(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new um(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new um(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new um(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new um(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>uh(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>sh(o(e)),differenceInCalendarDays:(e,t)=>Om(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Lm(o(e),o(t))}}var b_=e=>e instanceof HTMLElement?e:null,x_=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],S_=e=>b_(e.querySelector(`[data-animated-month]`)),C_=e=>b_(e.querySelector(`[data-animated-caption]`)),w_=e=>b_(e.querySelector(`[data-animated-weeks]`)),T_=e=>b_(e.querySelector(`[data-animated-nav]`)),E_=e=>b_(e.querySelector(`[data-animated-weekdays]`));function D_(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,S.useRef)(null),s=(0,S.useRef)(r),c=(0,S.useRef)(!1);(0,S.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[sg.caption_after_enter]:n[sg.caption_before_enter],p=d?n[sg.weeks_after_enter]:n[sg.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(x_(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=S_(e);t&&e.contains(t)&&e.removeChild(t);let n=C_(e);n&&n.classList.remove(f);let r=w_(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?x_(m):[],_=x_(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=T_(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=C_(i);s&&s.classList.add(f);let l=w_(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=E_(o);m&&(m.style.opacity=`0`);let h=C_(o);h&&(h.classList.add(d?n[sg.caption_before_exit]:n[sg.caption_after_exit]),h.addEventListener(`animationend`,u));let _=w_(o);_&&_.classList.add(d?n[sg.weeks_before_exit]:n[sg.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function O_(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function k_(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function A_(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function j_(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function M_(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new $h(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new Qh(t,m,r);return a?a.days.push(o):e.push(new eg(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function N_(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function P_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function F_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function I_(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function L_(e,t){let[n,r]=(0,S.useState)(e);return[t===void 0?n:t,r]}function R_(e,t){let[n,r]=N_(e,t),{startOfMonth:i,endOfMonth:a}=t,o=j_(e,n,r,t),[s,c]=L_(o,e.month?o:void 0);(0,S.useEffect)(()=>{let i=j_(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,S.useMemo)(()=>{let i=A_(s,r,{numberOfMonths:e.numberOfMonths},t),o=M_(i,O_(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:I_(o),days:k_(o),previousMonth:F_(s,n,e,t),nextMonth:P_(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var z_;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(z_||={});function B_(e){return!e[ag.disabled]&&!e[ag.hidden]&&!e[ag.outside]}function V_(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);B_(e)&&(e[ag.focused]&&a<z_.FocusedModifier?(i=o,a=z_.FocusedModifier):r?.isEqualTo(o)&&a<z_.LastFocused?(i=o,a=z_.LastFocused):n(o.date)&&a<z_.Selected?(i=o,a=z_.Selected):e[ag.today]&&a<z_.Today&&(i=o,a=z_.Today))}return i||=e.find(e=>B_(t(e))),i}function H_(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function U_(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=H_(e,t,n.date,r,i,a,o),l=!!(a.disabled&&zg(c,a.disabled,o)),u=!!(a.hidden&&zg(c,a.hidden,o)),d=new Qh(c,c,o);return!l&&!u?d:U_(e,t,d,r,i,a,o,s+1)}function W_(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,S.useState)(),c=V_(t.days,n,r||(()=>!1),o),[l,u]=(0,S.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=U_(n,r,l,t.navStart,t.navEnd,e,i);a&&(!e.disableNavigation||t.days.some(e=>e.isEqualTo(a)))&&(t.goToDay(a),u(a))}}}function G_(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=L_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function K_(e,t,n=0,r=0,i=!1,a=Zh){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function q_(e,t,n=Zh){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function J_(e,t,n=Zh){return Mg(e,t.from,!1,n)||Mg(e,t.to,!1,n)||Mg(t,e.from,!1,n)||Mg(t,e.to,!1,n)}function Y_(e,t,n=Zh){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?Mg(e,t,!1,n):Rg(t,n)?t.some(t=>Mg(e,t,!1,n)):Pg(t)?t.from&&t.to?J_(e,{from:t.from,to:t.to},n):!1:Lg(t)?q_(e,t.dayOfWeek,n):Ng(t)?n.isAfter(t.before,t.after)?J_(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):zg(e.from,t,n)||zg(e.to,t,n):Fg(t)||Ig(t)?zg(e.from,t,n)||zg(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function X_(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=L_(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:K_(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&Y_({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&Mg(u,e,!1,t)}}function Z_(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=L_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function Q_(e,t){let n=Z_(e,t),r=G_(e,t),i=X_(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function $_(e,t){return e instanceof um&&e.timeZone===t?e:new um(e,t)}function ev(e,t,n){if(!n)return $_(e,t);let r=$_(e,t),i=new um(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function tv(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?ev(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?ev(e,t,n):e):Pg(e)?{...e,from:e.from?$_(e.from,t):e.from,to:e.to?$_(e.to,t):e.to}:Ng(e)?{before:ev(e.before,t,n),after:ev(e.after,t,n)}:Fg(e)?{after:ev(e.after,t,n)}:Ig(e)?{before:ev(e.before,t,n)}:e}function nv(e,t,n){return e&&(Array.isArray(e)?e.map(e=>tv(e,t,n)):tv(e,t,n))}function rv(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=$_(t.today,n)),t.month&&(t.month=$_(t.month,n)),t.defaultMonth&&(t.defaultMonth=$_(t.defaultMonth,n)),t.startMonth&&(t.startMonth=$_(t.startMonth,n)),t.endMonth&&(t.endMonth=$_(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=$_(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>$_(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?$_(t.selected.from,n):t.selected.from,to:t.selected.to?$_(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=nv(t.disabled,n)),t.hidden!==void 0&&(t.hidden=nv(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=nv(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,S.useMemo)(()=>{let e={...Yh,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?y_(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new Xh({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:Hg(t.components),formatters:$g(t.formatters),labels:m_(t.labels,a.options),locale:e,classNames:{...Wg(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:C}=t,{formatCaption:w,formatDay:T,formatMonthDropdown:E,formatWeekNumber:D,formatWeekNumberHeader:O,formatWeekdayName:k,formatYearDropdown:A}=i,ee=R_(t,o),{days:te,months:j,navStart:M,navEnd:N,previousMonth:P,nextMonth:ne,goToMonth:F}=ee,re=Bg(te,t,M,N,o),{isSelected:ie,select:ae,selected:oe}=Q_(t,o)??{},{blur:se,focused:ce,isFocusTarget:le,moveFocus:ue,setFocused:de}=W_(t,ee,re,ie??(()=>!1),o),{labelDayButton:fe,labelGridcell:I,labelGrid:pe,labelMonthDropdown:L,labelNav:R,labelPrevious:me,labelNext:he,labelWeekday:ge,labelWeekNumber:_e,labelWeekNumberHeader:ve,labelYearDropdown:z}=a,ye=(0,S.useMemo)(()=>__(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),be=u!==void 0||m!==void 0,xe=(0,S.useCallback)(()=>{P&&(F(P),b?.(P))},[P,F,b]),Se=(0,S.useCallback)(()=>{ne&&(F(ne),y?.(ne))},[F,ne,y]),Ce=(0,S.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),de(e),!t.disabled&&(ae?.(e.date,t,n),m?.(e.date,t,n))},[ae,m,de]),we=(0,S.useCallback)((e,t)=>n=>{de(e),h?.(e.date,t,n)},[h,de]),Te=(0,S.useCallback)((e,t)=>n=>{se(),p?.(e.date,t,n)},[se,p]),Ee=(0,S.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];ue(e,t)}g?.(e.date,n,r)},[ue,g,t.dir]),De=(0,S.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Oe=(0,S.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),ke=(0,S.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);F(o.addMonths(i,-t))},[o,F]),Ae=(0,S.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);F(o.addMonths(i,-t))},[o,F]),{className:je,style:Me}=(0,S.useMemo)(()=>({className:[c[Q.Root],t.className].filter(Boolean).join(` `),style:{...C?.[Q.Root],...t.style}}),[c,t.className,t.style,C]),Ne=Ug(t),Pe=e=>{let t=C?.[Q.Dropdown],n=C?.[e];if(t||n)return{...t,...n}},Fe=(0,S.useRef)(null);D_(Fe,!!t.animate,{classNames:c,months:j,focused:ce,dateLib:o});let Ie={dayPickerProps:t,selected:oe,select:ae,isSelected:ie,months:j,nextMonth:ne,previousMonth:P,goToMonth:F,getModifiers:re,components:r,classNames:c,styles:C,labels:a,formatters:i};return S.createElement(cg.Provider,{value:Ie},S.createElement(r.Root,{rootRef:t.animate?Fe:void 0,className:je,style:Me,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Ne},S.createElement(r.Months,{className:c[Q.Months],style:C?.[Q.Months]},!t.hideNavigation&&!d&&S.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:C?.[Q.Nav],"aria-label":R(),onPreviousClick:xe,onNextClick:Se,previousMonth:P,nextMonth:ne}),j.map((e,n)=>{let a=t.reverseMonths?j.length-1-n:n;return S.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Q.Month],style:C?.[Q.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&S.createElement(r.PreviousMonthButton,{type:`button`,className:c[Q.PreviousMonthButton],style:C?.[Q.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":!P||void 0,"aria-label":me(P),onClick:xe,"data-animated-button":t.animate?`true`:void 0},S.createElement(r.Chevron,{disabled:!P||void 0,className:c[Q.Chevron],style:C?.[Q.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),S.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Q.MonthCaption],style:C?.[Q.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?S.createElement(r.DropdownNav,{className:c[Q.Dropdowns],style:C?.[Q.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?S.createElement(r.MonthsDropdown,{key:`month`,className:c[Q.MonthsDropdown],"aria-label":L(),disabled:!!t.disableNavigation,onChange:ke(e.date,a),options:h_(e.date,M,N,i,o),style:Pe(Q.MonthsDropdown),value:o.getMonth(e.date)}):S.createElement(`span`,{key:`month`},E(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?S.createElement(r.YearsDropdown,{key:`year`,className:c[Q.YearsDropdown],"aria-label":z(o.options),disabled:!!t.disableNavigation,onChange:Ae(e.date,a),options:v_(M,N,i,o,!!t.reverseYears),style:Pe(Q.YearsDropdown),value:o.getYear(e.date)}):S.createElement(`span`,{key:`year`},A(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),S.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},w(e.date,o.options,o))):S.createElement(r.CaptionLabel,{className:c[Q.CaptionLabel],style:C?.[Q.CaptionLabel],role:`status`,"aria-live":`polite`},w(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&S.createElement(r.NextMonthButton,{type:`button`,className:c[Q.NextMonthButton],style:C?.[Q.NextMonthButton],tabIndex:ne?void 0:-1,"aria-disabled":!ne||void 0,"aria-label":he(ne),onClick:Se,"data-animated-button":t.animate?`true`:void 0},S.createElement(r.Chevron,{disabled:!ne||void 0,className:c[Q.Chevron],style:C?.[Q.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&S.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:C?.[Q.Nav],"aria-label":R(),onPreviousClick:xe,onNextClick:Se,previousMonth:P,nextMonth:ne}),S.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":pe(e.date,o.options,o)||void 0,className:c[Q.MonthGrid],style:C?.[Q.MonthGrid]},!t.hideWeekdays&&S.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Q.Weekdays],style:C?.[Q.Weekdays]},x&&S.createElement(r.WeekNumberHeader,{"aria-label":ve(o.options),className:c[Q.WeekNumberHeader],style:C?.[Q.WeekNumberHeader],scope:`col`},O()),ye.map(e=>S.createElement(r.Weekday,{"aria-label":ge(e,o.options,o),className:c[Q.Weekday],key:String(e),style:C?.[Q.Weekday],scope:`col`},k(e,o.options,o)))),S.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Q.Weeks],style:C?.[Q.Weeks]},e.weeks.map(e=>S.createElement(r.Week,{className:c[Q.Week],key:e.weekNumber,style:C?.[Q.Week],week:e},x&&S.createElement(r.WeekNumber,{week:e,style:C?.[Q.WeekNumber],"aria-label":_e(e.weekNumber,{locale:s}),className:c[Q.WeekNumber],scope:`row`,role:`rowheader`},D(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=re(e);if(i[ag.focused]=!i.hidden&&!!ce?.isEqualTo(e),i[og.selected]=ie?.(n)||i.selected,Pg(oe)){let{from:e,to:t}=oe;i[og.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[og.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[og.range_middle]=Mg(oe,n,!0,o)}let a=g_(i,C,t.modifiersStyles),s=Vg(i,c,t.modifiersClassNames),l=!be&&!i.hidden?I(n,i,o.options,o):void 0;return S.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&be?S.createElement(r.DayButton,{className:c[Q.DayButton],style:C?.[Q.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:le(e)?0:-1,"aria-label":fe(n,i,o.options,o),onClick:Ce(e,i),onBlur:Te(e,i),onFocus:we(e,i),onKeyDown:Ee(e,i),onMouseEnter:De(e,i),onMouseLeave:Oe(e,i)},T(n,o.options,o)):!i.hidden&&T(e.date,o.options,o))}))))))})),t.footer&&S.createElement(r.Footer,{className:c[Q.Footer],style:C?.[Q.Footer],role:`status`,"aria-live":`polite`},t.footer)))}function iv({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=Wg();return(0,U.jsx)(rv,{showOutsideDays:n,className:J(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},classNames:{root:J(`w-fit`,c.root),months:J(`relative flex flex-col gap-4 md:flex-row`,c.months),month:J(`flex w-full flex-col gap-4`,c.month),nav:J(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:J(bc({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,c.button_previous),button_next:J(bc({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,c.button_next),month_caption:J(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:J(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,c.dropdowns),dropdown_root:J(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:J(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:J(`font-medium select-none`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),month_grid:J(`w-full border-collapse`,c.month_grid),weekdays:J(`flex`,c.weekdays),weekday:J(`flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none`,c.weekday),week:J(`mt-2 flex w-full`,c.week),week_number_header:J(`w-(--cell-size) select-none`,c.week_number_header),week_number:J(`text-[0.8rem] text-muted-foreground select-none`,c.week_number),day:J(`group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:J(`rounded-l-md bg-accent`,c.range_start),range_middle:J(`rounded-none`,c.range_middle),range_end:J(`rounded-r-md bg-accent`,c.range_end),today:J(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:J(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:J(`text-muted-foreground opacity-50`,c.disabled),hidden:J(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,U.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:J(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,U.jsx)(no,{className:J(`size-4`,e),...n}):t===`right`?(0,U.jsx)(io,{className:J(`size-4`,e),...n}):(0,U.jsx)(eo,{className:J(`size-4`,e),...n}),DayButton:av,WeekNumber:({children:e,...t})=>(0,U.jsx)(`td`,{...t,children:(0,U.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},...s})}function av({className:e,day:t,modifiers:n,...r}){let i=Wg(),a=(0,S.useRef)(null);return(0,S.useEffect)(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,U.jsx)(xc,{ref:a,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),...r})}function ov({className:e,type:t,...n}){return(0,U.jsx)(`input`,{type:t,"data-slot":`input`,className:J(`h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}var sv=[`top`,`right`,`bottom`,`left`],cv=Math.min,lv=Math.max,uv=Math.round,dv=Math.floor,fv=e=>({x:e,y:e}),pv={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function mv(e,t,n){return lv(e,cv(t,n))}function hv(e,t){return typeof e==`function`?e(t):e}function gv(e){return e.split(`-`)[0]}function _v(e){return e.split(`-`)[1]}function vv(e){return e===`x`?`y`:`x`}function yv(e){return e===`y`?`height`:`width`}function bv(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function xv(e){return vv(bv(e))}function Sv(e,t,n){n===void 0&&(n=!1);let r=_v(e),i=xv(e),a=yv(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=jv(o)),[o,jv(o)]}function Cv(e){let t=jv(e);return[wv(e),t,wv(t)]}function wv(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Tv=[`left`,`right`],Ev=[`right`,`left`],Dv=[`top`,`bottom`],Ov=[`bottom`,`top`];function kv(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ev:Tv:t?Tv:Ev;case`left`:case`right`:return t?Dv:Ov;default:return[]}}function Av(e,t,n,r){let i=_v(e),a=kv(gv(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(wv)))),a}function jv(e){let t=gv(e);return pv[t]+e.slice(t.length)}function Mv(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Nv(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Mv(e)}function Pv(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Fv(e,t,n){let{reference:r,floating:i}=e,a=bv(t),o=xv(t),s=yv(o),c=gv(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=_v(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Iv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=hv(t,e),p=Nv(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Pv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Pv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Lv=50,Rv=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Iv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Fv(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Lv&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Fv(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},zv=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=hv(e,t)||{};if(l==null)return{};let d=Nv(u),f={x:n,y:r},p=xv(i),m=yv(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=cv(d[_],T),D=cv(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=mv(E,k,O),ee=!c.arrow&&_v(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,te=ee?k<E?k-E:k-O:0;return{[p]:f[p]+te,data:{[p]:A,centerOffset:k-A-te,...ee&&{alignmentOffset:te}},reset:ee}}}),Bv=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=hv(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=gv(r),_=bv(o),v=gv(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[jv(o)]:Cv(o)),x=p!==`none`;!d&&x&&b.push(...Av(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Sv(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===bv(t)||T.every(e=>bv(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=bv(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Vv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hv(e){return sv.some(t=>e[t]>=0)}var Uv=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=hv(e,t);switch(i){case`referenceHidden`:{let e=Vv(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Hv(e)}}}case`escaped`:{let e=Vv(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Hv(e)}}}default:return{}}}}},Wv=new Set([`left`,`top`]);async function Gv(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=gv(n),s=_v(n),c=bv(n)===`y`,l=Wv.has(o)?-1:1,u=a&&c?-1:1,d=hv(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Kv=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Gv(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},qv=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=hv(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=bv(i),p=vv(f),m=u[p],h=u[f],g=(e,t)=>mv(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Jv=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=hv(e,t),u={x:n,y:r},d=bv(i),f=vv(d),p=u[f],m=u[d],h=hv(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Wv.has(gv(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Yv=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=hv(e,t),c=await i.detectOverflow(t,s),l=gv(n),u=_v(n),d=bv(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=cv(p-c[m],g),y=cv(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*lv(c.left,c.right):S=p-2*lv(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Xv(){return typeof window<`u`}function Zv(e){return ey(e)?(e.nodeName||``).toLowerCase():`#document`}function Qv(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function $v(e){return((ey(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function ey(e){return Xv()?e instanceof Node||e instanceof Qv(e).Node:!1}function ty(e){return Xv()?e instanceof Element||e instanceof Qv(e).Element:!1}function ny(e){return Xv()?e instanceof HTMLElement||e instanceof Qv(e).HTMLElement:!1}function ry(e){return!Xv()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Qv(e).ShadowRoot}function iy(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=hy(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ay(e){return/^(table|td|th)$/.test(Zv(e))}function oy(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var sy=/transform|translate|scale|rotate|perspective|filter/,cy=/paint|layout|strict|content/,ly=e=>!!e&&e!==`none`,uy;function dy(e){let t=ty(e)?hy(e):e;return ly(t.transform)||ly(t.translate)||ly(t.scale)||ly(t.rotate)||ly(t.perspective)||!py()&&(ly(t.backdropFilter)||ly(t.filter))||sy.test(t.willChange||``)||cy.test(t.contain||``)}function fy(e){let t=_y(e);for(;ny(t)&&!my(t);){if(dy(t))return t;if(oy(t))return null;t=_y(t)}return null}function py(){return uy??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),uy}function my(e){return/^(html|body|#document)$/.test(Zv(e))}function hy(e){return Qv(e).getComputedStyle(e)}function gy(e){return ty(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _y(e){if(Zv(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ry(e)&&e.host||$v(e);return ry(t)?t.host:t}function vy(e){let t=_y(e);return my(t)?(e.ownerDocument||e).body:ny(t)&&iy(t)?t:vy(t)}function yy(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=vy(e),i=r===e.ownerDocument?.body,a=Qv(r);if(i){let e=by(a);return t.concat(a,a.visualViewport||[],iy(r)?r:[],e&&n?yy(e):[])}return t.concat(r,yy(r,[],n))}function by(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function xy(e){let t=hy(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ny(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=uv(n)!==a||uv(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Sy(e){return ty(e)?e:e.contextElement}function Cy(e){let t=Sy(e);if(!ny(t))return fv(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=xy(t),o=(a?uv(n.width):n.width)/r,s=(a?uv(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var wy=fv(0);function Ty(e){let t=Qv(e);return!py()||!t.visualViewport?wy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ey(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Qv(e)}function Dy(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Sy(e),o=fv(1);t&&(r?ty(r)&&(o=Cy(r)):o=Cy(e));let s=Ey(a,n,r)?Ty(a):fv(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Qv(a),t=ty(r)?Qv(r):r,n=e,i=by(n);for(;i&&t!==n;){let e=Cy(i),t=i.getBoundingClientRect(),r=hy(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Qv(i),i=by(n)}}return Pv({width:u,height:d,x:c,y:l})}function Oy(e,t){let n=gy(e).scrollLeft;return t?t.left+n:Dy($v(e)).left+n}function ky(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Oy(e,n),y:n.top+t.scrollTop}}function Ay(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=$v(r),s=t?oy(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=fv(1),u=fv(0),d=ny(r);if((d||!a)&&((Zv(r)!==`body`||iy(o))&&(c=gy(r)),d)){let e=Dy(r);l=Cy(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?ky(o,c):fv(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function jy(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function My(e){let t=gy(e),n=e.ownerDocument.body,r=lv(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=lv(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Oy(e),o=-t.scrollTop;return hy(n).direction===`rtl`&&(a+=lv(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ny=25;function Py(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Qv(e),a=$v(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!py()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Oy(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ny&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Fy(e,t){let n=Dy(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Cy(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Iy(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Py(e,n,t);else if(t===`document`)r=My($v(e));else if(ty(t))r=Fy(t,n);else{let n=Ty(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Pv(r)}function Ly(e,t){let n=t.get(e);if(n)return n;let r=yy(e,[],!1).filter(e=>ty(e)&&Zv(e)!==`body`),i=null,a=hy(e).position===`fixed`,o=a?_y(e):e;for(;ty(o)&&!my(o);){let e=hy(o),t=dy(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=_y(o)}return t.set(e,r),r}function Ry(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?oy(t)?[]:Ly(t,this._c):[].concat(n),r],o=Iy(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Iy(t,a[e],i);s=lv(n.top,s),c=cv(n.right,c),l=cv(n.bottom,l),u=lv(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function zy(e){let{width:t,height:n}=xy(e);return{width:t,height:n}}function By(e,t,n){let r=ny(t),i=$v(t),a=n===`fixed`,o=Dy(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=fv(0);if((r||!a)&&((Zv(t)!==`body`||iy(i))&&(s=gy(t)),r)){let e=Dy(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Oy(i));let l=i&&!r&&!a?ky(i,s):fv(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Vy(e){return hy(e).position===`static`}function Hy(e,t){if(!ny(e)||hy(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return $v(e)===n&&(n=n.ownerDocument.body),n}function Uy(e,t){let n=Qv(e);if(oy(e))return n;if(!ny(e)){let t=_y(e);for(;t&&!my(t);){if(ty(t)&&!Vy(t))return t;t=_y(t)}return n}let r=Hy(e,t);for(;r&&ay(r)&&Vy(r);)r=Hy(r,t);return r&&my(r)&&Vy(r)&&!dy(r)?n:r||fy(e)||n}var Wy=async function(e){let t=this.getOffsetParent||Uy,n=this.getDimensions,r=await n(e.floating);return{reference:By(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gy(e){return hy(e).direction===`rtl`}var Ky={convertOffsetParentRelativeRectToViewportRelativeRect:Ay,getDocumentElement:$v,getClippingRect:Ry,getOffsetParent:Uy,getElementRects:Wy,getClientRects:jy,getDimensions:zy,getScale:Cy,isElement:ty,isRTL:Gy};function qy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Jy(e,t,n){let r=null,i,a=$v(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=dv(d),h=dv(a.clientWidth-(u+f)),g=dv(a.clientHeight-(d+p)),_=dv(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:lv(0,cv(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!qy(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Qv(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Yy(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Sy(e),u=i||a?[...l?yy(l):[],...t?yy(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Jy(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Dy(e):null;c&&g();function g(){let t=Dy(e);h&&!qy(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xy=Kv,Zy=qv,Qy=Bv,$y=Yv,eb=Uv,tb=zv,nb=Jv,rb=(e,t,n)=>{let r=new Map,i=n??{},a={...Ky,...i.platform,_c:r};return Rv(e,t,{...i,platform:a})},ib=typeof document<`u`?S.useLayoutEffect:function(){};function ab(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ab(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!ab(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ob(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sb(e,t){let n=ob(e);return Math.round(t*n)/n}function cb(e){let t=S.useRef(e);return ib(()=>{t.current=e}),t}function lb(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(r);ab(f,r)||p(r);let[m,h]=S.useState(null),[g,_]=S.useState(null),v=S.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),y=S.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),b=a||m,x=o||g,C=S.useRef(null),w=S.useRef(null),T=S.useRef(u),E=c!=null,D=cb(c),O=cb(i),k=cb(l),A=S.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),rb(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};ee.current&&!ab(T.current,t)&&(T.current=t,el.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);ib(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=S.useRef(!1);ib(()=>(ee.current=!0,()=>{ee.current=!1}),[]),ib(()=>{if(b&&(C.current=b),x&&(w.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let te=S.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:y}),[v,y]),j=S.useMemo(()=>({reference:b,floating:x}),[b,x]),M=S.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=sb(j.floating,u.x),r=sb(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ob(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:A,refs:te,elements:j,floatingStyles:M}),[u,A,te,j,M])}var ub=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:tb({element:r.current,padding:i}).fn(n):r?tb({element:r,padding:i}).fn(n):{}}}},db=(e,t)=>{let n=Xy(e);return{name:n.name,fn:n.fn,options:[e,t]}},fb=(e,t)=>{let n=Zy(e);return{name:n.name,fn:n.fn,options:[e,t]}},pb=(e,t)=>({fn:nb(e).fn,options:[e,t]}),mb=(e,t)=>{let n=Qy(e);return{name:n.name,fn:n.fn,options:[e,t]}},hb=(e,t)=>{let n=$y(e);return{name:n.name,fn:n.fn,options:[e,t]}},gb=(e,t)=>{let n=eb(e);return{name:n.name,fn:n.fn,options:[e,t]}},_b=(e,t)=>{let n=ub(e);return{name:n.name,fn:n.fn,options:[e,t]}},vb=Object.defineProperty,yb=(e,t)=>vb(e,`name`,{value:t,configurable:!0});function bb(e){let[t,n]=S.useState(void 0);return Fc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}yb(bb,`useSize`);var xb=Object.defineProperty,Sb=(e,t)=>xb(e,`name`,{value:t,configurable:!0}),Cb=`Popper`,[wb,Tb]=Nc(Cb),[Eb,Db]=wb(Cb),Ob=Sb(e=>{let{__scopePopper:t,children:n}=e,[r,i]=S.useState(null),[a,o]=S.useState(void 0);return(0,U.jsx)(Eb,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),kb=`PopperAnchor`,Ab=S.forwardRef(Sb(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Db(kb,n),o=S.useRef(null),s=a.onAnchorChange,c=Eo(t,S.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=S.useRef(null);S.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Lb(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(vl.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),jb=`PopperContent`,[Mb,Nb]=wb(jb),Pb=S.forwardRef(Sb(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Db(jb,n),[_,v]=S.useState(null),y=Eo(t,v),[b,x]=S.useState(null),C=bb(b),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Fb),altBoundary:k},{refs:ee,floatingStyles:te,placement:j,isPositioned:M,middlewareData:N}=lb({strategy:`fixed`,placement:E,whileElementsMounted:Sb((...e)=>Yy(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[db({mainAxis:i+T,alignmentAxis:o}),c&&fb({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?pb():void 0,...A}),c&&mb({...A}),hb({...A,apply:Sb(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&_b({element:b,padding:s}),Ib({arrowWidth:w,arrowHeight:T}),f&&gb({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),P=g.setPlacementState;Fc(()=>(P(j),()=>{P(void 0)}),[j,P]);let[ne,F]=Lb(j),re=Sl(m);Fc(()=>{M&&re?.()},[M,re]);let ie=N.arrow?.x,ae=N.arrow?.y,oe=N.arrow?.centerOffset!==0,[se,ce]=S.useState();return Fc(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:M?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(Mb,{scope:n,placedSide:ne,placedAlign:F,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,U.jsx)(vl.div,{"data-side":ne,"data-align":F,...h,ref:y,style:{...h.style,animation:M?h.style?.animation:`none`}})})})},`PopperContent`));function Fb(e){return e!==null}Sb(Fb,`isNotNull`);var Ib=Sb(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Lb(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Lb(e){let[t,n=`center`]=e.split(`-`);return[t,n]}Sb(Lb,`getSideAndAlignFromPlacement`);var Rb=Ob,zb=Ab,Bb=Pb,Vb=Object.defineProperty,Hb=(e,t)=>Vb(e,`name`,{value:t,configurable:!0}),Ub=`Popover`,[Wb,Gb]=Nc(Ub,[Tb]),Kb=Tb(),[qb,Jb]=Wb(Ub),Yb=Hb(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Kb(t),c=S.useRef(null),[l,u]=S.useState(!1),[d,f]=Yc({prop:r,defaultProp:i??!1,onChange:a,caller:Ub});return(0,U.jsx)(Rb,{...s,children:(0,U.jsx)(qb,{scope:t,contentId:Bc(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:S.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:S.useCallback(()=>u(!0),[]),onCustomAnchorRemove:S.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),Xb=`PopoverTrigger`,Zb=S.forwardRef(Hb(function(e,t){let{__scopePopover:n,...r}=e,i=Jb(Xb,n),a=Kb(n),o=Eo(t,i.triggerRef),s=(0,U.jsx)(vl.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":cx(i.open),...r,ref:o,onClick:Tc(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,U.jsx)(zb,{asChild:!0,...a,children:s})},`PopoverTrigger`)),Qb=`PopoverPortal`,[$b,ex]=Wb(Qb,{forceMount:void 0}),tx=Hb(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Jb(Qb,t);return(0,U.jsx)($b,{scope:t,forceMount:n,children:(0,U.jsx)(au,{present:n||a.open,children:(0,U.jsx)(tu,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),nx=`PopoverContent`,rx=S.forwardRef(Hb(function(e,t){let n=ex(nx,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Jb(nx,e.__scopePopover);return(0,U.jsx)(au,{present:r||a.open,children:a.modal?(0,U.jsx)(ax,{...i,ref:t}):(0,U.jsx)(ox,{...i,ref:t})})},`PopoverContent`)),ix=rl(`PopoverContent.RemoveScroll`),ax=S.forwardRef(Hb(function(e,t){let n=Jb(nx,e.__scopePopover),r=S.useRef(null),i=Eo(t,r),a=S.useRef(!1);return S.useEffect(()=>{let e=r.current;if(e)return Md(e)},[]),(0,U.jsx)(Cd,{as:ix,allowPinchZoom:!0,children:(0,U.jsx)(sx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Tc(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Tc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Tc(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),ox=S.forwardRef(Hb(function(e,t){let n=Jb(nx,e.__scopePopover),r=S.useRef(!1),i=S.useRef(!1);return(0,U.jsx)(sx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),sx=S.forwardRef(Hb(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Jb(nx,n),p=Kb(n);return gu(),(0,U.jsx)(Hl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(Al,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,U.jsx)(Bb,{"data-state":cx(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function cx(e){return e?`open`:`closed`}Hb(cx,`getState`);var lx=Yb,ux=Zb,dx=tx,fx=rx;function px(e){return(0,U.jsx)(lx,{"data-slot":`popover`,...e})}function mx(e){return(0,U.jsx)(ux,{"data-slot":`popover-trigger`,...e})}function hx({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,U.jsx)(dx,{children:(0,U.jsx)(fx,{"data-slot":`popover-content`,align:t,sideOffset:n,className:J(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function gx({timeWindow:e,onChange:t}){let[n,r]=(0,S.useState)(!1),[i,a]=(0,S.useState)(`quick`),o=t=>{r(t),t&&a(e.live?`quick`:`custom`)},s=e=>{t(e),r(!1)};return(0,U.jsxs)(px,{open:n,onOpenChange:o,children:[(0,U.jsx)(mx,{asChild:!0,children:(0,U.jsxs)(xc,{variant:`outline`,size:`sm`,className:`text-xs tabular-nums`,children:[(0,U.jsx)(_x,{timeWindow:e}),(0,U.jsx)(eo,{className:`opacity-60`})]})}),(0,U.jsx)(hx,{align:`end`,className:`w-auto p-0`,children:i===`quick`?(0,U.jsx)(vx,{timeWindow:e,onSelect:s,onCustom:()=>a(`custom`)}):(0,U.jsx)(yx,{timeWindow:e,onApply:s,onBack:()=>a(`quick`)})})]})}function _x({timeWindow:{fromMs:e,toMs:t,live:n}}){return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`size-1.5 animate-pulse rounded-full bg-success motion-reduce:animate-none`}),la(t-e)]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Xa,{}),Gi(e,t)]})}function vx({timeWindow:e,onSelect:t,onCustom:n}){let r=e.live?e.toMs-e.fromMs:null;return(0,U.jsxs)(`div`,{className:`flex w-48 flex-col gap-0.5 p-1.5`,children:[ca.map(e=>(0,U.jsx)(xc,{variant:`ghost`,size:`sm`,"aria-pressed":e.durationMs===r,onClick:()=>t({mode:`live`,durationMs:e.durationMs}),className:J(`justify-start text-xs font-normal`,e.durationMs===r&&`bg-accent text-accent-foreground`),children:e.label},e.durationMs)),(0,U.jsx)(`div`,{className:`my-1 border-t`}),(0,U.jsxs)(xc,{variant:`ghost`,size:`sm`,onClick:n,className:`justify-start text-xs font-normal`,children:[(0,U.jsx)(Xa,{}),`Custom range`,(0,U.jsx)(io,{className:`ml-auto opacity-60`})]})]})}function yx({timeWindow:e,onApply:t,onBack:n}){let[r,i]=(0,S.useState)({from:new Date(e.fromMs),to:new Date(e.toMs)}),[a,o]=(0,S.useState)(Vi(e.fromMs)),[s,c]=(0,S.useState)(Vi(e.toMs)),l=xx(r,a,s);return(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(xc,{variant:`ghost`,size:`xs`,onClick:n,className:`mt-2 ml-2 text-xs font-normal text-muted-foreground`,children:[(0,U.jsx)(no,{}),`Quick ranges`]}),(0,U.jsx)(iv,{mode:`range`,selected:r,onSelect:i,defaultMonth:r?.from,disabled:{after:new Date}}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 border-t p-3`,children:[(0,U.jsx)(bx,{label:`Start`,value:a,onChange:o}),(0,U.jsx)(bx,{label:`End`,value:s,onChange:c})]}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-t p-3 text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsx)(`span`,{children:l?Gi(l.fromMs,l.toMs):`End must be after start`}),(0,U.jsx)(xc,{size:`sm`,disabled:!l,onClick:()=>l&&t(l),children:`Apply`})]})]})}function bx({label:e,value:t,onChange:n}){let r=(0,S.useId)();return(0,U.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,U.jsx)(`label`,{htmlFor:r,className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(ov,{id:r,type:`time`,value:t,onChange:e=>n(e.target.value),className:`h-8 text-xs tabular-nums`})]})}function xx(e,t,n){if(!e?.from||!t||!n)return null;let r=da(e.from,t),i=da(e.to??e.from,n);return r<i?{mode:`static`,fromMs:r,toMs:i}:null}function Sx(){let e=wa(),t=Ta();return(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(gx,{timeWindow:e,onChange:t}),(0,U.jsx)(Cx,{live:e.live,onToggle:()=>t(fa(e))})]})}function Cx({live:e,onToggle:t}){let n=e?`Pause live updates`:`Resume live updates`;return(0,U.jsx)(xc,{variant:`outline`,size:`icon-sm`,"aria-label":n,title:n,onClick:t,children:e?(0,U.jsx)(ho,{}):(0,U.jsx)(_o,{})})}function wx({titleId:e,title:t,back:n,badge:r,meta:i,aside:a}){return(0,U.jsxs)(`header`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsxs)(Tn,{to:n.to,relative:n.relative,className:`inline-flex items-center gap-1.5 text-[13px] font-medium text-muted-foreground hover:text-foreground`,children:[(0,U.jsx)(Ka,{className:`size-3.5`,"aria-hidden":!0}),n.label]}),(0,U.jsxs)(`div`,{className:`mt-2.5 flex flex-wrap items-center gap-3`,children:[(0,U.jsx)(`h1`,{id:e,translate:`no`,className:`truncate text-[26px] font-medium tracking-tight`,children:t}),r]}),(0,U.jsx)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2 text-[13px] text-muted-foreground tabular-nums`,children:i})]}),a]})}function $({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:J(`animate-pulse rounded-md bg-muted motion-reduce:animate-none`,e),...t})}function Tx({id:e,title:t,description:n,aside:r,busy:i,className:a,children:o}){let s=(0,S.useId)();return(0,U.jsxs)(`section`,{id:e,"aria-labelledby":s,"aria-busy":i||void 0,className:J(`rounded-xl border bg-card px-5.5 pt-5 text-card-foreground shadow-(--shadow-control)`,a),children:[(0,U.jsxs)(`header`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{id:s,className:`text-base font-bold tracking-tight`,children:t}),n&&(0,U.jsx)(`p`,{className:`mt-0.75 text-[13px] text-muted-foreground`,children:n})]}),r]}),o]})}function Ex({label:e,options:t,value:n,onChange:r}){return(0,U.jsx)(`div`,{role:`group`,"aria-label":e,className:`flex gap-0.5 rounded-lg border bg-background/40 p-0.5`,children:t.map(e=>(0,U.jsxs)(`button`,{type:`button`,"aria-pressed":e.value===n,onClick:()=>r(e.value),className:`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring aria-pressed:bg-muted aria-pressed:text-foreground aria-pressed:shadow-[inset_0_0_0_1px_var(--border)]`,children:[e.icon,e.label,e.badge!==void 0&&(0,U.jsx)(`span`,{className:`text-[11px] tabular-nums opacity-75`,children:e.badge})]},e.value))})}function Dx({live:e,className:t,children:n}){return(0,U.jsxs)(`span`,{className:J(`inline-flex items-center gap-1.25`,e?`text-success`:`text-muted-foreground`,t),children:[e&&(0,U.jsx)(`span`,{className:`size-1.5 rounded-full bg-success`}),n]})}var Ox=24,kx=240;function Ax({actor:e,requests:t,failed:n,now:r}){let[i,a]=(0,S.useState)(`all`),o=(e&&Ip(e.instances))?.filter(e=>i===`all`||e.status===i)??null;return(0,U.jsx)(Tx,{title:`Instances`,description:`Sorted by last active. Number shows open sockets.`,aside:e&&(0,U.jsx)(jx,{actor:e,value:i,onChange:a}),busy:!e&&!n,className:`pb-4.5`,children:n?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):e&&o?(0,U.jsx)(Mx,{actor:e,instances:o,requests:t,now:r}):(0,U.jsx)(zx,{})})}function jx({actor:e,value:t,onChange:n}){let{total:r,live:i,dormant:a}=Fp(e);return(0,U.jsx)(Ex,{label:`Filter instances`,value:t,onChange:n,options:[{value:`all`,label:`All`,badge:V(r)},{value:`live`,label:`Live`,badge:V(i)},{value:`dormant`,label:`Dormant`,badge:V(a)}]})}function Mx({actor:e,instances:t,requests:n,now:r}){let[i,a]=(0,S.useState)(null);if(!t.length)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`No instances match this filter.`});let o=t.slice(0,kx);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Nx,{}),(0,U.jsx)(`ul`,{"aria-label":`${e.actorName} instances, most recently active first`,className:`mt-1.5 grid grid-cols-24 gap-1.5 tabular-nums`,children:o.map((e,t)=>(0,U.jsx)(Px,{instance:e,active:e.actorId===i,alignRight:t%Ox>=Ox/2,onActive:a,requests:n,now:r},e.actorId))}),(0,U.jsx)(Lx,{actor:e,shown:o.length,matching:t.length})]})}function Nx(){return(0,U.jsxs)(`div`,{"aria-hidden":!0,className:`mt-4.5 grid grid-cols-24 gap-1.5 text-[11px] text-muted-foreground tabular-nums`,children:[(0,U.jsx)(`span`,{children:`001`}),(0,U.jsx)(`span`,{className:`col-start-12`,children:`012`}),(0,U.jsx)(`span`,{className:`col-start-24 text-right`,children:`024`})]})}function Px({instance:e,active:t,alignRight:n,onActive:r,requests:i,now:a}){let o=(0,S.useId)(),s=e.status===`live`,c=e.connections.length;return(0,U.jsxs)(`li`,{className:`relative`,children:[(0,U.jsx)(Tn,{to:Pp(e.actorId),"aria-label":`${e.actorId}, ${e.status}, ${$i(c,`open socket`)}`,"aria-describedby":t?o:void 0,onMouseEnter:()=>r(e.actorId),onMouseLeave:()=>r(null),onFocus:()=>r(e.actorId),onBlur:()=>r(null),className:J(`grid h-6.5 w-full place-items-center rounded-[5px] text-[10px] font-medium outline-none`,s?`bg-success text-background`:`bg-muted shadow-[inset_0_0_0_1px_var(--border)]`,t&&`outline-2 outline-offset-2 outline-foreground`),children:c>0?V(c):!s&&(0,U.jsx)(`span`,{className:`size-1 rounded-full bg-muted-foreground/40`})}),t&&(0,U.jsx)(Fx,{id:o,instance:e,requests:i,now:a,alignRight:n})]})}function Fx({id:e,instance:t,requests:n,now:r,alignRight:i}){let a=n?.filter(e=>e.actorId===t.actorId)??[],o=Kp(a,Lp),s=Kp(a,Rp),c=t.status===`live`;return(0,U.jsxs)(`div`,{id:e,role:`tooltip`,className:J(`absolute top-full z-10 mt-2 w-64 rounded-lg border bg-popover px-3.5 py-3 text-xs text-popover-foreground shadow-(--shadow-popover)`,i?`right-0`:`left-0`),children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,U.jsx)(`span`,{translate:`no`,className:`truncate`,children:t.actorId}),(0,U.jsx)(Dx,{live:c,className:`text-[11px] font-medium`,children:c?`Live`:`Dormant`})]}),(0,U.jsx)(Ix,{label:`Open sockets`,value:V(t.connections.length)}),(0,U.jsx)(Ix,{label:`Avg queue time`,value:o===null?`—`:Qi(o)}),(0,U.jsx)(Ix,{label:`Avg latency`,value:s===null?`—`:Qi(s)}),(0,U.jsx)(Ix,{label:`Last active`,value:t.lastActiveAtMs?ta(t.lastActiveAtMs,r):`—`})]})}function Ix({label:e,value:t}){return(0,U.jsxs)(`div`,{className:`mt-1.5 flex justify-between text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:e}),(0,U.jsx)(`b`,{className:`font-medium text-foreground tabular-nums`,children:t})]})}function Lx({actor:e,shown:t,matching:n}){let{live:r,dormant:i}=Fp(e);return(0,U.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center justify-between gap-3 text-[13px] text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-5`,children:[(0,U.jsx)(Rx,{swatch:`bg-success`,label:`Live`,count:r}),(0,U.jsx)(Rx,{swatch:`bg-muted shadow-[inset_0_0_0_1px_var(--border)]`,label:`Dormant`,count:i}),t<n&&(0,U.jsxs)(`span`,{children:[`Showing `,V(t),` of `,V(n)]})]}),(0,U.jsx)(`span`,{className:`text-xs`,children:`Most recent → Least recent`})]})}function Rx({swatch:e,label:t,count:n}){return(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`size-2.5 rounded-[3px] ${e}`}),t,` `,(0,U.jsx)(`b`,{className:`font-bold text-foreground`,children:V(n)})]})}function zx(){return(0,U.jsx)(`div`,{className:`mt-6 grid grid-cols-24 gap-1.5`,children:Array.from({length:72},(e,t)=>(0,U.jsx)($,{className:`h-6.5 rounded-[5px]`},t))})}function Bx({liveShare:e,label:t,pulse:n,className:r,style:i}){return(0,U.jsxs)(`div`,{role:`img`,"aria-label":t,className:J(`relative flex overflow-hidden`,r),style:i,children:[(0,U.jsx)(`div`,{className:`relative bg-success`,style:{width:`${e*100}%`},children:n&&e>0&&(0,U.jsx)(`span`,{className:`absolute inset-y-0 right-0.75 w-0.75 animate-pulse bg-success motion-reduce:animate-none`})}),(0,U.jsx)(`div`,{className:`flex-1 bg-border`})]})}function Vx({live:e,dormant:t,showCounts:n}){let r=e+t,i=r?e/r:0;return(0,U.jsxs)(`div`,{className:`mt-3 flex justify-between gap-4 text-[13px] tabular-nums`,children:[(0,U.jsx)(Ux,{swatch:`bg-success`,label:`Live`,count:n?e:void 0,share:i}),(0,U.jsx)(Ux,{swatch:`bg-border`,label:`Dormant`,count:n?t:void 0,share:r?1-i:0})]})}function Hx(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-auto h-10 w-full rounded-sm`}),(0,U.jsxs)(`div`,{className:`mt-3 flex justify-between gap-4`,children:[(0,U.jsx)($,{className:`h-3.5 w-28`}),(0,U.jsx)($,{className:`h-3.5 w-28`})]})]})}function Ux({swatch:e,label:t,count:n,share:r}){return(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75 text-muted-foreground`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs ${e}`}),t,` `,n!==void 0&&(0,U.jsx)(`b`,{className:`font-bold text-foreground`,children:V(n)}),` · `,Yi(r)]})}function Wx({label:e,aside:t,value:n,unit:r,busy:i,children:a}){let o=(0,S.useId)();return(0,U.jsxs)(`article`,{"aria-labelledby":o,"aria-busy":i||void 0,className:`flex min-h-59 min-w-0 flex-col rounded-xl border bg-card px-5.5 pt-5 pb-4.5 text-card-foreground shadow-(--shadow-control)`,children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-[13px] font-medium text-muted-foreground`,children:[(0,U.jsx)(`span`,{id:o,className:`truncate`,children:e}),t]}),n!==void 0&&(0,U.jsx)(Gx,{value:n,unit:r,className:`mt-3.5`}),a]})}function Gx({value:e,unit:t,className:n}){return(0,U.jsxs)(`div`,{className:J(`flex items-baseline gap-2 text-[44px] leading-none font-bold tracking-[-0.035em] tabular-nums`,n),children:[e,t!==void 0&&(0,U.jsx)(`div`,{className:`text-[15px] font-medium tracking-normal text-muted-foreground`,children:t})]})}function Kx({summary:e,failed:t}){let n=e&&(0,U.jsxs)(`span`,{className:`shrink-0 text-xs font-normal tabular-nums`,children:[V(e.total),` total`]});return(0,U.jsx)(Wx,{label:`Live & Dormant`,aside:n,busy:!e&&!t,children:e?(0,U.jsx)(qx,{...e}):(0,U.jsx)(Jx,{failed:t})})}function qx({live:e,dormant:t,total:n}){let r=n?e/n:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap gap-x-10 gap-y-2`,children:[(0,U.jsx)(Gx,{value:V(e),unit:`live`}),(0,U.jsx)(Gx,{value:V(t),unit:`dormant`,className:`text-muted-foreground/75`})]}),(0,U.jsx)(Bx,{liveShare:r,label:`${V(e)} live, ${V(t)} dormant, ${Yi(r)} live`,pulse:!0,className:`mt-auto h-10 rounded-sm`}),(0,U.jsx)(Vx,{live:e,dormant:t})]})}function Jx({failed:e}){return e?(0,U.jsx)(`p`,{className:`mt-3.5 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-3.5 h-11 w-48 max-w-full`}),(0,U.jsx)(Hx,{})]})}function Yx({shown:e,total:t,noun:n,expandLabel:r,expanded:i,onToggle:a}){return(0,U.jsxs)(`div`,{className:`flex justify-between border-t pt-3 text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`span`,{children:[`Showing `,V(e),` of `,$i(t,n)]}),(i||e<t)&&(0,U.jsx)(`button`,{type:`button`,onClick:a,className:`font-medium text-primary hover:underline`,children:i?`Show Fewer`:r})]})}var Xx=6,Zx=`bg-[linear-gradient(90deg,color-mix(in_oklab,var(--border)_55%,transparent)_1px,transparent_1px)] bg-size-[calc(100%/6)_100%] shadow-[inset_-1px_0_0_var(--border)]`;function Qx({timeWindow:e,grid:t,label:n,trailing:r}){return(0,U.jsxs)(`div`,{"aria-hidden":!0,className:`${t} h-6 border-b`,children:[(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n}),(0,U.jsx)(`div`,{className:`relative h-full text-[11px] text-muted-foreground tabular-nums`,children:ma(e,Xx).map((e,t)=>(0,U.jsx)(`span`,{className:J(`absolute top-1`,t===0?``:t===Xx?`-translate-x-full text-foreground`:`-translate-x-1/2`),style:{left:`${t/Xx*100}%`},children:e},t))}),r!==void 0&&(0,U.jsx)(`span`,{className:`text-right text-xs text-muted-foreground`,children:r})]})}function $x({label:e,children:t}){return(0,U.jsx)(`div`,{role:`img`,"aria-label":e,className:`relative h-full ${Zx} before:absolute before:inset-x-0 before:top-1/2 before:border-t before:border-dashed before:border-border`,children:t})}function eS(e,{fromMs:t,toMs:n},r){let i=n-t,a=t=>r&&t===e.length-1;return e.map((e,r)=>({fromMs:Math.max(e.fromMs,t),toMs:a(r)?n:Math.min(e.toMs,n),now:a(r)})).filter(e=>e.toMs>e.fromMs).map(e=>({...e,left:(e.fromMs-t)/i,width:(e.toMs-e.fromMs)/i}))}var tS=Object.defineProperty,nS=(e,t)=>tS(e,`name`,{value:t,configurable:!0}),rS=!!(typeof window<`u`&&window.document&&window.document.createElement);function iS(e,t,{checkForDefaultPrevented:n=!0}={}){return nS(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}nS(iS,`composeEventHandlers`);function aS(e){if(!rS)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}nS(aS,`getOwnerWindow`);function oS(e){if(!rS)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}nS(oS,`getOwnerDocument`);function sS(e,t=!1){let{activeElement:n}=oS(e);if(!n?.nodeName)return null;if(cS(n)&&n.contentDocument)return sS(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=oS(n).getElementById(e);if(t)return t}}return n}nS(sS,`getActiveElement`);function cS(e){return e.tagName===`IFRAME`}nS(cS,`isFrame`);var lS=Object.defineProperty,uS=(e,t)=>lS(e,`name`,{value:t,configurable:!0});function dS(e,t){let n=S.createContext(t);n.displayName=e+`Context`;let r=uS(e=>{let{children:t,...r}=e,i=S.useMemo(()=>r,Object.values(r));return(0,U.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=S.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return uS(i,`useContext`),[r,i]}uS(dS,`createContext`);function fS(e,t=[]){let n=[];function r(t,r){let i=S.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=uS(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=S.useMemo(()=>o,Object.values(o));return(0,U.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=S.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return uS(s,`useContext`),[o,s]}uS(r,`createContext`);let i=uS(()=>{let t=n.map(e=>S.createContext(e));return uS(function(n){let r=n?.[e]||t;return S.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,pS(i,...t)]}uS(fS,`createContextScope`);function pS(...e){let t=e[0];if(e.length===1)return t;let n=uS(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return uS(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}uS(pS,`composeContextScopes`);var mS=Object.defineProperty,hS=(e,t)=>mS(e,`name`,{value:t,configurable:!0}),gS=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=ko(`Primitive.${t}`),r=S.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,U.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function _S(e,t){e&&el.flushSync(()=>e.dispatchEvent(t))}hS(_S,`dispatchDiscreteCustomEvent`);var vS=Object.defineProperty,yS=(e,t)=>vS(e,`name`,{value:t,configurable:!0}),bS=S.useInsertionEffect;function xS(e){let t=S.useRef(e);return typeof bS==`function`?bS(()=>{t.current=e}):Fc(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}yS(xS,`useCallbackRef`);var SS=Object.defineProperty,CS=(e,t)=>SS(e,`name`,{value:t,configurable:!0}),wS=`dismissableLayer.update`,TS=`dismissableLayer.pointerDownOutside`,ES=`dismissableLayer.focusOutside`,DS,OS=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),kS=S.forwardRef(CS(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=S.useContext(OS),[d,f]=S.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=S.useState({}),h=Eo(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,C=S.useRef(!1),w=MS(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),T=NS(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?y===g.length-1:!1,D=xS(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return S.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(DS=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),PS(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=DS))}},[d,p,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),PS())},[d,u]),S.useEffect(()=>{let e=CS(()=>m({}),`handleUpdate`);return document.addEventListener(wS,e),()=>document.removeEventListener(wS,e)},[]),(0,U.jsx)(gS.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:iS(e.onFocusCapture,T.onFocusCapture),onBlurCapture:iS(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:iS(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function AS(){let e=S.useContext(OS),[t,n]=S.useState(null);return S.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}CS(AS,`useDismissableLayerSurface`);var jS=CS(()=>!0,`IS_TRUE`);function MS(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=jS}=t,s=xS(e),c=S.useRef(!1),l=S.useRef(!1),u=S.useRef(new Map),d=S.useRef(()=>{});return S.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}CS(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}CS(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}CS(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}CS(p,`handleInteractionBubble`);let m=CS(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||FS(TS,s,p,{discrete:!0})};if(CS(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:CS(()=>c.current=!0,`onPointerDownCapture`)}}CS(MS,`usePointerDownOutside`);function NS(e,t=globalThis?.document){let n=xS(e),r=S.useRef(!1);return S.useEffect(()=>{let e=CS(e=>{e.target&&!r.current&&FS(ES,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:CS(()=>r.current=!0,`onFocusCapture`),onBlurCapture:CS(()=>r.current=!1,`onBlurCapture`)}}CS(NS,`useFocusOutside`);function PS(){let e=new CustomEvent(wS);document.dispatchEvent(e)}CS(PS,`dispatchUpdate`);function FS(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?_S(i,a):i.dispatchEvent(a)}CS(FS,`handleAndDispatchCustomEvent`);var IS=Object.defineProperty,LS=(e,t)=>IS(e,`name`,{value:t,configurable:!0}),RS=S.createContext(null);function zS({registry:e,children:t}){return e?(0,U.jsx)(RS.Provider,{value:e,children:t}):t}LS(zS,`FocusScopeBranchProvider`);function BS(){let[e,t]=S.useState([]);return{nodes:e,registry:S.useMemo(()=>({add:LS(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:LS(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}LS(BS,`useFocusScopeBranchRegistry`);function VS(e){let t=S.useContext(RS);S.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}LS(VS,`useFocusScopeBranch`);function HS(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(JS(r,{select:t}),document.activeElement!==n)return}LS(HS,`focusFirst`);function US(e){let t=WS(e);return[GS(t,e),GS(t.reverse(),e)]}LS(US,`getTabbableEdges`);function WS(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:LS(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}LS(WS,`getTabbableCandidates`);function GS(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):KS(r,{upTo:t})))return r}LS(GS,`findVisible`);function KS(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}LS(KS,`isHidden`);function qS(e){return e.tagName===`INPUT`&&typeof e.select==`function`}LS(qS,`isSelectableInput`);function JS(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&qS(e)&&t&&e.select()}}LS(JS,`focus`);function YS(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=XS(e,t),e.unshift(t)},remove(t){e=XS(e,t),e[0]?.resume()}}}LS(YS,`createFocusScopesStack`);function XS(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}LS(XS,`arrayRemove`);function ZS(e){return e.filter(e=>e.tagName!==`A`)}LS(ZS,`removeLinks`);var QS=Object.defineProperty,$S=S.forwardRef(((e,t)=>QS(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,U.jsx)(gS.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,U.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),eC=Object.defineProperty,tC=(e,t)=>eC(e,`name`,{value:t,configurable:!0});function nC(e){let[t,n]=S.useState(void 0);return Fc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}tC(nC,`useSize`);var rC=Object.defineProperty,iC=(e,t)=>rC(e,`name`,{value:t,configurable:!0}),aC={Partial:`partial`,Always:`always`},oC={Optimized:`optimized`,Always:`always`},sC=`Popper`,[cC,lC]=fS(sC),[uC,dC]=cC(sC),fC=iC(e=>{let{__scopePopper:t,children:n}=e,[r,i]=S.useState(null),[a,o]=S.useState(void 0);return(0,U.jsx)(uC,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),pC=`PopperAnchor`,mC=S.forwardRef(iC(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=dC(pC,n),o=S.useRef(null),s=a.onAnchorChange,c=Eo(t,S.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=S.useRef(null);S.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&wC(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(gS.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),hC=`PopperContent`,[gC,_C]=cC(hC),vC=S.forwardRef(iC(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=aC.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=oC.Optimized,onPlaced:m,...h}=e,g=dC(hC,n),[_,v]=S.useState(null),y=Eo(t,v),[b,x]=S.useState(null),C=nC(b),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(SC),altBoundary:k},{refs:ee,floatingStyles:te,placement:j,isPositioned:M,middlewareData:N}=lb({strategy:`fixed`,placement:E,whileElementsMounted:iC((...e)=>Yy(...e,{animationFrame:p===oC.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[db({mainAxis:i+T,alignmentAxis:o}),c&&fb({mainAxis:!0,crossAxis:!1,...d===aC.Partial?{limiter:pb()}:{},...A}),c&&mb({...A}),hb({...A,apply:iC(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&_b({element:b,padding:s}),CC({arrowWidth:w,arrowHeight:T}),f&&gb(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),P=g.setPlacementState;Fc(()=>(P(j),()=>{P(void 0)}),[j,P]);let[ne,F]=wC(j),re=xS(m);Fc(()=>{M&&re?.()},[M,re]);let ie=N.arrow?.x,ae=N.arrow?.y,oe=N.arrow?.centerOffset!==0,[se,ce]=S.useState();return Fc(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:M?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(gC,{scope:n,placedSide:ne,placedAlign:F,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,U.jsx)(gS.div,{"data-side":ne,"data-align":F,...h,ref:y,style:{...h.style,animation:M?h.style?.animation:`none`}})})})},`PopperContent`)),yC=`PopperArrow`,bC={top:`bottom`,right:`left`,bottom:`top`,left:`right`},xC=S.forwardRef(iC(function(e,t){let{__scopePopper:n,...r}=e,i=_C(yC,n),a=bC[i.placedSide];return(0,U.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,U.jsx)($S,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function SC(e){return e!==null}iC(SC,`isNotNull`);var CC=iC(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=wC(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function wC(e){let[t,n=`center`]=e.split(`-`);return[t,n]}iC(wC,`getSideAndAlignFromPlacement`);var TC=Object.defineProperty,EC=S.forwardRef(((e,t)=>TC(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=S.useState(!1);Fc(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?el.createPortal((0,U.jsx)(gS.div,{...r,ref:t}),o):null},`Portal`)),DC=Object.defineProperty,OC=(e,t)=>DC(e,`name`,{value:t,configurable:!0});function kC(e,t){return S.useReducer((e,n)=>t[e][n]??e,e)}OC(kC,`useStateMachine`);var AC=OC(e=>{let{present:t,children:n}=e,r=jC(t),i=typeof n==`function`?n({present:r.isPresent}):S.Children.only(n),a=NC(r.ref,FC(i));return typeof n==`function`||r.isPresent?S.cloneElement(i,{ref:a}):null},`Presence`);function jC(e){let[t,n]=S.useState(),r=S.useRef(null),i=S.useRef(e),a=S.useRef(`none`),o=S.useRef(void 0),[s,c]=kC(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return S.useEffect(()=>{s===`mounted`?(a.current=o.current??PC(r.current),o.current=void 0):a.current=`none`},[s]),Fc(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=PC(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Fc(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=OC(a=>{let o=PC(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=OC(e=>{e.target===t&&(a.current=PC(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:S.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=PC(t)}else r.current=null;n(e)},[])}}OC(jC,`usePresence`);function MC(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}OC(MC,`setRef`);function NC(...e){let t=S.useRef(e);return t.current=e,S.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=MC(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():MC(n[e],null)}}},[])}OC(NC,`useStableComposedRefs`);function PC(e){return e?.animationName||`none`}OC(PC,`getAnimationName`);function FC(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}OC(FC,`getElementRef`);var IC=Object.defineProperty,LC=(e,t)=>IC(e,`name`,{value:t,configurable:!0}),RC=S.useInsertionEffect||Fc;function zC({prop:e,defaultProp:t,onChange:n=LC(()=>{},`onChange`),caller:r}){let[i,a,o]=BC({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,S.useCallback(t=>{if(s){let n=VC(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}LC(zC,`useControllableState`);function BC({defaultProp:e,onChange:t}){let[n,r]=S.useState(e),i=S.useRef(n),a=S.useRef(t);return RC(()=>{a.current=t},[t]),S.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}LC(BC,`useUncontrolledState`);function VC(e){return typeof e==`function`}LC(VC,`isFunction`);var HC=Symbol(`RADIX:SYNC_STATE`);function UC(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Gc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=S.useReducer((t,n)=>{if(n.type===HC)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=S.useRef(p);S.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=S.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return S.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:HC,state:i})},[i,d.state,c]),[h,f]}LC(UC,`useControllableStateReducer`);var WC=Object.defineProperty,GC=(e,t)=>WC(e,`name`,{value:t,configurable:!0}),KC=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),qC=S.forwardRef(GC(function(e,t){return(0,U.jsx)(gS.span,{...e,ref:t,style:{...KC,...e.style}})},`VisuallyHidden`)),JC=Object.defineProperty,YC=(e,t)=>JC(e,`name`,{value:t,configurable:!0}),[XC,ZC]=fS(`Tooltip`,[lC]),QC=lC(),$C=`TooltipProvider`,ew=700,tw=`tooltip.open`,[nw,rw]=XC($C),iw=YC(e=>{let{__scopeTooltip:t,delayDuration:n=ew,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=S.useRef(!0),s=S.useRef(!1),c=S.useRef(0);return S.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,U.jsx)(nw,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:S.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:S.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:S.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),aw=`Tooltip`,[ow,sw]=XC(aw),cw=YC(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=rw(aw,e.__scopeTooltip),l=QC(t),[u,d]=S.useState(null),[f,p]=S.useState(void 0),m=Bc(),h=S.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=S.useRef(!1),[y,b]=zC({prop:r,defaultProp:i??!1,onChange:YC(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tw))):c.onClose(),a?.(e)},`onChange`),caller:aw}),x=S.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),C=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),w=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),T=S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);S.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,U.jsx)(fC,{...l,children:(0,U.jsx)(ow,{scope:t,contentId:E,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:S.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:S.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),lw=`TooltipTrigger`,uw=S.forwardRef(YC(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=sw(lw,n),o=rw(lw,n),s=QC(n),c=Eo(t,S.useRef(null),a.onTriggerChange),l=S.useRef(!1),u=S.useRef(!1),d=S.useCallback(()=>l.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,U.jsx)(mC,{asChild:!0,...s,children:(0,U.jsx)(gS.button,{"aria-describedby":a.open?Dw(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:iS(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:iS(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:iS(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:iS(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:iS(e.onBlur,a.onClose),onClick:iS(e.onClick,a.onClose)})})},`TooltipTrigger`)),dw=`TooltipPortal`,[fw,pw]=XC(dw,{forceMount:void 0}),mw=YC(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=sw(dw,t);return(0,U.jsx)(fw,{scope:t,forceMount:n,children:(0,U.jsx)(AC,{present:n||a.open,children:(0,U.jsx)(EC,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),hw=`TooltipContent`,gw=S.forwardRef(YC(function(e,t){let n=pw(hw,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=sw(hw,e.__scopeTooltip);return(0,U.jsx)(AC,{present:r||o.open,children:o.disableHoverableContent?(0,U.jsx)(yw,{side:i,...a,ref:t}):(0,U.jsx)(_w,{side:i,...a,ref:t})})},`TooltipContent`)),_w=S.forwardRef(YC(function(e,t){let n=sw(hw,e.__scopeTooltip),r=rw(hw,e.__scopeTooltip),i=S.useRef(null),a=Eo(t,i),[o,s]=S.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=S.useCallback(()=>{s(null),d(!1)},[d]),p=S.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Sw(r,xw(r,n.getBoundingClientRect())),a=Cw(t.getBoundingClientRect()),o=Tw([...i,...a]);s(o),d(!0)},[d]);return S.useEffect(()=>()=>f(),[f]),S.useEffect(()=>{if(c&&u){let e=YC(e=>p(e,u),`handleTriggerLeave`),t=YC(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),S.useEffect(()=>{if(o){let e=YC(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!ww(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,U.jsx)(yw,{...e,ref:a})},`TooltipContentHoverable`)),vw=Mo(`TooltipContent`),yw=S.forwardRef(YC(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=sw(hw,n),u=QC(n),{onClose:d}=l,[f,p]=S.useState(null),m=Eo(t,p);VS(f),S.useEffect(()=>(document.addEventListener(tw,d),()=>document.removeEventListener(tw,d)),[d]),S.useEffect(()=>{if(l.trigger){let e=YC(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return Fc(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,U.jsx)(kS,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,U.jsxs)(vC,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,U.jsx)(vw,{children:r}),i?(0,U.jsx)(qC,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),bw=S.forwardRef(YC(function(e,t){let{__scopeTooltip:n,...r}=e,i=QC(n);return(0,U.jsx)(xC,{...i,...r,ref:t})},`TooltipArrow`));function xw(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}YC(xw,`getExitSideFromRect`);function Sw(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}YC(Sw,`getPaddedExitPoints`);function Cw(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}YC(Cw,`getPointsFromRect`);function ww(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}YC(ww,`isPointInPolygon`);function Tw(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Ew(t)}YC(Tw,`getHull`);function Ew(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}YC(Ew,`getHullPresorted`);function Dw(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}YC(Dw,`concatAriaDescribedby`);function Ow({delayDuration:e=0,...t}){return(0,U.jsx)(iw,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function kw(e){return(0,U.jsx)(Ow,{children:(0,U.jsx)(cw,{"data-slot":`tooltip`,...e})})}function Aw(e){return(0,U.jsx)(uw,{"data-slot":`tooltip-trigger`,...e})}function jw({className:e,sideOffset:t=0,children:n,...r}){return(0,U.jsx)(mw,{children:(0,U.jsxs)(gw,{"data-slot":`tooltip-content`,sideOffset:t,className:J(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,e),...r,children:[n,(0,U.jsx)(bw,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}var Mw=10,Nw=`grid grid-cols-[minmax(0,210px)_1fr_minmax(0,128px)] items-center gap-6`;function Pw({actor:e,history:t,requests:n,failed:r,timeWindow:i}){let[a,o]=(0,S.useState)(!1),s=e&&Ip(e.instances),c=t&&Fw(t),l=a?s:s?.slice(0,Mw);return(0,U.jsx)(Tx,{title:`Residency`,aside:(0,U.jsx)(Iw,{}),busy:!l&&!r,className:`pb-3`,children:r?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5`,children:[(0,U.jsx)(Qx,{timeWindow:i,grid:Nw,label:`Instance`,trailing:`Time live`}),l&&c?l.map(e=>(0,U.jsx)(Lw,{instance:e,periods:c.get(e.actorId)??[],requests:n&&n.filter(t=>t.actorId===e.actorId),timeWindow:i},e.actorId)):(0,U.jsx)(Hw,{})]}),s&&(0,U.jsx)(Yx,{shown:l?.length??0,total:s.length,noun:`instance`,expandLabel:`Show All Instances`,expanded:a,onToggle:()=>o(!a)})]})})}function Fw({periods:e}){let t=new Map;for(let n of e)n.status===`live`&&t.set(n.actorId,[...t.get(n.actorId)??[],n]);return t}function Iw(){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-success`}),`Live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`w-4 border-t border-dashed border-muted-foreground/60`}),`Dormant`]})]})}function Lw({instance:e,periods:t,requests:n,timeWindow:r}){let i=e.status===`live`,a=eS(t,r,i&&r.live),o=Rw(a);return(0,U.jsxs)(Tn,{to:Pp(e.actorId),className:`${Nw} h-11.5 border-b border-border/50 transition-colors outline-none last:border-b-0 hover:bg-muted/40 focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2.5`,children:[(0,U.jsx)(`span`,{"aria-hidden":!0,className:J(`size-2 shrink-0 rounded-full`,i?`bg-success`:`border border-muted-foreground/50`)}),(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-[13px] font-medium`,children:e.actorId}),(0,U.jsx)(`span`,{className:`mt-0.5 block truncate text-[11px] text-muted-foreground tabular-nums`,children:zw(i,t,e,r.fromMs)})]})]}),(0,U.jsx)(Bw,{segments:a,requests:n,label:`${e.actorId}: ${o?`live ${ea(o)}`:`dormant`}, ${pa(r)}`}),(0,U.jsx)(`span`,{className:J(`text-right text-[13px] tabular-nums`,o?`text-foreground/85`:`text-muted-foreground`),children:ea(o)})]})}function Rw(e){return e.reduce((e,t)=>e+t.toMs-t.fromMs,0)}function zw(e,t,n,r){if(e){let e=t.at(-1)?.fromMs;return e&&e>r?`Woke ${Vi(e)}`:`Live`}let i=t.at(-1)?.toMs??n.lastActiveAtMs;return i?`Slept ${Vi(i)}`:`Dormant`}function Bw({segments:e,requests:t,label:n}){return(0,U.jsx)($x,{label:n,children:e.map(e=>(0,U.jsx)(Vw,{segment:e,requests:t},e.left))})}function Vw({segment:e,requests:t}){let n=t&&Up(t,e);return(0,U.jsxs)(kw,{children:[(0,U.jsx)(Aw,{asChild:!0,children:(0,U.jsx)(`span`,{className:J(`absolute top-1/2 h-2.5 -translate-y-1/2 rounded-full bg-success shadow-[0_0_12px_color-mix(in_oklab,var(--success)_20%,transparent)] before:absolute before:-inset-x-1.5 before:-inset-y-2`,e.now&&`rounded-r-[1px] after:absolute after:top-0.75 after:right-1 after:size-1 after:rounded-full after:bg-background`),style:{left:`${e.left*100}%`,width:`${e.width*100}%`}})}),(0,U.jsxs)(jw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`font-medium`,children:Ki(e.fromMs,e.toMs)}),(0,U.jsxs)(`div`,{className:`mt-1 opacity-80`,children:[`Active `,ea(e.toMs-e.fromMs),` · `,n?$i(n.length,`request`):`requests unavailable`]})]})]})}function Hw(){return Array.from({length:4},(e,t)=>(0,U.jsxs)(`div`,{className:`${Nw} h-11.5 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,U.jsx)($,{className:`size-2 rounded-full`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-3.5 w-32`}),(0,U.jsx)($,{className:`mt-1.5 h-2.5 w-16`})]})]}),(0,U.jsx)($,{className:`h-2.5 rounded-full`,style:{width:`${70-t*15}%`}}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-12`})]},t))}var Uw=300,Ww=64,Gw=8;function Kw({values:e,color:t,label:n,describePoint:r}){let i=(0,S.useId)(),[a,o]=(0,S.useState)(null),s=Yw(e),c=s.map(({x:e,y:t},n)=>`${n?`L`:`M`}${e.toFixed(1)},${t.toFixed(1)}`).join(` `),l=a===null?void 0:s[a];return(0,U.jsxs)(`div`,{className:`relative mt-auto h-16 w-full`,children:[(0,U.jsxs)(`svg`,{viewBox:`0 0 ${Uw} ${Ww}`,preserveAspectRatio:`none`,role:`img`,"aria-label":n,className:`block h-full w-full overflow-visible`,children:[(0,U.jsx)(`defs`,{children:(0,U.jsxs)(`linearGradient`,{id:i,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,U.jsx)(`stop`,{offset:`0`,style:{stopColor:t,stopOpacity:.16}}),(0,U.jsx)(`stop`,{offset:`1`,style:{stopColor:t,stopOpacity:0}})]})}),(0,U.jsx)(`line`,{x1:`0`,y1:63.5,x2:Uw,y2:63.5,className:`stroke-border`,vectorEffect:`non-scaling-stroke`}),(0,U.jsx)(`path`,{d:`${c} L${Uw},${Ww} L0,${Ww} Z`,fill:`url(#${i})`}),(0,U.jsx)(`path`,{d:c,fill:`none`,style:{stroke:t},strokeWidth:1.75,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`}),l&&(0,U.jsx)(`line`,{x1:l.x,x2:l.x,y1:0,y2:Ww,className:`stroke-muted-foreground/50`,strokeDasharray:`2 2`,vectorEffect:`non-scaling-stroke`})]}),l&&(0,U.jsx)(qw,{point:l,color:t}),r&&s.map((e,t)=>(0,U.jsx)(Jw,{style:Xw(t,s.length),point:r(t),onOpenChange:e=>o(n=>e?t:n===t?null:n)},t))]})}function qw({point:e,color:t}){return(0,U.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute size-2 -translate-1/2 rounded-full border-2 border-background`,style:{left:`${e.x/Uw*100}%`,top:`${e.y/Ww*100}%`,backgroundColor:t}})}function Jw({style:e,point:t,onOpenChange:n}){return(0,U.jsxs)(kw,{onOpenChange:n,children:[(0,U.jsx)(Aw,{asChild:!0,children:(0,U.jsx)(`span`,{className:`absolute inset-y-0`,style:e})}),(0,U.jsxs)(jw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`opacity-80`,children:t.at}),(0,U.jsx)(`div`,{className:`font-medium`,children:t.value})]})]})}function Yw(e){let t=Math.min(...e),n=Math.max(...e)-t||1,r=Uw/Math.max(e.length-1,1);return e.map((e,i)=>({x:i*r,y:Gw+(1-(e-t)/n)*40}))}function Xw(e,t){let n=t>1?e/(t-1):.5,r=.5/Math.max(t-1,1),i=Math.max(0,n-r),a=Math.min(1,n+r);return{left:`${i*100}%`,width:`${(a-i)*100}%`}}function Zw({label:e,window:t,value:n,unit:r,busy:i,series:a,axis:o,color:s,chartLabel:c,describePoint:l,children:u}){return(0,U.jsxs)(Wx,{label:e,aside:(0,U.jsx)(`span`,{className:`shrink-0 text-xs font-normal tabular-nums`,children:t}),value:n,unit:i?(0,U.jsx)($,{className:`h-3.5 w-9`}):r,busy:i,children:[(0,U.jsx)(`div`,{className:`mt-2 flex flex-wrap items-center gap-x-4.5 gap-y-1 text-[13px] text-muted-foreground tabular-nums`,children:u}),i?(0,U.jsx)(Qw,{ticks:o.length}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Kw,{values:a,color:s,label:c,describePoint:l}),(0,U.jsx)(`div`,{className:`mt-1.5 flex justify-between text-xs text-muted-foreground tabular-nums`,children:o.map(e=>(0,U.jsx)(`span`,{children:e},e))})]})]})}function Qw({ticks:e}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-auto h-16 w-full rounded-sm`}),(0,U.jsx)(`div`,{className:`mt-1.5 flex h-4 items-center justify-between`,children:Array.from({length:e},(e,t)=>(0,U.jsx)($,{className:`h-3 w-9`},t))})]})}function $w({failed:e}){return e?(0,U.jsx)(`span`,{children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`h-3.5 w-20`}),(0,U.jsx)($,{className:`h-3.5 w-28`})]})}function eT({label:e,value:t,suffix:n}){return(0,U.jsxs)(`span`,{children:[e,` `,(0,U.jsx)(`b`,{className:`font-bold text-foreground`,children:t}),n&&` ${n}`]})}function tT({label:e,window:t,pick:n,color:r,chartLabel:i,requests:a,failed:o,timeWindow:s}){let c=a&&zp(a,s,n),l=!c&&!o,u=c?Zi(c.average):l?(0,U.jsx)($,{className:`h-11 w-20`}):`—`,d=c?.series??Array(_a(s)).fill(0);return(0,U.jsx)(Zw,{label:e,window:t,value:u,unit:`ms`,busy:l,series:d,axis:ma(s,2),color:r,chartLabel:i,describePoint:e=>({at:ha(s,e),value:Qi(d[e]??0)}),children:c?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eT,{label:`p95`,value:Qi(c.p95)}),(0,U.jsx)(eT,{label:`Max`,value:Qi(c.max)})]}):(0,U.jsx)($w,{failed:o})})}function nT(){let{actorName:e=``}=mt(),{actorTypes:t,isError:n}=Aa(),r=wa(),{requests:i,isError:a}=Ep(e),{residency:o,isError:s}=Mp(e,r),c=t?.actors.find(t=>t.actorName===e)??null;return(0,U.jsxs)(`section`,{"aria-labelledby":`actor-type-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(rT,{actorName:e,actor:c,loading:!t&&!n}),t&&!c?(0,U.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`No actor type named `,e,` is deployed.`]}):(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-3`,children:[(0,U.jsx)(Kx,{summary:c&&Fp(c),failed:n}),(0,U.jsx)(tT,{label:`Avg Queue Time`,window:pa(r),pick:Lp,color:`var(--chart-1)`,chartLabel:`Average queue time, ${pa(r)}`,requests:i,failed:a,timeWindow:r}),(0,U.jsx)(tT,{label:`Avg Request Latency`,window:`excl. queue`,pick:Rp,color:`var(--chart-2)`,chartLabel:`Average request latency, ${pa(r)}`,requests:i,failed:a,timeWindow:r})]}),(0,U.jsx)(Ax,{actor:c,requests:i,failed:n,now:r.toMs}),(0,U.jsx)(Pw,{actor:c,history:o,requests:i,failed:n||s,timeWindow:r})]})]})}function rT({actorName:e,actor:t,loading:n}){return(0,U.jsx)(wx,{titleId:`actor-type-heading`,title:e,back:{to:`..`,label:`Overview`},meta:t?`Actor type · ${$i(t.instances.length,`instance`)}`:n?(0,U.jsx)($,{className:`h-3.5 w-40`}):`Actor type`,aside:(0,U.jsx)(Sx,{})})}function iT({requests:e,failed:t,timeWindow:n,color:r}){let i=e&&aT(e,n),a=!i&&!t,o=i?Ji(i.current):a?(0,U.jsx)($,{className:`h-11 w-28`}):`—`,s=pa(n),c=i?.series??Array(_a(n)).fill(0);return(0,U.jsx)(Zw,{label:`Requests / Second`,window:s,value:o,unit:`req/s`,busy:a,series:c,axis:ma(n,2),color:r,chartLabel:i?`Requests per second, ${s}, peaking at ${Ji(i.peak)}`:`Requests per second, ${s}`,describePoint:e=>({at:ha(n,e),value:`${Ji(c[e]??0)} req/s`}),children:i?(0,U.jsx)(oT,{...i}):(0,U.jsx)($w,{failed:t})})}function aT(e,t){let n=Bp(e,t),r=Math.max(...n);return{current:n.at(-1)??0,average:qp(n),peak:r,peakAt:Vi(ga(t,n.indexOf(r))),series:n}}function oT({average:e,peak:t,peakAt:n}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eT,{label:`Avg`,value:Ji(e)}),(0,U.jsx)(eT,{label:`Peak`,value:Ji(t),suffix:`at ${n}`})]})}function sT(e,t){let n=e.openedAtMs??e.lastSeenMs;return n===null?null:{fromMs:n,toMs:e.closedAtMs??(t?1/0:e.lastSeenMs??n)}}var cT=10,lT=`grid grid-cols-[minmax(0,150px)_1fr] items-center gap-6`;function uT({instance:e,sessions:t,livePeriods:n,requests:r,failed:i,timeWindow:a}){let[o,s]=(0,S.useState)(!1),c=e&&t&&dT(t,e,a),l=o?c:c?.slice(0,cT);return(0,U.jsx)(Tx,{title:`WebSocket Connections`,aside:(0,U.jsx)(fT,{closed:c?.some(e=>!e.open)??!1}),busy:!l&&!i,className:`pb-3`,children:i?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5`,children:[(0,U.jsx)(Qx,{timeWindow:a,grid:lT}),e&&c&&l&&n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(pT,{instance:e,periods:n,requests:r,timeWindow:a}),l.map(e=>(0,U.jsx)(mT,{row:e,requests:r,timeWindow:a},e.session.connectionId)),!c.length&&(0,U.jsxs)(`p`,{className:`pb-2 text-[13px] text-muted-foreground`,children:[`No connections, `,pa(a),`.`]})]}):(0,U.jsx)(gT,{})]}),c&&c.length>cT&&(0,U.jsx)(Yx,{shown:l?.length??0,total:c.length,noun:`connection`,expandLabel:`Show All Connections`,expanded:o,onToggle:()=>s(!o)})]})})}function dT(e,t,n){let r=new Set(t.connections.map(e=>e.id));return e.flatMap(e=>{let t=r.has(e.connectionId),i=sT(e,t),[a]=i?eS([i],n,t&&n.live):[];return i&&a?[{session:e,open:t,span:i,segment:a}]:[]}).sort((e,t)=>e.span.fromMs-t.span.fromMs)}function fT({closed:e}){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-1.25 w-4 rounded-full bg-success`}),`Instance live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-chart-2`}),`Open connection`]}),e&&(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-chart-2/55`}),`Closed`]})]})}function pT({instance:e,periods:t,requests:n,timeWindow:r}){let i=e.status===`live`,a=eS(t,r,i&&r.live),o=Rw(a);return(0,U.jsxs)(`div`,{className:`${lT} mt-3 mb-4.5 h-10.5 overflow-hidden rounded-lg border border-border/70 bg-background/60`,children:[(0,U.jsxs)(`div`,{className:`pl-3`,children:[(0,U.jsx)(`b`,{className:`block text-[13px] font-medium`,children:`Residency`}),i&&(0,U.jsxs)(`span`,{className:`mt-0.5 block text-[11px] text-muted-foreground tabular-nums`,children:[(0,U.jsx)(`span`,{className:`font-medium text-success`,children:`Live`}),` · `,ea(o)]})]}),(0,U.jsx)(Bw,{segments:a,requests:n,label:`Residency: live ${ea(o)}, ${pa(r)}`})]})}function mT({row:{session:e,open:t,span:n,segment:r},requests:i,timeWindow:a}){let o=i?Wp(i,e.connectionId,r):null,s=o?.messages??e.messages,c=o?.failures??e.failures,l=!t&&c>0;return(0,U.jsxs)(`div`,{className:`${lT} h-11 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-[13px] font-medium`,children:e.connectionId}),(0,U.jsxs)(`span`,{className:J(`mt-0.5 block truncate text-[11px] text-muted-foreground tabular-nums`,l&&`text-danger`),children:[t?`${$i(s,`message`)} · ${ea(a.toMs-n.fromMs)}`:`Closed ${Vi(n.toMs)}`,l&&` · ${$i(c,`failure`)}`]})]}),(0,U.jsx)($x,{label:`${e.connectionId}: ${t?`open`:`closed`}, ${Ki(r.fromMs,r.toMs)}`,children:(0,U.jsx)(hT,{messages:s,failures:c,segment:r,open:t,failed:l})})]})}function hT({messages:e,failures:t,segment:n,open:r,failed:i}){return(0,U.jsxs)(kw,{children:[(0,U.jsx)(Aw,{asChild:!0,children:(0,U.jsx)(`span`,{className:J(`absolute top-1/2 h-2.5 min-w-1 -translate-y-1/2 rounded-full before:absolute before:-inset-x-1.5 before:-inset-y-2`,r?`bg-chart-2 shadow-[0_0_12px_color-mix(in_oklab,var(--chart-2)_20%,transparent)]`:`bg-chart-2/55`,n.now&&`rounded-r-[1px] after:absolute after:top-0.75 after:right-1 after:size-1 after:rounded-full after:bg-background`,!r&&`after:absolute after:-top-0.75 after:right-0 after:h-4 after:w-0.5 after:rounded-[1px]`,!r&&(i?`after:bg-danger`:`after:bg-chart-2`)),style:{left:`${n.left*100}%`,width:`${n.width*100}%`}})}),(0,U.jsxs)(jw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`font-medium`,children:Ki(n.fromMs,n.toMs)}),(0,U.jsxs)(`div`,{className:`mt-1 opacity-80`,children:[$i(e,`message`),` · `,$i(t,`failure`)]})]})]})}function gT(){return Array.from({length:4},(e,t)=>(0,U.jsxs)(`div`,{className:`${lT} h-11 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-3.5 w-24`}),(0,U.jsx)($,{className:`mt-1.5 h-2.5 w-14`})]}),(0,U.jsx)($,{className:`h-2.5 rounded-full`,style:{width:`${60-t*12}%`,marginLeft:`${t*10}%`}})]},t))}function _T(e,t){let[n,r]=(0,S.useState)(e);return(0,S.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}var vT=e=>Sr(e?e(0,null):null)[0],yT=Promise.resolve(),bT=Kr(ti,e=>(t,n,r)=>{let i=(0,S.useRef)(!1),{cache:a,initialSize:o=1,revalidateAll:s=!1,persistSize:c=!1,revalidateFirstPage:l=!0,revalidateOnMount:u=!1,parallel:d=!1}=r,[,,,f]=Hn.get(Ar),p;try{p=vT(t),p&&=Lr+p}catch{}let[m,h,g]=tr(a,p),_=(0,S.useCallback)(()=>B(m()._l)?o:m()._l,[a,p,o]);(0,zn.useSyncExternalStore)((0,S.useCallback)(e=>p?g(p,()=>{e()}):()=>{},[a,p]),_,_);let v=(0,S.useCallback)(()=>{let e=m()._l;return B(e)?o:e},[p,o]),y=(0,S.useRef)(v());mr(()=>{if(!i.current){i.current=!0;return}p&&h({_l:c?y.current:v()})},[p,a]);let b=u&&!i.current,x=e(p,async e=>{let i=m()._i,o=m()._r,c=Hn.get(a),u=c[8],p=()=>c[8]!==u;h({_r:void 0});let g=[],_=v(),[y]=tr(a,e),x=y().data,S=[],C=null;for(let e=0;e<_;++e){let[c,u]=Sr(t(e,d?null:C));if(!c)break;let[m,h]=tr(a,c),_=m().data,v=s||i||B(_)||l&&!e&&!B(x)||b||x&&!B(x[e])&&!r.compare(x[e],_);if(n&&(typeof o==`function`?o(_,u):v)){let t=async()=>{if(!(c in f))_=await n(u);else{let e=f[c];delete f[c],_=await e}p()||h({data:_,_k:u}),g[e]=_};d?S.push(t):await t()}else g[e]=_;d||(C=_)}return d&&await Promise.all(S.map(e=>e())),p()||h({_i:void 0}),g},r),C=(0,S.useCallback)(function(e,t){let n=typeof t==`boolean`?{revalidate:t}:t||{},r=n.revalidate!==!1;return p?(r&&(B(e)?h({_i:!0,_r:n.revalidate}):h({_i:!1,_r:n.revalidate})),arguments.length?x.mutate(e,{...n,revalidate:r}):x.mutate()):yT},[p,a]),w=(0,S.useCallback)(e=>{if(!p)return yT;let[,n]=tr(a,p),r;if(Gn(e)?r=e(v()):typeof e==`number`&&(r=e),typeof r!=`number`)return yT;n({_l:r}),y.current=r;let i=[],[o]=tr(a,p),s=null;for(let e=0;e<r;++e){let[n]=Sr(t(e,s)),[r]=tr(a,n),c=n?r().data:void 0;if(B(c))return C(o().data);i.push(c),s=c}return C(i)},[p,a,C,v]);return{size:v(),setSize:w,mutate:C,get data(){return x.data},get error(){return x.error},get isValidating(){return x.isValidating},get isLoading(){return x.isLoading}}});function xT(e,t,n){let r=new EventSource(`${e}/logs/events?${yi(t)}`,{withCredentials:!0});return r.addEventListener(`logs`,e=>n(JSON.parse(e.data).records)),()=>r.close()}var ST=[`debug`,`info`,`warn`,`error`],CT=1e3,wT=[1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,10800,21600,43200,86400].map(e=>e*CT),TT=60,ET=[`message`,`msg`,`event`],DT=6;function OT(e){return wT.find(t=>e/t<=TT)??wT.at(-1)}function kT({fromMs:e,toMs:t},n){let r=Math.floor(e/n)*n;return{fromMs:r,toMs:Math.max(Math.ceil(t/n)*n,r+n)}}function AT({buckets:e}){let t={debug:0,info:0,warn:0,error:0};for(let n of e)for(let e of ST)t[e]+=n[e];return t}function jT(e,t){return ST.slice(t?ST.indexOf(t):0).reduce((t,n)=>t+e[n],0)}function MT(e){let t=e.split(`
|
|
54
|
-
`);return{firstLine:t[0]??``,moreLines:t.length-1,json:FT(e)}}function NT(e){if(Array.isArray(e))return{headline:`${e.length} items`,fields:[]};let t=ET.find(t=>typeof e[t]==`string`),n=Object.entries(e).filter(([e])=>e!==t).slice(0,DT).map(([e,t])=>[e,IT(t)]);return{headline:t&&e[t],fields:n}}function PT(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(e)?e.slice(0,8):e.length>14?`${e.slice(0,4)}…${e.slice(-8)}`:e}function FT(e){let t=e.trim();if(t.startsWith(`{`)||t.startsWith(`[`))try{let e=JSON.parse(t);return typeof e==`object`&&e?e:void 0}catch{return}}function IT(e){if(Array.isArray(e))return`[…]`;if(typeof e==`object`&&e)return`{…}`;let t=JSON.stringify(e);return t.length>40?`${t.slice(0,39)}…`:t}var LT=5e3,RT=2e3;function zT(e,t,n){let r=BT(e,t,n),i=VT(e,t.live,n),{data:a}=HT(e,t,n),o=r.data;return{lines:o?UT([...i??[],...o.flatMap(e=>e.records)]):null,hasOlder:!!o?.at(-1)?.nextCursor,loadingOlder:!!(o&&r.size>o.length),loadOlder:()=>r.setSize(e=>e+1),histogram:a,isError:!o&&!!r.error}}function BT(e,t,n){let r=new vi(e);return bT((r,i)=>i&&!i.nextCursor?null:[...di(e,n),...wi(t),r===0?null:i.nextCursor],e=>r.listLogs(n,Ti(t),e.at(-1)),{revalidateFirstPage:!1,revalidateOnFocus:!1})}function VT(e,t,n){let{data:r}=ii(t?pi(e,n):null,(t,{next:r})=>xT(e,n,e=>r(null,t=>[...e,...t??[]].slice(0,RT))));return r}function HT(e,t,n){let r=new vi(e),i=OT(t.toMs-t.fromMs);return ti([...fi(e,n),...wi(t),i],()=>r.getLogHistogram(n,kT(Ti(t),i),i),{refreshInterval:t.live?LT:0,keepPreviousData:!0})}function UT(e){return[...new Map(e.map(e=>[e.logId,e])).values()].sort((e,t)=>t.timestampMs-e.timestampMs||(e.logId<t.logId?1:-1))}var WT={debug:`bg-muted-foreground/25`,info:`bg-muted-foreground/55`,warn:`bg-warning`,error:`bg-danger`},GT=[2,4,6,10],KT=6;function qT({histogram:e,level:t,live:n,onZoom:r}){let[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(null);if(!e)return(0,U.jsx)($,{className:`mt-4 mb-3.5 h-[122px] w-full rounded-sm`});let{buckets:c,fromMs:l,bucketMs:u}=e,d=JT(Math.max(...c.map(e=>jT(e,null)),1)),f=e=>{let t=e.currentTarget.getBoundingClientRect();return Math.min(c.length-1,Math.max(0,Math.floor((e.clientX-t.left)/t.width*c.length)))};return(0,U.jsxs)(`div`,{className:`mt-4 border-b pb-3.5`,children:[(0,U.jsxs)(`div`,{className:`relative pt-4`,children:[(0,U.jsx)(YT,{scale:d}),(0,U.jsxs)(`div`,{role:`img`,"aria-label":`Log lines per ${ea(u)}; drag across the chart to zoom into a time range`,className:`relative ml-[42px] h-24 cursor-crosshair touch-none select-none`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),s({from:f(e),to:f(e)})},onPointerMove:e=>{a(f(e)),o&&s({...o,to:f(e)})},onPointerUp:e=>{let t=f(e);s(null),o&&o.from!==t&&r({fromMs:l+Math.min(o.from,t)*u,toMs:l+(Math.max(o.from,t)+1)*u})},onPointerLeave:()=>a(null),children:[(0,U.jsx)(`div`,{className:`absolute inset-0 flex items-end gap-0.5`,children:c.map((e,n)=>(0,U.jsx)(XT,{counts:e,scale:d,level:t,hovered:n===i},n))}),o&&(0,U.jsx)(ZT,{drag:o,buckets:c.length}),i!==null&&!o&&jT(c[i],null)>0&&(0,U.jsx)(QT,{index:i,histogram:e})]})]}),(0,U.jsx)($T,{histogram:e,live:n})]})}function JT(e){for(let t=1;;t*=10){let n=GT.find(n=>n*t>=e);if(n)return n*t}}function YT({scale:e}){return(0,U.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-x-0 top-4 h-24`,children:[e,e/2,0].map((e,t)=>(0,U.jsx)(`div`,{className:`absolute inset-x-0 border-t border-dashed border-border/80`,style:{top:`${t*50}%`},children:(0,U.jsx)(`span`,{className:`absolute bottom-0.5 left-0 text-[11px] leading-none text-muted-foreground tabular-nums`,children:V(e)})},t))})}function XT({counts:e,scale:t,level:n,hovered:r}){let i=n?ST.indexOf(n):0;return jT(e,null)?(0,U.jsx)(`span`,{className:J(`flex h-full flex-1 flex-col-reverse rounded-[1px]`,r&&`outline outline-offset-1 outline-foreground`),children:ST.map((n,r)=>e[n]?(0,U.jsx)(`span`,{className:J(`block w-full last:rounded-t-[1px]`,WT[n],r<i&&`opacity-25`),style:{height:`${e[n]/t*100}%`}},n):null)}):(0,U.jsx)(`span`,{className:`h-px flex-1 bg-border/60`})}function ZT({drag:e,buckets:t}){let n=Math.min(e.from,e.to),r=Math.abs(e.to-e.from)+1;return(0,U.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 rounded-sm bg-foreground/10 ring-1 ring-foreground/40`,style:{left:`${n/t*100}%`,width:`${r/t*100}%`}})}function QT({index:e,histogram:{buckets:t,fromMs:n,bucketMs:r}}){let i=t[e],a=n+e*r,o=r<6e4?Hi:Vi,s=e>=t.length/2;return(0,U.jsxs)(`div`,{className:`pointer-events-none absolute top-1 z-10 rounded-lg border bg-card px-3 py-2 text-xs whitespace-nowrap text-muted-foreground shadow-(--shadow-popover)`,style:s?{right:`calc(${100-e/t.length*100}% + 8px)`}:{left:`calc(${(e+1)/t.length*100}% + 8px)`},children:[(0,U.jsxs)(`b`,{className:`mb-1 block font-medium text-foreground tabular-nums`,children:[o(a),` – `,o(a+r),` · `,$i(jT(i,null),`line`)]}),(0,U.jsx)(`span`,{className:`flex gap-3.5 tabular-nums`,children:[...ST].reverse().map(e=>(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`i`,{className:J(`size-1.5 rounded-full`,WT[e])}),V(i[e]),` `,e]},e))})]})}function $T({histogram:{fromMs:e,bucketMs:t,buckets:n},live:r}){let i=t*n.length;return(0,U.jsx)(`div`,{"aria-hidden":!0,className:`mt-1.5 ml-[42px] flex justify-between text-[11px] text-muted-foreground tabular-nums`,children:Array.from({length:7},(t,n)=>(0,U.jsx)(`span`,{children:r&&n===KT?`Now`:Wi(e+n/KT*i,i)},n))})}var eE=`grid items-center gap-x-4`,tE=16,nE=240,rE={time:104,level:58,request:104},iE={debug:`border-border/60 text-muted-foreground/70`,info:`text-muted-foreground`,warn:`border-warning/35 bg-warning/10 text-warning`,error:`border-danger/40 bg-danger/15 text-danger`},aE={debug:``,info:``,warn:`shadow-[inset_2px_0_0_color-mix(in_oklab,var(--warning)_75%,transparent)]`,error:`bg-[linear-gradient(90deg,color-mix(in_oklab,var(--danger)_10%,transparent),transparent_70%)] shadow-[inset_2px_0_0_var(--danger)]`},oE=/("(?:\\.|[^"\\])*")(?=\s*:)\s*:|("(?:\\.|[^"\\])*")|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\b(?:true|false|null)\b/gu;function sE({lines:e,failed:t,search:n,filtered:r,onFilterRequest:i,onClearFilters:a,onReachEnd:o,columns:s}){let c=cE(s),[l,u]=(0,S.useState)({all:!1,toggled:new Set});if(t)return(0,U.jsx)(`p`,{className:`py-6 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`});if(!e)return(0,U.jsx)(lE,{layout:c});if(!e.length)return(0,U.jsx)(uE,{filtered:r,onClearFilters:a});let d=e=>l.all!==l.toggled.has(e),f=e.some(e=>d(e.logId)),p=e=>u(({all:t,toggled:n})=>{let r=new Set(n);return r.delete(e)||r.add(e),{all:t,toggled:r}});return(0,U.jsxs)(`div`,{className:`max-h-[640px] overflow-y-auto`,onScroll:e=>{let t=e.currentTarget;o&&t.scrollHeight-t.scrollTop-t.clientHeight<nE&&o()},children:[(0,U.jsxs)(`div`,{className:`${eE} sticky top-0 z-[1] h-7.5 border-b bg-card px-2 text-xs text-muted-foreground`,style:{gridTemplateColumns:c.gridTemplateColumns},children:[(0,U.jsx)(`span`,{children:`Time`}),s.level&&(0,U.jsx)(`span`,{children:`Level`}),s.request&&(0,U.jsx)(`span`,{children:`Request`}),(0,U.jsxs)(`span`,{className:`col-span-2 flex items-center justify-between`,children:[`Message`,(0,U.jsxs)(`button`,{type:`button`,onClick:()=>u({all:!f,toggled:new Set}),className:`flex items-center gap-1 rounded-sm outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:[f?(0,U.jsx)(oo,{className:`size-3.5`}):(0,U.jsx)(co,{className:`size-3.5`}),f?`Collapse all`:`Expand all`]})]})]}),(0,U.jsx)(`ol`,{children:e.map(e=>(0,U.jsx)(dE,{line:e,layout:c,expanded:d(e.logId),onToggle:()=>p(e.logId),search:n,onFilterRequest:i},e.logId))})]})}function cE(e){let t=[rE.time,...e.level?[rE.level]:[],...e.request?[rE.request]:[]];return{columns:e,gridTemplateColumns:`${t.map(e=>`${e}px`).join(` `)} minmax(0,1fr) 16px`,messageOffset:t.reduce((e,t)=>e+t+tE,0)}}function lE({layout:e}){return(0,U.jsx)(`div`,{className:`py-2`,children:Array.from({length:6},(t,n)=>(0,U.jsxs)(`div`,{className:`${eE} h-8.5 px-2`,style:{gridTemplateColumns:e.gridTemplateColumns},children:[(0,U.jsx)($,{className:`h-3.5 w-20`}),e.columns.level&&(0,U.jsx)($,{className:`h-4 w-11`}),e.columns.request&&(0,U.jsx)($,{className:`h-4 w-16`}),(0,U.jsx)($,{className:`h-3.5`,style:{width:`${35+n*23%50}%`}})]},n))})}function uE({filtered:e,onClearFilters:t}){return(0,U.jsx)(`p`,{className:`py-8 text-center text-[13px] text-muted-foreground`,children:e?(0,U.jsxs)(U.Fragment,{children:[`No lines match these filters.`,` `,(0,U.jsx)(`button`,{type:`button`,onClick:t,className:`font-medium text-foreground underline decoration-border underline-offset-3 hover:decoration-foreground`,children:`Clear filters`})]}):`No logs in this time range.`})}function dE({line:e,layout:t,expanded:n,onToggle:r,search:i,onFilterRequest:a}){let o=MT(e.message);return(0,U.jsxs)(`li`,{className:J(`border-b border-border/55 px-2 last:border-b-0`,aE[e.level]),children:[(0,U.jsxs)(`div`,{onClick:r,className:`${eE} min-h-8.5 cursor-pointer text-[12.5px]`,style:{gridTemplateColumns:t.gridTemplateColumns},children:[(0,U.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground tabular-nums`,children:qi(e.timestampMs)}),t.columns.level&&(0,U.jsx)(`span`,{className:J(`justify-self-start rounded-sm border px-1.5 py-px text-[9.5px] font-bold tracking-[0.07em] uppercase`,iE[e.level]),children:e.level}),t.columns.request&&(0,U.jsx)(fE,{requestId:e.requestId,onFilter:a}),(0,U.jsx)(pE,{parsed:o,level:e.level,search:i}),(0,U.jsx)(`button`,{type:`button`,"aria-expanded":n,"aria-label":n?`Collapse line`:`Expand line`,onClick:e=>{e.stopPropagation(),r()},className:`rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:(0,U.jsx)(io,{className:J(`size-3.5 transition-transform`,n&&`rotate-90`)})})]}),n&&(0,U.jsx)(hE,{line:e,parsed:o,indent:t.messageOffset})]})}function fE({requestId:e,onFilter:t}){return e===null?(0,U.jsx)(`span`,{className:`font-mono text-muted-foreground`,title:`Logged outside a request, for example by a timer that fired after its call returned`,children:`—`}):e===`activate`?(0,U.jsx)(`span`,{className:`justify-self-start rounded-sm border border-dashed px-1.5 text-[11px] text-muted-foreground`,title:`Logged by the constructor while the actor was loading`,children:`constructor`}):(0,U.jsx)(`button`,{type:`button`,title:`Show only request ${e}`,onClick:n=>{n.stopPropagation(),t(e)},className:`max-w-full justify-self-start truncate rounded-sm bg-chart-2/12 px-1.5 py-px font-mono text-[11.5px] text-chart-2 outline-none hover:bg-chart-2/22 focus-visible:ring-2 focus-visible:ring-ring`,children:PT(e)})}function pE({parsed:e,level:t,search:n}){return e.json?(0,U.jsx)(mE,{value:e.json,search:n}):(0,U.jsxs)(`span`,{className:J(`flex min-w-0 items-center gap-2 font-mono`,t===`debug`?`text-muted-foreground`:`text-foreground/95`),children:[(0,U.jsx)(`span`,{className:`truncate`,children:yE(e.firstLine,n)}),e.moreLines>0&&(0,U.jsxs)(`span`,{className:`shrink-0 rounded-full border px-2 font-sans text-[11px] text-muted-foreground`,children:[`+`,$i(e.moreLines,`line`)]})]})}function mE({value:e,search:t}){let{headline:n,fields:r}=NT(e);return(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 font-mono`,children:[(0,U.jsx)(`span`,{className:`shrink-0 rounded-sm border border-chart-2/40 px-1 font-sans text-[9px] font-bold tracking-[0.07em] text-chart-2`,children:`JSON`}),(0,U.jsxs)(`span`,{className:`truncate`,children:[n&&(0,U.jsx)(`span`,{className:`mr-2.5 font-medium text-foreground`,children:yE(n,t)}),r.map(([e,n],r)=>(0,U.jsxs)(S.Fragment,{children:[r>0&&(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:` · `}),(0,U.jsxs)(`span`,{className:`text-muted-foreground`,children:[e,` `]}),(0,U.jsx)(`span`,{className:`text-foreground/95`,children:yE(n,t)})]},e))]})]})}function hE({line:e,parsed:t,indent:n}){let r={timestamp:new Date(e.timestampMs).toISOString(),level:e.level,actorName:e.actorName,actorId:e.actorId,requestId:e.requestId,message:t.json??e.message};return(0,U.jsxs)(`div`,{className:`pr-6 pb-4`,style:{paddingLeft:n},children:[(0,U.jsx)(gE,{value:r}),(0,U.jsx)(`div`,{className:`mt-3`,children:(0,U.jsx)(vE,{text:JSON.stringify(r,null,2)})})]})}function gE({value:e}){return(0,U.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-lg border bg-(--code-bg) px-3.5 py-2.5 font-mono text-xs leading-relaxed break-words whitespace-pre-wrap`,children:_E(JSON.stringify(e,null,2))})}function _E(e){let t=[],n=0;for(let r of e.matchAll(oE)){let[i,a,o]=r;t.push(e.slice(n,r.index),(0,U.jsx)(`span`,{className:a?`text-(--tk-plain)`:o?`text-(--tk-string)`:`text-(--tk-type)`,children:a??i},r.index)),a&&t.push(i.slice(a.length)),n=r.index+i.length}return t.push(e.slice(n)),t}function vE({text:e}){let[t,n]=(0,S.useState)(!1);return(0,U.jsxs)(xc,{variant:`outline`,size:`xs`,onClick:()=>void navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1500)}),children:[t?(0,U.jsx)(Qa,{}):(0,U.jsx)(po,{}),t?`Copied`:`Copy JSON`]})}function yE(e,t){if(!t)return e;let n=e.toLowerCase(),r=t.toLowerCase(),i=[],a=0;for(let t=n.indexOf(r);t>=0;t=n.indexOf(r,a))i.push(e.slice(a,t),(0,U.jsx)(`mark`,{className:`rounded-[2px] bg-primary/25 text-foreground shadow-[inset_0_-1px_0_var(--primary)]`,children:e.slice(t,t+r.length)},t)),a=t+r.length;return i.push(e.slice(a)),i}var bE=[{value:`all`,label:`All`},{value:`info`,label:`Info+`},{value:`warn`,label:`Warn+`},{value:`error`,label:`Error`}],xE=`logs`,SE=300,CE={level:!0,request:!1},wE=`durable-actors-observer:log-columns`,TE=[[`level`,`Level`],[`request`,`Request`]];function EE({actorName:e,actorId:t,requests:n,requestId:r,onRequestChange:i,timeWindow:a}){let{baseUrl:o}=Aa(),s=Ta(),[c,l]=(0,S.useState)(`all`),[u,d]=(0,S.useState)(``),[f,p]=AE(),m=_T(u.trim(),SE),h=c===`all`?null:c,g=zT(o,a,{actorName:e,actorId:t,requestId:r,level:h,search:m}),_=new Map(n?.map(e=>[e.requestId,e])),v=()=>{i(null),d(``),l(`all`)};return(0,U.jsxs)(Tx,{id:xE,title:`Logs`,aside:(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,U.jsx)(DE,{value:u,onChange:d}),(0,U.jsx)(OE,{value:c,onChange:l,totals:g.histogram&&AT(g.histogram)}),(0,U.jsx)(kE,{columns:f,onChange:p})]}),busy:!g.lines&&!g.isError,className:`pb-3.5`,children:[r&&(0,U.jsx)(ME,{requestId:r,call:_.get(r),onRemove:()=>i(null),onClearFilters:v}),(0,U.jsx)(qT,{histogram:g.histogram,level:h,live:a.live,onZoom:e=>s({mode:`static`,...e})}),(0,U.jsx)(sE,{lines:g.lines,failed:g.isError,search:m,filtered:!!(r||m||h),onFilterRequest:i,onClearFilters:v,onReachEnd:g.hasOlder&&!g.loadingOlder?g.loadOlder:void 0,columns:f})]})}function DE({value:e,onChange:t}){return(0,U.jsxs)(`label`,{className:`flex h-8 w-64 items-center gap-2 rounded-lg border bg-background/40 px-2.5 text-[12.5px] focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40`,children:[(0,U.jsx)(yo,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,U.jsx)(`input`,{value:e,maxLength:256,placeholder:`Search messages`,"aria-label":`Search log messages`,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t(``)},className:`min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground`}),e&&(0,U.jsx)(`button`,{type:`button`,"aria-label":`Clear search`,onClick:()=>t(``),className:`grid size-4.5 shrink-0 place-items-center rounded-full bg-muted text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(xo,{className:`size-2.5`})})]})}function OE({value:e,onChange:t,totals:n}){return(0,U.jsx)(Ex,{label:`Minimum log level`,value:e,onChange:t,options:bE.map(e=>({...e,icon:(e.value===`warn`||e.value===`error`)&&(0,U.jsx)(`i`,{className:J(`size-1.5 rounded-full`,WT[e.value])}),badge:n&&V(jT(n,e.value===`all`?null:e.value))}))})}function kE({columns:e,onChange:t}){return(0,U.jsxs)(px,{children:[(0,U.jsx)(mx,{asChild:!0,children:(0,U.jsxs)(xc,{variant:`outline`,size:`sm`,className:`h-8 text-xs`,children:[(0,U.jsx)(uo,{}),`Columns`]})}),(0,U.jsx)(hx,{align:`end`,className:`w-44 p-1.5`,children:TE.map(([n,r])=>(0,U.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2.5 rounded-sm px-2 py-1.5 text-[13px] hover:bg-muted`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:e[n],onChange:r=>t({...e,[n]:r.target.checked}),className:`accent-primary`}),r]},n))})]})}function AE(){let[e,t]=(0,S.useState)(jE);return[e,e=>{t(e);try{localStorage.setItem(wE,JSON.stringify(e))}catch{}}]}function jE(){try{return{...CE,...JSON.parse(localStorage.getItem(wE)??`{}`)}}catch{return CE}}function ME({requestId:e,call:t,onRemove:n,onClearFilters:r}){return(0,U.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:`Filtered to`}),(0,U.jsxs)(`span`,{className:`inline-flex h-7 items-center gap-2 rounded-full border border-chart-2/45 bg-chart-2/12 pr-1.5 pl-2.5 text-foreground`,children:[(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`Request`}),(0,U.jsx)(`code`,{title:e,className:`font-mono text-[11.5px] text-chart-2`,children:PT(e)}),t&&(0,U.jsxs)(`span`,{className:`text-muted-foreground`,children:[t.operation,t.outcome!==`completed`&&` · ${t.outcome}`]}),(0,U.jsx)(`button`,{type:`button`,"aria-label":`Remove the request filter`,onClick:n,className:`grid size-4.5 place-items-center rounded-full bg-background/40 text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(xo,{className:`size-2.5`})})]}),(0,U.jsx)(`button`,{type:`button`,onClick:r,className:`text-foreground underline decoration-border underline-offset-3 hover:decoration-foreground`,children:`Clear filters`})]})}function NE({values:e,label:t,highlighted:n,onSelect:r,barLabel:i,className:a}){let o=Math.max(...e,1);return r?(0,U.jsx)(`div`,{role:`group`,"aria-label":t,className:J(`flex items-end gap-0.5`,a),children:e.map((e,t)=>(0,U.jsx)(`button`,{type:`button`,"aria-label":i?.(t),"aria-pressed":t===n,onClick:()=>r(t),className:J(`group relative flex h-full flex-1 items-end rounded-[2px] outline-none focus-visible:ring-2 focus-visible:ring-ring`,t===n&&`after:absolute after:inset-x-0 after:-bottom-1 after:h-0.5 after:rounded-full after:bg-foreground`),children:(0,U.jsx)(PE,{share:e/o,highlighted:t===n})},t))}):(0,U.jsx)(`div`,{role:`img`,"aria-label":t,className:J(`flex items-end gap-1`,a),children:e.map((e,t)=>(0,U.jsx)(PE,{share:e/o,highlighted:t===n},t))})}function PE({share:e,highlighted:t}){return(0,U.jsx)(`span`,{className:J(`block flex-1 rounded-t-[1px]`,e?`bg-muted-foreground/40 group-hover:bg-muted-foreground/70`:`bg-border`,t&&`bg-foreground group-hover:bg-foreground`),style:{height:e?`${e*100}%`:`1px`}})}function FE({className:e,...t}){return(0,U.jsx)(`span`,{"data-slot":`queue-stripes`,className:J(`bg-[repeating-linear-gradient(135deg,var(--chart-1)_0_2px,transparent_2px_4px)] shadow-[inset_0_0_0_1px_color-mix(in_oklab,var(--chart-1)_50%,transparent)]`,e),...t})}var IE={completed:`Completed`,failed:`Failed`,rejected:`Rejected`,rerouted:`Rerouted`,interrupted:`Interrupted`},LE={method:`Method`,websocket:`WebSocket`};function RE({call:e,blocker:t,onShowLogs:n}){let r=e.outcome!==`completed`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(yp,{className:`shrink-0 gap-2 border-b px-5 py-4 pr-14`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(HE,{state:e.hostState}),(0,U.jsx)(`span`,{className:J(`text-xs`,r?`text-danger`:`text-muted-foreground`),children:IE[e.outcome]})]}),(0,U.jsx)(bp,{translate:`no`,className:`truncate text-lg tracking-tight`,children:e.operation}),(0,U.jsxs)(xp,{className:`text-[13px] tabular-nums`,children:[LE[e.kind],` · `,Ui(e.startedAtMs)]})]}),(0,U.jsx)(zE,{call:e,blocker:t,onShowLogs:n})]})}function zE({call:e,blocker:t,onShowLogs:n}){let r=e.queueWaitMs,i=r===null?null:Rp(e),a=r!==null&&e.durationMs>0?r/e.durationMs*100:0;return(0,U.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:[(0,U.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[(0,U.jsx)(VE,{label:`Queue`,ms:r}),(0,U.jsx)(VE,{label:`In actor`,ms:i}),(0,U.jsx)(VE,{label:`Overall`,ms:e.durationMs})]}),(0,U.jsxs)(`div`,{className:`mt-3.5 flex h-2 overflow-hidden rounded-full bg-muted`,"aria-hidden":!0,children:[a>0&&(0,U.jsx)(FE,{style:{width:`${a}%`}}),(0,U.jsx)(`span`,{className:J(`min-w-0.5 flex-1`,e.outcome===`completed`?`bg-foreground`:`bg-danger`)})]}),r===null?(0,U.jsx)(`p`,{className:`mt-2.5 text-xs text-muted-foreground`,children:`Did not begin processing.`}):t&&(0,U.jsxs)(`p`,{className:`mt-2.5 text-xs text-muted-foreground`,children:[`Waited behind`,` `,(0,U.jsx)(`b`,{translate:`no`,className:`font-medium text-foreground`,children:t.operation}),`.`]}),(0,U.jsxs)(`dl`,{className:`mt-5 border-t`,children:[(0,U.jsx)(UE,{label:`Request ID`,value:e.requestId,mono:!0}),(0,U.jsx)(UE,{label:`Routing`,value:Qi(e.routingMs)}),(0,U.jsx)(UE,{label:`Kind`,value:LE[e.kind]}),(0,U.jsx)(UE,{label:`Outcome`,value:IE[e.outcome],danger:e.outcome!==`completed`}),(0,U.jsx)(UE,{label:`Actor`,value:e.actorName,mono:!0}),(0,U.jsx)(UE,{label:`Instance`,value:e.actorId,mono:!0}),(0,U.jsx)(UE,{label:`Host`,value:e.hostId,mono:!0}),(0,U.jsx)(UE,{label:`Session`,value:e.sessionId,mono:!0}),e.connectionId&&(0,U.jsx)(UE,{label:`Connection`,value:e.connectionId,mono:!0})]}),(0,U.jsx)(BE,{onShowLogs:n})]})}function BE({onShowLogs:e}){let t=wp();function n(){t.close(),e()}return(0,U.jsxs)(xc,{variant:`link`,size:`sm`,className:`mt-3 px-0 text-[13px] has-[>svg]:px-0`,onClick:n,children:[`View logs`,(0,U.jsx)(Ja,{"aria-hidden":!0})]})}function VE({label:e,ms:t}){return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(`div`,{className:`mt-1.5 flex items-baseline gap-1.5 text-[22px] leading-none font-medium tracking-tight tabular-nums`,children:t===null?`—`:(0,U.jsxs)(U.Fragment,{children:[Zi(t),(0,U.jsx)(`span`,{className:`text-xs font-medium tracking-normal text-muted-foreground`,children:`ms`})]})})]})}function HE({state:e}){let t=e===`warm`;return(0,U.jsxs)(`span`,{className:J(`inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] font-medium tracking-wide uppercase`,t?`border-success/25 bg-success/15 text-success`:`border-warning/30 bg-warning/15 text-warning`),children:[(0,U.jsx)(`span`,{className:J(`size-1.5 rounded-full`,t?`bg-success`:`bg-warning`)}),t?`Warm`:`Cold`]})}function UE({label:e,value:t,mono:n,danger:r}){return(0,U.jsxs)(`div`,{className:`grid grid-cols-[108px_minmax(0,1fr)] gap-3 border-b border-border/60 py-2.5`,children:[(0,U.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(`dd`,{translate:n?`no`:void 0,className:J(`text-[13px] text-foreground/90`,n&&`font-mono text-xs break-all`,r&&`text-danger`),children:t})]})}var WE=.9,GE=[1,2,5,10,20,50,100,200,500,1e3,2e3,5e3,1e4,3e4,6e4,3e5,9e5,36e5,216e5],KE=[{label:`ms`,ms:1,below:1e3},{label:`s`,ms:1e3,below:6e4},{label:`min`,ms:6e4,below:1/0}],qE=`grid grid-cols-[52px_minmax(0,150px)_1fr_52px_70px_70px] items-center gap-4.5`,JE={completed:`ok`,failed:`failed`,rejected:`rejected`,rerouted:`rerouted`,interrupted:`interrupted`},YE={method:`rpc`,websocket:`ws`};function XE({requests:e,failed:t,timeWindow:n,onShowLogs:r}){let[i,a]=(0,S.useState)(null),o=wp(),s=e&&Hp(e),c=s&&Vp(s,n),l=c&&(i!==null&&i<c.length?i:ZE(c)),u=s&&l!==null?QE(s,n,l):null,d=u?.slice(-40);function f(e,t){if(o.openKey===e.eventId)return o.close();let n=s?uD(e,s):void 0;o.show({key:e.eventId,content:(0,U.jsx)(RE,{call:e,blocker:n,onShowLogs:()=>r(e.requestId)})},t)}return(0,U.jsx)(Tx,{title:`Requests`,aside:(0,U.jsx)($E,{}),busy:!c&&!t,className:`pb-3.5`,children:t?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):c&&l!==null&&u&&d?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eD,{counts:c,selected:l,onSelect:a,timeWindow:n}),(0,U.jsx)(tD,{calls:d,total:u.length,inspectedId:o.openKey,onInspect:f})]}):(0,U.jsx)(mD,{})})}function ZE(e){let t=[...e].reverse().findIndex(e=>e>0);return e.length-1-Math.max(t,0)}function QE(e,t,n){return e.filter(e=>va(t,e.startedAtMs)===n).sort((e,t)=>e.startedAtMs-t.startedAtMs)}function $E(){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(FE,{className:`h-2 w-4 rounded-xs`}),`Queue wait`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-xs bg-foreground`}),`Running`]})]})}function eD({counts:e,selected:t,onSelect:n,timeWindow:r}){let i=e=>r.fromMs+e*r.stepMs,a=Math.min(i(t+1),r.toMs),o=r.stepMs<6e4?Hi:Vi;return(0,U.jsxs)(`div`,{className:`mt-3.5 grid items-end gap-x-6 gap-y-3 border-b pt-3 pb-3.5 md:grid-cols-[282px_1fr]`,children:[(0,U.jsxs)(`div`,{className:`text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`b`,{className:`mb-0.5 block text-[13px] font-medium text-foreground`,children:[`Requests per `,ea(r.stepMs)]}),o(i(t)),` – `,o(a)]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(NE,{values:e,highlighted:t,onSelect:n,label:`Requests over the selected time range; pick a bar to inspect its requests`,barLabel:t=>`${$i(e[t]??0,`request`)} from ${Vi(i(t))}`,className:`h-10`}),(0,U.jsx)(`div`,{"aria-hidden":!0,className:`mt-1.5 flex justify-between text-[11px] text-muted-foreground tabular-nums`,children:ma(r,3).map((e,t)=>(0,U.jsx)(`span`,{children:e},t))})]})]})}function tD({calls:e,total:t,inspectedId:n,onInspect:r}){if(!e.length)return(0,U.jsx)(`p`,{className:`py-6 text-[13px] text-muted-foreground`,children:`No requests in this slice.`});let i=e[0].startedAtMs,a=rD(nD(e)),o=iD(e);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(aD,{scale:a}),(0,U.jsx)(`ol`,{children:o.map(t=>(0,U.jsx)(oD,{row:t,calls:e,origin:i,scale:a,inspectedId:n,onInspect:r},t.key))}),(0,U.jsx)(pD,{calls:e,methods:o.length,total:t})]})}function nD(e){return Math.max(...e.map(e=>e.startedAtMs+e.durationMs))-e[0].startedAtMs}function rD(e){let t=e/WE,n=GE.find(e=>t/e<=6)??GE.at(-1),r=Math.max(n,Math.ceil(t/n)*n);return{spanMs:r,ticks:Array.from({length:r/n+1},(e,t)=>t*n),unit:KE.find(e=>r<e.below)??KE.at(-1)}}function iD(e){let t=new Map;for(let n of e){let e=`${n.kind}:${n.operation}`,r=t.get(e)??{key:e,kind:n.kind,operation:n.operation,calls:[]};r.calls.push(n),t.set(e,r)}return[...t.values()].sort((e,t)=>t.calls.length-e.calls.length||e.calls[0].startedAtMs-t.calls[0].startedAtMs)}function aD({scale:{spanMs:e,ticks:t,unit:n}}){return(0,U.jsxs)(`div`,{"aria-hidden":!0,className:`${qE} h-7.5 border-b text-xs text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:`Kind`}),(0,U.jsx)(`span`,{children:`Method`}),(0,U.jsx)(`div`,{className:`relative h-full text-[11px] tabular-nums`,children:t.map((r,i)=>(0,U.jsx)(`span`,{className:J(`absolute top-2`,i===0?``:i===t.length-1?`-translate-x-full`:`-translate-x-1/2`),style:{left:`${r/e*100}%`},children:i===0?`+0\u00a0${n.label}`:Ji(r/n.ms)},r))}),(0,U.jsx)(`span`,{className:`text-right`,children:`Calls`}),(0,U.jsx)(`span`,{className:`text-right`,children:`Avg wait`}),(0,U.jsx)(`span`,{className:`text-right`,children:`Avg run`})]})}function oD({row:e,calls:t,origin:n,scale:r,inspectedId:i,onInspect:a}){let o=e.calls.some(sD),s=Kp(e.calls,Lp)??0,c=Kp(e.calls,Rp)??0;return(0,U.jsxs)(`li`,{className:`${qE} h-10 border-b border-border/50 text-xs tabular-nums last:border-b-0`,children:[(0,U.jsx)(cD,{kind:e.kind}),(0,U.jsx)(`span`,{translate:`no`,className:J(`truncate text-[13px]`,o?`text-danger`:`text-foreground/90`),children:e.operation}),(0,U.jsx)(lD,{row:e,calls:t,origin:n,scale:r,inspectedId:i,onInspect:a}),(0,U.jsx)(`span`,{className:J(`text-right`,o?`text-danger`:`text-foreground/90`),children:V(e.calls.length)}),(0,U.jsx)(`span`,{className:`text-right text-muted-foreground`,children:Qi(s)}),(0,U.jsx)(`span`,{className:`text-right text-foreground/90`,children:Qi(c)})]})}function sD(e){return e.outcome!==`completed`}function cD({kind:e}){return(0,U.jsx)(`span`,{className:J(`rounded-sm border py-0.5 text-center text-[10px] font-medium tracking-wide uppercase`,e===`websocket`?`border-chart-2/35 text-chart-2`:`text-foreground`),children:YE[e]})}function lD({row:e,calls:t,origin:n,scale:{spanMs:r,ticks:i},inspectedId:a,onInspect:o}){let s=e=>`${e/r*100}%`;return(0,U.jsx)(`div`,{role:`group`,"aria-label":`${e.operation} calls`,className:`relative h-full bg-[linear-gradient(90deg,color-mix(in_oklab,var(--border)_55%,transparent)_1px,transparent_1px)]`,style:{backgroundSize:`${100/(i.length-1)}% 100%`},children:e.calls.map(e=>(0,U.jsx)(dD,{call:e,blocker:uD(e,t),selected:e.eventId===a,onInspect:o,left:s(e.startedAtMs-n),width:s(e.durationMs)},e.eventId))})}function uD(e,t){if(e.queueWaitMs)return t.find(t=>t.eventId!==e.eventId&&t.startedAtMs+(t.queueWaitMs??0)<=e.startedAtMs&&e.startedAtMs<t.startedAtMs+t.durationMs)}function dD({call:e,blocker:t,selected:n,onInspect:r,left:i,width:a}){let o=e.durationMs>0?(e.queueWaitMs??0)/e.durationMs:0,s=sD(e),c=Rp(e)??e.durationMs,l=`${e.operation}, ${e.hostState}${e.queueWaitMs?`, waited ${Qi(e.queueWaitMs)}`:``}, ran ${Qi(c)}${s?`, ${JE[e.outcome]}`:``}`;return(0,U.jsxs)(kw,{children:[(0,U.jsx)(Aw,{asChild:!0,children:(0,U.jsxs)(`button`,{type:`button`,"aria-pressed":n,"aria-label":l,onClick:t=>r(e,t.currentTarget),className:J(`group absolute top-1/2 flex h-3 min-w-0.75 -translate-y-1/2 cursor-pointer border-0 bg-transparent p-0 before:absolute before:-inset-y-2 before:inset-x-0`,n&&`z-10`),style:{left:i,width:a},children:[o>0&&(0,U.jsx)(FE,{className:`h-full rounded-l-[2px]`,style:{width:`${o*100}%`}}),(0,U.jsx)(`span`,{className:J(`h-full min-w-0.75 flex-1 rounded-[2px] outline-offset-2 group-hover:outline-2 group-hover:outline-foreground group-focus-visible:outline-2 group-focus-visible:outline-foreground`,o>0&&`rounded-l-none`,n&&`outline-2 outline-foreground`,s?`bg-danger`:`bg-foreground`)}),s&&(0,U.jsx)(`span`,{className:`absolute top-1/2 left-full ml-2 -translate-y-1/2 text-[11px] whitespace-nowrap text-danger`,children:JE[e.outcome]})]})}),(0,U.jsx)(jw,{className:`tabular-nums`,children:(0,U.jsx)(fD,{call:e,blocker:t})})]})}function fD({call:e,blocker:t}){let n=Rp(e)??e.durationMs;return(0,U.jsxs)(`span`,{children:[(0,U.jsx)(`b`,{className:`font-medium capitalize`,children:e.hostState}),` · `,e.queueWaitMs?(0,U.jsxs)(U.Fragment,{children:[`Waited `,(0,U.jsx)(`b`,{className:`font-medium`,children:Qi(e.queueWaitMs)}),t&&(0,U.jsxs)(U.Fragment,{children:[` `,`behind`,` `,(0,U.jsx)(`b`,{translate:`no`,className:`font-medium`,children:t.operation})]}),` `,`· ran `,(0,U.jsx)(`b`,{className:`font-medium`,children:Qi(n)})]}):(0,U.jsxs)(U.Fragment,{children:[`Ran `,(0,U.jsx)(`b`,{className:`font-medium`,children:Qi(n)})]}),sD(e)&&` · ${JE[e.outcome]}`]})}function pD({calls:e,methods:t,total:n}){let r=e.filter(e=>(e.queueWaitMs??0)>0).length,i=e.filter(sD).length;return(0,U.jsxs)(`div`,{className:`flex justify-between border-t pt-3 text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`span`,{children:[$i(e.length,`call`),` across `,$i(t,`method`),` · `,V(r),` waited in queue`,i>0&&` · ${$i(i,`error`)}`]}),e.length<n&&(0,U.jsxs)(`span`,{children:[`Showing the latest `,V(e.length),` of `,V(n)]})]})}function mD(){return(0,U.jsxs)(`div`,{className:`mt-3.5 pb-1`,children:[(0,U.jsx)($,{className:`h-10 w-full rounded-sm`}),Array.from({length:5},(e,t)=>(0,U.jsxs)(`div`,{className:`${qE} h-10`,children:[(0,U.jsx)($,{className:`h-4`}),(0,U.jsx)($,{className:`h-3.5 w-28`}),(0,U.jsx)($,{className:`h-3 rounded-[2px]`,style:{width:`${20+t*12}%`,marginLeft:`${t*14}%`}}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-6`}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-10`}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-10`})]},t))]})}function hD(){let{actorName:e=``,actorId:t=``}=mt(),{actorTypes:n,isError:r,sessions:i,isSocketsError:a}=Aa(),o=wa(),{requests:s,isError:c}=Dp(e,t),{residency:l,isError:u}=Mp(e,o),d=n?.actors.find(t=>t.actorName===e)?.instances.find(e=>e.actorId===t)??null,f=i?.filter(n=>n.actorName===e&&n.actorId===t)??null,p=l&&(Fw(l).get(t)??[]),[m,h]=(0,S.useState)(null);function g(e){h(e),document.getElementById(xE)?.scrollIntoView({behavior:`smooth`,block:`start`})}return(0,U.jsxs)(`section`,{"aria-labelledby":`instance-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(gD,{actorName:e,actorId:t,instance:d,livePeriods:p,timeWindow:o,loading:!n&&!r}),n&&!d?(0,U.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`No `,e,` instance named `,t,` is deployed.`]}):(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:[(0,U.jsx)(iT,{requests:s,failed:c,timeWindow:o,color:`var(--foreground)`}),(0,U.jsx)(tT,{label:`Avg Queue Wait`,window:pa(o),pick:Lp,color:`var(--chart-1)`,chartLabel:`Average queue wait, ${pa(o)}`,requests:s,failed:c,timeWindow:o}),(0,U.jsx)(tT,{label:`Avg Request Time`,window:`excl. queue`,pick:Rp,color:`var(--foreground)`,chartLabel:`Average request time excluding the queue, ${pa(o)}`,requests:s,failed:c,timeWindow:o})]}),(0,U.jsx)(XE,{requests:s,failed:c,timeWindow:o,onShowLogs:g}),(0,U.jsx)(uT,{instance:d,sessions:f,livePeriods:p,requests:s,failed:r||a||u,timeWindow:o}),(0,U.jsx)(EE,{actorName:e,actorId:t,requests:s,requestId:m,onRequestChange:h,timeWindow:o})]})]})}function gD({actorName:e,actorId:t,instance:n,livePeriods:r,timeWindow:i,loading:a}){let o=n?.status===`live`;return(0,U.jsx)(wx,{titleId:`instance-heading`,title:t,back:{to:`../..`,relative:`path`,label:e},badge:n&&(0,U.jsx)(_D,{live:o}),meta:a?(0,U.jsx)($,{className:`h-3.5 w-64`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{translate:`no`,children:e}),n&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,U.jsx)(`span`,{children:vD(n,r,i)})]})]}),aside:(0,U.jsx)(Sx,{})})}function _D({live:e}){return(0,U.jsx)(Dx,{live:e,className:e?`rounded-full border border-success/25 bg-success/15 py-0.75 pr-2.25 pl-2 text-xs font-medium`:`rounded-full border px-2.25 py-0.75 text-xs font-medium`,children:e?`Live`:`Dormant`})}function vD(e,t,{fromMs:n,toMs:r}){if(e.status!==`live`)return e.lastActiveAtMs?`Last active ${ta(e.lastActiveAtMs,r)}`:`Dormant`;let i=t?.at(-1)?.fromMs;return i===void 0?`Live`:i<=n?`Live for the whole window`:`Live since ${Vi(i)} (${ea(r-i)})`}function yD(){let{actorTypes:e,isError:t}=Aa(),n=e&&bD(e),r=!n&&!t,i=n?V(n.live):r?(0,U.jsx)($,{className:`h-11 w-28`}):`—`;return(0,U.jsx)(Wx,{label:`Active Actors`,value:i,unit:r?(0,U.jsx)($,{className:`h-3.5 w-7`}):`live`,busy:r,children:n?(0,U.jsx)(xD,{...n}):(0,U.jsx)(SD,{failed:t})})}function bD(e){let t=e.actors.flatMap(e=>e.instances);return{live:t.filter(e=>e.status===`live`).length,dormant:t.filter(e=>e.status===`dormant`).length}}function xD({live:e,dormant:t}){let n=e+t,r=n?e/n:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`p`,{className:`mt-2 text-[13px] text-muted-foreground tabular-nums`,children:[V(n),` `,n===1?`actor`:`actors`,` total`]}),(0,U.jsx)(Bx,{liveShare:r,label:`${V(e)} live actors, ${V(t)} dormant actors`,pulse:!0,className:`mt-auto h-10 rounded-sm`}),(0,U.jsx)(Vx,{live:e,dormant:t,showCounts:!0})]})}function SD({failed:e}){return e?(0,U.jsx)(`p`,{className:`mt-2 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-2.5 h-3.5 w-52 max-w-full`}),(0,U.jsx)(Hx,{})]})}function CD(){let{actorTypes:e,isError:t}=Aa(),n=e&&e.actors.map(Fp).sort((e,t)=>t.total-e.total);return(0,U.jsx)(Tx,{title:`Actor Types`,aside:(0,U.jsx)(wD,{}),busy:!n&&!t,className:`pb-2.5`,children:(0,U.jsx)(`div`,{className:`mt-1.5`,children:(0,U.jsx)(TD,{rows:n,failed:t})})})}function wD(){return(0,U.jsxs)(`div`,{className:`flex gap-4 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs bg-success`}),`Live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs bg-border`}),`Dormant`]})]})}function TD({rows:e,failed:t}){if(t)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`});if(!e)return(0,U.jsx)(AD,{});if(!e.length)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`No actor types deployed yet.`});let n=Math.max(...e.map(e=>e.total),1);return(0,U.jsx)(`ul`,{children:e.map(e=>(0,U.jsx)(OD,{row:e,largest:n},e.actorName))})}var ED=`grid items-center gap-x-7 gap-y-3 py-4 md:grid-cols-[190px_1fr_168px]`,DD=`border-t border-border/60 first:border-t-0`;function OD({row:e,largest:t}){let n=e.total?e.live/e.total:0;return(0,U.jsx)(`li`,{className:DD,children:(0,U.jsxs)(Tn,{to:Np(e.actorName),className:`${ED} -mx-3 rounded-lg px-3 tabular-nums transition-colors outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-sm font-medium`,children:e.actorName}),(0,U.jsx)(`span`,{className:`mt-0.75 block text-xs text-muted-foreground`,children:$i(e.total,`instance`)})]}),(0,U.jsx)(kD,{row:e,liveShare:n,width:e.total/t}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-5 text-right`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{className:`block text-lg leading-tight font-bold tracking-tight`,children:V(e.live)}),(0,U.jsxs)(`span`,{className:`mt-0.75 block text-xs text-success`,children:[`live · `,Yi(n)]})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{className:`block text-lg leading-tight font-medium tracking-tight text-foreground/85`,children:V(e.dormant)}),(0,U.jsx)(`span`,{className:`mt-0.75 block text-xs text-muted-foreground`,children:`dormant`})]})]})]})})}function kD({row:e,liveShare:t,width:n}){return(0,U.jsx)(`div`,{className:`relative flex h-5.5 items-center before:absolute before:inset-x-0 before:top-1/2 before:h-px before:bg-border/60`,children:(0,U.jsx)(Bx,{liveShare:t,label:`${V(e.live)} of ${V(e.total)} live, ${Yi(t)}`,className:`h-5.5 min-w-2.5 rounded-[3px]`,style:{width:`${n*100}%`}})})}function AD(){return(0,U.jsx)(`ul`,{children:[100,60,20].map(e=>(0,U.jsxs)(`li`,{className:`${ED} ${DD}`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-4 w-28`}),(0,U.jsx)($,{className:`mt-1.5 h-3 w-20`})]}),(0,U.jsx)($,{className:`h-5.5 rounded-[3px]`,style:{width:`${e}%`}}),(0,U.jsx)($,{className:`ml-auto h-8 w-32`})]},e))})}function jD(){let{requests:e,isRequestsError:t}=Aa(),n=wa(),r=e&&ND(e,n),i=!r&&!t,a=(0,U.jsx)(MD,{total:r?.total,loading:i}),o=pa(n),s=r?.series??Array(_a(n)).fill(0);return(0,U.jsx)(Zw,{label:`Total Requests`,window:o,value:a,unit:`requests`,busy:i,series:s,axis:ma(n,2),color:`var(--chart-1)`,chartLabel:r?`Requests, ${o}, ${V(r.total)} in total`:`Requests, ${o}`,describePoint:e=>({at:ha(n,e),value:$i(s[e]??0,`request`)}),children:r?(0,U.jsx)(PD,{...r}):(0,U.jsx)($w,{failed:t})})}function MD({total:e,loading:t}){return e===void 0?t?(0,U.jsx)($,{className:`h-11 w-28`}):(0,U.jsx)(U.Fragment,{children:`—`}):(0,U.jsx)(U.Fragment,{children:V(e)})}function ND(e,t){let n=Vp(e,t),r=n.reduce((e,t)=>e+t,0),i=Math.max(...n);return{total:r,perSecond:r/((t.toMs-t.fromMs)/1e3),peak:i,peakAt:Vi(ga(t,n.indexOf(i))),series:n}}function PD({perSecond:e,peak:t,peakAt:n}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(eT,{label:`Avg`,value:Ji(e),suffix:`req/s`}),(0,U.jsx)(eT,{label:`Peak`,value:V(t),suffix:`at ${n}`})]})}var FD=36e5;FD/30;var ID=Array(30).fill(0);function LD(e){return[Vi(e-FD),Vi(e-FD/2),`Now`]}function RD({value:e,children:t}){return(0,U.jsx)(`span`,{className:`rounded-sm px-1.5 py-px text-xs font-medium tabular-nums ${e<0?`bg-danger/15 text-danger`:`bg-success/15 text-success`}`,children:t})}function zD(){let{actorTypes:e,sessions:t,isError:n,isSocketsError:r}=Aa(),i=Date.now(),a=n||r,o=e&&t&&BD(e,t,i),s=!o&&!a,c=o?V(o.open):s?(0,U.jsx)($,{className:`h-11 w-28`}):`—`,l=o?.series??ID;return(0,U.jsx)(Zw,{label:`WebSocket Connections`,window:`open now`,value:c,unit:`open`,busy:s,series:l,axis:LD(i),color:`var(--chart-2)`,chartLabel:o?`Open WebSocket connections over the last hour, now ${V(o.open)}`:`Open WebSocket connections over the last hour`,describePoint:e=>({at:Vi(UD(i,e)),value:$i(l[e]??0,`open connection`)}),children:o?(0,U.jsx)(KD,{...o}):(0,U.jsx)($w,{failed:a})})}function BD(e,t,n){let r=e.actors.flatMap(e=>e.instances),i=r.reduce((e,t)=>e+t.connections.length,0),a=r.filter(e=>e.status===`live`).length,o=[...HD(t,VD(e),n).slice(0,-1),i],s=o[0]??0;return{open:i,change:s?(i-s)/s:0,perLiveActor:a?i/a:0,series:o}}function VD(e){return new Set(e.actors.flatMap(e=>e.instances.flatMap(t=>t.connections.map(n=>GD(e.actorName,t.actorId,n.id)))))}function HD(e,t,n){return Array.from({length:30},(r,i)=>e.filter(e=>WD(e,t,UD(n,i))).length)}function UD(e,t){return e-FD+FD/29*t}function WD(e,t,n){let r=sT(e,t.has(GD(e.actorName,e.actorId,e.connectionId)));return r!==null&&r.fromMs<=n&&n<r.toMs}function GD(e,t,n){return JSON.stringify([e,t,n])}function KD({change:e,perLiveActor:t}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(RD,{value:e,children:Xi(e)}),`vs 1\xA0h ago`]}),(0,U.jsx)(eT,{label:`Avg`,value:Ji(t),suffix:`per live actor`})]})}function qD(){return(0,U.jsxs)(`section`,{"aria-labelledby":`overview-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(`header`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:(0,U.jsx)(`h1`,{id:`overview-heading`,className:`text-2xl font-bold tracking-tight`,children:`Overview`})}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-3`,children:[(0,U.jsx)(yD,{}),(0,U.jsx)(jD,{}),(0,U.jsx)(zD,{})]}),(0,U.jsx)(CD,{})]})]})}function JD(){return(0,U.jsx)(Cp,{children:(0,U.jsxs)(zt,{children:[(0,U.jsx)(Lt,{index:!0,element:(0,U.jsx)(qD,{})}),(0,U.jsx)(Lt,{path:`actors/:actorName`,element:(0,U.jsx)(nT,{})}),(0,U.jsx)(Lt,{path:`actors/:actorName/instances/:actorId`,element:(0,U.jsx)(Ca,{initialRange:sa,children:(0,U.jsx)(hD,{})})}),(0,U.jsx)(Lt,{path:`*`,element:(0,U.jsx)(It,{to:`..`,replace:!0})})]})})}function YD(){return(0,U.jsx)(`main`,{className:`min-h-screen px-8 pt-7 pb-8 font-satoshi antialiased`,children:(0,U.jsx)(Ca,{children:(0,U.jsx)(ka,{children:(0,U.jsx)(wn,{children:(0,U.jsx)(JD,{})})})})})}(0,Rn.createRoot)(document.getElementById(`root`)).render((0,U.jsx)(YD,{}));
|
|
53
|
+
){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:active,[data-vaul-handle]:hover{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover:hover) and (pointer:fine){[data-vaul-drawer]{user-select:none}}@media (pointer:fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{from{transform:translate3d(0,var(--initial-transform,100%),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform,100%),0)}}@keyframes slideFromTop{from{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}to{transform:translate3d(0,0,0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform,100%) * -1),0)}}@keyframes slideFromLeft{from{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform,100%) * -1),0,0)}}@keyframes slideFromRight{from{transform:translate3d(var(--initial-transform,100%),0,0)}to{transform:translate3d(0,0,0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform,100%),0,0)}}`);function Sf(){let e=navigator.userAgent;return typeof window<`u`&&(/Firefox/.test(e)&&/Mobile/.test(e)||/FxiOS/.test(e))}function Cf(){return Of(/^Mac/)}function wf(){return Of(/^iPhone/)}function Tf(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Ef(){return Of(/^iPad/)||Cf()&&navigator.maxTouchPoints>1}function Df(){return wf()||Ef()}function Of(e){return typeof window<`u`&&window.navigator!=null?e.test(window.navigator.platform):void 0}var kf=24,Af=typeof window<`u`?S.useLayoutEffect:S.useEffect;function jf(...e){return(...t)=>{for(let n of e)typeof n==`function`&&n(...t)}}var Mf=typeof document<`u`&&window.visualViewport;function Nf(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}function Pf(e){for(Nf(e)&&(e=e.parentElement);e&&!Nf(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}var Ff=new Set([`checkbox`,`radio`,`range`,`color`,`file`,`image`,`button`,`submit`,`reset`]),If=0,Lf;function Rf(e={}){let{isDisabled:t}=e;Af(()=>{if(!t)return If++,If===1&&Df()&&(Lf=zf()),()=>{If--,If===0&&Lf?.()}},[t])}function zf(){let e,t=0,n=n=>{e=Pf(n.target),(e!==document.documentElement||e!==document.body)&&(t=n.changedTouches[0].pageY)},r=n=>{if(!e||e===document.documentElement||e===document.body){n.preventDefault();return}let r=n.changedTouches[0].pageY,i=e.scrollTop,a=e.scrollHeight-e.clientHeight;a!==0&&((i<=0&&r>t||i>=a&&r<t)&&n.preventDefault(),t=r)},i=e=>{let t=e.target;Z(t)&&t!==document.activeElement&&(e.preventDefault(),t.style.transform=`translateY(-2000px)`,t.focus(),requestAnimationFrame(()=>{t.style.transform=``}))},a=e=>{let t=e.target;Z(t)&&(t.style.transform=`translateY(-2000px)`,requestAnimationFrame(()=>{t.style.transform=``,Mf&&(Mf.height<window.innerHeight?requestAnimationFrame(()=>{Hf(t)}):Mf.addEventListener(`resize`,()=>Hf(t),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},s=window.pageXOffset,c=window.pageYOffset,l=jf(Bf(document.documentElement,`paddingRight`,`${window.innerWidth-document.documentElement.clientWidth}px`));window.scrollTo(0,0);let u=jf(Vf(document,`touchstart`,n,{passive:!1,capture:!0}),Vf(document,`touchmove`,r,{passive:!1,capture:!0}),Vf(document,`touchend`,i,{passive:!1,capture:!0}),Vf(document,`focus`,a,!0),Vf(window,`scroll`,o));return()=>{l(),u(),window.scrollTo(s,c)}}function Bf(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Vf(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Hf(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let t=Pf(e);if(t!==document.documentElement&&t!==document.body&&t!==e){let n=t.getBoundingClientRect().top,r=e.getBoundingClientRect().top;e.getBoundingClientRect().bottom>t.getBoundingClientRect().bottom+kf&&(t.scrollTop+=r-n)}e=t.parentElement}}function Z(e){return e instanceof HTMLInputElement&&!Ff.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}function Uf(e,t){typeof e==`function`?e(t):e!=null&&(e.current=t)}function Wf(...e){return t=>e.forEach(e=>Uf(e,t))}function Gf(...e){return S.useCallback(Wf(...e),e)}var Kf=new WeakMap;function qf(e,t,n=!1){if(!e||!(e instanceof HTMLElement))return;let r={};Object.entries(t).forEach(([t,n])=>{if(t.startsWith(`--`)){e.style.setProperty(t,n);return}r[t]=e.style[t],e.style[t]=n}),!n&&Kf.set(e,r)}function Jf(e,t){if(!e||!(e instanceof HTMLElement))return;let n=Kf.get(e);n&&(e.style[t]=n[t])}var Yf=e=>{switch(e){case`top`:case`bottom`:return!0;case`left`:case`right`:return!1;default:return e}};function Xf(e,t){if(!e)return null;let n=window.getComputedStyle(e),r=n.transform||n.webkitTransform||n.mozTransform,i=r.match(/^matrix3d\((.+)\)$/);return i?parseFloat(i[1].split(`, `)[Yf(t)?13:12]):(i=r.match(/^matrix\((.+)\)$/),i?parseFloat(i[1].split(`, `)[Yf(t)?5:4]):null)}function Zf(e){return 8*(Math.log(e+1)-2)}function Qf(e,t){if(!e)return()=>{};let n=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=n}}var $f={DURATION:.5,EASE:[.32,.72,0,1]},ep=.4,tp=.25,np=100,rp=8,ip=16,ap=26,op=`vaul-dragging`;function sp(e){let t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...e)=>t.current==null?void 0:t.current.call(t,...e),[])}function cp({defaultProp:e,onChange:t}){let n=S.useState(e),[r]=n,i=S.useRef(r),a=sp(t);return S.useEffect(()=>{i.current!==r&&(a(r),i.current=r)},[r,i,a]),n}function lp({prop:e,defaultProp:t,onChange:n=()=>{}}){let[r,i]=cp({defaultProp:t,onChange:n}),a=e!==void 0,o=a?e:r,s=sp(n);return[o,S.useCallback(t=>{if(a){let n=typeof t==`function`?t(e):t;n!==e&&s(n)}else i(t)},[a,e,i,s])]}function up({activeSnapPointProp:e,setActiveSnapPointProp:t,snapPoints:n,drawerRef:r,overlayRef:i,fadeFromIndex:a,onSnapPointChange:o,direction:s=`bottom`,container:c,snapToSequentialPoint:l}){let[u,d]=lp({prop:e,defaultProp:n?.[0],onChange:t}),[f,p]=S.useState(typeof window<`u`?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);S.useEffect(()=>{function e(){p({innerWidth:window.innerWidth,innerHeight:window.innerHeight})}return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let m=S.useMemo(()=>u===n?.[n.length-1]||null,[n,u]),h=S.useMemo(()=>n?.findIndex(e=>e===u)??null,[n,u]),g=n&&n.length>0&&(a||a===0)&&!Number.isNaN(a)&&n[a]===u||!n,_=S.useMemo(()=>{let e=c?{width:c.getBoundingClientRect().width,height:c.getBoundingClientRect().height}:typeof window<`u`?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0};return n?.map(t=>{let n=typeof t==`string`,r=0;if(n&&(r=parseInt(t,10)),Yf(s)){let i=n?r:f?t*e.height:0;return f?s===`bottom`?e.height-i:-e.height+i:i}let i=n?r:f?t*e.width:0;return f?s===`right`?e.width-i:-e.width+i:i})??[]},[n,f,c]),v=S.useMemo(()=>h===null?null:_?.[h],[_,h]),y=S.useCallback(e=>{let t=_?.findIndex(t=>t===e)??null;o(t),qf(r.current,{transition:`transform ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,transform:Yf(s)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`}),_&&t!==_.length-1&&a!==void 0&&t!==a&&t<a?qf(i.current,{transition:`opacity ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,opacity:`0`}):qf(i.current,{transition:`opacity ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,opacity:`1`}),d(n?.[Math.max(t,0)])},[r.current,n,_,a,i,d]);S.useEffect(()=>{if(u||e){let t=n?.findIndex(t=>t===e||t===u)??-1;_&&t!==-1&&typeof _[t]==`number`&&y(_[t])}},[u,e,n,_,y]);function b({draggedDistance:e,closeDrawer:t,velocity:r,dismissible:o}){if(a===void 0)return;let c=s===`bottom`||s===`right`?(v??0)-e:(v??0)+e,u=h===a-1,d=h===0,f=e>0;if(u&&qf(i.current,{transition:`opacity ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`}),!l&&r>2&&!f){o?t():y(_[0]);return}if(!l&&r>2&&f&&_&&n){y(_[n.length-1]);return}let p=_?.reduce((e,t)=>typeof e!=`number`||typeof t!=`number`?e:Math.abs(t-c)<Math.abs(e-c)?t:e),g=Yf(s)?window.innerHeight:window.innerWidth;if(r>ep&&Math.abs(e)<g*.4){let e=f?1:-1;if(e>0&&m&&n){y(_[n.length-1]);return}if(d&&e<0&&o&&t(),h===null)return;y(_[h+e]);return}y(p)}function x({draggedDistance:e}){if(v===null)return;let t=s===`bottom`||s===`right`?v-e:v+e;(s===`bottom`||s===`right`)&&t<_[_.length-1]||(s===`top`||s===`left`)&&t>_[_.length-1]||qf(r.current,{transform:Yf(s)?`translate3d(0, ${t}px, 0)`:`translate3d(${t}px, 0, 0)`})}function C(e,t){if(!n||typeof h!=`number`||!_||a===void 0)return null;let r=h===a-1;if(h>=a&&t)return 0;if(r&&!t)return 1;if(!g&&!r)return null;let i=r?h+1:h-1,o=r?_[i]-_[i-1]:_[i+1]-_[i],s=e/Math.abs(o);return r?1-s:s}return{isLastSnapPoint:m,activeSnapPoint:u,shouldFade:g,getPercentageDragged:C,setActiveSnapPoint:d,activeSnapPointIndex:h,onRelease:b,onDrag:x,snapPointsOffset:_}}function dp(){let{direction:e,isOpen:t,shouldScaleBackground:n,setBackgroundColorOnScale:r,noBodyStyles:i}=xf(),a=S.useRef(null),o=(0,S.useMemo)(()=>document.body.style.backgroundColor,[]);function s(){return(window.innerWidth-ap)/window.innerWidth}S.useEffect(()=>{if(t&&n){a.current&&clearTimeout(a.current);let t=document.querySelector(`[data-vaul-drawer-wrapper]`)||document.querySelector(`[vaul-drawer-wrapper]`);if(!t)return;r&&!i&&Qf(document.body,{background:`black`}),Qf(t,{transformOrigin:Yf(e)?`top`:`left`,transitionProperty:`transform, border-radius`,transitionDuration:`${$f.DURATION}s`,transitionTimingFunction:`cubic-bezier(${$f.EASE.join(`,`)})`});let n=Qf(t,{borderRadius:`${rp}px`,overflow:`hidden`,...Yf(e)?{transform:`scale(${s()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${s()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});return()=>{n(),a.current=window.setTimeout(()=>{o?document.body.style.background=o:document.body.style.removeProperty(`background`)},$f.DURATION*1e3)}}},[t,n,o])}var fp=null;function pp({isOpen:e,modal:t,nested:n,hasBeenOpened:r,preventScrollRestoration:i,noBodyStyles:a}){let[o,s]=S.useState(()=>typeof window<`u`?window.location.href:``),c=S.useRef(0),l=S.useCallback(()=>{if(Tf()&&fp===null&&e&&!a){fp={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height,right:`unset`};let{scrollX:e,innerHeight:t}=window;document.body.style.setProperty(`position`,`fixed`,`important`),Object.assign(document.body.style,{top:`${-c.current}px`,left:`${-e}px`,right:`0px`,height:`auto`}),window.setTimeout(()=>window.requestAnimationFrame(()=>{let e=t-window.innerHeight;e&&c.current>=t&&(document.body.style.top=`${-(c.current+e)}px`)}),300)}},[e]),u=S.useCallback(()=>{if(Tf()&&fp!==null&&!a){let e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);Object.assign(document.body.style,fp),window.requestAnimationFrame(()=>{if(i&&o!==window.location.href){s(window.location.href);return}window.scrollTo(t,e)}),fp=null}},[o]);return S.useEffect(()=>{function e(){c.current=window.scrollY}return e(),window.addEventListener(`scroll`,e),()=>{window.removeEventListener(`scroll`,e)}},[]),S.useEffect(()=>{if(t)return()=>{typeof document>`u`||document.querySelector(`[data-vaul-drawer]`)||u()}},[t,u]),S.useEffect(()=>{!n&&r&&(e?(!window.matchMedia(`(display-mode: standalone)`).matches&&l(),t||window.setTimeout(()=>{u()},500)):u())},[e,r,o,t,n,l,u]),{restorePositionSetting:u}}function mp({open:e,onOpenChange:t,children:n,onDrag:r,onRelease:i,snapPoints:a,shouldScaleBackground:o=!1,setBackgroundColorOnScale:s=!0,closeThreshold:c=tp,scrollLockTimeout:l=np,dismissible:u=!0,handleOnly:d=!1,fadeFromIndex:f=a&&a.length-1,activeSnapPoint:p,setActiveSnapPoint:m,fixed:h,modal:g=!0,onClose:_,nested:v,noBodyStyles:y=!1,direction:b=`bottom`,defaultOpen:x=!1,disablePreventScroll:C=!0,snapToSequentialPoint:w=!1,preventScrollRestoration:T=!1,repositionInputs:E=!0,onAnimationEnd:D,container:O,autoFocus:k=!1}){let[A=!1,ee]=lp({defaultProp:x,prop:e,onChange:e=>{t?.(e),!e&&!v&&xe(),setTimeout(()=>{D?.(e)},$f.DURATION*1e3),e&&!g&&typeof window<`u`&&window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`}),e||(document.body.style.pointerEvents=`auto`)}}),[te,j]=S.useState(!1),[M,N]=S.useState(!1),[P,ne]=S.useState(!1),F=S.useRef(null),re=S.useRef(null),ie=S.useRef(null),ae=S.useRef(null),oe=S.useRef(null),se=S.useRef(!1),ce=S.useRef(null),le=S.useRef(0),ue=S.useRef(!1),de=S.useRef(!x),fe=S.useRef(0),I=S.useRef(null),pe=S.useRef(I.current?.getBoundingClientRect().height||0),L=S.useRef(I.current?.getBoundingClientRect().width||0),R=S.useRef(0),{activeSnapPoint:me,activeSnapPointIndex:he,setActiveSnapPoint:ge,onRelease:_e,snapPointsOffset:ve,onDrag:z,shouldFade:ye,getPercentageDragged:be}=up({snapPoints:a,activeSnapPointProp:p,setActiveSnapPointProp:m,drawerRef:I,fadeFromIndex:f,overlayRef:F,onSnapPointChange:S.useCallback(e=>{a&&e===ve.length-1&&(re.current=new Date)},[]),direction:b,container:O,snapToSequentialPoint:w});Rf({isDisabled:!A||M||!g||P||!te||!E||!C});let{restorePositionSetting:xe}=pp({isOpen:A,modal:g,nested:v??!1,hasBeenOpened:te,preventScrollRestoration:T,noBodyStyles:y});function Se(){return(window.innerWidth-ap)/window.innerWidth}function Ce(e){(u||a)&&(!I.current||I.current.contains(e.target))&&(pe.current=I.current?.getBoundingClientRect().height||0,L.current=I.current?.getBoundingClientRect().width||0,N(!0),ie.current=new Date,Df()&&window.addEventListener(`touchend`,()=>se.current=!1,{once:!0}),e.target.setPointerCapture(e.pointerId),le.current=Yf(b)?e.pageY:e.pageX)}function we(e,t){let n=e,r=window.getSelection()?.toString(),i=I.current?Xf(I.current,b):null,a=new Date;if(n.tagName===`SELECT`||n.hasAttribute(`data-vaul-no-drag`)||n.closest(`[data-vaul-no-drag]`))return!1;if(b===`right`||b===`left`)return!0;if(re.current&&a.getTime()-re.current.getTime()<500)return!1;if(i!==null&&(b===`bottom`?i>0:i<0))return!0;if(r&&r.length>0)return!1;if(oe.current&&a.getTime()-oe.current.getTime()<l&&i===0||t)return oe.current=a,!1;for(;n;){if(n.scrollHeight>n.clientHeight){if(n.scrollTop!==0)return oe.current=new Date,!1;if(n.getAttribute(`role`)===`dialog`)return!0}n=n.parentNode}return!0}function Te(e){if(I.current&&M){let t=b===`bottom`||b===`right`?1:-1,n=(le.current-(Yf(b)?e.pageY:e.pageX))*t,i=n>0,s=a&&!u&&!i;if(s&&he===0)return;let c=Math.abs(n),l=document.querySelector(`[data-vaul-drawer-wrapper]`),d=c/(b===`bottom`||b===`top`?pe.current:L.current),p=be(c,i);if(p!==null&&(d=p),s&&d>=1||!se.current&&!we(e.target,i))return;if(I.current.classList.add(op),se.current=!0,qf(I.current,{transition:`none`}),qf(F.current,{transition:`none`}),a&&z({draggedDistance:n}),i&&!a){let e=Zf(n),r=Math.min(e*-1,0)*t;qf(I.current,{transform:Yf(b)?`translate3d(0, ${r}px, 0)`:`translate3d(${r}px, 0, 0)`});return}let m=1-d;if((ye||f&&he===f-1)&&(r?.(e,d),qf(F.current,{opacity:`${m}`,transition:`none`},!0)),l&&F.current&&o){let e=Math.min(Se()+d*(1-Se()),1),t=8-d*8,n=Math.max(0,14-d*14);qf(l,{borderRadius:`${t}px`,transform:Yf(b)?`scale(${e}) translate3d(0, ${n}px, 0)`:`scale(${e}) translate3d(${n}px, 0, 0)`,transition:`none`},!0)}if(!a){let e=c*t;qf(I.current,{transform:Yf(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})}}}S.useEffect(()=>{window.requestAnimationFrame(()=>{de.current=!0})},[]),S.useEffect(()=>{var e;function t(){if(!I.current||!E)return;let e=document.activeElement;if(Z(e)||ue.current){let e=window.visualViewport?.height||0,t=window.innerHeight,n=t-e,r=I.current.getBoundingClientRect().height||0,i=r>t*.8;R.current||=r;let o=I.current.getBoundingClientRect().top;if(Math.abs(fe.current-n)>60&&(ue.current=!ue.current),a&&a.length>0&&ve&&he){let e=ve[he]||0;n+=e}if(fe.current=n,r>e||ue.current){let t=I.current.getBoundingClientRect().height,r=t;t>e&&(r=e-(i?o:ap)),h?I.current.style.height=`${t-Math.max(n,0)}px`:I.current.style.height=`${Math.max(r,e-o)}px`}else Sf()||(I.current.style.height=`${R.current}px`);a&&a.length>0&&!ue.current?I.current.style.bottom=`0px`:I.current.style.bottom=`${Math.max(n,0)}px`}}return(e=window.visualViewport)==null||e.addEventListener(`resize`,t),()=>window.visualViewport?.removeEventListener(`resize`,t)},[he,a,ve]);function Ee(e){Oe(),_?.(),e||ee(!1),setTimeout(()=>{a&&ge(a[0])},$f.DURATION*1e3)}function De(){if(!I.current)return;let e=document.querySelector(`[data-vaul-drawer-wrapper]`),t=Xf(I.current,b);qf(I.current,{transform:`translate3d(0, 0, 0)`,transition:`transform ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`}),qf(F.current,{transition:`opacity ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,opacity:`1`}),o&&t&&t>0&&A&&qf(e,{borderRadius:`${rp}px`,overflow:`hidden`,...Yf(b)?{transform:`scale(${Se()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:`top`}:{transform:`scale(${Se()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:`left`},transitionProperty:`transform, border-radius`,transitionDuration:`${$f.DURATION}s`,transitionTimingFunction:`cubic-bezier(${$f.EASE.join(`,`)})`},!0)}function Oe(){M&&I.current&&(I.current.classList.remove(op),se.current=!1,N(!1),ae.current=new Date)}function ke(e){if(!M||!I.current)return;I.current.classList.remove(op),se.current=!1,N(!1),ae.current=new Date;let t=Xf(I.current,b);if(!e||!we(e.target,!1)||!t||Number.isNaN(t)||ie.current===null)return;let n=ae.current.getTime()-ie.current.getTime(),r=le.current-(Yf(b)?e.pageY:e.pageX),o=Math.abs(r)/n;if(o>.05&&(ne(!0),setTimeout(()=>{ne(!1)},200)),a){_e({draggedDistance:r*(b===`bottom`||b===`right`?1:-1),closeDrawer:Ee,velocity:o,dismissible:u}),i?.(e,!0);return}if(b===`bottom`||b===`right`?r>0:r<0){De(),i?.(e,!0);return}if(o>ep){Ee(),i?.(e,!1);return}let s=Math.min(I.current.getBoundingClientRect().height??0,window.innerHeight),l=Math.min(I.current.getBoundingClientRect().width??0,window.innerWidth);if(Math.abs(t)>=(b===`left`||b===`right`?l:s)*c){Ee(),i?.(e,!1);return}i?.(e,!0),De()}S.useEffect(()=>(A&&(qf(document.documentElement,{scrollBehavior:`auto`}),re.current=new Date),()=>{Jf(document.documentElement,`scrollBehavior`)}),[A]);function Ae(e){let t=e?(window.innerWidth-ip)/window.innerWidth:1,n=e?-16:0;ce.current&&window.clearTimeout(ce.current),qf(I.current,{transition:`transform ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,transform:Yf(b)?`scale(${t}) translate3d(0, ${n}px, 0)`:`scale(${t}) translate3d(${n}px, 0, 0)`}),!e&&I.current&&(ce.current=setTimeout(()=>{let e=Xf(I.current,b);qf(I.current,{transition:`none`,transform:Yf(b)?`translate3d(0, ${e}px, 0)`:`translate3d(${e}px, 0, 0)`})},500))}function je(e,t){if(t<0)return;let n=(window.innerWidth-ip)/window.innerWidth,r=n+t*(1-n),i=-16+t*ip;qf(I.current,{transform:Yf(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`,transition:`none`})}function Me(e,t){let n=Yf(b)?window.innerHeight:window.innerWidth,r=t?(n-ip)/n:1,i=t?-16:0;t&&qf(I.current,{transition:`transform ${$f.DURATION}s cubic-bezier(${$f.EASE.join(`,`)})`,transform:Yf(b)?`scale(${r}) translate3d(0, ${i}px, 0)`:`scale(${r}) translate3d(${i}px, 0, 0)`})}return S.useEffect(()=>{g||window.requestAnimationFrame(()=>{document.body.style.pointerEvents=`auto`})},[g]),S.createElement(Yd,{defaultOpen:x,onOpenChange:e=>{(u||e)&&(e?j(!0):Ee(!0),ee(e))},open:A},S.createElement(bf.Provider,{value:{activeSnapPoint:me,snapPoints:a,setActiveSnapPoint:ge,drawerRef:I,overlayRef:F,onOpenChange:t,onPress:Ce,onRelease:ke,onDrag:Te,dismissible:u,shouldAnimate:de,handleOnly:d,isOpen:A,isDragging:M,shouldFade:ye,closeDrawer:Ee,onNestedDrag:je,onNestedOpenChange:Ae,onNestedRelease:Me,keyboardIsOpen:ue,modal:g,snapPointsOffset:ve,activeSnapPointIndex:he,direction:b,shouldScaleBackground:o,setBackgroundColorOnScale:s,noBodyStyles:y,container:O,autoFocus:k}},n))}var hp=S.forwardRef(function({...e},t){let{overlayRef:n,snapPoints:r,onRelease:i,shouldFade:a,isOpen:o,modal:s,shouldAnimate:c}=xf(),l=Gf(t,n),u=r&&r.length>0;if(!s)return null;let d=S.useCallback(e=>i(e),[i]);return S.createElement(rf,{onMouseUp:d,ref:l,"data-vaul-overlay":``,"data-vaul-snap-points":o&&u?`true`:`false`,"data-vaul-snap-points-overlay":o&&a?`true`:`false`,"data-vaul-animate":c?.current?`true`:`false`,...e})});hp.displayName=`Drawer.Overlay`;var gp=S.forwardRef(function({onPointerDownOutside:e,style:t,onOpenAutoFocus:n,...r},i){let{drawerRef:a,onPress:o,onRelease:s,onDrag:c,keyboardIsOpen:l,snapPointsOffset:u,activeSnapPointIndex:d,modal:f,isOpen:p,direction:m,snapPoints:h,container:g,handleOnly:_,shouldAnimate:v,autoFocus:y}=xf(),[b,x]=S.useState(!1),C=Gf(i,a),w=S.useRef(null),T=S.useRef(null),E=S.useRef(!1),D=h&&h.length>0;dp();let O=(e,t,n=0)=>{if(E.current)return!0;let r=Math.abs(e.y),i=Math.abs(e.x),a=i>r,o=[`bottom`,`right`].includes(t)?1:-1;if(t===`left`||t===`right`){if(!(e.x*o<0)&&i>=0&&i<=n)return a}else if(!(e.y*o<0)&&r>=0&&r<=n)return!a;return E.current=!0,!0};S.useEffect(()=>{D&&window.requestAnimationFrame(()=>{x(!0)})},[]);function k(e){w.current=null,E.current=!1,s(e)}return S.createElement(cf,{"data-vaul-drawer-direction":m,"data-vaul-drawer":``,"data-vaul-delayed-snap-points":b?`true`:`false`,"data-vaul-snap-points":p&&D?`true`:`false`,"data-vaul-custom-container":g?`true`:`false`,"data-vaul-animate":v?.current?`true`:`false`,...r,ref:C,style:u&&u.length>0?{"--snap-point-height":`${u[d??0]}px`,...t}:t,onPointerDown:e=>{_||(r.onPointerDown==null||r.onPointerDown.call(r,e),w.current={x:e.pageX,y:e.pageY},o(e))},onOpenAutoFocus:e=>{n?.(e),y||e.preventDefault()},onPointerDownOutside:t=>{if(e?.(t),!f||t.defaultPrevented){t.preventDefault();return}l.current&&=!1},onFocusOutside:e=>{if(!f){e.preventDefault();return}},onPointerMove:e=>{if(T.current=e,_||(r.onPointerMove==null||r.onPointerMove.call(r,e),!w.current))return;let t=e.pageY-w.current.y,n=e.pageX-w.current.x,i=e.pointerType===`touch`?10:2;O({x:n,y:t},m,i)?c(e):(Math.abs(n)>i||Math.abs(t)>i)&&(w.current=null)},onPointerUp:e=>{r.onPointerUp==null||r.onPointerUp.call(r,e),w.current=null,E.current=!1,s(e)},onPointerOut:e=>{r.onPointerOut==null||r.onPointerOut.call(r,e),k(T.current)},onContextMenu:e=>{r.onContextMenu==null||r.onContextMenu.call(r,e),T.current&&k(T.current)}})});gp.displayName=`Drawer.Content`;var _p=250,vp=120,yp=S.forwardRef(function({preventCycle:e=!1,children:t,...n},r){let{closeDrawer:i,isDragging:a,snapPoints:o,activeSnapPoint:s,setActiveSnapPoint:c,dismissible:l,handleOnly:u,isOpen:d,onPress:f,onDrag:p}=xf(),m=S.useRef(null),h=S.useRef(!1);function g(){if(h.current){y();return}window.setTimeout(()=>{_()},vp)}function _(){if(a||e||h.current){y();return}if(y(),!o||o.length===0){l||i();return}if(s===o[o.length-1]&&l){i();return}let t=o.findIndex(e=>e===s);if(t===-1)return;let n=o[t+1];c(n)}function v(){m.current=window.setTimeout(()=>{h.current=!0},_p)}function y(){m.current&&window.clearTimeout(m.current),h.current=!1}return S.createElement(`div`,{onClick:g,onPointerCancel:y,onPointerDown:e=>{u&&f(e),v()},onPointerMove:e=>{u&&p(e)},ref:r,"data-vaul-drawer-visible":d?`true`:`false`,"data-vaul-handle":``,"aria-hidden":`true`,...n},S.createElement(`span`,{"data-vaul-handle-hitarea":``,"aria-hidden":`true`},t))});yp.displayName=`Drawer.Handle`;function bp({onDrag:e,onOpenChange:t,open:n,...r}){let{onNestedDrag:i,onNestedOpenChange:a,onNestedRelease:o}=xf();if(!i)throw Error(`Drawer.NestedRoot must be placed in another drawer`);return S.createElement(mp,{nested:!0,open:n,onClose:()=>{a(!1)},onDrag:(t,n)=>{i(t,n),e?.(t,n)},onOpenChange:e=>{e&&a(e),t?.(e)},onRelease:o,...r})}function xp(e){let t=xf(),{container:n=t.container,...r}=e;return S.createElement(tf,{container:n,...r})}var Sp={Root:mp,NestedRoot:bp,Content:gp,Overlay:hp,Trigger:Zd,Portal:xp,Handle:yp,Close:_f,Title:pf,Description:hf};function Cp({...e}){return(0,U.jsx)(Sp.Root,{"data-slot":`drawer`,...e})}function wp({...e}){return(0,U.jsx)(Sp.Portal,{"data-slot":`drawer-portal`,...e})}function Tp({...e}){return(0,U.jsx)(Sp.Close,{"data-slot":`drawer-close`,...e})}function Ep({className:e,...t}){return(0,U.jsx)(Sp.Overlay,{"data-slot":`drawer-overlay`,className:J(`fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0`,e),...t})}function Dp({className:e,children:t,container:n,...r}){return(0,U.jsxs)(wp,{container:n,children:[(0,U.jsx)(Ep,{}),(0,U.jsxs)(Sp.Content,{"data-slot":`drawer-content`,className:J(`group/drawer-content fixed z-50 flex h-auto flex-col bg-background`,`data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b`,`data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t`,`data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:h-full data-[vaul-drawer-direction=right]:w-full data-[vaul-drawer-direction=right]:max-w-[440px] data-[vaul-drawer-direction=right]:border-l`,`data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm`,e),...r,children:[(0,U.jsx)(`div`,{className:`mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block`}),t]})]})}function Op({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`drawer-header`,className:J(`flex flex-col gap-1.5 p-4`,e),...t})}function kp({className:e,...t}){return(0,U.jsx)(Sp.Title,{"data-slot":`drawer-title`,className:J(`font-medium text-foreground`,e),...t})}function Ap({className:e,...t}){return(0,U.jsx)(Sp.Description,{"data-slot":`drawer-description`,className:J(`text-sm text-muted-foreground`,e),...t})}var jp=(0,S.createContext)(void 0);function Mp({children:e}){let[t,n]=(0,S.useState)({open:!1,entry:null}),r=(0,S.useRef)(null),{pathname:i}=lt();function a(e,t){r.current=t,n({open:!0,entry:e})}function o(){n(({entry:e})=>({open:!1,entry:e}))}return(0,S.useEffect)(o,[i]),(0,U.jsxs)(jp.Provider,{value:{openKey:t.open?t.entry.key:null,show:a,close:o},children:[e,(0,U.jsx)(Cp,{direction:`right`,autoFocus:!0,open:t.open,onOpenChange:e=>!e&&o(),children:(0,U.jsxs)(Dp,{className:`bg-card font-satoshi text-card-foreground antialiased shadow-(--shadow-dialog) data-[vaul-drawer-direction=right]:w-full`,onCloseAutoFocus:e=>{e.preventDefault(),r.current?.focus({preventScroll:!0})},children:[t.entry?.content,(0,U.jsx)(Tp,{asChild:!0,children:(0,U.jsx)(jc,{className:`absolute top-3 right-3`,variant:`ghost`,size:`icon`,"aria-label":`Close`,children:(0,U.jsx)(jo,{"aria-hidden":!0})})})]})})]})}function Np(){let e=(0,S.useContext)(jp);if(!e)throw Error(`useDrawer must be used within a DrawerProvider`);return e}function Pp(e){return Ip({actorName:e})}function Fp(e,t){return Ip({actorName:e,actorId:t})}function Ip(e){let{baseUrl:t,events:n}=Ba(),r=Ma(),{data:i,error:a,isLoading:o}=Di([...Rn(t),e.actorName,e.actorId,...ba(r)],()=>new Jn(t).collectRequests(xa(r),e),Sa(r.toMs-r.fromMs,e),r.live?n:null);return{requests:i?.filter(e=>e.startedAtMs>=r.fromMs)??null,isLoading:o,isError:!i&&!!a,error:a}}function Lp(e){return(t,n)=>{let r=[...t.periods];for(let t of n)t.type===`instance`&&t.item.actorName===e&&Rp(r,t);return{...t,periods:r}}}function Rp(e,{item:t}){let{actorId:n,status:r,occurredAtMs:i}=t,a=zp(e,n),o=e[a];if(!(o&&i<=o.fromMs)){if(o?.status===r){e[a]={...o,toMs:Math.max(o.toMs,i)};return}o&&(e[a]={...o,toMs:i}),e.push({actorId:n,status:r,fromMs:i,toMs:i})}}function zp(e,t){for(let n=e.length-1;n>=0;n--)if(e[n].actorId===t)return n;return-1}function Bp(e,t){let{baseUrl:n,events:r}=Ba(),{data:i,error:a,isLoading:o}=Di([...zn(n,e),...ba(t)],()=>new Jn(n).listResidency(e,xa(t)),Lp(e),t.live?r:null);return{residency:i??null,isLoading:o,isError:!i&&!!a,error:a}}var Vp=e=>`actors/${encodeURIComponent(e)}`,Hp=e=>`instances/${encodeURIComponent(e)}`;function Up({actorName:e,instances:t}){return{actorName:e,total:t.length,live:t.filter(e=>e.status===`live`).length,dormant:t.filter(e=>e.status===`dormant`).length}}function Wp(e){return[...e].sort((e,t)=>(t.lastActiveAtMs??0)-(e.lastActiveAtMs??0))}var Gp=e=>e.queueWaitMs,Kp=e=>e.durationMs-(e.queueWaitMs??0);function qp(e,t,n){return{average:tm(nm(e,n)),series:rm(e,t,n)}}function Jp(e,t){return Yp(e,t).map(e=>e/(t.stepMs/1e3))}function Yp(e,t){let n=Array(_a(t)).fill(0);for(let r of Xp(e)){let e=va(t,r.startedAtMs);e!==null&&(n[e]+=1)}return n}function Xp(e){return e.filter(e=>e.outcome!==`rerouted`)}function Zp(e,t){return Xp(e).filter(e=>$p(e,t))}function Qp(e,t,n){let r=e.filter(e=>e.kind===`websocket`&&e.connectionId===t&&$p(e,n));return{messages:r.filter(e=>e.operation===`onMessage`).length,failures:r.filter(e=>e.outcome!==`completed`&&e.outcome!==`rerouted`).length}}function $p(e,t){return e.startedAtMs<=t.toMs&&e.startedAtMs+e.durationMs>=t.fromMs}function em(e,t){let n=nm(e,t);return n.length?tm(n):null}function tm(e){return e.length?e.reduce((e,t)=>e+t,0)/e.length:0}function nm(e,t){return e.map(t).filter(e=>e!==null)}function rm(e,t,n){let r=Array.from({length:_a(t)},()=>[]);for(let i of e){let e=va(t,i.startedAtMs),a=n(i);e!==null&&a!==null&&r[e].push(a)}return r.map(tm)}function im(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var am={},om={};function sm(e,t){try{let n=(am[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in om?om[n]:lm(n,n.split(`:`))}catch{if(e in om)return om[e];let t=e?.match(cm);return t?lm(e,t.slice(1)):NaN}}var cm=/([+-]\d\d):?(\d\d)?/;function lm(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return om[e]=n*60+r>0?n*60+r+i:n*60-r-i}var um=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(sm(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),mm(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-sm(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),fm(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},dm=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!dm.test(e))return;let t=e.replace(dm,`$1UTC`);um.prototype[t]&&(e.startsWith(`get`)?um.prototype[e]=function(){return this.internal[t]()}:(um.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),pm(this),+this},um.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),fm(this),+this}))});function fm(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-sm(e.timeZone,e)*60))}function pm(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),mm(e)}function mm(e,t){let n=Array.isArray(t)?hm(t):+e.internal,r=sm(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=sm(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(sm(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=sm(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&gm(e)-n===y*60*1e3&&gm(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=sm(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}fm(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),fm(e))}function hm(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function gm(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-sm(e.timeZone,n)*60)),+n}var _m=class e extends um{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${im(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},vm=365.2425,ym=6048e5,bm=864e5,xm=86400;xm*7,xm*vm/12*3;var Sm=Symbol.for(`constructDateFrom`);function Cm(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Sm in e?e[Sm](t):e instanceof Date?new e.constructor(t):new Date(t)}function wm(e,t){return Cm(t||e,e)}function Tm(e,t,n){let r=wm(e,n?.in);return isNaN(t)?Cm(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function Em(e,t,n){let r=wm(e,n?.in);if(isNaN(t))return Cm(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=Cm(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var Dm={};function Om(){return Dm}function km(e,t){let n=Om(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=wm(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Am(e,t){return km(e,{...t,weekStartsOn:1})}function jm(e,t){let n=wm(e,t?.in),r=n.getFullYear(),i=Cm(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=Am(i),o=Cm(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=Am(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function Mm(e){let t=wm(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function Nm(e,...t){let n=Cm.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function Pm(e,t){let n=wm(e,t?.in);return n.setHours(0,0,0,0),n}function Fm(e,t,n){let[r,i]=Nm(n?.in,e,t),a=Pm(r),o=Pm(i),s=+a-Mm(a),c=+o-Mm(o);return Math.round((s-c)/bm)}function Im(e,t){let n=jm(e,t),r=Cm(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Am(r)}function Lm(e,t,n){return Tm(e,t*7,n)}function Rm(e,t,n){return Em(e,t*12,n)}function zm(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cm.bind(null,e));let t=wm(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),Cm(r,n||NaN)}function Bm(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=Cm.bind(null,e));let t=wm(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),Cm(r,n||NaN)}function Vm(e,t,n){let[r,i]=Nm(n?.in,e,t);return+Pm(r)==+Pm(i)}function Hm(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function Um(e){return!(!Hm(e)&&typeof e!=`number`||isNaN(+wm(e)))}function Wm(e,t,n){let[r,i]=Nm(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function Gm(e,t){let n=wm(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function Km(e,t){let[n,r]=Nm(e,t.start,t.end);return{start:n,end:r}}function qm(e,t){let{start:n,end:r}=Km(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cm(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function Jm(e,t){let n=wm(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Ym(e,t){let n=wm(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function Xm(e,t){let n=wm(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Zm(e,t){let{start:n,end:r}=Km(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(Cm(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function Qm(e,t){let n=Om(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=wm(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function $m(e,t){return Qm(e,{...t,weekStartsOn:1})}var eh={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},th=(e,t,n)=>{let r,i=eh[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function nh(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var rh={date:nh({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:nh({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:nh({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},ih={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},ah=(e,t,n,r)=>ih[e];function oh(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var sh={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:oh({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:oh({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:oh({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:oh({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:oh({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function ch(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?uh(s,e=>e.test(o)):lh(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function lh(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function uh(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function dh(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var fh={code:`en-US`,formatDistance:th,formatLong:rh,formatRelative:ah,localize:sh,match:{ordinalNumber:dh({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ch({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:ch({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:ch({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:ch({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:ch({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function ph(e,t){let n=wm(e,t?.in);return Fm(n,Xm(n))+1}function mh(e,t){let n=wm(e,t?.in),r=+Am(n)-Im(n);return Math.round(r/ym)+1}function hh(e,t){let n=wm(e,t?.in),r=n.getFullYear(),i=Om(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=Cm(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=km(o,t),c=Cm(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=km(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function gh(e,t){let n=Om(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=hh(e,t),a=Cm(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),km(a,t)}function _h(e,t){let n=wm(e,t?.in),r=+km(n,t)-gh(n,t);return Math.round(r/ym)+1}function vh(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var yh={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return vh(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):vh(n+1,2)},d(e,t){return vh(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return vh(e.getHours()%12||12,t.length)},H(e,t){return vh(e.getHours(),t.length)},m(e,t){return vh(e.getMinutes(),t.length)},s(e,t){return vh(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return vh(Math.trunc(r*10**(n-3)),t.length)}},bh={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},xh={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return yh.y(e,t)},Y:function(e,t,n,r){let i=hh(e,r),a=i>0?i:1-i;return t===`YY`?vh(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):vh(a,t.length)},R:function(e,t){return vh(jm(e),t.length)},u:function(e,t){return vh(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return vh(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return vh(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return yh.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return vh(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=_h(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):vh(i,t.length)},I:function(e,t,n){let r=mh(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):vh(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):yh.d(e,t)},D:function(e,t,n){let r=ph(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):vh(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return vh(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return vh(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return vh(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?bh.noon:r===0?bh.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?bh.evening:r>=12?bh.afternoon:r>=4?bh.morning:bh.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return yh.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):yh.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):vh(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):vh(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):yh.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):yh.s(e,t)},S:function(e,t){return yh.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return Ch(r);case`XXXX`:case`XX`:return wh(r);default:return wh(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return Ch(r);case`xxxx`:case`xx`:return wh(r);default:return wh(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+Sh(r,`:`);default:return`GMT`+wh(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+Sh(r,`:`);default:return`GMT`+wh(r,`:`)}},t:function(e,t,n){return vh(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return vh(+e,t.length)}};function Sh(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+vh(a,2)}function Ch(e,t){return e%60==0?(e>0?`-`:`+`)+vh(Math.abs(e)/60,2):wh(e,t)}function wh(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=vh(Math.trunc(r/60),2),a=vh(r%60,2);return n+i+t+a}var Th=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Eh=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Dh={p:Eh,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Th(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,Th(r,t)).replace(`{{time}}`,Eh(i,t))}},Oh=/^D+$/,kh=/^Y+$/,Ah=[`D`,`DD`,`YY`,`YYYY`];function jh(e){return Oh.test(e)}function Mh(e){return kh.test(e)}function Nh(e,t,n){let r=Ph(e,t,n);if(console.warn(r),Ah.includes(e))throw RangeError(r)}function Ph(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Fh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ih=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Lh=/^'([^]*?)'?$/,Rh=/''/g,zh=/[a-zA-Z]/;function Bh(e,t,n){let r=Om(),i=n?.locale??r.locale??fh,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=wm(e,n?.in);if(!Um(s))throw RangeError(`Invalid time value`);let c=t.match(Ih).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Dh[t];return n(e,i.formatLong)}return e}).join(``).match(Fh).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Vh(e)};if(xh[t])return{isToken:!0,value:e};if(t.match(zh))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Mh(a)||!n?.useAdditionalDayOfYearTokens&&jh(a))&&Nh(a,t,String(e));let o=xh[a[0]];return o(s,a,i.localize,l)}).join(``)}function Vh(e){let t=e.match(Lh);return t?t[1].replace(Rh,`'`):e}function Hh(e,t){let n=wm(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=Cm(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Uh(e,t){return wm(e,t?.in).getMonth()}function Wh(e,t){return wm(e,t?.in).getFullYear()}function Gh(e,t){return+wm(e)>+wm(t)}function Kh(e,t){return+wm(e)<+wm(t)}function qh(e,t,n){let[r,i]=Nm(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Jh(e,t,n){let[r,i]=Nm(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Yh(e,t,n){let r=wm(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=Cm(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Hh(o);return r.setMonth(t,Math.min(a,s)),r}function Xh(e,t,n){let r=wm(e,n?.in);return isNaN(+r)?Cm(n?.in||e,NaN):(r.setFullYear(t),r)}var Zh=5,Qh=4;function $h(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?Zh:Qh}function eg(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function tg(e,t){let n=eg(e,t),r=$h(e,t);return t.addDays(n,r*7-1)}var ng={...fh,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Bh(e,t,{locale:fh,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Bh(e,n,{locale:fh,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Bh(e,t,{locale:fh,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Bh(e,n,{locale:fh,...t}),r(e,`cccc`)}}},rg=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?_m.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new _m(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):Tm(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):Em(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):Lm(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):Rm(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):Fm(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):Wm(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):qm(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):Zm(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):tg(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):$m(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Gm(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):Qm(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):Ym(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Bh(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):mh(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Uh(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Wh(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):_h(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Gh(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Kh(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):Hm(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):Vm(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):qh(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Jh(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):zm(e),this.min=e=>this.overrides?.min?this.overrides.min(e):Bm(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Yh(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Xh(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):eg(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):Pm(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):Am(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Jm(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):km(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):Xm(e),this.options={locale:ng,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};rg.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var ig=new rg,ag=class{constructor(e,t,n=ig){this.date=e,this.displayMonth=t,this.outside=!(!t||n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},og=class{constructor(e,t){this.date=e,this.weeks=t}},sg=class{constructor(e,t){this.days=t,this.weekNumber=e}};function cg(e){return S.createElement(`span`,{...e})}function lg(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return S.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&S.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&S.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&S.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&S.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function ug(e){let{day:t,modifiers:n,...r}=e;return S.createElement(`td`,{...r})}function dg(e){let{day:t,modifiers:n,...r}=e,i=S.useRef(null);return S.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),S.createElement(`button`,{ref:i,...r})}var Q;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Q||={});var fg;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(fg||={});var pg;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(pg||={});var mg;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(mg||={});var hg=(0,S.createContext)(void 0);function gg(){let e=(0,S.useContext)(hg);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function _g(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=gg(),s=[i[Q.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return S.createElement(`span`,{"data-disabled":r.disabled,className:i[Q.DropdownRoot],style:o?.[Q.DropdownRoot]},S.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>S.createElement(a.Option,{key:e,value:e,disabled:n},t))),S.createElement(`span`,{className:i[Q.CaptionLabel],style:o?.[Q.CaptionLabel],"aria-hidden":!0},c?.label,S.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Q.Chevron],style:o?.[Q.Chevron]})))}function vg(e){return S.createElement(`div`,{...e})}function yg(e){return S.createElement(`div`,{...e})}function bg(e){let{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement(`div`,{...r},e.children)}function xg(e){let{calendarMonth:t,displayIndex:n,...r}=e;return S.createElement(`div`,{...r})}function Sg(e){return S.createElement(`table`,{...e})}function Cg(e){return S.createElement(`div`,{...e})}function wg(e){let{components:t}=gg();return S.createElement(t.Dropdown,{...e})}function Tg(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=gg(),d=(0,S.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,S.useCallback)(e=>{r&&t?.(e)},[r,t]);return S.createElement(`nav`,{...a},S.createElement(o.PreviousMonthButton,{type:`button`,className:s[Q.PreviousMonthButton],style:c?.[Q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},S.createElement(o.Chevron,{disabled:!r||void 0,className:s[Q.Chevron],style:c?.[Q.Chevron],orientation:`left`})),S.createElement(o.NextMonthButton,{type:`button`,className:s[Q.NextMonthButton],style:c?.[Q.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},S.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Q.Chevron],style:c?.[Q.Chevron]})))}function Eg(e){return S.createElement(`button`,{...e})}function Dg(e){return S.createElement(`option`,{...e})}function Og(e){return S.createElement(`button`,{...e})}function kg(e){let{rootRef:t,...n}=e;return S.createElement(`div`,{...n,ref:t})}function Ag(e){return S.createElement(`select`,{...e})}function jg(e){let{week:t,...n}=e;return S.createElement(`tr`,{...n})}function Mg(e){return S.createElement(`th`,{...e})}function Ng(e){return S.createElement(`thead`,{"aria-hidden":!0},S.createElement(`tr`,{...e}))}function Pg(e){let{week:t,...n}=e;return S.createElement(`th`,{...n})}function Fg(e){return S.createElement(`th`,{...e})}function Ig(e){return S.createElement(`tbody`,{...e})}function Lg(e){let{components:t}=gg();return S.createElement(t.Dropdown,{...e})}var Rg=s({CaptionLabel:()=>cg,Chevron:()=>lg,Day:()=>ug,DayButton:()=>dg,Dropdown:()=>_g,DropdownNav:()=>vg,Footer:()=>yg,Month:()=>bg,MonthCaption:()=>xg,MonthGrid:()=>Sg,Months:()=>Cg,MonthsDropdown:()=>wg,Nav:()=>Tg,NextMonthButton:()=>Eg,Option:()=>Dg,PreviousMonthButton:()=>Og,Root:()=>kg,Select:()=>Ag,Week:()=>jg,WeekNumber:()=>Pg,WeekNumberHeader:()=>Fg,Weekday:()=>Mg,Weekdays:()=>Ng,Weeks:()=>Ig,YearsDropdown:()=>Lg});function zg(e,t,n=!1,r=ig){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function Bg(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function Vg(e){return!!(e&&typeof e==`object`&&`from`in e)}function Hg(e){return!!(e&&typeof e==`object`&&`after`in e)}function Ug(e){return!!(e&&typeof e==`object`&&`before`in e)}function Wg(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function Gg(e,t){return Array.isArray(e)&&e.every(t.isDate)}function Kg(e,t,n=ig){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(Gg(t,n))return t.some(t=>i(e,t));if(Vg(t))return zg(t,e,!1,n);if(Wg(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(Bg(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return Hg(t)?a(e,t.after)>0:Ug(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function qg(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[fg.focused]:[],[fg.outside]:[],[fg.disabled]:[],[fg.hidden]:[],[fg.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!(!n||f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&Kg(e,a,i)),S=!!(o&&Kg(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&Kg(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[fg.focused]:!1,[fg.disabled]:!1,[fg.hidden]:!1,[fg.outside]:!1,[fg.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function Jg(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[fg[r]]?e.push(t[fg[r]]):t[pg[r]]&&e.push(t[pg[r]]),e),[t[Q.Day]])}function Yg(e){return{...Rg,...e}}function Xg(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function Zg(){let e={};for(let t in Q)e[Q[t]]=`rdp-${Q[t]}`;for(let t in fg)e[fg[t]]=`rdp-${fg[t]}`;for(let t in pg)e[pg[t]]=`rdp-${pg[t]}`;for(let t in mg)e[mg[t]]=`rdp-${mg[t]}`;return e}function Qg(e,t,n){return(n??new rg(t)).formatMonthYear(e)}function $g(e,t,n){return(n??new rg(t)).format(e,`d`)}function e_(e,t=ig){return t.format(e,`LLLL`)}function t_(e,t,n){return(n??new rg(t)).format(e,`cccccc`)}function n_(e,t=ig){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function r_(){return``}function i_(e,t=ig){return t.format(e,`yyyy`)}var a_=s({formatCaption:()=>Qg,formatDay:()=>$g,formatMonthDropdown:()=>e_,formatWeekNumber:()=>n_,formatWeekNumberHeader:()=>r_,formatWeekdayName:()=>t_,formatYearDropdown:()=>i_});function o_(e){return{...a_,...e}}function s_(e,t,n,r){let i=(r??new rg(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function c_(e,t,n){return(n??new rg(t)).formatMonthYear(e)}function l_(e,t,n,r){let i=(r??new rg(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function u_(e){return`Choose the Month`}function d_(){return``}var f_=`Go to the Next Month`;function p_(e,t){return f_}function m_(e){return`Go to the Previous Month`}function h_(e,t,n){return(n??new rg(t)).format(e,`cccc`)}function g_(e,t){return`Week ${e}`}function __(e){return`Week Number`}function v_(e){return`Choose the Year`}var y_=s({labelDayButton:()=>s_,labelGrid:()=>c_,labelGridcell:()=>l_,labelMonthDropdown:()=>u_,labelNav:()=>d_,labelNext:()=>p_,labelPrevious:()=>m_,labelWeekNumber:()=>g_,labelWeekNumberHeader:()=>__,labelWeekday:()=>h_,labelYearDropdown:()=>v_}),b_=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function x_(e,t){let n=t.locale?.labels??{};return{...y_,...e??{},labelDayButton:b_(s_,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:b_(u_,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:b_(p_,e?.labelNext,n.labelNext),labelPrevious:b_(m_,e?.labelPrevious,n.labelPrevious),labelWeekNumber:b_(g_,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:b_(v_,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:b_(c_,e?.labelGrid,n.labelGrid),labelGridcell:b_(l_,e?.labelGridcell,n.labelGridcell),labelNav:b_(d_,e?.labelNav,n.labelNav),labelWeekNumberHeader:b_(__,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:b_(h_,e?.labelWeekday,n.labelWeekday)}}function S_(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function C_(e,t={},n={}){let r={...t?.[Q.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function w_(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function T_(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function E_(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new _m(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(_m.tz(e)),newDate:(t,n,r)=>new _m(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new _m(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new _m(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new _m(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new _m(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>_h(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>mh(o(e)),differenceInCalendarDays:(e,t)=>Fm(o(e),o(t)),differenceInCalendarMonths:(e,t)=>Wm(o(e),o(t))}}var D_=e=>e instanceof HTMLElement?e:null,O_=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],k_=e=>D_(e.querySelector(`[data-animated-month]`)),A_=e=>D_(e.querySelector(`[data-animated-caption]`)),j_=e=>D_(e.querySelector(`[data-animated-weeks]`)),M_=e=>D_(e.querySelector(`[data-animated-nav]`)),N_=e=>D_(e.querySelector(`[data-animated-weekdays]`));function P_(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,S.useRef)(null),s=(0,S.useRef)(r),c=(0,S.useRef)(!1);(0,S.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[mg.caption_after_enter]:n[mg.caption_before_enter],p=d?n[mg.weeks_after_enter]:n[mg.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(O_(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=k_(e);t&&e.contains(t)&&e.removeChild(t);let n=A_(e);n&&n.classList.remove(f);let r=j_(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?O_(m):[],_=O_(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=M_(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=A_(i);s&&s.classList.add(f);let l=j_(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=N_(o);m&&(m.style.opacity=`0`);let h=A_(o);h&&(h.classList.add(d?n[mg.caption_before_exit]:n[mg.caption_after_exit]),h.addEventListener(`animationend`,u));let _=j_(o);_&&_.classList.add(d?n[mg.weeks_before_exit]:n[mg.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function F_(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function I_(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function L_(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function R_(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function z_(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new og(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new ag(t,m,r);return a?a.days.push(o):e.push(new sg(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function B_(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function V_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function H_(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function U_(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function W_(e,t){let[n,r]=(0,S.useState)(e);return[t===void 0?n:t,r]}function G_(e,t){let[n,r]=B_(e,t),{startOfMonth:i,endOfMonth:a}=t,o=R_(e,n,r,t),[s,c]=W_(o,e.month?o:void 0);(0,S.useEffect)(()=>{let i=R_(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,S.useMemo)(()=>{let i=L_(s,r,{numberOfMonths:e.numberOfMonths},t),o=z_(i,F_(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:U_(o),days:I_(o),previousMonth:H_(s,n,e,t),nextMonth:V_(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var K_;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(K_||={});function q_(e){return!e[fg.disabled]&&!e[fg.hidden]&&!e[fg.outside]}function J_(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);q_(e)&&(e[fg.focused]&&a<K_.FocusedModifier?(i=o,a=K_.FocusedModifier):r?.isEqualTo(o)&&a<K_.LastFocused?(i=o,a=K_.LastFocused):n(o.date)&&a<K_.Selected?(i=o,a=K_.Selected):e[fg.today]&&a<K_.Today&&(i=o,a=K_.Today))}return i||=e.find(e=>q_(t(e))),i}function Y_(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function X_(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=Y_(e,t,n.date,r,i,a,o),l=!!(a.disabled&&Kg(c,a.disabled,o)),u=!!(a.hidden&&Kg(c,a.hidden,o)),d=new ag(c,c,o);return!l&&!u?d:X_(e,t,d,r,i,a,o,s+1)}function Z_(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,S.useState)(),c=J_(t.days,n,r||(()=>!1),o),[l,u]=(0,S.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=X_(n,r,l,t.navStart,t.navEnd,e,i);a&&(!e.disableNavigation||t.days.some(e=>e.isEqualTo(a)))&&(t.goToDay(a),u(a))}}}function Q_(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=W_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function $_(e,t,n=0,r=0,i=!1,a=ig){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function ev(e,t,n=ig){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function tv(e,t,n=ig){return zg(e,t.from,!1,n)||zg(e,t.to,!1,n)||zg(t,e.from,!1,n)||zg(t,e.to,!1,n)}function nv(e,t,n=ig){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?zg(e,t,!1,n):Gg(t,n)?t.some(t=>zg(e,t,!1,n)):Vg(t)?t.from&&t.to?tv(e,{from:t.from,to:t.to},n):!1:Wg(t)?ev(e,t.dayOfWeek,n):Bg(t)?n.isAfter(t.before,t.after)?tv(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):Kg(e.from,t,n)||Kg(e.to,t,n):Hg(t)||Ug(t)?Kg(e.from,t,n)||Kg(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function rv(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=W_(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:$_(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&nv({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&zg(u,e,!1,t)}}function iv(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=W_(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function av(e,t){let n=iv(e,t),r=Q_(e,t),i=rv(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function ov(e,t){return e instanceof _m&&e.timeZone===t?e:new _m(e,t)}function sv(e,t,n){if(!n)return ov(e,t);let r=ov(e,t),i=new _m(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function cv(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?sv(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?sv(e,t,n):e):Vg(e)?{...e,from:e.from?ov(e.from,t):e.from,to:e.to?ov(e.to,t):e.to}:Bg(e)?{before:sv(e.before,t,n),after:sv(e.after,t,n)}:Hg(e)?{after:sv(e.after,t,n)}:Ug(e)?{before:sv(e.before,t,n)}:e}function lv(e,t,n){return e&&(Array.isArray(e)?e.map(e=>cv(e,t,n)):cv(e,t,n))}function uv(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=ov(t.today,n)),t.month&&(t.month=ov(t.month,n)),t.defaultMonth&&(t.defaultMonth=ov(t.defaultMonth,n)),t.startMonth&&(t.startMonth=ov(t.startMonth,n)),t.endMonth&&(t.endMonth=ov(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=ov(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>ov(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?ov(t.selected.from,n):t.selected.from,to:t.selected.to?ov(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=lv(t.disabled,n)),t.hidden!==void 0&&(t.hidden=lv(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=lv(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,S.useMemo)(()=>{let e={...ng,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?E_(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new rg({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:Yg(t.components),formatters:o_(t.formatters),labels:x_(t.labels,a.options),locale:e,classNames:{...Zg(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:C}=t,{formatCaption:w,formatDay:T,formatMonthDropdown:E,formatWeekNumber:D,formatWeekNumberHeader:O,formatWeekdayName:k,formatYearDropdown:A}=i,ee=G_(t,o),{days:te,months:j,navStart:M,navEnd:N,previousMonth:P,nextMonth:ne,goToMonth:F}=ee,re=qg(te,t,M,N,o),{isSelected:ie,select:ae,selected:oe}=av(t,o)??{},{blur:se,focused:ce,isFocusTarget:le,moveFocus:ue,setFocused:de}=Z_(t,ee,re,ie??(()=>!1),o),{labelDayButton:fe,labelGridcell:I,labelGrid:pe,labelMonthDropdown:L,labelNav:R,labelPrevious:me,labelNext:he,labelWeekday:ge,labelWeekNumber:_e,labelWeekNumberHeader:ve,labelYearDropdown:z}=a,ye=(0,S.useMemo)(()=>w_(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),be=u!==void 0||m!==void 0,xe=(0,S.useCallback)(()=>{P&&(F(P),b?.(P))},[P,F,b]),Se=(0,S.useCallback)(()=>{ne&&(F(ne),y?.(ne))},[F,ne,y]),Ce=(0,S.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),de(e),!t.disabled&&(ae?.(e.date,t,n),m?.(e.date,t,n))},[ae,m,de]),we=(0,S.useCallback)((e,t)=>n=>{de(e),h?.(e.date,t,n)},[h,de]),Te=(0,S.useCallback)((e,t)=>n=>{se(),p?.(e.date,t,n)},[se,p]),Ee=(0,S.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];ue(e,t)}g?.(e.date,n,r)},[ue,g,t.dir]),De=(0,S.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Oe=(0,S.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),ke=(0,S.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);F(o.addMonths(i,-t))},[o,F]),Ae=(0,S.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);F(o.addMonths(i,-t))},[o,F]),{className:je,style:Me}=(0,S.useMemo)(()=>({className:[c[Q.Root],t.className].filter(Boolean).join(` `),style:{...C?.[Q.Root],...t.style}}),[c,t.className,t.style,C]),Ne=Xg(t),Pe=e=>{let t=C?.[Q.Dropdown],n=C?.[e];if(t||n)return{...t,...n}},Fe=(0,S.useRef)(null);P_(Fe,!!t.animate,{classNames:c,months:j,focused:ce,dateLib:o});let Ie={dayPickerProps:t,selected:oe,select:ae,isSelected:ie,months:j,nextMonth:ne,previousMonth:P,goToMonth:F,getModifiers:re,components:r,classNames:c,styles:C,labels:a,formatters:i};return S.createElement(hg.Provider,{value:Ie},S.createElement(r.Root,{rootRef:t.animate?Fe:void 0,className:je,style:Me,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Ne},S.createElement(r.Months,{className:c[Q.Months],style:C?.[Q.Months]},!t.hideNavigation&&!d&&S.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:C?.[Q.Nav],"aria-label":R(),onPreviousClick:xe,onNextClick:Se,previousMonth:P,nextMonth:ne}),j.map((e,n)=>{let a=t.reverseMonths?j.length-1-n:n;return S.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Q.Month],style:C?.[Q.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&S.createElement(r.PreviousMonthButton,{type:`button`,className:c[Q.PreviousMonthButton],style:C?.[Q.PreviousMonthButton],tabIndex:P?void 0:-1,"aria-disabled":!P||void 0,"aria-label":me(P),onClick:xe,"data-animated-button":t.animate?`true`:void 0},S.createElement(r.Chevron,{disabled:!P||void 0,className:c[Q.Chevron],style:C?.[Q.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),S.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Q.MonthCaption],style:C?.[Q.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?S.createElement(r.DropdownNav,{className:c[Q.Dropdowns],style:C?.[Q.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?S.createElement(r.MonthsDropdown,{key:`month`,className:c[Q.MonthsDropdown],"aria-label":L(),disabled:!!t.disableNavigation,onChange:ke(e.date,a),options:S_(e.date,M,N,i,o),style:Pe(Q.MonthsDropdown),value:o.getMonth(e.date)}):S.createElement(`span`,{key:`month`},E(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?S.createElement(r.YearsDropdown,{key:`year`,className:c[Q.YearsDropdown],"aria-label":z(o.options),disabled:!!t.disableNavigation,onChange:Ae(e.date,a),options:T_(M,N,i,o,!!t.reverseYears),style:Pe(Q.YearsDropdown),value:o.getYear(e.date)}):S.createElement(`span`,{key:`year`},A(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),S.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},w(e.date,o.options,o))):S.createElement(r.CaptionLabel,{className:c[Q.CaptionLabel],style:C?.[Q.CaptionLabel],role:`status`,"aria-live":`polite`},w(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&S.createElement(r.NextMonthButton,{type:`button`,className:c[Q.NextMonthButton],style:C?.[Q.NextMonthButton],tabIndex:ne?void 0:-1,"aria-disabled":!ne||void 0,"aria-label":he(ne),onClick:Se,"data-animated-button":t.animate?`true`:void 0},S.createElement(r.Chevron,{disabled:!ne||void 0,className:c[Q.Chevron],style:C?.[Q.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&S.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:C?.[Q.Nav],"aria-label":R(),onPreviousClick:xe,onNextClick:Se,previousMonth:P,nextMonth:ne}),S.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":pe(e.date,o.options,o)||void 0,className:c[Q.MonthGrid],style:C?.[Q.MonthGrid]},!t.hideWeekdays&&S.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Q.Weekdays],style:C?.[Q.Weekdays]},x&&S.createElement(r.WeekNumberHeader,{"aria-label":ve(o.options),className:c[Q.WeekNumberHeader],style:C?.[Q.WeekNumberHeader],scope:`col`},O()),ye.map(e=>S.createElement(r.Weekday,{"aria-label":ge(e,o.options,o),className:c[Q.Weekday],key:String(e),style:C?.[Q.Weekday],scope:`col`},k(e,o.options,o)))),S.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Q.Weeks],style:C?.[Q.Weeks]},e.weeks.map(e=>S.createElement(r.Week,{className:c[Q.Week],key:e.weekNumber,style:C?.[Q.Week],week:e},x&&S.createElement(r.WeekNumber,{week:e,style:C?.[Q.WeekNumber],"aria-label":_e(e.weekNumber,{locale:s}),className:c[Q.WeekNumber],scope:`row`,role:`rowheader`},D(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=re(e);if(i[fg.focused]=!i.hidden&&!!ce?.isEqualTo(e),i[pg.selected]=ie?.(n)||i.selected,Vg(oe)){let{from:e,to:t}=oe;i[pg.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[pg.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[pg.range_middle]=zg(oe,n,!0,o)}let a=C_(i,C,t.modifiersStyles),s=Jg(i,c,t.modifiersClassNames),l=!be&&!i.hidden?I(n,i,o.options,o):void 0;return S.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&be?S.createElement(r.DayButton,{className:c[Q.DayButton],style:C?.[Q.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:le(e)?0:-1,"aria-label":fe(n,i,o.options,o),onClick:Ce(e,i),onBlur:Te(e,i),onFocus:we(e,i),onKeyDown:Ee(e,i),onMouseEnter:De(e,i),onMouseLeave:Oe(e,i)},T(n,o.options,o)):!i.hidden&&T(e.date,o.options,o))}))))))})),t.footer&&S.createElement(r.Footer,{className:c[Q.Footer],style:C?.[Q.Footer],role:`status`,"aria-live":`polite`},t.footer)))}function dv({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,formatters:a,components:o,...s}){let c=Zg();return(0,U.jsx)(uv,{showOutsideDays:n,className:J(`group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,formatters:{formatMonthDropdown:e=>e.toLocaleString(`default`,{month:`short`}),...a},classNames:{root:J(`w-fit`,c.root),months:J(`relative flex flex-col gap-4 md:flex-row`,c.months),month:J(`flex w-full flex-col gap-4`,c.month),nav:J(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,c.nav),button_previous:J(Ac({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,c.button_previous),button_next:J(Ac({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,c.button_next),month_caption:J(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,c.month_caption),dropdowns:J(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,c.dropdowns),dropdown_root:J(`relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50`,c.dropdown_root),dropdown:J(`absolute inset-0 bg-popover opacity-0`,c.dropdown),caption_label:J(`font-medium select-none`,r===`label`?`text-sm`:`flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,c.caption_label),month_grid:J(`w-full border-collapse`,c.month_grid),weekdays:J(`flex`,c.weekdays),weekday:J(`flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none`,c.weekday),week:J(`mt-2 flex w-full`,c.week),week_number_header:J(`w-(--cell-size) select-none`,c.week_number_header),week_number:J(`text-[0.8rem] text-muted-foreground select-none`,c.week_number),day:J(`group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md`,s.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-l-md`:`[&:first-child[data-selected=true]_button]:rounded-l-md`,c.day),range_start:J(`rounded-l-md bg-accent`,c.range_start),range_middle:J(`rounded-none`,c.range_middle),range_end:J(`rounded-r-md bg-accent`,c.range_end),today:J(`rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none`,c.today),outside:J(`text-muted-foreground aria-selected:text-muted-foreground`,c.outside),disabled:J(`text-muted-foreground opacity-50`,c.disabled),hidden:J(`invisible`,c.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,U.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:J(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,U.jsx)(po,{className:J(`size-4`,e),...n}):t===`right`?(0,U.jsx)(ho,{className:J(`size-4`,e),...n}):(0,U.jsx)(uo,{className:J(`size-4`,e),...n}),DayButton:fv,WeekNumber:({children:e,...t})=>(0,U.jsx)(`td`,{...t,children:(0,U.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...o},...s})}function fv({className:e,day:t,modifiers:n,...r}){let i=Zg(),a=(0,S.useRef)(null);return(0,S.useEffect)(()=>{n.focused&&a.current?.focus()},[n.focused]),(0,U.jsx)(jc,{ref:a,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J(`flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70`,i.day,e),...r})}function pv({className:e,type:t,...n}){return(0,U.jsx)(`input`,{type:t,"data-slot":`input`,className:J(`h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30`,`focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50`,`aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40`,e),...n})}var mv=[`top`,`right`,`bottom`,`left`],hv=Math.min,gv=Math.max,_v=Math.round,vv=Math.floor,yv=e=>({x:e,y:e}),bv={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function xv(e,t,n){return gv(e,hv(t,n))}function Sv(e,t){return typeof e==`function`?e(t):e}function Cv(e){return e.split(`-`)[0]}function wv(e){return e.split(`-`)[1]}function Tv(e){return e===`x`?`y`:`x`}function Ev(e){return e===`y`?`height`:`width`}function Dv(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ov(e){return Tv(Dv(e))}function kv(e,t,n){n===void 0&&(n=!1);let r=wv(e),i=Ov(e),a=Ev(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Rv(o)),[o,Rv(o)]}function Av(e){let t=Rv(e);return[jv(e),t,jv(t)]}function jv(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Mv=[`left`,`right`],Nv=[`right`,`left`],Pv=[`top`,`bottom`],Fv=[`bottom`,`top`];function Iv(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Nv:Mv:t?Mv:Nv;case`left`:case`right`:return t?Pv:Fv;default:return[]}}function Lv(e,t,n,r){let i=wv(e),a=Iv(Cv(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(jv)))),a}function Rv(e){let t=Cv(e);return bv[t]+e.slice(t.length)}function zv(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Bv(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:zv(e)}function Vv(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Hv(e,t,n){let{reference:r,floating:i}=e,a=Dv(t),o=Ov(t),s=Ev(o),c=Cv(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=wv(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Uv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Sv(t,e),p=Bv(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Vv(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Vv(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Wv=50,Gv=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Uv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Hv(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Wv&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Hv(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Kv=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Sv(e,t)||{};if(l==null)return{};let d=Bv(u),f={x:n,y:r},p=Ov(i),m=Ev(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=hv(d[_],T),D=hv(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=xv(E,k,O),ee=!c.arrow&&wv(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,te=ee?k<E?k-E:k-O:0;return{[p]:f[p]+te,data:{[p]:A,centerOffset:k-A-te,...ee&&{alignmentOffset:te}},reset:ee}}}),qv=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Sv(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Cv(r),_=Dv(o),v=Cv(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Rv(o)]:Av(o)),x=p!==`none`;!d&&x&&b.push(...Lv(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=kv(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Dv(t)||T.every(e=>Dv(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Dv(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Jv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Yv(e){return mv.some(t=>e[t]>=0)}var Xv=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Sv(e,t);switch(i){case`referenceHidden`:{let e=Jv(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Yv(e)}}}case`escaped`:{let e=Jv(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Yv(e)}}}default:return{}}}}},Zv=new Set([`left`,`top`]);async function Qv(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Cv(n),s=wv(n),c=Dv(n)===`y`,l=Zv.has(o)?-1:1,u=a&&c?-1:1,d=Sv(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var $v=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Qv(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ey=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Sv(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Dv(i),p=Tv(f),m=u[p],h=u[f],g=(e,t)=>xv(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ty=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Sv(e,t),u={x:n,y:r},d=Dv(i),f=Tv(d),p=u[f],m=u[d],h=Sv(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Zv.has(Cv(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ny=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Sv(e,t),c=await i.detectOverflow(t,s),l=Cv(n),u=wv(n),d=Dv(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=hv(p-c[m],g),y=hv(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*gv(c.left,c.right):S=p-2*gv(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ry(){return typeof window<`u`}function iy(e){return sy(e)?(e.nodeName||``).toLowerCase():`#document`}function ay(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oy(e){return((sy(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function sy(e){return ry()?e instanceof Node||e instanceof ay(e).Node:!1}function cy(e){return ry()?e instanceof Element||e instanceof ay(e).Element:!1}function ly(e){return ry()?e instanceof HTMLElement||e instanceof ay(e).HTMLElement:!1}function uy(e){return!ry()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ay(e).ShadowRoot}function dy(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Sy(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function fy(e){return/^(table|td|th)$/.test(iy(e))}function py(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var my=/transform|translate|scale|rotate|perspective|filter/,hy=/paint|layout|strict|content/,gy=e=>!!e&&e!==`none`,_y;function vy(e){let t=cy(e)?Sy(e):e;return gy(t.transform)||gy(t.translate)||gy(t.scale)||gy(t.rotate)||gy(t.perspective)||!by()&&(gy(t.backdropFilter)||gy(t.filter))||my.test(t.willChange||``)||hy.test(t.contain||``)}function yy(e){let t=wy(e);for(;ly(t)&&!xy(t);){if(vy(t))return t;if(py(t))return null;t=wy(t)}return null}function by(){return _y??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_y}function xy(e){return/^(html|body|#document)$/.test(iy(e))}function Sy(e){return ay(e).getComputedStyle(e)}function Cy(e){return cy(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wy(e){if(iy(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||uy(e)&&e.host||oy(e);return uy(t)?t.host:t}function Ty(e){let t=wy(e);return xy(t)?(e.ownerDocument||e).body:ly(t)&&dy(t)?t:Ty(t)}function Ey(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ty(e),i=r===e.ownerDocument?.body,a=ay(r);if(i){let e=Dy(a);return t.concat(a,a.visualViewport||[],dy(r)?r:[],e&&n?Ey(e):[])}return t.concat(r,Ey(r,[],n))}function Dy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Oy(e){let t=Sy(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ly(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=_v(n)!==a||_v(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ky(e){return cy(e)?e:e.contextElement}function Ay(e){let t=ky(e);if(!ly(t))return yv(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Oy(t),o=(a?_v(n.width):n.width)/r,s=(a?_v(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var jy=yv(0);function My(e){let t=ay(e);return!by()||!t.visualViewport?jy:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ny(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ay(e)}function Py(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ky(e),o=yv(1);t&&(r?cy(r)&&(o=Ay(r)):o=Ay(e));let s=Ny(a,n,r)?My(a):yv(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=ay(a),t=cy(r)?ay(r):r,n=e,i=Dy(n);for(;i&&t!==n;){let e=Ay(i),t=i.getBoundingClientRect(),r=Sy(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ay(i),i=Dy(n)}}return Vv({width:u,height:d,x:c,y:l})}function Fy(e,t){let n=Cy(e).scrollLeft;return t?t.left+n:Py(oy(e)).left+n}function Iy(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Fy(e,n),y:n.top+t.scrollTop}}function Ly(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=oy(r),s=t?py(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=yv(1),u=yv(0),d=ly(r);if((d||!a)&&((iy(r)!==`body`||dy(o))&&(c=Cy(r)),d)){let e=Py(r);l=Ay(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Iy(o,c):yv(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Ry(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function zy(e){let t=Cy(e),n=e.ownerDocument.body,r=gv(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=gv(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Fy(e),o=-t.scrollTop;return Sy(n).direction===`rtl`&&(a+=gv(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var By=25;function Vy(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ay(e),a=oy(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!by()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Fy(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=By&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Hy(e,t){let n=Py(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ay(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Uy(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Vy(e,n,t);else if(t===`document`)r=zy(oy(e));else if(cy(t))r=Hy(t,n);else{let n=My(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Vv(r)}function Wy(e,t){let n=t.get(e);if(n)return n;let r=Ey(e,[],!1).filter(e=>cy(e)&&iy(e)!==`body`),i=null,a=Sy(e).position===`fixed`,o=a?wy(e):e;for(;cy(o)&&!xy(o);){let e=Sy(o),t=vy(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=wy(o)}return t.set(e,r),r}function Gy(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?py(t)?[]:Wy(t,this._c):[].concat(n),r],o=Uy(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Uy(t,a[e],i);s=gv(n.top,s),c=hv(n.right,c),l=hv(n.bottom,l),u=gv(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ky(e){let{width:t,height:n}=Oy(e);return{width:t,height:n}}function qy(e,t,n){let r=ly(t),i=oy(t),a=n===`fixed`,o=Py(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=yv(0);if((r||!a)&&((iy(t)!==`body`||dy(i))&&(s=Cy(t)),r)){let e=Py(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Fy(i));let l=i&&!r&&!a?Iy(i,s):yv(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Jy(e){return Sy(e).position===`static`}function Yy(e,t){if(!ly(e)||Sy(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return oy(e)===n&&(n=n.ownerDocument.body),n}function Xy(e,t){let n=ay(e);if(py(e))return n;if(!ly(e)){let t=wy(e);for(;t&&!xy(t);){if(cy(t)&&!Jy(t))return t;t=wy(t)}return n}let r=Yy(e,t);for(;r&&fy(r)&&Jy(r);)r=Yy(r,t);return r&&xy(r)&&Jy(r)&&!vy(r)?n:r||yy(e)||n}var Zy=async function(e){let t=this.getOffsetParent||Xy,n=this.getDimensions,r=await n(e.floating);return{reference:qy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qy(e){return Sy(e).direction===`rtl`}var $y={convertOffsetParentRelativeRectToViewportRelativeRect:Ly,getDocumentElement:oy,getClippingRect:Gy,getOffsetParent:Xy,getElementRects:Zy,getClientRects:Ry,getDimensions:Ky,getScale:Ay,isElement:cy,isRTL:Qy};function eb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tb(e,t,n){let r=null,i,a=oy(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=vv(d),h=vv(a.clientWidth-(u+f)),g=vv(a.clientHeight-(d+p)),_=vv(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:gv(0,hv(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!eb(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=ay(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function nb(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ky(e),u=i||a?[...l?Ey(l):[],...t?Ey(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?tb(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Py(e):null;c&&g();function g(){let t=Py(e);h&&!eb(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var rb=$v,ib=ey,ab=qv,ob=ny,sb=Xv,cb=Kv,lb=ty,ub=(e,t,n)=>{let r=new Map,i=n??{},a={...$y,...i.platform,_c:r};return Gv(e,t,{...i,platform:a})},db=typeof document<`u`?S.useLayoutEffect:function(){};function fb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!fb(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!fb(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function pb(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mb(e,t){let n=pb(e);return Math.round(t*n)/n}function hb(e){let t=S.useRef(e);return db(()=>{t.current=e}),t}function gb(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=S.useState(r);fb(f,r)||p(r);let[m,h]=S.useState(null),[g,_]=S.useState(null),v=S.useCallback(e=>{e!==C.current&&(C.current=e,h(e))},[]),y=S.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),b=a||m,x=o||g,C=S.useRef(null),w=S.useRef(null),T=S.useRef(u),E=c!=null,D=hb(c),O=hb(i),k=hb(l),A=S.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),ub(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};ee.current&&!fb(T.current,t)&&(T.current=t,ar.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);db(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=S.useRef(!1);db(()=>(ee.current=!0,()=>{ee.current=!1}),[]),db(()=>{if(b&&(C.current=b),x&&(w.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let te=S.useMemo(()=>({reference:C,floating:w,setReference:v,setFloating:y}),[v,y]),j=S.useMemo(()=>({reference:b,floating:x}),[b,x]),M=S.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=mb(j.floating,u.x),r=mb(j.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...pb(j.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,j.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:A,refs:te,elements:j,floatingStyles:M}),[u,A,te,j,M])}var _b=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:cb({element:r.current,padding:i}).fn(n):r?cb({element:r,padding:i}).fn(n):{}}}},vb=(e,t)=>{let n=rb(e);return{name:n.name,fn:n.fn,options:[e,t]}},yb=(e,t)=>{let n=ib(e);return{name:n.name,fn:n.fn,options:[e,t]}},bb=(e,t)=>({fn:lb(e).fn,options:[e,t]}),xb=(e,t)=>{let n=ab(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sb=(e,t)=>{let n=ob(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cb=(e,t)=>{let n=sb(e);return{name:n.name,fn:n.fn,options:[e,t]}},wb=(e,t)=>{let n=_b(e);return{name:n.name,fn:n.fn,options:[e,t]}},Tb=Object.defineProperty,Eb=(e,t)=>Tb(e,`name`,{value:t,configurable:!0});function Db(e){let[t,n]=S.useState(void 0);return Gc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Eb(Db,`useSize`);var Ob=Object.defineProperty,kb=(e,t)=>Ob(e,`name`,{value:t,configurable:!0}),Ab=`Popper`,[jb,Mb]=Uc(Ab),[Nb,Pb]=jb(Ab),Fb=kb(e=>{let{__scopePopper:t,children:n}=e,[r,i]=S.useState(null),[a,o]=S.useState(void 0);return(0,U.jsx)(Nb,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),Ib=`PopperAnchor`,Lb=S.forwardRef(kb(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=Pb(Ib,n),o=S.useRef(null),s=a.onAnchorChange,c=Io(t,S.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=S.useRef(null);S.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Wb(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(Dl.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),Rb=`PopperContent`,[zb,Bb]=jb(Rb),Vb=S.forwardRef(kb(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=Pb(Rb,n),[_,v]=S.useState(null),y=Io(t,v),[b,x]=S.useState(null),C=Db(b),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(Hb),altBoundary:k},{refs:ee,floatingStyles:te,placement:j,isPositioned:M,middlewareData:N}=gb({strategy:`fixed`,placement:E,whileElementsMounted:kb((...e)=>nb(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[vb({mainAxis:i+T,alignmentAxis:o}),c&&yb({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?bb():void 0,...A}),c&&xb({...A}),Sb({...A,apply:kb(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&wb({element:b,padding:s}),Ub({arrowWidth:w,arrowHeight:T}),f&&Cb({strategy:`referenceHidden`,...A,boundary:k?A.boundary:void 0})]}),P=g.setPlacementState;Gc(()=>(P(j),()=>{P(void 0)}),[j,P]);let[ne,F]=Wb(j),re=jl(m);Gc(()=>{M&&re?.()},[M,re]);let ie=N.arrow?.x,ae=N.arrow?.y,oe=N.arrow?.centerOffset!==0,[se,ce]=S.useState();return Gc(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:M?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(zb,{scope:n,placedSide:ne,placedAlign:F,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,U.jsx)(Dl.div,{"data-side":ne,"data-align":F,...h,ref:y,style:{...h.style,animation:M?h.style?.animation:`none`}})})})},`PopperContent`));function Hb(e){return e!==null}kb(Hb,`isNotNull`);var Ub=kb(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Wb(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Wb(e){let[t,n=`center`]=e.split(`-`);return[t,n]}kb(Wb,`getSideAndAlignFromPlacement`);var Gb=Fb,Kb=Lb,qb=Vb,Jb=Object.defineProperty,Yb=(e,t)=>Jb(e,`name`,{value:t,configurable:!0}),Xb=`Popover`,[Zb,Qb]=Uc(Xb,[Mb]),$b=Mb(),[ex,tx]=Zb(Xb),nx=Yb(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=$b(t),c=S.useRef(null),[l,u]=S.useState(!1),[d,f]=al({prop:r,defaultProp:i??!1,onChange:a,caller:Xb});return(0,U.jsx)(Gb,{...s,children:(0,U.jsx)(ex,{scope:t,contentId:Xc(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:S.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:S.useCallback(()=>u(!0),[]),onCustomAnchorRemove:S.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),rx=`PopoverTrigger`,ix=S.forwardRef(Yb(function(e,t){let{__scopePopover:n,...r}=e,i=tx(rx,n),a=$b(n),o=Io(t,i.triggerRef),s=(0,U.jsx)(Dl.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":hx(i.open),...r,ref:o,onClick:Fc(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,U.jsx)(Kb,{asChild:!0,...a,children:s})},`PopoverTrigger`)),ax=`PopoverPortal`,[ox,sx]=Zb(ax,{forceMount:void 0}),cx=Yb(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=tx(ax,t);return(0,U.jsx)(ox,{scope:t,forceMount:n,children:(0,U.jsx)(mu,{present:n||a.open,children:(0,U.jsx)(uu,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),lx=`PopoverContent`,ux=S.forwardRef(Yb(function(e,t){let n=sx(lx,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=tx(lx,e.__scopePopover);return(0,U.jsx)(mu,{present:r||a.open,children:a.modal?(0,U.jsx)(fx,{...i,ref:t}):(0,U.jsx)(px,{...i,ref:t})})},`PopoverContent`)),dx=fl(`PopoverContent.RemoveScroll`),fx=S.forwardRef(Yb(function(e,t){let n=tx(lx,e.__scopePopover),r=S.useRef(null),i=Io(t,r),a=S.useRef(!1);return S.useEffect(()=>{let e=r.current;if(e)return Vd(e)},[]),(0,U.jsx)(Md,{as:dx,allowPinchZoom:!0,children:(0,U.jsx)(mx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fc(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Fc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:Fc(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),px=S.forwardRef(Yb(function(e,t){let n=tx(lx,e.__scopePopover),r=S.useRef(!1),i=S.useRef(!1);return(0,U.jsx)(mx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),mx=S.forwardRef(Yb(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=tx(lx,n),p=$b(n);return Tu(),(0,U.jsx)(Zl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(zl,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,U.jsx)(qb,{"data-state":hx(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function hx(e){return e?`open`:`closed`}Yb(hx,`getState`);var gx=nx,_x=ix,vx=cx,yx=ux;function bx(e){return(0,U.jsx)(gx,{"data-slot":`popover`,...e})}function xx(e){return(0,U.jsx)(_x,{"data-slot":`popover-trigger`,...e})}function Sx({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,U.jsx)(vx,{children:(0,U.jsx)(yx,{"data-slot":`popover-content`,align:t,sideOffset:n,className:J(`z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function Cx({timeWindow:e,onChange:t}){let[n,r]=(0,S.useState)(!1),[i,a]=(0,S.useState)(`quick`),o=t=>{r(t),t&&a(e.live?`quick`:`custom`)},s=e=>{t(e),r(!1)};return(0,U.jsxs)(bx,{open:n,onOpenChange:o,children:[(0,U.jsx)(xx,{asChild:!0,children:(0,U.jsxs)(jc,{variant:`outline`,size:`sm`,className:`text-xs tabular-nums`,children:[(0,U.jsx)(wx,{timeWindow:e}),(0,U.jsx)(uo,{className:`opacity-60`})]})}),(0,U.jsx)(Sx,{align:`end`,className:`w-auto p-0`,children:i===`quick`?(0,U.jsx)(Tx,{timeWindow:e,onSelect:s,onCustom:()=>a(`custom`)}):(0,U.jsx)(Ex,{timeWindow:e,onApply:s,onBack:()=>a(`quick`)})})]})}function wx({timeWindow:{fromMs:e,toMs:t,live:n}}){return n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`size-1.5 animate-pulse rounded-full bg-success motion-reduce:animate-none`}),la(t-e)]}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(oo,{}),Gi(e,t)]})}function Tx({timeWindow:e,onSelect:t,onCustom:n}){let r=e.live?e.toMs-e.fromMs:null;return(0,U.jsxs)(`div`,{className:`flex w-48 flex-col gap-0.5 p-1.5`,children:[ca.map(e=>(0,U.jsx)(jc,{variant:`ghost`,size:`sm`,"aria-pressed":e.durationMs===r,onClick:()=>t({mode:`live`,durationMs:e.durationMs}),className:J(`justify-start text-xs font-normal`,e.durationMs===r&&`bg-accent text-accent-foreground`),children:e.label},e.durationMs)),(0,U.jsx)(`div`,{className:`my-1 border-t`}),(0,U.jsxs)(jc,{variant:`ghost`,size:`sm`,onClick:n,className:`justify-start text-xs font-normal`,children:[(0,U.jsx)(oo,{}),`Custom range`,(0,U.jsx)(ho,{className:`ml-auto opacity-60`})]})]})}function Ex({timeWindow:e,onApply:t,onBack:n}){let[r,i]=(0,S.useState)({from:new Date(e.fromMs),to:new Date(e.toMs)}),[a,o]=(0,S.useState)(Vi(e.fromMs)),[s,c]=(0,S.useState)(Vi(e.toMs)),l=Ox(r,a,s);return(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(jc,{variant:`ghost`,size:`xs`,onClick:n,className:`mt-2 ml-2 text-xs font-normal text-muted-foreground`,children:[(0,U.jsx)(po,{}),`Quick ranges`]}),(0,U.jsx)(dv,{mode:`range`,selected:r,onSelect:i,defaultMonth:r?.from,disabled:{after:new Date}}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 border-t p-3`,children:[(0,U.jsx)(Dx,{label:`Start`,value:a,onChange:o}),(0,U.jsx)(Dx,{label:`End`,value:s,onChange:c})]}),(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3 border-t p-3 text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsx)(`span`,{children:l?Gi(l.fromMs,l.toMs):`End must be after start`}),(0,U.jsx)(jc,{size:`sm`,disabled:!l,onClick:()=>l&&t(l),children:`Apply`})]})]})}function Dx({label:e,value:t,onChange:n}){let r=(0,S.useId)();return(0,U.jsxs)(`div`,{className:`grid gap-1.5`,children:[(0,U.jsx)(`label`,{htmlFor:r,className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(pv,{id:r,type:`time`,value:t,onChange:e=>n(e.target.value),className:`h-8 text-xs tabular-nums`})]})}function Ox(e,t,n){if(!e?.from||!t||!n)return null;let r=da(e.from,t),i=da(e.to??e.from,n);return r<i?{mode:`static`,fromMs:r,toMs:i}:null}function kx(){let e=Ma(),t=Na();return(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(Cx,{timeWindow:e,onChange:t}),(0,U.jsx)(Ax,{live:e.live,onToggle:()=>t(fa(e))})]})}function Ax({live:e,onToggle:t}){let n=e?`Pause live updates`:`Resume live updates`;return(0,U.jsx)(jc,{variant:`outline`,size:`icon-sm`,"aria-label":n,title:n,onClick:t,children:e?(0,U.jsx)(To,{}):(0,U.jsx)(Do,{})})}function jx({titleId:e,title:t,back:n,badge:r,meta:i,aside:a}){return(0,U.jsxs)(`header`,{className:`flex flex-wrap items-end justify-between gap-4`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsxs)(Tn,{to:n.to,relative:n.relative,className:`inline-flex items-center gap-1.5 text-[13px] font-medium text-muted-foreground hover:text-foreground`,children:[(0,U.jsx)(no,{className:`size-3.5`,"aria-hidden":!0}),n.label]}),(0,U.jsxs)(`div`,{className:`mt-2.5 flex flex-wrap items-center gap-3`,children:[(0,U.jsx)(`h1`,{id:e,translate:`no`,className:`truncate text-[26px] font-medium tracking-tight`,children:t}),r]}),(0,U.jsx)(`div`,{className:`mt-1 flex flex-wrap items-center gap-2 text-[13px] text-muted-foreground tabular-nums`,children:i})]}),a]})}function $({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:J(`animate-pulse rounded-md bg-muted motion-reduce:animate-none`,e),...t})}function Mx({id:e,title:t,description:n,aside:r,busy:i,className:a,children:o}){let s=(0,S.useId)();return(0,U.jsxs)(`section`,{id:e,"aria-labelledby":s,"aria-busy":i||void 0,className:J(`rounded-xl border bg-card px-5.5 pt-5 text-card-foreground shadow-(--shadow-control)`,a),children:[(0,U.jsxs)(`header`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{id:s,className:`text-base font-bold tracking-tight`,children:t}),n&&(0,U.jsx)(`p`,{className:`mt-0.75 text-[13px] text-muted-foreground`,children:n})]}),r]}),o]})}function Nx({label:e,options:t,value:n,onChange:r}){return(0,U.jsx)(`div`,{role:`group`,"aria-label":e,className:`flex gap-0.5 rounded-lg border bg-background/40 p-0.5`,children:t.map(e=>(0,U.jsxs)(`button`,{type:`button`,"aria-pressed":e.value===n,onClick:()=>r(e.value),className:`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium text-muted-foreground transition-colors outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring aria-pressed:bg-muted aria-pressed:text-foreground aria-pressed:shadow-[inset_0_0_0_1px_var(--border)]`,children:[e.icon,e.label,e.badge!==void 0&&(0,U.jsx)(`span`,{className:`text-[11px] tabular-nums opacity-75`,children:e.badge})]},e.value))})}function Px({live:e,className:t,children:n}){return(0,U.jsxs)(`span`,{className:J(`inline-flex items-center gap-1.25`,e?`text-success`:`text-muted-foreground`,t),children:[e&&(0,U.jsx)(`span`,{className:`size-1.5 rounded-full bg-success`}),n]})}var Fx=24,Ix=240;function Lx({actor:e,requests:t,failed:n,now:r}){let[i,a]=(0,S.useState)(`all`),o=(e&&Wp(e.instances))?.filter(e=>i===`all`||e.status===i)??null;return(0,U.jsx)(Mx,{title:`Instances`,description:`Sorted by last active. Number shows open sockets.`,aside:e&&(0,U.jsx)(Rx,{actor:e,value:i,onChange:a}),busy:!e&&!n,className:`pb-4.5`,children:n?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):e&&o?(0,U.jsx)(zx,{actor:e,instances:o,requests:t,now:r}):(0,U.jsx)(Gx,{})})}function Rx({actor:e,value:t,onChange:n}){let{total:r,live:i,dormant:a}=Up(e);return(0,U.jsx)(Nx,{label:`Filter instances`,value:t,onChange:n,options:[{value:`all`,label:`All`,badge:V(r)},{value:`live`,label:`Live`,badge:V(i)},{value:`dormant`,label:`Dormant`,badge:V(a)}]})}function zx({actor:e,instances:t,requests:n,now:r}){let[i,a]=(0,S.useState)(null);if(!t.length)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`No instances match this filter.`});let o=t.slice(0,Ix);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`ul`,{"aria-label":`${e.actorName} instances, most recently active first`,className:`mt-6 grid grid-cols-24 gap-1.5 tabular-nums`,children:o.map((e,t)=>(0,U.jsx)(Bx,{instance:e,active:e.actorId===i,alignRight:t%Fx>=Fx/2,onActive:a,requests:n,now:r},e.actorId))}),(0,U.jsx)(Ux,{actor:e,shown:o.length,matching:t.length})]})}function Bx({instance:e,active:t,alignRight:n,onActive:r,requests:i,now:a}){let o=(0,S.useId)(),s=e.status===`live`,c=e.connections.length;return(0,U.jsxs)(`li`,{className:`relative`,children:[(0,U.jsx)(Tn,{to:Hp(e.actorId),"aria-label":`${e.actorId}, ${e.status}, ${Zi(c,`open socket`)}`,"aria-describedby":t?o:void 0,onMouseEnter:()=>r(e.actorId),onMouseLeave:()=>r(null),onFocus:()=>r(e.actorId),onBlur:()=>r(null),className:J(`grid h-6.5 w-full place-items-center rounded-[5px] text-[10px] font-medium outline-none`,s?`bg-success text-background`:`bg-muted shadow-[inset_0_0_0_1px_var(--border)]`,t&&`outline-2 outline-offset-2 outline-foreground`),children:c>0?V(c):!s&&(0,U.jsx)(`span`,{className:`size-1 rounded-full bg-muted-foreground/40`})}),t&&(0,U.jsx)(Vx,{id:o,instance:e,requests:i,now:a,alignRight:n})]})}function Vx({id:e,instance:t,requests:n,now:r,alignRight:i}){let a=n?.filter(e=>e.actorId===t.actorId)??[],o=em(a,Gp),s=em(a,Kp),c=t.status===`live`;return(0,U.jsxs)(`div`,{id:e,role:`tooltip`,className:J(`absolute top-full z-10 mt-2 w-64 rounded-lg border bg-popover px-3.5 py-3 text-xs text-popover-foreground shadow-(--shadow-popover)`,i?`right-0`:`left-0`),children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,U.jsx)(`span`,{translate:`no`,className:`truncate`,children:t.actorId}),(0,U.jsx)(Px,{live:c,className:`text-[11px] font-medium`,children:c?`Live`:`Dormant`})]}),(0,U.jsx)(Hx,{label:`Open sockets`,value:V(t.connections.length)}),(0,U.jsx)(Hx,{label:`Avg queue time`,value:o===null?`—`:Xi(o)}),(0,U.jsx)(Hx,{label:`Avg latency`,value:s===null?`—`:Xi(s)}),(0,U.jsx)(Hx,{label:`Last active`,value:t.lastActiveAtMs?ea(t.lastActiveAtMs,r):`—`})]})}function Hx({label:e,value:t}){return(0,U.jsxs)(`div`,{className:`mt-1.5 flex justify-between text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:e}),(0,U.jsx)(`b`,{className:`font-medium text-foreground tabular-nums`,children:t})]})}function Ux({actor:e,shown:t,matching:n}){let{live:r,dormant:i}=Up(e);return(0,U.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center gap-5 text-[13px] text-muted-foreground tabular-nums`,children:[(0,U.jsx)(Wx,{swatch:`bg-success`,label:`Live`,count:r}),(0,U.jsx)(Wx,{swatch:`bg-muted shadow-[inset_0_0_0_1px_var(--border)]`,label:`Dormant`,count:i}),t<n&&(0,U.jsxs)(`span`,{children:[`Showing `,V(t),` of `,V(n)]})]})}function Wx({swatch:e,label:t,count:n}){return(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`size-2.5 rounded-[3px] ${e}`}),t,` `,(0,U.jsx)(`b`,{className:`font-bold text-foreground`,children:V(n)})]})}function Gx(){return(0,U.jsx)(`div`,{className:`mt-6 grid grid-cols-24 gap-1.5`,children:Array.from({length:72},(e,t)=>(0,U.jsx)($,{className:`h-6.5 rounded-[5px]`},t))})}function Kx({liveShare:e,label:t,pulse:n,className:r,style:i}){return(0,U.jsxs)(`div`,{role:`img`,"aria-label":t,className:J(`relative flex overflow-hidden`,r),style:i,children:[(0,U.jsx)(`div`,{className:`relative bg-success`,style:{width:`${e*100}%`},children:n&&e>0&&(0,U.jsx)(`span`,{className:`absolute inset-y-0 right-0.75 w-0.75 animate-pulse bg-success motion-reduce:animate-none`})}),(0,U.jsx)(`div`,{className:`flex-1 bg-border`})]})}function qx({live:e,dormant:t}){return(0,U.jsxs)(`div`,{className:`mt-3 flex justify-between gap-4 text-[13px] tabular-nums`,children:[(0,U.jsx)(Yx,{swatch:`bg-success`,label:`Live`,count:e}),(0,U.jsx)(Yx,{swatch:`bg-border`,label:`Dormant`,count:t})]})}function Jx(){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-auto h-10 w-full rounded-sm`}),(0,U.jsxs)(`div`,{className:`mt-3 flex justify-between gap-4`,children:[(0,U.jsx)($,{className:`h-3.5 w-28`}),(0,U.jsx)($,{className:`h-3.5 w-28`})]})]})}function Yx({swatch:e,label:t,count:n}){return(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75 text-muted-foreground`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs ${e}`}),t,` `,n!==void 0&&(0,U.jsx)(`b`,{className:`font-bold text-foreground`,children:V(n)})]})}function Xx({label:e,value:t,unit:n,busy:r,children:i}){let a=(0,S.useId)();return(0,U.jsxs)(`article`,{"aria-labelledby":a,"aria-busy":r||void 0,className:`flex min-h-59 min-w-0 flex-col rounded-xl border bg-card px-5.5 pt-5 pb-4.5 text-card-foreground shadow-(--shadow-control)`,children:[(0,U.jsx)(`span`,{id:a,className:`truncate text-[13px] font-medium text-muted-foreground`,children:e}),t!==void 0&&(0,U.jsx)(Zx,{value:t,unit:n,className:`mt-3.5`}),i]})}function Zx({value:e,unit:t,className:n}){return(0,U.jsxs)(`div`,{className:J(`flex items-baseline gap-2 text-[44px] leading-none font-bold tracking-[-0.035em] tabular-nums`,n),children:[e,t!==void 0&&(0,U.jsx)(`div`,{className:`text-[15px] font-medium tracking-normal text-muted-foreground`,children:t})]})}function Qx({summary:e,failed:t}){return(0,U.jsx)(Xx,{label:`Live & Dormant`,busy:!e&&!t,children:e?(0,U.jsx)($x,{...e}):(0,U.jsx)(eS,{failed:t})})}function $x({live:e,dormant:t,total:n}){let r=n?e/n:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap gap-x-10 gap-y-2`,children:[(0,U.jsx)(Zx,{value:V(e),unit:`live`}),(0,U.jsx)(Zx,{value:V(t),unit:`dormant`,className:`text-muted-foreground/75`})]}),(0,U.jsx)(Kx,{liveShare:r,label:`${V(e)} live, ${V(t)} dormant, ${Yi(r)} live`,pulse:!0,className:`mt-auto h-10 rounded-sm`}),(0,U.jsx)(qx,{})]})}function eS({failed:e}){return e?(0,U.jsx)(`p`,{className:`mt-3.5 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-3.5 h-11 w-48 max-w-full`}),(0,U.jsx)(Jx,{})]})}function tS({shown:e,total:t,noun:n,expandLabel:r,expanded:i,onToggle:a}){return(0,U.jsxs)(`div`,{className:`flex justify-between border-t pt-3 text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`span`,{children:[`Showing `,V(e),` of `,Zi(t,n)]}),(i||e<t)&&(0,U.jsx)(`button`,{type:`button`,onClick:a,className:`font-medium text-primary hover:underline`,children:i?`Show Fewer`:r})]})}var nS=6,rS=`bg-[linear-gradient(90deg,color-mix(in_oklab,var(--border)_55%,transparent)_1px,transparent_1px)] bg-size-[calc(100%/6)_100%] shadow-[inset_-1px_0_0_var(--border)]`;function iS({timeWindow:e,grid:t,label:n,trailing:r}){return(0,U.jsxs)(`div`,{"aria-hidden":!0,className:`${t} h-6 border-b`,children:[(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n}),(0,U.jsx)(`div`,{className:`relative h-full text-[11px] text-muted-foreground tabular-nums`,children:ma(e,nS).map((e,t)=>(0,U.jsx)(`span`,{className:J(`absolute top-1`,t===0?``:t===nS?`-translate-x-full text-foreground`:`-translate-x-1/2`),style:{left:`${t/nS*100}%`},children:e},t))}),r!==void 0&&(0,U.jsx)(`span`,{className:`text-right text-xs text-muted-foreground`,children:r})]})}function aS({label:e,children:t}){return(0,U.jsx)(`div`,{role:`img`,"aria-label":e,className:`relative h-full ${rS} before:absolute before:inset-x-0 before:top-1/2 before:border-t before:border-dashed before:border-border`,children:t})}function oS(e,{fromMs:t,toMs:n},r){let i=n-t,a=t=>r&&t===e.length-1;return e.map((e,r)=>({fromMs:Math.max(e.fromMs,t),toMs:a(r)?n:Math.min(e.toMs,n),now:a(r)})).filter(e=>e.toMs>e.fromMs).map(e=>({...e,left:(e.fromMs-t)/i,width:(e.toMs-e.fromMs)/i}))}var sS=Object.defineProperty,cS=(e,t)=>sS(e,`name`,{value:t,configurable:!0}),lS=!!(typeof window<`u`&&window.document&&window.document.createElement);function uS(e,t,{checkForDefaultPrevented:n=!0}={}){return cS(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}cS(uS,`composeEventHandlers`);function dS(e){if(!lS)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}cS(dS,`getOwnerWindow`);function fS(e){if(!lS)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}cS(fS,`getOwnerDocument`);function pS(e,t=!1){let{activeElement:n}=fS(e);if(!n?.nodeName)return null;if(mS(n)&&n.contentDocument)return pS(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=fS(n).getElementById(e);if(t)return t}}return n}cS(pS,`getActiveElement`);function mS(e){return e.tagName===`IFRAME`}cS(mS,`isFrame`);var hS=Object.defineProperty,gS=(e,t)=>hS(e,`name`,{value:t,configurable:!0});function _S(e,t){let n=S.createContext(t);n.displayName=e+`Context`;let r=gS(e=>{let{children:t,...r}=e,i=S.useMemo(()=>r,Object.values(r));return(0,U.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=S.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return gS(i,`useContext`),[r,i]}gS(_S,`createContext`);function vS(e,t=[]){let n=[];function r(t,r){let i=S.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=gS(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=S.useMemo(()=>o,Object.values(o));return(0,U.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=S.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return gS(s,`useContext`),[o,s]}gS(r,`createContext`);let i=gS(()=>{let t=n.map(e=>S.createContext(e));return gS(function(n){let r=n?.[e]||t;return S.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,yS(i,...t)]}gS(vS,`createContextScope`);function yS(...e){let t=e[0];if(e.length===1)return t;let n=gS(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return gS(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}gS(yS,`composeContextScopes`);var bS=Object.defineProperty,xS=(e,t)=>bS(e,`name`,{value:t,configurable:!0}),SS=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=zo(`Primitive.${t}`),r=S.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,U.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function CS(e,t){e&&ar.flushSync(()=>e.dispatchEvent(t))}xS(CS,`dispatchDiscreteCustomEvent`);var wS=Object.defineProperty,TS=(e,t)=>wS(e,`name`,{value:t,configurable:!0}),ES=S.useInsertionEffect;function DS(e){let t=S.useRef(e);return typeof ES==`function`?ES(()=>{t.current=e}):Gc(()=>{t.current=e}),S.useMemo(()=>((...e)=>t.current?.(...e)),[])}TS(DS,`useCallbackRef`);var OS=Object.defineProperty,kS=(e,t)=>OS(e,`name`,{value:t,configurable:!0}),AS=`dismissableLayer.update`,jS=`dismissableLayer.pointerDownOutside`,MS=`dismissableLayer.focusOutside`,NS,PS=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),FS=S.forwardRef(kS(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=S.useContext(PS),[d,f]=S.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=S.useState({}),h=Io(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,C=S.useRef(!1),w=RS(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:S.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),T=zS(e=>{if(r&&C.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),E=d?y===g.length-1:!1,D=DS(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return S.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),S.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(NS=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),BS(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=NS))}},[d,p,n,u]),S.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),BS())},[d,u]),S.useEffect(()=>{let e=kS(()=>m({}),`handleUpdate`);return document.addEventListener(AS,e),()=>document.removeEventListener(AS,e)},[]),(0,U.jsx)(SS.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:uS(e.onFocusCapture,T.onFocusCapture),onBlurCapture:uS(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:uS(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function IS(){let e=S.useContext(PS),[t,n]=S.useState(null);return S.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}kS(IS,`useDismissableLayerSurface`);var LS=kS(()=>!0,`IS_TRUE`);function RS(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=LS}=t,s=DS(e),c=S.useRef(!1),l=S.useRef(!1),u=S.useRef(new Map),d=S.useRef(()=>{});return S.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}kS(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}kS(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}kS(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}kS(p,`handleInteractionBubble`);let m=kS(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||VS(jS,s,p,{discrete:!0})};if(kS(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:kS(()=>c.current=!0,`onPointerDownCapture`)}}kS(RS,`usePointerDownOutside`);function zS(e,t=globalThis?.document){let n=DS(e),r=S.useRef(!1);return S.useEffect(()=>{let e=kS(e=>{e.target&&!r.current&&VS(MS,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:kS(()=>r.current=!0,`onFocusCapture`),onBlurCapture:kS(()=>r.current=!1,`onBlurCapture`)}}kS(zS,`useFocusOutside`);function BS(){let e=new CustomEvent(AS);document.dispatchEvent(e)}kS(BS,`dispatchUpdate`);function VS(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?CS(i,a):i.dispatchEvent(a)}kS(VS,`handleAndDispatchCustomEvent`);var HS=Object.defineProperty,US=(e,t)=>HS(e,`name`,{value:t,configurable:!0}),WS=S.createContext(null);function GS({registry:e,children:t}){return e?(0,U.jsx)(WS.Provider,{value:e,children:t}):t}US(GS,`FocusScopeBranchProvider`);function KS(){let[e,t]=S.useState([]);return{nodes:e,registry:S.useMemo(()=>({add:US(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:US(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}US(KS,`useFocusScopeBranchRegistry`);function qS(e){let t=S.useContext(WS);S.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}US(qS,`useFocusScopeBranch`);function JS(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(eC(r,{select:t}),document.activeElement!==n)return}US(JS,`focusFirst`);function YS(e){let t=XS(e);return[ZS(t,e),ZS(t.reverse(),e)]}US(YS,`getTabbableEdges`);function XS(e){let t=[],n=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:US(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}US(XS,`getTabbableCandidates`);function ZS(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):QS(r,{upTo:t})))return r}US(ZS,`findVisible`);function QS(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}US(QS,`isHidden`);function $S(e){return e.tagName===`INPUT`&&typeof e.select==`function`}US($S,`isSelectableInput`);function eC(e,{select:t=!1}={}){if(e&&e.focus){let n=(e.ownerDocument??document).activeElement;e.focus({preventScroll:!0}),e!==n&&$S(e)&&t&&e.select()}}US(eC,`focus`);function tC(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=nC(e,t),e.unshift(t)},remove(t){e=nC(e,t),e[0]?.resume()}}}US(tC,`createFocusScopesStack`);function nC(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}US(nC,`arrayRemove`);function rC(e){return e.filter(e=>e.tagName!==`A`)}US(rC,`removeLinks`);var iC=Object.defineProperty,aC=S.forwardRef(((e,t)=>iC(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,U.jsx)(SS.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,U.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),oC=Object.defineProperty,sC=(e,t)=>oC(e,`name`,{value:t,configurable:!0});function cC(e){let[t,n]=S.useState(void 0);return Gc(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}sC(cC,`useSize`);var lC=Object.defineProperty,uC=(e,t)=>lC(e,`name`,{value:t,configurable:!0}),dC={Partial:`partial`,Always:`always`},fC={Optimized:`optimized`,Always:`always`},pC=`Popper`,[mC,hC]=vS(pC),[gC,_C]=mC(pC),vC=uC(e=>{let{__scopePopper:t,children:n}=e,[r,i]=S.useState(null),[a,o]=S.useState(void 0);return(0,U.jsx)(gC,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),yC=`PopperAnchor`,bC=S.forwardRef(uC(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=_C(yC,n),o=S.useRef(null),s=a.onAnchorChange,c=Io(t,S.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=S.useRef(null);S.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&AC(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(SS.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),xC=`PopperContent`,[SC,CC]=mC(xC),wC=S.forwardRef(uC(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=dC.Partial,hideWhenDetached:f=!1,updatePositionStrategy:p=fC.Optimized,onPlaced:m,...h}=e,g=_C(xC,n),[_,v]=S.useState(null),y=Io(t,v),[b,x]=S.useState(null),C=cC(b),w=C?.width??0,T=C?.height??0,E=r+(a===`center`?``:`-`+a),D=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},O=Array.isArray(l)?l:[l],k=O.length>0,A={padding:D,boundary:O.filter(OC),altBoundary:k},{refs:ee,floatingStyles:te,placement:j,isPositioned:M,middlewareData:N}=gb({strategy:`fixed`,placement:E,whileElementsMounted:uC((...e)=>nb(...e,{animationFrame:p===fC.Always}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[vb({mainAxis:i+T,alignmentAxis:o}),c&&yb({mainAxis:!0,crossAxis:!1,...d===dC.Partial?{limiter:bb()}:{},...A}),c&&xb({...A}),Sb({...A,apply:uC(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&wb({element:b,padding:s}),kC({arrowWidth:w,arrowHeight:T}),f&&Cb(k?{strategy:`referenceHidden`,...A}:{strategy:`referenceHidden`,padding:A.padding,altBoundary:A.altBoundary})]}),P=g.setPlacementState;Gc(()=>(P(j),()=>{P(void 0)}),[j,P]);let[ne,F]=AC(j),re=DS(m);Gc(()=>{M&&re?.()},[M,re]);let ie=N.arrow?.x,ae=N.arrow?.y,oe=N.arrow?.centerOffset!==0,[se,ce]=S.useState();return Gc(()=>{_&&ce(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:ee.setFloating,"data-radix-popper-content-wrapper":``,style:{...te,transform:M?te.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[N.transformOrigin?.x,N.transformOrigin?.y].join(` `),...N.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(SC,{scope:n,placedSide:ne,placedAlign:F,onArrowChange:x,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,U.jsx)(SS.div,{"data-side":ne,"data-align":F,...h,ref:y,style:{...h.style,animation:M?h.style?.animation:`none`}})})})},`PopperContent`)),TC=`PopperArrow`,EC={top:`bottom`,right:`left`,bottom:`top`,left:`right`},DC=S.forwardRef(uC(function(e,t){let{__scopePopper:n,...r}=e,i=CC(TC,n),a=EC[i.placedSide];return(0,U.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,U.jsx)(aC,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function OC(e){return e!==null}uC(OC,`isNotNull`);var kC=uC(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=AC(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function AC(e){let[t,n=`center`]=e.split(`-`);return[t,n]}uC(AC,`getSideAndAlignFromPlacement`);var jC=Object.defineProperty,MC=S.forwardRef(((e,t)=>jC(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=S.useState(!1);Gc(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?ar.createPortal((0,U.jsx)(SS.div,{...r,ref:t}),o):null},`Portal`)),NC=Object.defineProperty,PC=(e,t)=>NC(e,`name`,{value:t,configurable:!0});function FC(e,t){return S.useReducer((e,n)=>t[e][n]??e,e)}PC(FC,`useStateMachine`);var IC=PC(e=>{let{present:t,children:n}=e,r=LC(t),i=typeof n==`function`?n({present:r.isPresent}):S.Children.only(n),a=zC(r.ref,VC(i));return typeof n==`function`||r.isPresent?S.cloneElement(i,{ref:a}):null},`Presence`);function LC(e){let[t,n]=S.useState(),r=S.useRef(null),i=S.useRef(e),a=S.useRef(`none`),o=S.useRef(void 0),[s,c]=FC(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return S.useEffect(()=>{s===`mounted`?(a.current=o.current??BC(r.current),o.current=void 0):a.current=`none`},[s]),Gc(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=BC(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),Gc(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=PC(a=>{let o=BC(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=PC(e=>{e.target===t&&(a.current=BC(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:S.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=BC(t)}else r.current=null;n(e)},[])}}PC(LC,`usePresence`);function RC(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}PC(RC,`setRef`);function zC(...e){let t=S.useRef(e);return t.current=e,S.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=RC(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():RC(n[e],null)}}},[])}PC(zC,`useStableComposedRefs`);function BC(e){return e?.animationName||`none`}PC(BC,`getAnimationName`);function VC(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}PC(VC,`getElementRef`);var HC=Object.defineProperty,UC=(e,t)=>HC(e,`name`,{value:t,configurable:!0}),WC=S.useInsertionEffect||Gc;function GC({prop:e,defaultProp:t,onChange:n=UC(()=>{},`onChange`),caller:r}){let[i,a,o]=KC({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,S.useCallback(t=>{if(s){let n=qC(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}UC(GC,`useControllableState`);function KC({defaultProp:e,onChange:t}){let[n,r]=S.useState(e),i=S.useRef(n),a=S.useRef(t);return WC(()=>{a.current=t},[t]),S.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}UC(KC,`useUncontrolledState`);function qC(e){return typeof e==`function`}UC(qC,`isFunction`);var JC=Symbol(`RADIX:SYNC_STATE`);function YC(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=tl(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=S.useReducer((t,n)=>{if(n.type===JC)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=S.useRef(p);S.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=S.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return S.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:JC,state:i})},[i,d.state,c]),[h,f]}UC(YC,`useControllableStateReducer`);var XC=Object.defineProperty,ZC=(e,t)=>XC(e,`name`,{value:t,configurable:!0}),QC=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),$C=S.forwardRef(ZC(function(e,t){return(0,U.jsx)(SS.span,{...e,ref:t,style:{...QC,...e.style}})},`VisuallyHidden`)),ew=Object.defineProperty,tw=(e,t)=>ew(e,`name`,{value:t,configurable:!0}),[nw,rw]=vS(`Tooltip`,[hC]),iw=hC(),aw=`TooltipProvider`,ow=700,sw=`tooltip.open`,[cw,lw]=nw(aw),uw=tw(e=>{let{__scopeTooltip:t,delayDuration:n=ow,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=S.useRef(!0),s=S.useRef(!1),c=S.useRef(0);return S.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,U.jsx)(cw,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:S.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:S.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:S.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),dw=`Tooltip`,[fw,pw]=nw(dw),mw=tw(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=lw(dw,e.__scopeTooltip),l=iw(t),[u,d]=S.useState(null),[f,p]=S.useState(void 0),m=Xc(),h=S.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=S.useRef(!1),[y,b]=GC({prop:r,defaultProp:i??!1,onChange:tw(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(sw))):c.onClose(),a?.(e)},`onChange`),caller:dw}),x=S.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),C=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),w=S.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),T=S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);S.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let E=f??m;return(0,U.jsx)(vC,{...l,children:(0,U.jsx)(fw,{scope:t,contentId:E,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:S.useCallback(()=>{c.isOpenDelayedRef.current?T():C()},[c.isOpenDelayedRef,T,C]),onTriggerLeave:S.useCallback(()=>{g?w():(window.clearTimeout(h.current),h.current=0)},[w,g]),onOpen:C,onClose:w,disableHoverableContent:g,children:n})})},`Tooltip`),hw=`TooltipTrigger`,gw=S.forwardRef(tw(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=pw(hw,n),o=lw(hw,n),s=iw(n),c=Io(t,S.useRef(null),a.onTriggerChange),l=S.useRef(!1),u=S.useRef(!1),d=S.useCallback(()=>l.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,U.jsx)(bC,{asChild:!0,...s,children:(0,U.jsx)(SS.button,{"aria-describedby":a.open?Nw(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:uS(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:uS(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:uS(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:uS(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:uS(e.onBlur,a.onClose),onClick:uS(e.onClick,a.onClose)})})},`TooltipTrigger`)),_w=`TooltipPortal`,[vw,yw]=nw(_w,{forceMount:void 0}),bw=tw(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=pw(_w,t);return(0,U.jsx)(vw,{scope:t,forceMount:n,children:(0,U.jsx)(IC,{present:n||a.open,children:(0,U.jsx)(MC,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),xw=`TooltipContent`,Sw=S.forwardRef(tw(function(e,t){let n=yw(xw,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=pw(xw,e.__scopeTooltip);return(0,U.jsx)(IC,{present:r||o.open,children:o.disableHoverableContent?(0,U.jsx)(Tw,{side:i,...a,ref:t}):(0,U.jsx)(Cw,{side:i,...a,ref:t})})},`TooltipContent`)),Cw=S.forwardRef(tw(function(e,t){let n=pw(xw,e.__scopeTooltip),r=lw(xw,e.__scopeTooltip),i=S.useRef(null),a=Io(t,i),[o,s]=S.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=S.useCallback(()=>{s(null),d(!1)},[d]),p=S.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Ow(r,Dw(r,n.getBoundingClientRect())),a=kw(t.getBoundingClientRect()),o=jw([...i,...a]);s(o),d(!0)},[d]);return S.useEffect(()=>()=>f(),[f]),S.useEffect(()=>{if(c&&u){let e=tw(e=>p(e,u),`handleTriggerLeave`),t=tw(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),S.useEffect(()=>{if(o){let e=tw(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Aw(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,U.jsx)(Tw,{...e,ref:a})},`TooltipContentHoverable`)),ww=Vo(`TooltipContent`),Tw=S.forwardRef(tw(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=pw(xw,n),u=iw(n),{onClose:d}=l,[f,p]=S.useState(null),m=Io(t,p);qS(f),S.useEffect(()=>(document.addEventListener(sw,d),()=>document.removeEventListener(sw,d)),[d]),S.useEffect(()=>{if(l.trigger){let e=tw(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:h}=l;return Gc(()=>(h(a),()=>{h(void 0)}),[a,h]),(0,U.jsx)(FS,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,U.jsxs)(wC,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:m,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,U.jsx)(ww,{children:r}),i?(0,U.jsx)($C,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Ew=S.forwardRef(tw(function(e,t){let{__scopeTooltip:n,...r}=e,i=iw(n);return(0,U.jsx)(DC,{...i,...r,ref:t})},`TooltipArrow`));function Dw(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}tw(Dw,`getExitSideFromRect`);function Ow(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}tw(Ow,`getPaddedExitPoints`);function kw(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}tw(kw,`getPointsFromRect`);function Aw(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}tw(Aw,`isPointInPolygon`);function jw(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),Mw(t)}tw(jw,`getHull`);function Mw(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}tw(Mw,`getHullPresorted`);function Nw(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}tw(Nw,`concatAriaDescribedby`);function Pw({delayDuration:e=0,...t}){return(0,U.jsx)(uw,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Fw(e){return(0,U.jsx)(Pw,{children:(0,U.jsx)(mw,{"data-slot":`tooltip`,...e})})}function Iw(e){return(0,U.jsx)(gw,{"data-slot":`tooltip-trigger`,...e})}function Lw({className:e,sideOffset:t=0,children:n,...r}){return(0,U.jsx)(bw,{children:(0,U.jsxs)(Sw,{"data-slot":`tooltip-content`,sideOffset:t,className:J(`z-50 w-fit origin-(--radix-tooltip-content-transform-origin) animate-in rounded-md bg-foreground px-3 py-1.5 text-xs text-balance text-background fade-in-0 zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95`,e),...r,children:[n,(0,U.jsx)(Ew,{className:`z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground`})]})})}var Rw=10,zw=`grid grid-cols-[minmax(0,210px)_1fr_minmax(0,128px)] items-center gap-6`;function Bw({actor:e,history:t,requests:n,failed:r,timeWindow:i}){let[a,o]=(0,S.useState)(!1),s=e&&Wp(e.instances),c=t&&Vw(t),l=a?s:s?.slice(0,Rw);return(0,U.jsx)(Mx,{title:`Residency`,aside:(0,U.jsx)(Hw,{}),busy:!l&&!r,className:`pb-3`,children:r?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5`,children:[(0,U.jsx)(iS,{timeWindow:i,grid:zw,label:`Instance`,trailing:`Time live`}),l&&c?l.map(e=>(0,U.jsx)(Uw,{instance:e,periods:c.get(e.actorId)??[],requests:n&&n.filter(t=>t.actorId===e.actorId),timeWindow:i},e.actorId)):(0,U.jsx)(Jw,{})]}),s&&(0,U.jsx)(tS,{shown:l?.length??0,total:s.length,noun:`instance`,expandLabel:`Show All Instances`,expanded:a,onToggle:()=>o(!a)})]})})}function Vw({periods:e}){let t=new Map;for(let n of e)n.status===`live`&&t.set(n.actorId,[...t.get(n.actorId)??[],n]);return t}function Hw(){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-success`}),`Live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`w-4 border-t border-dashed border-muted-foreground/60`}),`Dormant`]})]})}function Uw({instance:e,periods:t,requests:n,timeWindow:r}){let i=e.status===`live`,a=oS(t,r,i&&r.live),o=Ww(a);return(0,U.jsxs)(Tn,{to:Hp(e.actorId),className:`${zw} h-11.5 border-b border-border/50 transition-colors outline-none last:border-b-0 hover:bg-muted/40 focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2.5`,children:[(0,U.jsx)(`span`,{"aria-hidden":!0,className:J(`size-2 shrink-0 rounded-full`,i?`bg-success`:`border border-muted-foreground/50`)}),(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-[13px] font-medium`,children:e.actorId}),(0,U.jsx)(`span`,{className:`mt-0.5 block truncate text-[11px] text-muted-foreground tabular-nums`,children:Gw(i,t,e,r.fromMs)})]})]}),(0,U.jsx)(Kw,{segments:a,requests:n,label:`${e.actorId}: ${o?`live ${$i(o)}`:`dormant`}, ${pa(r)}`}),(0,U.jsx)(`span`,{className:J(`text-right text-[13px] tabular-nums`,o?`text-foreground/85`:`text-muted-foreground`),children:$i(o)})]})}function Ww(e){return e.reduce((e,t)=>e+t.toMs-t.fromMs,0)}function Gw(e,t,n,r){if(e){let e=t.at(-1)?.fromMs;return e&&e>r?`Woke ${Vi(e)}`:`Live`}let i=t.at(-1)?.toMs??n.lastActiveAtMs;return i?`Slept ${Vi(i)}`:`Dormant`}function Kw({segments:e,requests:t,label:n}){return(0,U.jsx)(aS,{label:n,children:e.map(e=>(0,U.jsx)(qw,{segment:e,requests:t},e.left))})}function qw({segment:e,requests:t}){let n=t&&Zp(t,e);return(0,U.jsxs)(Fw,{children:[(0,U.jsx)(Iw,{asChild:!0,children:(0,U.jsx)(`span`,{className:J(`absolute top-1/2 h-2.5 -translate-y-1/2 rounded-full bg-success shadow-[0_0_12px_color-mix(in_oklab,var(--success)_20%,transparent)] before:absolute before:-inset-x-1.5 before:-inset-y-2`,e.now&&`rounded-r-[1px] after:absolute after:top-0.75 after:right-1 after:size-1 after:rounded-full after:bg-background`),style:{left:`${e.left*100}%`,width:`${e.width*100}%`}})}),(0,U.jsxs)(Lw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`font-medium`,children:Ki(e.fromMs,e.toMs)}),(0,U.jsxs)(`div`,{className:`mt-1 opacity-80`,children:[`Active `,$i(e.toMs-e.fromMs),` · `,n?Zi(n.length,`request`):`requests unavailable`]})]})]})}function Jw(){return Array.from({length:4},(e,t)=>(0,U.jsxs)(`div`,{className:`${zw} h-11.5 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2.5`,children:[(0,U.jsx)($,{className:`size-2 rounded-full`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-3.5 w-32`}),(0,U.jsx)($,{className:`mt-1.5 h-2.5 w-16`})]})]}),(0,U.jsx)($,{className:`h-2.5 rounded-full`,style:{width:`${70-t*15}%`}}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-12`})]},t))}var Yw=300,Xw=64,Zw=8;function Qw({values:e,color:t,label:n,describePoint:r}){let i=(0,S.useId)(),[a,o]=(0,S.useState)(null),s=tT(e),c=s.map(({x:e,y:t},n)=>`${n?`L`:`M`}${e.toFixed(1)},${t.toFixed(1)}`).join(` `),l=a===null?void 0:s[a];return(0,U.jsxs)(`div`,{className:`relative mt-auto h-16 w-full`,children:[(0,U.jsxs)(`svg`,{viewBox:`0 0 ${Yw} ${Xw}`,preserveAspectRatio:`none`,role:`img`,"aria-label":n,className:`block h-full w-full overflow-visible`,children:[(0,U.jsx)(`defs`,{children:(0,U.jsxs)(`linearGradient`,{id:i,x1:`0`,y1:`0`,x2:`0`,y2:`1`,children:[(0,U.jsx)(`stop`,{offset:`0`,style:{stopColor:t,stopOpacity:.16}}),(0,U.jsx)(`stop`,{offset:`1`,style:{stopColor:t,stopOpacity:0}})]})}),(0,U.jsx)(`line`,{x1:`0`,y1:63.5,x2:Yw,y2:63.5,className:`stroke-border`,vectorEffect:`non-scaling-stroke`}),(0,U.jsx)(`path`,{d:`${c} L${Yw},${Xw} L0,${Xw} Z`,fill:`url(#${i})`}),(0,U.jsx)(`path`,{d:c,fill:`none`,style:{stroke:t},strokeWidth:1.75,strokeLinejoin:`round`,vectorEffect:`non-scaling-stroke`}),l&&(0,U.jsx)(`line`,{x1:l.x,x2:l.x,y1:0,y2:Xw,className:`stroke-muted-foreground/50`,strokeDasharray:`2 2`,vectorEffect:`non-scaling-stroke`})]}),l&&(0,U.jsx)($w,{point:l,color:t}),r&&s.map((e,t)=>(0,U.jsx)(eT,{style:nT(t,s.length),point:r(t),onOpenChange:e=>o(n=>e?t:n===t?null:n)},t))]})}function $w({point:e,color:t}){return(0,U.jsx)(`span`,{"aria-hidden":!0,className:`pointer-events-none absolute size-2 -translate-1/2 rounded-full border-2 border-background`,style:{left:`${e.x/Yw*100}%`,top:`${e.y/Xw*100}%`,backgroundColor:t}})}function eT({style:e,point:t,onOpenChange:n}){return(0,U.jsxs)(Fw,{onOpenChange:n,children:[(0,U.jsx)(Iw,{asChild:!0,children:(0,U.jsx)(`span`,{className:`absolute inset-y-0`,style:e})}),(0,U.jsxs)(Lw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`opacity-80`,children:t.at}),(0,U.jsx)(`div`,{className:`font-medium`,children:t.value})]})]})}function tT(e){let t=Math.min(...e),n=Math.max(...e)-t||1,r=Yw/Math.max(e.length-1,1);return e.map((e,i)=>({x:i*r,y:Zw+(1-(e-t)/n)*40}))}function nT(e,t){let n=t>1?e/(t-1):.5,r=.5/Math.max(t-1,1),i=Math.max(0,n-r),a=Math.min(1,n+r);return{left:`${i*100}%`,width:`${(a-i)*100}%`}}function rT({label:e,value:t,unit:n,busy:r,failed:i,series:a,axis:o,color:s,chartLabel:c,describePoint:l}){return(0,U.jsxs)(Xx,{label:e,value:t,unit:r?(0,U.jsx)($,{className:`h-3.5 w-9`}):n,busy:r,children:[i&&(0,U.jsx)(`p`,{className:`mt-2 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}),r?(0,U.jsx)(iT,{ticks:o.length}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Qw,{values:a,color:s,label:c,describePoint:l}),(0,U.jsx)(`div`,{className:`mt-1.5 flex justify-between text-xs text-muted-foreground tabular-nums`,children:o.map(e=>(0,U.jsx)(`span`,{children:e},e))})]})]})}function iT({ticks:e}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($,{className:`mt-auto h-16 w-full rounded-sm`}),(0,U.jsx)(`div`,{className:`mt-1.5 flex h-4 items-center justify-between`,children:Array.from({length:e},(e,t)=>(0,U.jsx)($,{className:`h-3 w-9`},t))})]})}function aT({label:e,pick:t,color:n,chartLabel:r,requests:i,failed:a,timeWindow:o}){let s=i&&qp(i,o,t),c=!s&&!a,[l,u]=Qi(s?.average??0),d=s?l:c?(0,U.jsx)($,{className:`h-11 w-20`}):`—`,f=s?.series??Array(_a(o)).fill(0);return(0,U.jsx)(rT,{label:e,value:d,unit:u,busy:c,failed:!s&&a,series:f,axis:ma(o,2),color:n,chartLabel:r,describePoint:e=>({at:ha(o,e),value:Xi(f[e]??0)})})}function oT(){let{actorName:e=``}=mt(),{actorTypes:t,isError:n}=Ba(),r=Ma(),{requests:i,isError:a}=Pp(e),{residency:o,isError:s}=Bp(e,r),c=t?.actors.find(t=>t.actorName===e)??null;return(0,U.jsxs)(`section`,{"aria-labelledby":`actor-type-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(sT,{actorName:e,actor:c,loading:!t&&!n}),t&&!c?(0,U.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`No actor type named `,e,` is deployed.`]}):(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-3`,children:[(0,U.jsx)(Qx,{summary:c&&Up(c),failed:n}),(0,U.jsx)(aT,{label:`Avg Queue Time`,pick:Gp,color:`var(--chart-1)`,chartLabel:`Average queue time, ${pa(r)}`,requests:i,failed:a,timeWindow:r}),(0,U.jsx)(aT,{label:`Avg Request Latency`,pick:Kp,color:`var(--chart-2)`,chartLabel:`Average request latency, ${pa(r)}`,requests:i,failed:a,timeWindow:r})]}),(0,U.jsx)(Lx,{actor:c,requests:i,failed:n,now:r.toMs}),(0,U.jsx)(Bw,{actor:c,history:o,requests:i,failed:n||s,timeWindow:r})]})]})}function sT({actorName:e,actor:t,loading:n}){return(0,U.jsx)(jx,{titleId:`actor-type-heading`,title:e,back:{to:`..`,label:`Overview`},meta:t?`Actor type · ${Zi(t.instances.length,`instance`)}`:n?(0,U.jsx)($,{className:`h-3.5 w-40`}):`Actor type`,aside:(0,U.jsx)(kx,{})})}function cT({requests:e,failed:t,timeWindow:n,color:r}){let i=e&&lT(e,n),a=!i&&!t,o=i?Ji(i.current):a?(0,U.jsx)($,{className:`h-11 w-28`}):`—`,s=i?.series??Array(_a(n)).fill(0);return(0,U.jsx)(rT,{label:`Requests / Second`,value:o,unit:`req/s`,busy:a,failed:!i&&t,series:s,axis:ma(n,2),color:r,chartLabel:`Requests per second, ${pa(n)}`,describePoint:e=>({at:ha(n,e),value:`${Ji(s[e]??0)} req/s`})})}function lT(e,t){let n=Jp(e,t);return{current:n.at(-1)??0,series:n}}function uT(e){return{fromMs:e.openedAtMs,toMs:e.closedAtMs??1/0}}var dT=10,fT=`grid grid-cols-[minmax(0,150px)_1fr] items-center gap-6`;function pT({instance:e,sessions:t,livePeriods:n,requests:r,failed:i,timeWindow:a}){let[o,s]=(0,S.useState)(!1),c=e&&t&&mT(t,a),l=o?c:c?.slice(0,dT);return(0,U.jsx)(Mx,{title:`WebSocket Connections`,aside:(0,U.jsx)(hT,{closed:c?.some(e=>!e.open)??!1}),busy:!l&&!i,className:`pb-3`,children:i?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`mt-3.5`,children:[(0,U.jsx)(iS,{timeWindow:a,grid:fT}),e&&c&&l&&n?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(gT,{instance:e,periods:n,requests:r,timeWindow:a}),l.map(e=>(0,U.jsx)(_T,{row:e,requests:r,timeWindow:a},e.session.connectionId)),!c.length&&(0,U.jsxs)(`p`,{className:`pb-2 text-[13px] text-muted-foreground`,children:[`No connections, `,pa(a),`.`]})]}):(0,U.jsx)(yT,{})]}),c&&c.length>dT&&(0,U.jsx)(tS,{shown:l?.length??0,total:c.length,noun:`connection`,expandLabel:`Show All Connections`,expanded:o,onToggle:()=>s(!o)})]})})}function mT(e,t){return e.flatMap(e=>{let n=e.status===`open`,r=uT(e),[i]=oS([r],t,n&&t.live);return i?[{session:e,open:n,span:r,segment:i}]:[]}).sort((e,t)=>e.span.fromMs-t.span.fromMs)}function hT({closed:e}){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-1.25 w-4 rounded-full bg-success`}),`Instance live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-chart-2`}),`Open connection`]}),e&&(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-full bg-chart-2/55`}),`Closed`]})]})}function gT({instance:e,periods:t,requests:n,timeWindow:r}){let i=e.status===`live`,a=oS(t,r,i&&r.live),o=Ww(a);return(0,U.jsxs)(`div`,{className:`${fT} mt-3 mb-4.5 h-10.5 overflow-hidden rounded-lg border border-border/70 bg-background/60`,children:[(0,U.jsxs)(`div`,{className:`pl-3`,children:[(0,U.jsx)(`b`,{className:`block text-[13px] font-medium`,children:`Residency`}),i&&(0,U.jsxs)(`span`,{className:`mt-0.5 block text-[11px] text-muted-foreground tabular-nums`,children:[(0,U.jsx)(`span`,{className:`font-medium text-success`,children:`Live`}),` · `,$i(o)]})]}),(0,U.jsx)(Kw,{segments:a,requests:n,label:`Residency: live ${$i(o)}, ${pa(r)}`})]})}function _T({row:{session:e,open:t,span:n,segment:r},requests:i,timeWindow:a}){let o=i?Qp(i,e.connectionId,r):null,s=o?.messages??e.messagesIn??0,c=o?.failures??0,l=!t&&c>0;return(0,U.jsxs)(`div`,{className:`${fT} h-11 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-[13px] font-medium`,children:e.connectionId}),(0,U.jsxs)(`span`,{className:J(`mt-0.5 block truncate text-[11px] text-muted-foreground tabular-nums`,l&&`text-danger`),children:[t?`${Zi(s,`message`)} · ${$i(a.toMs-n.fromMs)}`:`Closed ${Vi(n.toMs)}`,l&&` · ${Zi(c,`failure`)}`]})]}),(0,U.jsx)(aS,{label:`${e.connectionId}: ${e.status}, ${Ki(r.fromMs,r.toMs)}`,children:(0,U.jsx)(vT,{messages:s,failures:c,segment:r,open:t,failed:l})})]})}function vT({messages:e,failures:t,segment:n,open:r,failed:i}){return(0,U.jsxs)(Fw,{children:[(0,U.jsx)(Iw,{asChild:!0,children:(0,U.jsx)(`span`,{className:J(`absolute top-1/2 h-2.5 min-w-1 -translate-y-1/2 rounded-full before:absolute before:-inset-x-1.5 before:-inset-y-2`,r?`bg-chart-2 shadow-[0_0_12px_color-mix(in_oklab,var(--chart-2)_20%,transparent)]`:`bg-chart-2/55`,n.now&&`rounded-r-[1px] after:absolute after:top-0.75 after:right-1 after:size-1 after:rounded-full after:bg-background`,!r&&`after:absolute after:-top-0.75 after:right-0 after:h-4 after:w-0.5 after:rounded-[1px]`,!r&&(i?`after:bg-danger`:`after:bg-chart-2`)),style:{left:`${n.left*100}%`,width:`${n.width*100}%`}})}),(0,U.jsxs)(Lw,{className:`tabular-nums`,children:[(0,U.jsx)(`div`,{className:`font-medium`,children:Ki(n.fromMs,n.toMs)}),(0,U.jsxs)(`div`,{className:`mt-1 opacity-80`,children:[Zi(e,`message`),` · `,Zi(t,`failure`)]})]})]})}function yT(){return Array.from({length:4},(e,t)=>(0,U.jsxs)(`div`,{className:`${fT} h-11 border-b border-border/50 last:border-b-0`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-3.5 w-24`}),(0,U.jsx)($,{className:`mt-1.5 h-2.5 w-14`})]}),(0,U.jsx)($,{className:`h-2.5 rounded-full`,style:{width:`${60-t*12}%`,marginLeft:`${t*10}%`}})]},t))}function bT(e,t){let[n,r]=(0,S.useState)(e);return(0,S.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}var xT=e=>Ur(e?e(0,null):null)[0],ST=Promise.resolve(),CT=pi(Si,e=>(t,n,r)=>{let i=(0,S.useRef)(!1),{cache:a,initialSize:o=1,revalidateAll:s=!1,persistSize:c=!1,revalidateFirstPage:l=!0,revalidateOnMount:u=!1,parallel:d=!1}=r,[,,,f]=lr.get(Zr),p;try{p=xT(t),p&&=ii+p}catch{}let[m,h,g]=Sr(a,p),_=(0,S.useCallback)(()=>B(m()._l)?o:m()._l,[a,p,o]);(0,or.useSyncExternalStore)((0,S.useCallback)(e=>p?g(p,()=>{e()}):()=>{},[a,p]),_,_);let v=(0,S.useCallback)(()=>{let e=m()._l;return B(e)?o:e},[p,o]),y=(0,S.useRef)(v());Fr(()=>{if(!i.current){i.current=!0;return}p&&h({_l:c?y.current:v()})},[p,a]);let b=u&&!i.current,x=e(p,async e=>{let i=m()._i,o=m()._r,c=lr.get(a),u=c[8],p=()=>c[8]!==u;h({_r:void 0});let g=[],_=v(),[y]=Sr(a,e),x=y().data,S=[],C=null;for(let e=0;e<_;++e){let[c,u]=Ur(t(e,d?null:C));if(!c)break;let[m,h]=Sr(a,c),_=m().data,v=s||i||B(_)||l&&!e&&!B(x)||b||x&&!B(x[e])&&!r.compare(x[e],_);if(n&&(typeof o==`function`?o(_,u):v)){let t=async()=>{if(!(c in f))_=await n(u);else{let e=f[c];delete f[c],_=await e}p()||h({data:_,_k:u}),g[e]=_};d?S.push(t):await t()}else g[e]=_;d||(C=_)}return d&&await Promise.all(S.map(e=>e())),p()||h({_i:void 0}),g},r),C=(0,S.useCallback)(function(e,t){let n=typeof t==`boolean`?{revalidate:t}:t||{},r=n.revalidate!==!1;return p?(r&&(B(e)?h({_i:!0,_r:n.revalidate}):h({_i:!1,_r:n.revalidate})),arguments.length?x.mutate(e,{...n,revalidate:r}):x.mutate()):ST},[p,a]),w=(0,S.useCallback)(e=>{if(!p)return ST;let[,n]=Sr(a,p),r;if(fr(e)?r=e(v()):typeof e==`number`&&(r=e),typeof r!=`number`)return ST;n({_l:r}),y.current=r;let i=[],[o]=Sr(a,p),s=null;for(let e=0;e<r;++e){let[n]=Ur(t(e,s)),[r]=Sr(a,n),c=n?r().data:void 0;if(B(c))return C(o().data);i.push(c),s=c}return C(i)},[p,a,C,v]);return{size:v(),setSize:w,mutate:C,get data(){return x.data},get error(){return x.error},get isValidating(){return x.isValidating},get isLoading(){return x.isLoading}}}),wT=[`debug`,`info`,`warn`,`error`],TT=1e3,ET=[1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,10800,21600,43200,86400].map(e=>e*TT),DT=60,OT=[`message`,`msg`,`event`],kT=6;function AT(e){return ET.find(t=>e/t<=DT)??ET.at(-1)}function jT({fromMs:e,toMs:t},n){let r=Math.floor(e/n)*n;return{fromMs:r,toMs:Math.max(Math.ceil(t/n)*n,r+n)}}function MT({buckets:e}){let t={debug:0,info:0,warn:0,error:0};for(let n of e)for(let e of wT)t[e]+=n[e];return t}function NT(e,t){return wT.slice(t?wT.indexOf(t):0).reduce((t,n)=>t+e[n],0)}function PT(e){let t=e.split(`
|
|
54
|
+
`);return{firstLine:t[0]??``,moreLines:t.length-1,json:LT(e)}}function FT(e){if(Array.isArray(e))return{headline:`${e.length} items`,fields:[]};let t=OT.find(t=>typeof e[t]==`string`),n=Object.entries(e).filter(([e])=>e!==t).slice(0,kT).map(([e,t])=>[e,RT(t)]);return{headline:t&&e[t],fields:n}}function IT(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-/iu.test(e)?e.slice(0,8):e.length>14?`${e.slice(0,4)}…${e.slice(-8)}`:e}function LT(e){let t=e.trim();if(t.startsWith(`{`)||t.startsWith(`[`))try{let e=JSON.parse(t);return typeof e==`object`&&e?e:void 0}catch{return}}function RT(e){if(Array.isArray(e))return`[…]`;if(typeof e==`object`&&e)return`{…}`;let t=JSON.stringify(e);return t.length>40?`${t.slice(0,39)}…`:t}var zT=2e3;function BT(e){let t=wT.slice(e?wT.indexOf(e):0);return(e,n)=>{let r=WT(n).filter(e=>t.includes(e.level));if(r.length===0)return e;let i=new Set(e.map(e=>e.logId));return[...r.filter(e=>!i.has(e.logId)).reverse(),...e].slice(0,zT)}}function VT({fromMs:e,bucketMs:t,buckets:n},r){let i={};return n.forEach((n,r)=>i[e+r*t]=n),{bucketMs:t,readAtMs:r,counts:i}}var HT=(e,t)=>{let n=WT(t).filter(t=>t.timestampMs>=e.readAtMs&&wT.includes(t.level));if(n.length===0)return e;let r={...e.counts};for(let t of n){let n=Math.floor(t.timestampMs/e.bucketMs)*e.bucketMs;r[n]={...r[n]??GT(),[t.level]:(r[n]?.[t.level]??0)+1}}return{...e,counts:r}};function UT({bucketMs:e,counts:t},{fromMs:n,toMs:r}){let i=[];for(let a=n;a<r;a+=e)i.push(t[a]??GT());return{fromMs:n,bucketMs:e,buckets:i}}function WT(e){return e.flatMap(e=>e.type===`log`?[e.item]:[])}function GT(){return{debug:0,info:0,warn:0,error:0}}function KT(e,t,n){let r=Oi(e,t.live?qT(n):null),i=JT(e,t,n),{data:a}=Di(Un(e,n),async()=>[],BT(n.level),r),o=YT(e,t,n,r),s=i.data;return{lines:s?XT([...a??[],...s.flatMap(e=>e.records)]):null,hasOlder:!!s?.at(-1)?.nextCursor,loadingOlder:!!(s&&i.size>s.length),loadOlder:()=>i.setSize(e=>e+1),histogram:o,isError:!s&&!!i.error}}function qT(e){let t=Yn({...e,level:null});return t.set(`signals`,`logs`),t}function JT(e,t,n){let r=new Jn(e);return CT((r,i)=>i&&!i.nextCursor?null:[...Vn(e,n),...ba(t),r===0?null:i.nextCursor],e=>r.listLogs(n,xa(t),e.at(-1)),{revalidateFirstPage:!1,revalidateOnFocus:!1})}function YT(e,t,n,r){let i=AT(t.toMs-t.fromMs),{data:a}=Di([...Hn(e,n),...ba(t),i],async()=>{let r=Date.now();return VT(await new Jn(e).getLogHistogram(n,jT(xa(t),i),i),r)},HT,r,{keepPreviousData:!0});return a&&UT(a,jT(xa(t),i))}function XT(e){return[...new Map(e.map(e=>[e.logId,e])).values()].sort((e,t)=>t.timestampMs-e.timestampMs||(e.logId<t.logId?1:-1))}var ZT={debug:`bg-muted-foreground/25`,info:`bg-muted-foreground/55`,warn:`bg-warning`,error:`bg-danger`},QT=[2,4,6,10],$T=6;function eE({histogram:e,level:t,live:n,onZoom:r}){let[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(null);if(!e)return(0,U.jsx)($,{className:`mt-4 mb-3.5 h-[122px] w-full rounded-sm`});let{buckets:c,fromMs:l,bucketMs:u}=e,d=i!==null&&i<c.length?i:null,f=tE(Math.max(...c.map(e=>NT(e,null)),1)),p=e=>{let t=e.currentTarget.getBoundingClientRect();return Math.min(c.length-1,Math.max(0,Math.floor((e.clientX-t.left)/t.width*c.length)))};return(0,U.jsxs)(`div`,{className:`mt-4 border-b pb-3.5`,children:[(0,U.jsxs)(`div`,{className:`relative pt-4`,children:[(0,U.jsx)(nE,{scale:f}),(0,U.jsxs)(`div`,{role:`img`,"aria-label":`Log lines per ${$i(u)}; drag across the chart to zoom into a time range`,className:`relative ml-[42px] h-24 cursor-crosshair touch-none select-none`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId),s({from:p(e),to:p(e)})},onPointerMove:e=>{a(p(e)),o&&s({...o,to:p(e)})},onPointerUp:e=>{let t=p(e);s(null),o&&o.from!==t&&r({fromMs:l+Math.min(o.from,t)*u,toMs:l+(Math.max(o.from,t)+1)*u})},onPointerLeave:()=>a(null),children:[(0,U.jsx)(`div`,{className:`absolute inset-0 flex items-end gap-0.5`,children:c.map((e,n)=>(0,U.jsx)(rE,{counts:e,scale:f,level:t,hovered:n===d},n))}),o&&(0,U.jsx)(iE,{drag:o,buckets:c.length}),d!==null&&!o&&NT(c[d],null)>0&&(0,U.jsx)(aE,{index:d,histogram:e})]})]}),(0,U.jsx)(oE,{histogram:e,live:n})]})}function tE(e){for(let t=1;;t*=10){let n=QT.find(n=>n*t>=e);if(n)return n*t}}function nE({scale:e}){return(0,U.jsx)(`div`,{"aria-hidden":!0,className:`pointer-events-none absolute inset-x-0 top-4 h-24`,children:[e,e/2,0].map((e,t)=>(0,U.jsx)(`div`,{className:`absolute inset-x-0 border-t border-dashed border-border/80`,style:{top:`${t*50}%`},children:(0,U.jsx)(`span`,{className:`absolute bottom-0.5 left-0 text-[11px] leading-none text-muted-foreground tabular-nums`,children:V(e)})},t))})}function rE({counts:e,scale:t,level:n,hovered:r}){let i=n?wT.indexOf(n):0;return NT(e,null)?(0,U.jsx)(`span`,{className:J(`flex h-full flex-1 flex-col-reverse rounded-[1px]`,r&&`outline outline-offset-1 outline-foreground`),children:wT.map((n,r)=>e[n]?(0,U.jsx)(`span`,{className:J(`block w-full last:rounded-t-[1px]`,ZT[n],r<i&&`opacity-25`),style:{height:`${e[n]/t*100}%`}},n):null)}):(0,U.jsx)(`span`,{className:`h-px flex-1 bg-border/60`})}function iE({drag:e,buckets:t}){let n=Math.min(e.from,e.to),r=Math.abs(e.to-e.from)+1;return(0,U.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 rounded-sm bg-foreground/10 ring-1 ring-foreground/40`,style:{left:`${n/t*100}%`,width:`${r/t*100}%`}})}function aE({index:e,histogram:{buckets:t,fromMs:n,bucketMs:r}}){let i=t[e],a=n+e*r,o=r<6e4?Hi:Vi,s=e>=t.length/2;return(0,U.jsxs)(`div`,{className:`pointer-events-none absolute top-1 z-10 rounded-lg border bg-card px-3 py-2 text-xs whitespace-nowrap text-muted-foreground shadow-(--shadow-popover)`,style:s?{right:`calc(${100-e/t.length*100}% + 8px)`}:{left:`calc(${(e+1)/t.length*100}% + 8px)`},children:[(0,U.jsxs)(`b`,{className:`mb-1 block font-medium text-foreground tabular-nums`,children:[o(a),` – `,o(a+r),` · `,Zi(NT(i,null),`line`)]}),(0,U.jsx)(`span`,{className:`flex gap-3.5 tabular-nums`,children:[...wT].reverse().map(e=>(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`i`,{className:J(`size-1.5 rounded-full`,ZT[e])}),V(i[e]),` `,e]},e))})]})}function oE({histogram:{fromMs:e,bucketMs:t,buckets:n},live:r}){let i=t*n.length;return(0,U.jsx)(`div`,{"aria-hidden":!0,className:`mt-1.5 ml-[42px] flex justify-between text-[11px] text-muted-foreground tabular-nums`,children:Array.from({length:7},(t,n)=>(0,U.jsx)(`span`,{children:r&&n===$T?`Now`:Wi(e+n/$T*i,i)},n))})}var sE=`grid items-center gap-x-4`,cE=16,lE=240,uE={time:104,level:58,request:104},dE={debug:`border-border/60 text-muted-foreground/70`,info:`text-muted-foreground`,warn:`border-warning/35 bg-warning/10 text-warning`,error:`border-danger/40 bg-danger/15 text-danger`},fE={debug:``,info:``,warn:`shadow-[inset_2px_0_0_color-mix(in_oklab,var(--warning)_75%,transparent)]`,error:`bg-[linear-gradient(90deg,color-mix(in_oklab,var(--danger)_10%,transparent),transparent_70%)] shadow-[inset_2px_0_0_var(--danger)]`},pE=/("(?:\\.|[^"\\])*")(?=\s*:)\s*:|("(?:\\.|[^"\\])*")|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?|\b(?:true|false|null)\b/gu;function mE({lines:e,failed:t,search:n,filtered:r,onFilterRequest:i,onClearFilters:a,onReachEnd:o,columns:s}){let c=hE(s),[l,u]=(0,S.useState)({all:!1,toggled:new Set});if(t)return(0,U.jsx)(`p`,{className:`py-6 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`});if(!e)return(0,U.jsx)(gE,{layout:c});if(!e.length)return(0,U.jsx)(_E,{filtered:r,onClearFilters:a});let d=e=>l.all!==l.toggled.has(e),f=e.some(e=>d(e.logId)),p=e=>u(({all:t,toggled:n})=>{let r=new Set(n);return r.delete(e)||r.add(e),{all:t,toggled:r}});return(0,U.jsxs)(`div`,{className:`max-h-[640px] overflow-y-auto`,onScroll:e=>{let t=e.currentTarget;o&&t.scrollHeight-t.scrollTop-t.clientHeight<lE&&o()},children:[(0,U.jsxs)(`div`,{className:`${sE} sticky top-0 z-[1] h-7.5 border-b bg-card px-2 text-xs text-muted-foreground`,style:{gridTemplateColumns:c.gridTemplateColumns},children:[(0,U.jsx)(`span`,{children:`Time`}),s.level&&(0,U.jsx)(`span`,{children:`Level`}),s.request&&(0,U.jsx)(`span`,{children:`Request`}),(0,U.jsxs)(`span`,{className:`col-span-2 flex items-center justify-between`,children:[`Message`,(0,U.jsxs)(`button`,{type:`button`,onClick:()=>u({all:!f,toggled:new Set}),className:`flex items-center gap-1 rounded-sm outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:[f?(0,U.jsx)(_o,{className:`size-3.5`}):(0,U.jsx)(yo,{className:`size-3.5`}),f?`Collapse all`:`Expand all`]})]})]}),(0,U.jsx)(`ol`,{children:e.map(e=>(0,U.jsx)(vE,{line:e,layout:c,expanded:d(e.logId),onToggle:()=>p(e.logId),search:n,onFilterRequest:i},e.logId))})]})}function hE(e){let t=[uE.time,...e.level?[uE.level]:[],...e.request?[uE.request]:[]];return{columns:e,gridTemplateColumns:`${t.map(e=>`${e}px`).join(` `)} minmax(0,1fr) 16px`,messageOffset:t.reduce((e,t)=>e+t+cE,0)}}function gE({layout:e}){return(0,U.jsx)(`div`,{className:`py-2`,children:Array.from({length:6},(t,n)=>(0,U.jsxs)(`div`,{className:`${sE} h-8.5 px-2`,style:{gridTemplateColumns:e.gridTemplateColumns},children:[(0,U.jsx)($,{className:`h-3.5 w-20`}),e.columns.level&&(0,U.jsx)($,{className:`h-4 w-11`}),e.columns.request&&(0,U.jsx)($,{className:`h-4 w-16`}),(0,U.jsx)($,{className:`h-3.5`,style:{width:`${35+n*23%50}%`}})]},n))})}function _E({filtered:e,onClearFilters:t}){return(0,U.jsx)(`p`,{className:`py-8 text-center text-[13px] text-muted-foreground`,children:e?(0,U.jsxs)(U.Fragment,{children:[`No lines match these filters.`,` `,(0,U.jsx)(`button`,{type:`button`,onClick:t,className:`font-medium text-foreground underline decoration-border underline-offset-3 hover:decoration-foreground`,children:`Clear filters`})]}):`No logs in this time range.`})}function vE({line:e,layout:t,expanded:n,onToggle:r,search:i,onFilterRequest:a}){let o=PT(e.message);return(0,U.jsxs)(`li`,{className:J(`border-b border-border/55 px-2 last:border-b-0`,fE[e.level]),children:[(0,U.jsxs)(`div`,{onClick:r,className:`${sE} min-h-8.5 cursor-pointer text-[12.5px]`,style:{gridTemplateColumns:t.gridTemplateColumns},children:[(0,U.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground tabular-nums`,children:qi(e.timestampMs)}),t.columns.level&&(0,U.jsx)(`span`,{className:J(`justify-self-start rounded-sm border px-1.5 py-px text-[9.5px] font-bold tracking-[0.07em] uppercase`,dE[e.level]),children:e.level}),t.columns.request&&(0,U.jsx)(yE,{requestId:e.requestId,onFilter:a}),(0,U.jsx)(bE,{parsed:o,level:e.level,search:i}),(0,U.jsx)(`button`,{type:`button`,"aria-expanded":n,"aria-label":n?`Collapse line`:`Expand line`,onClick:e=>{e.stopPropagation(),r()},className:`rounded-sm text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring`,children:(0,U.jsx)(ho,{className:J(`size-3.5 transition-transform`,n&&`rotate-90`)})})]}),n&&(0,U.jsx)(SE,{line:e,parsed:o,indent:t.messageOffset})]})}function yE({requestId:e,onFilter:t}){return e===null?(0,U.jsx)(`span`,{className:`font-mono text-muted-foreground`,title:`Logged outside a request, for example by a timer that fired after its call returned`,children:`—`}):e===`activate`?(0,U.jsx)(`span`,{className:`justify-self-start rounded-sm border border-dashed px-1.5 text-[11px] text-muted-foreground`,title:`Logged by the constructor while the actor was loading`,children:`constructor`}):(0,U.jsx)(`button`,{type:`button`,title:`Show only request ${e}`,onClick:n=>{n.stopPropagation(),t(e)},className:`max-w-full justify-self-start truncate rounded-sm bg-chart-2/12 px-1.5 py-px font-mono text-[11.5px] text-chart-2 outline-none hover:bg-chart-2/22 focus-visible:ring-2 focus-visible:ring-ring`,children:IT(e)})}function bE({parsed:e,level:t,search:n}){return e.json?(0,U.jsx)(xE,{value:e.json,search:n}):(0,U.jsxs)(`span`,{className:J(`flex min-w-0 items-center gap-2 font-mono`,t===`debug`?`text-muted-foreground`:`text-foreground/95`),children:[(0,U.jsx)(`span`,{className:`truncate`,children:EE(e.firstLine,n)}),e.moreLines>0&&(0,U.jsxs)(`span`,{className:`shrink-0 rounded-full border px-2 font-sans text-[11px] text-muted-foreground`,children:[`+`,Zi(e.moreLines,`line`)]})]})}function xE({value:e,search:t}){let{headline:n,fields:r}=FT(e);return(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2 font-mono`,children:[(0,U.jsx)(`span`,{className:`shrink-0 rounded-sm border border-chart-2/40 px-1 font-sans text-[9px] font-bold tracking-[0.07em] text-chart-2`,children:`JSON`}),(0,U.jsxs)(`span`,{className:`truncate`,children:[n&&(0,U.jsx)(`span`,{className:`mr-2.5 font-medium text-foreground`,children:EE(n,t)}),r.map(([e,n],r)=>(0,U.jsxs)(S.Fragment,{children:[r>0&&(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:` · `}),(0,U.jsxs)(`span`,{className:`text-muted-foreground`,children:[e,` `]}),(0,U.jsx)(`span`,{className:`text-foreground/95`,children:EE(n,t)})]},e))]})]})}function SE({line:e,parsed:t,indent:n}){let r={timestamp:new Date(e.timestampMs).toISOString(),level:e.level,actorName:e.actorName,actorId:e.actorId,requestId:e.requestId,message:t.json??e.message};return(0,U.jsxs)(`div`,{className:`pr-6 pb-4`,style:{paddingLeft:n},children:[(0,U.jsx)(CE,{value:r}),(0,U.jsx)(`div`,{className:`mt-3`,children:(0,U.jsx)(TE,{text:JSON.stringify(r,null,2)})})]})}function CE({value:e}){return(0,U.jsx)(`pre`,{className:`max-h-96 overflow-auto rounded-lg border bg-(--code-bg) px-3.5 py-2.5 font-mono text-xs leading-relaxed break-words whitespace-pre-wrap`,children:wE(JSON.stringify(e,null,2))})}function wE(e){let t=[],n=0;for(let r of e.matchAll(pE)){let[i,a,o]=r;t.push(e.slice(n,r.index),(0,U.jsx)(`span`,{className:a?`text-(--tk-plain)`:o?`text-(--tk-string)`:`text-(--tk-type)`,children:a??i},r.index)),a&&t.push(i.slice(a.length)),n=r.index+i.length}return t.push(e.slice(n)),t}function TE({text:e}){let[t,n]=(0,S.useState)(!1);return(0,U.jsxs)(jc,{variant:`outline`,size:`xs`,onClick:()=>void navigator.clipboard.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1500)}),children:[t?(0,U.jsx)(co,{}):(0,U.jsx)(Co,{}),t?`Copied`:`Copy JSON`]})}function EE(e,t){if(!t)return e;let n=e.toLowerCase(),r=t.toLowerCase(),i=[],a=0;for(let t=n.indexOf(r);t>=0;t=n.indexOf(r,a))i.push(e.slice(a,t),(0,U.jsx)(`mark`,{className:`rounded-[2px] bg-primary/25 text-foreground shadow-[inset_0_-1px_0_var(--primary)]`,children:e.slice(t,t+r.length)},t)),a=t+r.length;return i.push(e.slice(a)),i}var DE=[{value:`all`,label:`All`},{value:`info`,label:`Info+`},{value:`warn`,label:`Warn+`},{value:`error`,label:`Error`}],OE=`logs`,kE=300,AE={level:!0,request:!1},jE=`durable-actors-observer:log-columns`,ME=[[`level`,`Level`],[`request`,`Request`]];function NE({actorName:e,actorId:t,requests:n,requestId:r,onRequestChange:i,timeWindow:a}){let{baseUrl:o}=Ba(),s=Na(),[c,l]=(0,S.useState)(`all`),[u,d]=(0,S.useState)(``),[f,p]=LE(),m=bT(u.trim(),kE),h=c===`all`?null:c,g=KT(o,a,{actorName:e,actorId:t,requestId:r,level:h,search:m}),_=new Map(n?.map(e=>[e.requestId,e])),v=()=>{i(null),d(``),l(`all`)};return(0,U.jsxs)(Mx,{id:OE,title:`Logs`,aside:(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,U.jsx)(PE,{value:u,onChange:d}),(0,U.jsx)(FE,{value:c,onChange:l,totals:g.histogram&&MT(g.histogram)}),(0,U.jsx)(IE,{columns:f,onChange:p})]}),busy:!g.lines&&!g.isError,className:`pb-3.5`,children:[r&&(0,U.jsx)(zE,{requestId:r,call:_.get(r),onRemove:()=>i(null),onClearFilters:v}),(0,U.jsx)(eE,{histogram:g.histogram,level:h,live:a.live,onZoom:e=>s({mode:`static`,...e})}),(0,U.jsx)(mE,{lines:g.lines,failed:g.isError,search:m,filtered:!!(r||m||h),onFilterRequest:i,onClearFilters:v,onReachEnd:g.hasOlder&&!g.loadingOlder?g.loadOlder:void 0,columns:f})]})}function PE({value:e,onChange:t}){return(0,U.jsxs)(`label`,{className:`flex h-8 w-64 items-center gap-2 rounded-lg border bg-background/40 px-2.5 text-[12.5px] focus-within:border-ring focus-within:ring-2 focus-within:ring-ring/40`,children:[(0,U.jsx)(ko,{"aria-hidden":!0,className:`size-3.5 shrink-0 text-muted-foreground`}),(0,U.jsx)(`input`,{value:e,maxLength:256,placeholder:`Search messages`,"aria-label":`Search log messages`,onChange:e=>t(e.target.value),onKeyDown:e=>{e.key===`Escape`&&t(``)},className:`min-w-0 flex-1 bg-transparent text-foreground outline-none placeholder:text-muted-foreground`}),e&&(0,U.jsx)(`button`,{type:`button`,"aria-label":`Clear search`,onClick:()=>t(``),className:`grid size-4.5 shrink-0 place-items-center rounded-full bg-muted text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(jo,{className:`size-2.5`})})]})}function FE({value:e,onChange:t,totals:n}){return(0,U.jsx)(Nx,{label:`Minimum log level`,value:e,onChange:t,options:DE.map(e=>({...e,icon:(e.value===`warn`||e.value===`error`)&&(0,U.jsx)(`i`,{className:J(`size-1.5 rounded-full`,ZT[e.value])}),badge:n&&V(NT(n,e.value===`all`?null:e.value))}))})}function IE({columns:e,onChange:t}){return(0,U.jsxs)(bx,{children:[(0,U.jsx)(xx,{asChild:!0,children:(0,U.jsxs)(jc,{variant:`outline`,size:`sm`,className:`h-8 text-xs`,children:[(0,U.jsx)(xo,{}),`Columns`]})}),(0,U.jsx)(Sx,{align:`end`,className:`w-44 p-1.5`,children:ME.map(([n,r])=>(0,U.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2.5 rounded-sm px-2 py-1.5 text-[13px] hover:bg-muted`,children:[(0,U.jsx)(`input`,{type:`checkbox`,checked:e[n],onChange:r=>t({...e,[n]:r.target.checked}),className:`accent-primary`}),r]},n))})]})}function LE(){let[e,t]=(0,S.useState)(RE);return[e,e=>{t(e);try{localStorage.setItem(jE,JSON.stringify(e))}catch{}}]}function RE(){try{return{...AE,...JSON.parse(localStorage.getItem(jE)??`{}`)}}catch{return AE}}function zE({requestId:e,call:t,onRemove:n,onClearFilters:r}){return(0,U.jsxs)(`div`,{className:`mt-3.5 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:`Filtered to`}),(0,U.jsxs)(`span`,{className:`inline-flex h-7 items-center gap-2 rounded-full border border-chart-2/45 bg-chart-2/12 pr-1.5 pl-2.5 text-foreground`,children:[(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`Request`}),(0,U.jsx)(`code`,{title:e,className:`font-mono text-[11.5px] text-chart-2`,children:IT(e)}),t&&(0,U.jsxs)(`span`,{className:`text-muted-foreground`,children:[t.operation,t.outcome!==`completed`&&` · ${t.outcome}`]}),(0,U.jsx)(`button`,{type:`button`,"aria-label":`Remove the request filter`,onClick:n,className:`grid size-4.5 place-items-center rounded-full bg-background/40 text-muted-foreground hover:text-foreground`,children:(0,U.jsx)(jo,{className:`size-2.5`})})]}),(0,U.jsx)(`button`,{type:`button`,onClick:r,className:`text-foreground underline decoration-border underline-offset-3 hover:decoration-foreground`,children:`Clear filters`})]})}function BE({values:e,label:t,highlighted:n,onSelect:r,barLabel:i,className:a}){let o=Math.max(...e,1);return r?(0,U.jsx)(`div`,{role:`group`,"aria-label":t,className:J(`flex items-end gap-0.5`,a),children:e.map((e,t)=>(0,U.jsx)(`button`,{type:`button`,"aria-label":i?.(t),"aria-pressed":t===n,onClick:()=>r(t),className:J(`group relative flex h-full flex-1 items-end rounded-[2px] outline-none focus-visible:ring-2 focus-visible:ring-ring`,t===n&&`after:absolute after:inset-x-0 after:-bottom-1 after:h-0.5 after:rounded-full after:bg-foreground`),children:(0,U.jsx)(VE,{share:e/o,highlighted:t===n})},t))}):(0,U.jsx)(`div`,{role:`img`,"aria-label":t,className:J(`flex items-end gap-1`,a),children:e.map((e,t)=>(0,U.jsx)(VE,{share:e/o,highlighted:t===n},t))})}function VE({share:e,highlighted:t}){return(0,U.jsx)(`span`,{className:J(`block flex-1 rounded-t-[1px]`,e?`bg-muted-foreground/40 group-hover:bg-muted-foreground/70`:`bg-border`,t&&`bg-foreground group-hover:bg-foreground`),style:{height:e?`${e*100}%`:`1px`}})}function HE({className:e,...t}){return(0,U.jsx)(`span`,{"data-slot":`queue-stripes`,className:J(`bg-[repeating-linear-gradient(135deg,var(--chart-1)_0_2px,transparent_2px_4px)] shadow-[inset_0_0_0_1px_color-mix(in_oklab,var(--chart-1)_50%,transparent)]`,e),...t})}var UE={completed:`Completed`,failed:`Failed`,rejected:`Rejected`,rerouted:`Rerouted`,interrupted:`Interrupted`},WE={method:`Method`,websocket:`WebSocket`};function GE({call:e,blocker:t,onShowLogs:n}){let r=e.outcome!==`completed`;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Op,{className:`shrink-0 gap-2 border-b px-5 py-4 pr-14`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(YE,{state:e.hostState}),(0,U.jsx)(`span`,{className:J(`text-xs`,r?`text-danger`:`text-muted-foreground`),children:UE[e.outcome]})]}),(0,U.jsx)(kp,{translate:`no`,className:`truncate text-lg tracking-tight`,children:e.operation}),(0,U.jsxs)(Ap,{className:`text-[13px] tabular-nums`,children:[WE[e.kind],` · `,Ui(e.startedAtMs)]})]}),(0,U.jsx)(KE,{call:e,blocker:t,onShowLogs:n})]})}function KE({call:e,blocker:t,onShowLogs:n}){let r=e.queueWaitMs,i=r===null?null:Kp(e),a=r!==null&&e.durationMs>0?r/e.durationMs*100:0;return(0,U.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto px-5 py-4`,children:[(0,U.jsxs)(`div`,{className:`grid grid-cols-3 gap-3`,children:[(0,U.jsx)(JE,{label:`Queue`,ms:r}),(0,U.jsx)(JE,{label:`In actor`,ms:i}),(0,U.jsx)(JE,{label:`Overall`,ms:e.durationMs})]}),(0,U.jsxs)(`div`,{className:`mt-3.5 flex h-2 overflow-hidden rounded-full bg-muted`,"aria-hidden":!0,children:[a>0&&(0,U.jsx)(HE,{style:{width:`${a}%`}}),(0,U.jsx)(`span`,{className:J(`min-w-0.5 flex-1`,e.outcome===`completed`?`bg-foreground`:`bg-danger`)})]}),r===null?(0,U.jsx)(`p`,{className:`mt-2.5 text-xs text-muted-foreground`,children:`Did not begin processing.`}):t&&(0,U.jsxs)(`p`,{className:`mt-2.5 text-xs text-muted-foreground`,children:[`Waited behind`,` `,(0,U.jsx)(`b`,{translate:`no`,className:`font-medium text-foreground`,children:t.operation}),`.`]}),(0,U.jsxs)(`dl`,{className:`mt-5 border-t`,children:[(0,U.jsx)(XE,{label:`Request ID`,value:e.requestId,mono:!0}),(0,U.jsx)(XE,{label:`Routing`,value:Xi(e.routingMs)}),(0,U.jsx)(XE,{label:`Kind`,value:WE[e.kind]}),(0,U.jsx)(XE,{label:`Outcome`,value:UE[e.outcome],danger:e.outcome!==`completed`}),(0,U.jsx)(XE,{label:`Actor`,value:e.actorName,mono:!0}),(0,U.jsx)(XE,{label:`Instance`,value:e.actorId,mono:!0}),(0,U.jsx)(XE,{label:`Host`,value:e.hostId,mono:!0}),(0,U.jsx)(XE,{label:`Session`,value:e.sessionId,mono:!0}),e.connectionId&&(0,U.jsx)(XE,{label:`Connection`,value:e.connectionId,mono:!0})]}),(0,U.jsx)(qE,{onShowLogs:n})]})}function qE({onShowLogs:e}){let t=Np();function n(){t.close(),e()}return(0,U.jsxs)(jc,{variant:`link`,size:`sm`,className:`mt-3 px-0 text-[13px] has-[>svg]:px-0`,onClick:n,children:[`View logs`,(0,U.jsx)(io,{"aria-hidden":!0})]})}function JE({label:e,ms:t}){let[n,r]=Qi(t??0);return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`div`,{className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(`div`,{className:`mt-1.5 flex items-baseline gap-1.5 text-[22px] leading-none font-medium tracking-tight tabular-nums`,children:t===null?`—`:(0,U.jsxs)(U.Fragment,{children:[n,(0,U.jsx)(`span`,{className:`text-xs font-medium tracking-normal text-muted-foreground`,children:r})]})})]})}function YE({state:e}){let t=e===`warm`;return(0,U.jsxs)(`span`,{className:J(`inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] font-medium tracking-wide uppercase`,t?`border-success/25 bg-success/15 text-success`:`border-warning/30 bg-warning/15 text-warning`),children:[(0,U.jsx)(`span`,{className:J(`size-1.5 rounded-full`,t?`bg-success`:`bg-warning`)}),t?`Warm`:`Cold`]})}function XE({label:e,value:t,mono:n,danger:r}){return(0,U.jsxs)(`div`,{className:`grid grid-cols-[108px_minmax(0,1fr)] gap-3 border-b border-border/60 py-2.5`,children:[(0,U.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,U.jsx)(`dd`,{translate:n?`no`:void 0,className:J(`text-[13px] text-foreground/90`,n&&`font-mono text-xs break-all`,r&&`text-danger`),children:t})]})}var ZE=.9,QE=[1,2,5,10,20,50,100,200,500,1e3,2e3,5e3,1e4,3e4,6e4,3e5,9e5,36e5,216e5],$E=[{label:`ms`,ms:1,below:1e3},{label:`s`,ms:1e3,below:6e4},{label:`min`,ms:6e4,below:1/0}],eD=`grid grid-cols-[52px_minmax(0,150px)_1fr_52px_70px_70px] items-center gap-4.5`,tD={completed:`ok`,failed:`failed`,rejected:`rejected`,rerouted:`rerouted`,interrupted:`interrupted`},nD={method:`rpc`,websocket:`ws`};function rD({requests:e,failed:t,timeWindow:n,onShowLogs:r}){let[i,a]=(0,S.useState)(null),o=Np(),s=e&&Xp(e),c=s&&Yp(s,n),l=c&&(i!==null&&i<c.length?i:iD(c)),u=s&&l!==null?aD(s,n,l):null,d=u?.slice(-40);function f(e,t){if(o.openKey===e.eventId)return o.close();let n=s?_D(e,s):void 0;o.show({key:e.eventId,content:(0,U.jsx)(GE,{call:e,blocker:n,onShowLogs:()=>r(e.requestId)})},t)}return(0,U.jsx)(Mx,{title:`Requests`,aside:(0,U.jsx)(oD,{}),busy:!c&&!t,className:`pb-3.5`,children:t?(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):c&&l!==null&&u&&d?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(sD,{counts:c,selected:l,onSelect:a,timeWindow:n}),(0,U.jsx)(cD,{calls:d,total:u.length,inspectedId:o.openKey,onInspect:f})]}):(0,U.jsx)(xD,{})})}function iD(e){let t=[...e].reverse().findIndex(e=>e>0);return e.length-1-Math.max(t,0)}function aD(e,t,n){return e.filter(e=>va(t,e.startedAtMs)===n).sort((e,t)=>e.startedAtMs-t.startedAtMs)}function oD(){return(0,U.jsxs)(`div`,{className:`flex gap-4.5 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(HE,{className:`h-2 w-4 rounded-xs`}),`Queue wait`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.75`,children:[(0,U.jsx)(`span`,{className:`h-2 w-4 rounded-xs bg-foreground`}),`Running`]})]})}function sD({counts:e,selected:t,onSelect:n,timeWindow:r}){let i=e=>r.fromMs+e*r.stepMs,a=Math.min(i(t+1),r.toMs),o=r.stepMs<6e4?Hi:Vi;return(0,U.jsxs)(`div`,{className:`mt-3.5 grid items-end gap-x-6 gap-y-3 border-b pt-3 pb-3.5 md:grid-cols-[282px_1fr]`,children:[(0,U.jsxs)(`div`,{className:`text-xs text-muted-foreground tabular-nums`,children:[(0,U.jsxs)(`b`,{className:`mb-0.5 block text-[13px] font-medium text-foreground`,children:[`Requests per `,$i(r.stepMs)]}),o(i(t)),` – `,o(a)]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(BE,{values:e,highlighted:t,onSelect:n,label:`Requests over the selected time range; pick a bar to inspect its requests`,barLabel:t=>`${Zi(e[t]??0,`request`)} from ${Vi(i(t))}`,className:`h-10`}),(0,U.jsx)(`div`,{"aria-hidden":!0,className:`mt-1.5 flex justify-between text-[11px] text-muted-foreground tabular-nums`,children:ma(r,3).map((e,t)=>(0,U.jsx)(`span`,{children:e},t))})]})]})}function cD({calls:e,total:t,inspectedId:n,onInspect:r}){if(!e.length)return(0,U.jsx)(`p`,{className:`py-6 text-[13px] text-muted-foreground`,children:`No requests in this slice.`});let i=e[0].startedAtMs,a=uD(lD(e)),o=dD(e);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(fD,{scale:a}),(0,U.jsx)(`ol`,{children:o.map(t=>(0,U.jsx)(pD,{row:t,calls:e,origin:i,scale:a,inspectedId:n,onInspect:r},t.key))}),(0,U.jsx)(bD,{shown:e.length,total:t})]})}function lD(e){return Math.max(...e.map(e=>e.startedAtMs+e.durationMs))-e[0].startedAtMs}function uD(e){let t=e/ZE,n=QE.find(e=>t/e<=6)??QE.at(-1),r=Math.max(n,Math.ceil(t/n)*n);return{spanMs:r,ticks:Array.from({length:r/n+1},(e,t)=>t*n),unit:$E.find(e=>r<e.below)??$E.at(-1)}}function dD(e){let t=new Map;for(let n of e){let e=`${n.kind}:${n.operation}`,r=t.get(e)??{key:e,kind:n.kind,operation:n.operation,calls:[]};r.calls.push(n),t.set(e,r)}return[...t.values()].sort((e,t)=>t.calls.length-e.calls.length||e.calls[0].startedAtMs-t.calls[0].startedAtMs)}function fD({scale:{spanMs:e,ticks:t,unit:n}}){return(0,U.jsxs)(`div`,{"aria-hidden":!0,className:`${eD} h-7.5 border-b text-xs text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:`Kind`}),(0,U.jsx)(`span`,{children:`Method`}),(0,U.jsx)(`div`,{className:`relative h-full text-[11px] tabular-nums`,children:t.map((r,i)=>(0,U.jsx)(`span`,{className:J(`absolute top-2`,i===0?``:i===t.length-1?`-translate-x-full`:`-translate-x-1/2`),style:{left:`${r/e*100}%`},children:i===0?`+0\u00a0${n.label}`:Ji(r/n.ms)},r))}),(0,U.jsx)(`span`,{className:`text-right`,children:`Calls`}),(0,U.jsx)(`span`,{className:`text-right`,children:`Avg wait`}),(0,U.jsx)(`span`,{className:`text-right`,children:`Avg run`})]})}function pD({row:e,calls:t,origin:n,scale:r,inspectedId:i,onInspect:a}){let o=e.calls.some(mD),s=em(e.calls,Gp)??0,c=em(e.calls,Kp)??0;return(0,U.jsxs)(`li`,{className:`${eD} h-10 border-b border-border/50 text-xs tabular-nums last:border-b-0`,children:[(0,U.jsx)(hD,{kind:e.kind}),(0,U.jsx)(`span`,{translate:`no`,className:J(`truncate text-[13px]`,o?`text-danger`:`text-foreground/90`),children:e.operation}),(0,U.jsx)(gD,{row:e,calls:t,origin:n,scale:r,inspectedId:i,onInspect:a}),(0,U.jsx)(`span`,{className:J(`text-right`,o?`text-danger`:`text-foreground/90`),children:V(e.calls.length)}),(0,U.jsx)(`span`,{className:`text-right text-muted-foreground`,children:Xi(s)}),(0,U.jsx)(`span`,{className:`text-right text-foreground/90`,children:Xi(c)})]})}function mD(e){return e.outcome!==`completed`}function hD({kind:e}){return(0,U.jsx)(`span`,{className:J(`rounded-sm border py-0.5 text-center text-[10px] font-medium tracking-wide uppercase`,e===`websocket`?`border-chart-2/35 text-chart-2`:`text-foreground`),children:nD[e]})}function gD({row:e,calls:t,origin:n,scale:{spanMs:r,ticks:i},inspectedId:a,onInspect:o}){let s=e=>`${e/r*100}%`;return(0,U.jsx)(`div`,{role:`group`,"aria-label":`${e.operation} calls`,className:`relative h-full bg-[linear-gradient(90deg,color-mix(in_oklab,var(--border)_55%,transparent)_1px,transparent_1px)]`,style:{backgroundSize:`${100/(i.length-1)}% 100%`},children:e.calls.map(e=>(0,U.jsx)(vD,{call:e,blocker:_D(e,t),selected:e.eventId===a,onInspect:o,left:s(e.startedAtMs-n),width:s(e.durationMs)},e.eventId))})}function _D(e,t){if(e.queueWaitMs)return t.find(t=>t.eventId!==e.eventId&&t.startedAtMs+(t.queueWaitMs??0)<=e.startedAtMs&&e.startedAtMs<t.startedAtMs+t.durationMs)}function vD({call:e,blocker:t,selected:n,onInspect:r,left:i,width:a}){let o=e.durationMs>0?(e.queueWaitMs??0)/e.durationMs:0,s=mD(e),c=Kp(e)??e.durationMs,l=`${e.operation}, ${e.hostState}${e.queueWaitMs?`, waited ${Xi(e.queueWaitMs)}`:``}, ran ${Xi(c)}${s?`, ${tD[e.outcome]}`:``}`;return(0,U.jsxs)(Fw,{children:[(0,U.jsx)(Iw,{asChild:!0,children:(0,U.jsxs)(`button`,{type:`button`,"aria-pressed":n,"aria-label":l,onClick:t=>r(e,t.currentTarget),className:J(`group absolute top-1/2 flex h-3 min-w-0.75 -translate-y-1/2 cursor-pointer border-0 bg-transparent p-0 before:absolute before:-inset-y-2 before:inset-x-0`,n&&`z-10`),style:{left:i,width:a},children:[o>0&&(0,U.jsx)(HE,{className:`h-full rounded-l-[2px]`,style:{width:`${o*100}%`}}),(0,U.jsx)(`span`,{className:J(`h-full min-w-0.75 flex-1 rounded-[2px] outline-offset-2 group-hover:outline-2 group-hover:outline-foreground group-focus-visible:outline-2 group-focus-visible:outline-foreground`,o>0&&`rounded-l-none`,n&&`outline-2 outline-foreground`,s?`bg-danger`:`bg-foreground`)}),s&&(0,U.jsx)(`span`,{className:`absolute top-1/2 left-full ml-2 -translate-y-1/2 text-[11px] whitespace-nowrap text-danger`,children:tD[e.outcome]})]})}),(0,U.jsx)(Lw,{className:`tabular-nums`,children:(0,U.jsx)(yD,{call:e,blocker:t})})]})}function yD({call:e,blocker:t}){let n=Kp(e)??e.durationMs;return(0,U.jsxs)(`span`,{children:[(0,U.jsx)(`b`,{className:`font-medium capitalize`,children:e.hostState}),` · `,e.queueWaitMs?(0,U.jsxs)(U.Fragment,{children:[`Waited `,(0,U.jsx)(`b`,{className:`font-medium`,children:Xi(e.queueWaitMs)}),t&&(0,U.jsxs)(U.Fragment,{children:[` `,`behind`,` `,(0,U.jsx)(`b`,{translate:`no`,className:`font-medium`,children:t.operation})]}),` `,`· ran `,(0,U.jsx)(`b`,{className:`font-medium`,children:Xi(n)})]}):(0,U.jsxs)(U.Fragment,{children:[`Ran `,(0,U.jsx)(`b`,{className:`font-medium`,children:Xi(n)})]}),mD(e)&&` · ${tD[e.outcome]}`]})}function bD({shown:e,total:t}){return e>=t?null:(0,U.jsxs)(`p`,{className:`border-t pt-3 text-xs text-muted-foreground tabular-nums`,children:[`Showing the latest `,V(e),` of `,V(t)]})}function xD(){return(0,U.jsxs)(`div`,{className:`mt-3.5 pb-1`,children:[(0,U.jsx)($,{className:`h-10 w-full rounded-sm`}),Array.from({length:5},(e,t)=>(0,U.jsxs)(`div`,{className:`${eD} h-10`,children:[(0,U.jsx)($,{className:`h-4`}),(0,U.jsx)($,{className:`h-3.5 w-28`}),(0,U.jsx)($,{className:`h-3 rounded-[2px]`,style:{width:`${20+t*12}%`,marginLeft:`${t*14}%`}}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-6`}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-10`}),(0,U.jsx)($,{className:`ml-auto h-3.5 w-10`})]},t))]})}function SD(){let{actorName:e=``,actorId:t=``}=mt(),{actorTypes:n,isError:r,sessions:i,isSocketsError:a}=Ba(),o=Ma(),{requests:s,isError:c}=Fp(e,t),{residency:l,isError:u}=Bp(e,o),d=n?.actors.find(t=>t.actorName===e)?.instances.find(e=>e.actorId===t)??null,f=i?.filter(n=>n.actorName===e&&n.actorId===t)??null,p=l&&(Vw(l).get(t)??[]),[m,h]=(0,S.useState)(null);function g(e){h(e),document.getElementById(OE)?.scrollIntoView({behavior:`smooth`,block:`start`})}return(0,U.jsxs)(`section`,{"aria-labelledby":`instance-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(CD,{actorName:e,actorId:t,instance:d,livePeriods:p,timeWindow:o,loading:!n&&!r}),n&&!d?(0,U.jsxs)(`p`,{className:`text-[13px] text-muted-foreground`,children:[`No `,e,` instance named `,t,` is deployed.`]}):(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 sm:grid-cols-2 lg:grid-cols-3`,children:[(0,U.jsx)(cT,{requests:s,failed:c,timeWindow:o,color:`var(--foreground)`}),(0,U.jsx)(aT,{label:`Avg Queue Wait`,pick:Gp,color:`var(--chart-1)`,chartLabel:`Average queue wait, ${pa(o)}`,requests:s,failed:c,timeWindow:o}),(0,U.jsx)(aT,{label:`Avg Request Time`,pick:Kp,color:`var(--foreground)`,chartLabel:`Average request time excluding the queue, ${pa(o)}`,requests:s,failed:c,timeWindow:o})]}),(0,U.jsx)(rD,{requests:s,failed:c,timeWindow:o,onShowLogs:g}),(0,U.jsx)(pT,{instance:d,sessions:f,livePeriods:p,requests:s,failed:r||a||u,timeWindow:o}),(0,U.jsx)(NE,{actorName:e,actorId:t,requests:s,requestId:m,onRequestChange:h,timeWindow:o})]})]})}function CD({actorName:e,actorId:t,instance:n,livePeriods:r,timeWindow:i,loading:a}){let o=n?.status===`live`;return(0,U.jsx)(jx,{titleId:`instance-heading`,title:t,back:{to:`../..`,relative:`path`,label:e},badge:n&&(0,U.jsx)(wD,{live:o}),meta:a?(0,U.jsx)($,{className:`h-3.5 w-64`}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{translate:`no`,children:e}),n&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{"aria-hidden":!0,children:`·`}),(0,U.jsx)(`span`,{children:TD(n,r,i)})]})]}),aside:(0,U.jsx)(kx,{})})}function wD({live:e}){return(0,U.jsx)(Px,{live:e,className:e?`rounded-full border border-success/25 bg-success/15 py-0.75 pr-2.25 pl-2 text-xs font-medium`:`rounded-full border px-2.25 py-0.75 text-xs font-medium`,children:e?`Live`:`Dormant`})}function TD(e,t,{fromMs:n,toMs:r}){if(e.status!==`live`)return e.lastActiveAtMs?`Last active ${ea(e.lastActiveAtMs,r)}`:`Dormant`;let i=t?.at(-1)?.fromMs;return i===void 0?`Live`:i<=n?`Live for the whole window`:`Live since ${Vi(i)} (${$i(r-i)})`}function ED(){let{actorTypes:e,isError:t}=Ba(),n=e&&DD(e),r=!n&&!t,i=n?V(n.live):r?(0,U.jsx)($,{className:`h-11 w-28`}):`—`;return(0,U.jsx)(Xx,{label:`Active Actors`,value:i,unit:r?(0,U.jsx)($,{className:`h-3.5 w-7`}):`live`,busy:r,children:n?(0,U.jsx)(OD,{...n}):(0,U.jsx)(kD,{failed:t})})}function DD(e){let t=e.actors.flatMap(e=>e.instances);return{live:t.filter(e=>e.status===`live`).length,dormant:t.filter(e=>e.status===`dormant`).length}}function OD({live:e,dormant:t}){let n=e+t,r=n?e/n:0;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Kx,{liveShare:r,label:`${V(e)} live actors, ${V(t)} dormant actors`,pulse:!0,className:`mt-auto h-10 rounded-sm`}),(0,U.jsx)(qx,{live:e,dormant:t})]})}function kD({failed:e}){return e?(0,U.jsx)(`p`,{className:`mt-2 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`}):(0,U.jsx)(Jx,{})}function AD(){let{actorTypes:e,isError:t}=Ba(),n=e&&e.actors.map(Up).sort((e,t)=>t.total-e.total);return(0,U.jsx)(Mx,{title:`Actor Types`,aside:(0,U.jsx)(jD,{}),busy:!n&&!t,className:`pb-2.5`,children:(0,U.jsx)(`div`,{className:`mt-1.5`,children:(0,U.jsx)(MD,{rows:n,failed:t})})})}function jD(){return(0,U.jsxs)(`div`,{className:`flex gap-4 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs bg-success`}),`Live`]}),(0,U.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-xs bg-border`}),`Dormant`]})]})}function MD({rows:e,failed:t}){if(t)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`Couldn't reach the observer API.`});if(!e)return(0,U.jsx)(LD,{});if(!e.length)return(0,U.jsx)(`p`,{className:`py-4 text-[13px] text-muted-foreground`,children:`No actor types deployed yet.`});let n=Math.max(...e.map(e=>e.total),1);return(0,U.jsx)(`ul`,{children:e.map(e=>(0,U.jsx)(FD,{row:e,largest:n},e.actorName))})}var ND=`grid items-center gap-x-7 gap-y-3 py-4 md:grid-cols-[190px_1fr_168px]`,PD=`border-t border-border/60 first:border-t-0`;function FD({row:e,largest:t}){let n=e.total?e.live/e.total:0;return(0,U.jsx)(`li`,{className:PD,children:(0,U.jsxs)(Tn,{to:Vp(e.actorName),className:`${ND} -mx-3 rounded-lg px-3 tabular-nums transition-colors outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`b`,{translate:`no`,className:`block truncate text-sm font-medium`,children:e.actorName}),(0,U.jsx)(`span`,{className:`mt-0.75 block text-xs text-muted-foreground`,children:Zi(e.total,`instance`)})]}),(0,U.jsx)(ID,{row:e,liveShare:n,width:e.total/t}),(0,U.jsxs)(`div`,{className:`grid grid-cols-2 gap-5 text-right`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{className:`block text-lg leading-tight font-bold tracking-tight`,children:V(e.live)}),(0,U.jsx)(`span`,{className:`mt-0.75 block text-xs text-success`,children:`live`})]}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`b`,{className:`block text-lg leading-tight font-medium tracking-tight text-foreground/85`,children:V(e.dormant)}),(0,U.jsx)(`span`,{className:`mt-0.75 block text-xs text-muted-foreground`,children:`dormant`})]})]})]})})}function ID({row:e,liveShare:t,width:n}){return(0,U.jsx)(`div`,{className:`relative flex h-5.5 items-center before:absolute before:inset-x-0 before:top-1/2 before:h-px before:bg-border/60`,children:(0,U.jsx)(Kx,{liveShare:t,label:`${V(e.live)} of ${V(e.total)} live, ${Yi(t)}`,className:`h-5.5 min-w-2.5 rounded-[3px]`,style:{width:`${n*100}%`}})})}function LD(){return(0,U.jsx)(`ul`,{children:[100,60,20].map(e=>(0,U.jsxs)(`li`,{className:`${ND} ${PD}`,children:[(0,U.jsxs)(`div`,{children:[(0,U.jsx)($,{className:`h-4 w-28`}),(0,U.jsx)($,{className:`mt-1.5 h-3 w-20`})]}),(0,U.jsx)($,{className:`h-5.5 rounded-[3px]`,style:{width:`${e}%`}}),(0,U.jsx)($,{className:`ml-auto h-8 w-32`})]},e))})}function RD(){let{requests:e,isRequestsError:t}=Ba(),n=Ma(),r=e&&BD(e,n),i=!r&&!t,a=(0,U.jsx)(zD,{total:r?.total,loading:i}),o=pa(n),s=r?.series??Array(_a(n)).fill(0);return(0,U.jsx)(rT,{label:`Total Requests`,value:a,unit:`requests`,busy:i,failed:!r&&t,series:s,axis:ma(n,2),color:`var(--chart-1)`,chartLabel:r?`Requests, ${o}, ${V(r.total)} in total`:`Requests, ${o}`,describePoint:e=>({at:ha(n,e),value:Zi(s[e]??0,`request`)})})}function zD({total:e,loading:t}){return e===void 0?t?(0,U.jsx)($,{className:`h-11 w-28`}):(0,U.jsx)(U.Fragment,{children:`—`}):(0,U.jsx)(U.Fragment,{children:V(e)})}function BD(e,t){let n=Yp(e,t);return{total:n.reduce((e,t)=>e+t,0),series:n}}var VD=36e5;VD/30;var HD=Array(30).fill(0);function UD(e){return[Vi(e-VD),Vi(e-VD/2),`Now`]}function WD(){let{actorTypes:e,sessions:t,isError:n,isSocketsError:r}=Ba(),i=Date.now(),a=n||r,o=e&&t&&GD(e,t,i),s=!o&&!a,c=o?V(o.open):s?(0,U.jsx)($,{className:`h-11 w-28`}):`—`,l=o?.series??HD;return(0,U.jsx)(rT,{label:`WebSocket Connections`,value:c,unit:`open`,busy:s,failed:!o&&a,series:l,axis:UD(i),color:`var(--chart-2)`,chartLabel:o?`Open WebSocket connections over the last hour, now ${V(o.open)}`:`Open WebSocket connections over the last hour`,describePoint:e=>({at:Vi(qD(i,e)),value:Zi(l[e]??0,`open connection`)})})}function GD(e,t,n){let r=e.actors.flatMap(e=>e.instances).reduce((e,t)=>e+t.connections.length,0);return{open:r,series:[...KD(t,n).slice(0,-1),r]}}function KD(e,t){return Array.from({length:30},(n,r)=>e.filter(e=>JD(e,qD(t,r))).length)}function qD(e,t){return e-VD+VD/29*t}function JD(e,t){let n=uT(e);return n.fromMs<=t&&t<n.toMs}function YD(){return(0,U.jsxs)(`section`,{"aria-labelledby":`overview-heading`,className:`flex flex-col gap-5`,children:[(0,U.jsx)(`header`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:(0,U.jsx)(`h1`,{id:`overview-heading`,className:`text-2xl font-bold tracking-tight`,children:`Overview`})}),(0,U.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-4 lg:grid-cols-3`,children:[(0,U.jsx)(ED,{}),(0,U.jsx)(RD,{}),(0,U.jsx)(WD,{})]}),(0,U.jsx)(AD,{})]})]})}function XD(){return(0,U.jsxs)(Mp,{children:[(0,U.jsx)(QD,{}),(0,U.jsxs)(zt,{children:[(0,U.jsx)(Lt,{index:!0,element:(0,U.jsx)(YD,{})}),(0,U.jsx)(Lt,{path:`actors/:actorName`,element:(0,U.jsx)(oT,{})}),(0,U.jsx)(Lt,{path:`actors/:actorName/instances/:actorId`,element:(0,U.jsx)(ja,{initialRange:sa,children:(0,U.jsx)(SD,{})})}),(0,U.jsx)(Lt,{path:`*`,element:(0,U.jsx)(It,{to:`..`,replace:!0})})]})]})}var ZD=[`actors`,`websockets`,`requests`];function QD(){let{pathname:e}=lt(),{mutate:t}=li(),n=(0,S.useRef)(!0);return(0,S.useEffect)(()=>{if(n.current){n.current=!1;return}t(e=>Array.isArray(e)&&ZD.includes(e[0]))},[e,t]),null}function $D(){return(0,U.jsx)(`main`,{className:`min-h-screen px-8 pt-7 pb-8 font-satoshi antialiased`,children:(0,U.jsx)(ja,{children:(0,U.jsx)(za,{children:(0,U.jsx)(wn,{children:(0,U.jsx)(XD,{})})})})})}(0,In.createRoot)(document.getElementById(`root`)).render((0,U.jsx)($D,{}));
|