@usex/mikrotik-mcp 5.10.0 → 5.11.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/cli.js +22 -10
- package/dist/index.js +1 -1
- package/dist/shared/{library-cv5qe3zh.js → library-drn9gmjm.js} +1 -1
- package/dist/shared/{library-kpx18cna.js → library-tm6yshkz.js} +22 -10
- package/dist/ui/observability.html +3 -3
- package/package.json +9 -9
- package/schemas/tool-catalog.json +1 -1
- /package/dist/shared/{cli-k3m3pxn8.js → cli-m947aqb2.js} +0 -0
|
@@ -58,7 +58,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
58
58
|
`+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{De=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Ee(n):``}function ke(e,t){switch(e.tag){case 26:case 27:case 5:return Ee(e.type);case 16:return Ee(`Lazy`);case 13:return e.child!==t&&t!==null?Ee(`Suspense Fallback`):Ee(`Suspense`);case 19:return Ee(`SuspenseList`);case 0:case 15:return Oe(e.type,!1);case 11:return Oe(e.type.render,!1);case 1:return Oe(e.type,!0);case 31:return Ee(`Activity`);case 30:return Ee(`ViewTransition`);default:return``}}function Ae(e){try{var t=``,n=null;do t+=ke(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
59
59
|
Error generating stack: `+e.message+`
|
|
60
60
|
`+e.stack}}var je=Object.prototype.hasOwnProperty,Me=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,Pe=t.unstable_shouldYield,Fe=t.unstable_requestPaint,Ie=t.unstable_now,Le=t.unstable_getCurrentPriorityLevel,Re=t.unstable_ImmediatePriority,ze=t.unstable_UserBlockingPriority,Be=t.unstable_NormalPriority,Ve=t.unstable_LowPriority,He=t.unstable_IdlePriority,Ue=t.log,We=t.unstable_setDisableYieldValue,Ge=null,Ke=null;function qe(e){if(typeof Ue==`function`&&We(e),Ke&&typeof Ke.setStrictMode==`function`)try{Ke.setStrictMode(Ge,e)}catch{}}var Je=Math.clz32?Math.clz32:Ze,Ye=Math.log,Xe=Math.LN2;function Ze(e){return e>>>=0,e===0?32:31-(Ye(e)/Xe|0)|0}var Qe=256,$e=262144,et=4194304;function tt(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 nt(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=tt(n))):i=tt(o):i=tt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=tt(n))):i=tt(o)):i=tt(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 rt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function it(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-Je(n),i=1<<r;t|=e[r],n&=~i}return t}function at(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 ot(){var e=et;return et<<=1,!(et&62914560)&&(et=4194304),e}function st(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ct(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lt(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-Je(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&&ut(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function ut(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Je(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function dt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Je(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function ft(e,t){var n=t&-t;return n=n&42?1:pt(n),(n&(e.suspendedLanes|t))===0?n:0}function pt(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 mt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function ht(){var e=ue.p;return e===0?(e=window.event,e===void 0?32:jh(e.type)):e}function gt(e,t){var n=ue.p;try{return ue.p=e,t()}finally{ue.p=n}}var _t=Math.random().toString(36).slice(2),vt=`__reactFiber$`+_t,yt=`__reactProps$`+_t,bt=`__reactContainer$`+_t,xt=`__reactEvents$`+_t,St=`__reactListeners$`+_t,Ct=`__reactHandles$`+_t,wt=`__reactResources$`+_t,Tt=`__reactMarker$`+_t,Et=`__reactLoad$`+_t;function Dt(e){delete e[vt],delete e[yt],delete e[St],delete e[Ct]}function Ot(e){var t;if(t=e[vt])return t;for(var n=e.parentNode;n;){if(t=n[bt]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=bm(e);e!==null;){if(n=e[vt])return n;e=bm(e)}return t}e=n,n=e.parentNode}return null}function kt(e){if(e=e[vt]||e[bt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function At(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function jt(e){var t=e[wt];return t||=e[wt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Mt(e){e[Tt]=!0}function Nt(e){e[Et]=void 0}var Pt=new Set,Ft={};function It(e,t){Lt(e,t),Lt(e+`Capture`,t)}function Lt(e,t){for(Ft[e]=t,e=0;e<t.length;e++)Pt.add(t[e])}var Rt=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]*$`),zt={},Bt={};function Vt(e){return je.call(Bt,e)?!0:je.call(zt,e)?!1:Rt.test(e)?Bt[e]=!0:(zt[e]=!0,!1)}var Ht=!1;function Ut(){var e=Ht;return Ht=!1,e}function Wt(e,t,n){if(Vt(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 Gt(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 Kt(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 qt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Jt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Yt(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 Xt(e){if(!e._valueTracker){var t=Jt(e)?`checked`:`value`;e._valueTracker=Yt(e,t,``+e[t])}}function Zt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Jt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var Qt=/[\n"\\]/g;function $t(e){return e.replace(Qt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function en(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=``+qt(t)):e.value!==``+qt(t)&&(e.value=``+qt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):nn(e,qt(n)):o===`number`&&e.value==t?nn(e,qt(e.value)):nn(e,qt(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=``+qt(s):e.removeAttribute(`name`)}function tn(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)){Xt(e);return}n=n==null?``:``+qt(n),t=t==null?n:``+qt(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),Xt(e)}function nn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function rn(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=``+qt(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 an(e,t,n){if(t!=null&&(t=``+qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+qt(n)}function on(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(B(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=qt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Xt(e)}function sn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var cn=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 ln(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||cn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function un(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]=``,Ht=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(ln(e,a,r),Ht=!0)}else for(var o in t)t.hasOwnProperty(o)&&ln(e,o,t[o])}function dn(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 fn=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`]]),pn=/^[\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 mn(e){return pn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function hn(){}var gn=null;function _n(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vn=null,yn=null;function bn(e){var t=kt(e);if(t&&(e=t.stateNode)){var n=e[yt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(en(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="`+$t(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[yt]||null;if(!a)throw Error(i(90));en(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&&Zt(r)}break a;case`textarea`:an(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&rn(e,!!n.multiple,t,!1)}}}var xn=!1;function Sn(e,t,n){if(xn)return e(t,n);xn=!0;try{return e(t)}finally{if(xn=!1,(vn!==null||yn!==null)&&(Gd(),vn&&(t=vn,e=yn,yn=vn=null,bn(t),e)))for(t=0;t<e.length;t++)bn(e[t])}}function Cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[yt]||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 wn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),Tn=!1;if(wn)try{var En={};Object.defineProperty(En,"passive",{get:function(){Tn=!0}}),window.addEventListener(`test`,En,En),window.removeEventListener(`test`,En,En)}catch{Tn=!1}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.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 kn=i.slice(e,1<r?1-r:void 0)}function jn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,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=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=D({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=D({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,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!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(D({},Hn,{dataTransfer:0})),Gn=Pn(D({},Ln,{relatedTarget:0})),Kn=Pn(D({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(D({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(D({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={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`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(D({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(D({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(D({},Fn,{submitter:0})),rr=Pn(D({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),ir=Pn(D({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Pn(D({},Hn,{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})),or=Pn(D({},Fn,{newState:0,oldState:0,source:0})),sr=[9,13,27,32],cr=wn&&`CompositionEvent`in window,lr=null;wn&&`documentMode`in document&&(lr=document.documentMode);var ur=wn&&`TextEvent`in window&&!lr,dr=wn&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=An(),kn=On=Dn=null,gr=!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 dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={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 br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){vn?yn?yn.push(r):yn=[r]:vn=r,t=tp(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,Cr=null;function wr(e){qf(e,0)}function Tr(e){if(Zt(At(e)))return e}function Er(e,t){if(e===`change`)return t}var Dr=!1;if(wn){var Or;if(wn){var kr=`oninput`in document;if(!kr){var Ar=document.createElement(`div`);Ar.setAttribute(`oninput`,`return;`),kr=typeof Ar.oninput==`function`}Or=kr}else Or=!1;Dr=Or&&(!document.documentMode||9<document.documentMode)}function jr(){Sr&&(Sr.detachEvent(`onpropertychange`,Mr),Cr=Sr=null)}function Mr(e){if(e.propertyName===`value`&&Tr(Cr)){var t=[];xr(t,Cr,e,_n(e)),Sn(wr,t)}}function Nr(e,t,n){e===`focusin`?(jr(),Sr=t,Cr=n,Sr.attachEvent(`onpropertychange`,Mr)):e===`focusout`&&jr()}function Pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tr(Cr)}function Fr(e,t){if(e===`click`)return Tr(t)}function Ir(e,t){if(e===`input`||e===`change`)return Tr(t)}function Lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Rr=typeof Object.is==`function`?Object.is:Lr;function zr(e,t){if(Rr(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(!je.call(t,i)||!Rr(e[i],t[i]))return!1}return!0}function Br(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 Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hr(e,t){var n=Vr(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=Vr(n)}}function Ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Br(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=Br(e.document)}return t}function Gr(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 Kr=wn&&`documentMode`in document&&11>=document.documentMode,qr=null,Jr=null,Yr=null,Xr=!1;function Zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xr||qr==null||qr!==Br(r)||(r=qr,`selectionStart`in r&&Gr(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}),Yr&&zr(Yr,r)||(Yr=r,r=tp(Jr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var $r={animationend:Qr(`Animation`,`AnimationEnd`),animationiteration:Qr(`Animation`,`AnimationIteration`),animationstart:Qr(`Animation`,`AnimationStart`),transitionrun:Qr(`Transition`,`TransitionRun`),transitionstart:Qr(`Transition`,`TransitionStart`),transitioncancel:Qr(`Transition`,`TransitionCancel`),transitionend:Qr(`Transition`,`TransitionEnd`)},ei={},ti={};wn&&(ti=document.createElement(`div`).style,`AnimationEvent`in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),`TransitionEvent`in window||delete $r.transitionend.transition);function ni(e){if(ei[e])return ei[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ti)return ei[e]=t[n];return e}var ri=ni(`animationend`),ii=ni(`animationiteration`),ai=ni(`animationstart`),oi=ni(`transitionrun`),si=ni(`transitionstart`),ci=ni(`transitioncancel`),li=ni(`transitionend`),ui=new Map,di=`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(` `);di.push(`scrollEnd`);function fi(e,t){ui.set(e,t),It(t,[e])}var pi=0;function mi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Ed.identifierPrefix;var n=pi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function hi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Pd;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 gi(e,t){return e=hi(e),t=hi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var _i=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)},vi=[],yi=0,bi=0;function xi(){for(var e=yi,t=bi=yi=0;t<e;){var n=vi[t];vi[t++]=null;var r=vi[t];vi[t++]=null;var i=vi[t];vi[t++]=null;var a=vi[t];if(vi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ti(n,i,a)}}function Si(e,t,n,r){vi[yi++]=e,vi[yi++]=t,vi[yi++]=n,vi[yi++]=r,bi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ci(e,t,n,r){return Si(e,t,n,r),Ei(e)}function wi(e,t){return Si(e,null,null,t),Ei(e)}function Ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Je(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ei(e){if(50<Fd)throw Fd=0,Id=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Di={};function Oi(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 ki(e,t,n,r){return new Oi(e,t,n,r)}function Ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ji(e,t){var n=e.alternate;return n===null?(n=ki(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 Mi(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 Ni(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ai(r)&&(s=1);else if(typeof r==`string`)s=th(e,n,ge.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case z:return e=ki(31,n,t,a),e.elementType=z,e.lanes=o,e;case j:return Pi(n.children,a,o,t);case M:s=8,a|=24;break;case N:return e=ki(12,n,t,a|2),e.elementType=N,e.lanes=o,e;case L:return e=ki(13,n,t,a),e.elementType=L,e.lanes=o,e;case ee:return e=ki(19,n,t,a),e.elementType=ee,e.lanes=o,e;case ne:case ie:return e=a|32,e=ki(30,n,t,e),e.elementType=ie,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case F:s=10;break a;case P:s=9;break a;case I:s=11;break a;case R:s=14;break a;case te:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ki(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Pi(e,t,n,r){return e=ki(7,e,r,t),e.lanes=n,e}function Fi(e,t,n){return e=ki(6,e,null,t),e.lanes=n,e}function Ii(e){var t=ki(18,null,null,0);return t.stateNode=e,t}function Li(e,t,n){return t=ki(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ri=new WeakMap;function zi(e,t){if(typeof e==`object`&&e){var n=Ri.get(e);return n===void 0?(t={value:e,source:t,stack:Ae(t)},Ri.set(e,t),t):n}return{value:e,source:t,stack:Ae(t)}}var Bi=[],Vi=0,Hi=null,Ui=0,Wi=[],Gi=0,Ki=null,qi=1,Ji=``;function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Hi,Hi=e,Ui=t}function Xi(e,t,n){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,Ki=e;var r=qi;e=Ji;var i=32-Je(r)-1;r&=~(1<<i),n+=1;var a=32-Je(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qi=1<<32-Je(t)+i|n<<i|r,Ji=a+e}else qi=1<<a|n<<i|r,Ji=e}function Zi(e){e.return!==null&&(Yi(e,1),Xi(e,1,0))}function Qi(e){for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null;for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,Ji=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null}function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,qi=t.id,Ji=t.overflow,Ki=e}var ea=null,ta=null,na=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(zi(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[vt]=e,t[yt]=r,n){case`dialog`:Jf(`cancel`,t),Jf(`close`,t);break;case`iframe`:case`object`:case`embed`:Jf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Gf.length;n++)Jf(Gf[n],t);break;case`source`:Jf(`error`,t);break;case`img`:case`image`:case`link`:Jf(`error`,t),Jf(`load`,t);break;case`details`:Jf(`toggle`,t);break;case`input`:Jf(`invalid`,t),tn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Jf(`invalid`,t);break;case`textarea`:Jf(`invalid`,t),on(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||sp(t.textContent,n)?(r.popover!=null&&(Jf(`beforetoggle`,t),Jf(`toggle`,t)),r.onScroll!=null&&Jf(`scroll`,t),r.onScrollEnd!=null&&Jf(`scrollend`,t),r.onClick!=null&&(t.onclick=hn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ea=e.return;ea;)switch(ea.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ea=ea.return}}function la(e){if(e!==ea)return!1;if(!na)return ca(e),na=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||xp(e.type,e.memoizedProps)),n=!n),n&&ta&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=ym(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=ym(e)}else t===27?(t=ta,Ap(e.type)?(e=vm,vm=null,ta=e):ta=t):ta=ea?_m(e.stateNode.nextSibling):null;return!0}function ua(){ta=ea=null,na=!1}function da(){var e=ra;return e!==null&&(vd===null?vd=e:vd.push.apply(vd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=pe(null),ma=null,ha=null;function ga(e,t,n){he(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,me(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;Rr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ye.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[hh]:e.push(hh))}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(!Rr(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,ka={$$typeof:F,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(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 Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Bf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ha=V.S;V.S=function(e,t){if(xd=Ie(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=Df;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=Df;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=pe(null);function Wa(){var e=Ua.current;return e===null?nd.pooledCache:e}function Ga(e,t){t===null?he(Ua,Ua.current):he(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(hn,hn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(hn,hn);else{if(e=nd,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,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(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 co(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=ji(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=Fi(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===j?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===te&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Ni(n.type,n.key,n.props,null,e.mode,r),oo(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=Li(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=Pi(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=Fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case k:return n=Ni(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case A:return t=Li(t,e.mode,n),t.return=e,t;case te:return t=$a(t),f(e,t,n)}if(B(t)||se(t))return t=Pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===F)return f(e,wa(e,t),n);so(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 te:return n=$a(n),p(e,t,n,r)}if(B(n)||se(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===F)return p(e,t,wa(e,n),r);so(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 te:return r=$a(r),m(e,t,n,r,i)}if(B(r)||se(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===F)return m(e,t,n,wa(t,r),i);so(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),na&&Yi(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 na&&Yi(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)}),na&&Yi(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),na&&Yi(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 na&&Yi(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)}),na&&Yi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===j&&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===j){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===te&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===j?(c=Pi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Ni(o.type,o.key,o.props,null,e.mode,c),oo(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=Li(o,e.mode,c),c.return=e,e=c}return s(e);case te:return o=$a(o),_(e,r,o,c)}if(B(o))return h(e,r,o,c);if(se(o)){if(l=se(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,ao(o),c);if(o.$$typeof===F)return _(e,r,wa(e,o),c);so(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=Fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=ki(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(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 ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,td&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ei(e),Ti(e,null,n),t}return Si(e,r,t,n),Ei(e)}function _o(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,dt(e,n)}}function vo(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 yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!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?(id&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!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:fo=!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),fd|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=pe(null),To=pe(0);function Eo(e,t){e=ud,he(To,e),he(wo,t),ud=e|t.baseLanes}function Do(){he(To,ud),he(wo,wo.current)}function Oo(){ud=To.current,me(wo),me(To)}var ko=pe(null),Ao=null;function jo(e){var t=e.alternate;he(Io,Io.current&1),he(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){he(Io,Io.current),he(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(he(Io,Io.current),he(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){he(Io,Io.current),he(ko,ko.current)}function Fo(e){me(ko),Ao===e&&(Ao=null),me(Io)}var Io=pe(0);function Lo(e,t){he(ko,ko.current),he(Io,t)}function Ro(e){me(Io),me(ko),Ao===e&&(Ao=null)}function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||mm(n)||hm(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 Bo=0,Vo=null,Ho=null,Uo=null,Wo=!1,Go=!1,Ko=!1,qo=0,Jo=0,Yo=null,Xo=0;function Zo(){throw Error(i(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function $o(e,t,n,r,i,a){return Bo=a,Vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?gc:U,Ko=!1,a=n(r,i),Ko=!1,Go&&(a=ts(t,n,r,i)),es(e),a}function es(e){V.H=hc;var t=Ho!==null&&Ho.next!==null;if(Bo=0,Uo=Ho=Vo=null,Wo=!1,Jo=0,Yo=null,t)throw Error(i(300));e===null||W||(e=e.dependencies,e!==null&&xa(e)&&(W=!0))}function ts(e,t,n,r){Vo=e;var a=0;do{if(Go&&(Yo=null),Jo=0,Go=!1,25<=a)throw Error(i(301));if(a+=1,Uo=Ho=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}V.H=_c,o=t(n,r)}while(Go);return o}function ns(){var e=V.H,t=e.useState()[0];return t=typeof t.then==`function`?ls(t):t,e=e.useState()[0],(Ho===null?null:Ho.memoizedState)!==e&&(Vo.flags|=1024),t}function rs(){var e=qo!==0;return qo=0,e}function is(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function as(e){if(Wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wo=!1}Bo=0,Uo=Ho=Vo=null,Go=!1,Jo=qo=0,Yo=null}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Uo===null?Vo.memoizedState=Uo=e:Uo=Uo.next=e,Uo}function ss(){if(Ho===null){var e=Vo.alternate;e=e===null?null:e.memoizedState}else e=Ho.next;var t=Uo===null?Vo.memoizedState:Uo.next;if(t!==null)Uo=t,Ho=e;else{if(e===null)throw Vo.alternate===null?Error(i(467)):Error(i(310));Ho=e,e={memoizedState:Ho.memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},Uo===null?Vo.memoizedState=Uo=e:Uo=Uo.next=e}return Uo}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=Jo;return Jo+=1,Yo===null&&(Yo=[]),e=Qa(Yo,e,t),t=Vo,(Uo===null?t.memoizedState:Uo.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?gc:U),e}function us(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ls(e);if(e.$$typeof===ae)return;if(e.$$typeof===F)return Ca(e)}throw Error(i(438,String(e)))}function ds(e){var t=null,n=Vo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Vo.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=cs(),Vo.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]=re;return t.index++,n}function fs(e,t){return typeof t==`function`?t(e):t}function ps(e){return ms(ss(),Ho,e)}function ms(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?(Bo&f)===f:(id&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===La&&(d=!0);else if((Bo&p)===p){u=u.next,p===La&&(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,Vo.lanes|=p,fd|=p;f=u.action,Ko&&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,Vo.lanes|=f,fd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Rr(o,e.memoizedState)&&(W=!0,d&&(n=Ra,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 hs(e){var t=ss(),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);Rr(o,t.memoizedState)||(W=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gs(e,t,n){var r=Vo,a=ss(),o=na;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Rr((Ho||a).memoizedState,n);if(s&&(a.memoizedState=n,W=!0),a=a.queue,Vs(ys.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Uo!==null&&!!(Uo.memoizedState.tag&1),Is(e?9:8,{destroy:void 0},vs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,nd===null)throw Error(i(349));o||Bo&127||_s(r,t,n)}return n}function _s(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vo.updateQueue,t===null?(t=cs(),Vo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vs(e,t,n,r){t.value=n,t.getSnapshot=r,bs(t)&&xs(e)}function ys(e,t,n){return n(function(){bs(t)&&xs(e)})}function bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function xs(e){var t=wi(e,2);t!==null&&Bd(t,e,2)}function Ss(e){var t=os();if(typeof e==`function`){var n=e;if(e=n(),Ko){qe(!0);try{n()}finally{qe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,ms(e,Ho,typeof r==`function`?r:fs)}function ws(e,t,n,r,a){if(fc(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)}};V.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=V.T,o={};o.types=a===null?null:a.types,V.T=o;try{var s=n(i,r),c=V.S;c!==null&&c(o,s),Es(e,t,s)}catch(n){Os(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),V.T=a}}else try{a=n(i,r),Es(e,t,a)}catch(n){Os(e,t,n)}}function Es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ds(e,t,n)},function(n){return Os(e,t,n)}):Ds(e,t,n)}function Ds(e,t,n){t.status=`fulfilled`,t.value=n,ks(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ts(e,n)))}function Os(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ks(t),t=t.next;while(t!==r)}e.action=null}function ks(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function As(e,t){return t}function js(e,t){if(na){var n=nd.formState;if(n!==null){a:{var r=Vo;if(na){if(ta){b:{for(var i=ta,a=ia;i.nodeType!==8;){if(!a){i=null;break b}if(i=_m(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ta=_m(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=os(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:t},n.queue=r,n=lc.bind(null,Vo,r),r.dispatch=n,r=Ss(!1),a=dc.bind(null,Vo,!1,r.queue),r=os(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ws.bind(null,Vo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ms(e){return Ns(ss(),Ho,e)}function Ns(e,t,n){if(t=ms(e,t,As)[0],e=ps(fs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ls(t)}catch(e){throw e===qa?Ya:e}else r=t;t=ss();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Vo.flags|=2048,Is(9,{destroy:void 0},Ps.bind(null,i,n),null)),[r,a,e]}function Ps(e,t){e.action=t}function Fs(e){var t=ss(),n=Ho;if(n!==null)return Ns(t,n,e);ss(),t=t.memoizedState,n=ss();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Vo.updateQueue,t===null&&(t=cs(),Vo.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 Ls(){return ss().memoizedState}function Rs(e,t,n,r){var i=os();Vo.flags|=e,i.memoizedState=Is(1|t,{destroy:void 0},n,r===void 0?null:r)}function zs(e,t,n,r){var i=ss();r=r===void 0?null:r;var a=i.memoizedState.inst;Ho!==null&&r!==null&&Qo(r,Ho.memoizedState.deps)?i.memoizedState=Is(t,a,n,r):(Vo.flags|=e,i.memoizedState=Is(1|t,a,n,r))}function Bs(e,t){Rs(8390656,8,e,t)}function Vs(e,t){zs(2048,8,e,t)}function Hs(e){Vo.flags|=4;var t=Vo.updateQueue;if(t===null)t=cs(),Vo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Us(e){var t=ss().memoizedState;return Hs({ref:t,nextImpl:e}),function(){if(td&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ws(e,t){return zs(4,2,e,t)}function Gs(e,t){return zs(4,4,e,t)}function Ks(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 qs(e,t,n){n=n==null?null:n.concat([e]),zs(4,4,Ks.bind(null,t,e),n)}function Js(){}function Ys(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xs(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Qo(t,r[1]))return r[0];if(r=e(),Ko){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Bo&1073741824&&!(id&261930)?e.memoizedState=t:(e.memoizedState=n,e=Rd(),Vo.lanes|=e,fd|=e,n)}function Qs(e,t,n,r){return Rr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(id&261930)?(W=!0,e.memoizedState=n):(e=Rd(),Vo.lanes|=e,fd|=e,t):(e=Zs(e,n,r),Rr(e,t)||(W=!0),e)}function $s(e,t,n,r,i){var a=ue.p;ue.p=a!==0&&8>a?a:8;var o=V.T,s={};s.types=o===null?null:o.types,V.T=s,dc(e,!1,t,n);try{var c=i(),l=V.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Va(c,r),Ld(e)):uc(e,t,r,Ld(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},Ld())}finally{ue.p=a,o!==null&&s.types!==null&&(o.types=s.types),V.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,de,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},Ld())}function ic(){return Ca(hh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ld();e=ho(n);var r=go(t,e,n);r!==null&&(Bd(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=Ld();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=Ci(e,t,n,r),n!==null&&(Bd(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,Ld())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(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,Rr(s,o))return Si(e,t,i,0),nd===null&&xi(),!1}catch{}if(n=Ci(e,t,i,r),n!==null)return Bd(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Bf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=Ci(e,n,r,2),t!==null&&Bd(t,e,2)}function fc(e){var t=e.alternate;return e===Vo||t!==null&&t===Vo}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,dt(e,n)}}var hc={readContext:Ca,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:Ca,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){qe(!0);try{e()}finally{qe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){qe(!0);try{n(t)}finally{qe(!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=cc.bind(null,Vo,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,Vo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,Vo,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Vo,a=os();if(na){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),nd===null)throw Error(i(349));id&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=nd.identifierPrefix;if(na){var n=Ji,r=qi;n=(r&~(1<<32-Je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ic,useFormState:js,useActionState:js,useOptimistic:function(e){var t=os();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,Vo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ds,useCacheRefresh:function(){return os().memoizedState=sc.bind(null,Vo)},useEffectEvent:function(e){var t=os(),n={impl:e};return t.memoizedState=n,function(){if(td&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},U={readContext:Ca,use:us,useCallback:Ys,useContext:Ca,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:ps,useRef:Ls,useState:function(){return ps(fs)},useDebugValue:Js,useDeferredValue:function(e,t){return Qs(ss(),Ho.memoizedState,e,t)},useTransition:function(){var e=ps(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){return Cs(ss(),Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us},_c={readContext:Ca,use:us,useCallback:Ys,useContext:Ca,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:hs,useRef:Ls,useState:function(){return hs(fs)},useDebugValue:Js,useDeferredValue:function(e,t){var n=ss();return Ho===null?Zs(n,e,t):Qs(n,Ho.memoizedState,e,t)},useTransition:function(){var e=hs(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){var n=ss();return Ho===null?(n.baseState=e,[e,n.queue.dispatch]):Cs(n,Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us};function vc(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 yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Bd(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ld(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Bd(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ld(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Bd(t,e,n),_o(t,e,n))}};function bc(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?!zr(n,r)||!zr(i,a):!0}function xc(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&&yc.enqueueReplaceState(t,t.state,null)}function Sc(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 Cc(e){_i(e)}function wc(e){console.error(e)}function Tc(e){_i(e)}function Ec(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Dc(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 Oc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Ec(e,t)},n}function kc(e){return e=ho(e),e.tag=3,e}function Ac(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(){Dc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Dc(t,n,r),typeof i!=`function`&&(wd===null?wd=new Set([this]):wd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function jc(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=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?Qd():n.alternate===null&&dd===0&&(dd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),xf(e,r,a)),!1;case 22:return n.flags|=65536,r===Xa?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)),xf(e,r,a)),!1}throw Error(i(435,n.tag))}return xf(e,r,a),Qd(),!1}if(na)return t=ko.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(zi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=zi(r,n),a=Oc(e.stateNode,r,a),vo(e,a),dd!==4&&(dd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(zi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=zi(o,n),_d===null?_d=[o]:_d.push(o),dd!==4&&(dd=2),t===null)return!0;r=zi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Oc(n.stateNode,r,e),vo(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`&&(wd===null||!wd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=kc(a),Ac(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Mc=Error(i(461)),W=!1;function Nc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Pc(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=$o(e,t,n,o,a,i),s=rs(),e!==null&&!W?(is(e,t,i),cl(e,t,i)):(na&&s&&Zi(t),t.flags|=1,Nc(e,t,r,i),t.child)}function Fc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Ic(e,t,a,r,i)):(e=Ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!ll(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?zr:n,n(o,r)&&e.ref===t.ref)return cl(e,t,i)}return t.flags|=1,e=ji(a,r),e.ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zr(a,r)&&e.ref===t.ref){if(W=!1,t.pendingProps=r=a,ll(e,i))e.flags&131072&&(W=!0);else return t.lanes=e.lanes,cl(e,t,i)}}return Wc(e,t,n,r,i)}function Lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return zc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,zc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),Po()):(Ga(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Nc(e,t,i,n),t.child}function Rc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),No(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Bc(e,t){return t=$c({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Vc(e,t,n){return lo(t,e.child,null,n),e=Bc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(na){if(r.mode===`hidden`)return e=Bc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Rc(null,e);if(Mo(t),(e=ta)?(e=pm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Bc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Vc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(W||ba(e,t,n,!1),a=(n&e.childLanes)!==0,W||a){if(wo.current===null){if(r=nd,r!==null&&(s=ft(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,wi(e,s),Bd(r,e,s),Mc;Qd()}t=Vc(e,t,n)}else e=o.treeContext,ta=_m(s.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=Bc(t,r),t.flags|=134221824;return t}return e=ji(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Uc(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 Wc(e,t,n,r,i){return Sa(t),n=$o(e,t,n,r,void 0,i),r=rs(),e!==null&&!W?(is(e,t,i),cl(e,t,i)):(na&&r&&Zi(t),t.flags|=1,Nc(e,t,n,i),t.child)}function Gc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=ts(t,r,n,i),es(e),r=rs(),e!==null&&!W?(is(e,t,a),cl(e,t,a)):(na&&r&&Zi(t),t.flags|=1,Nc(e,t,n,a),t.child)}function Kc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Di,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=yc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Di,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(vc(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&&yc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),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=Sc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Di,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)&&xc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(vc(t,n,d,r),l=t.memoizedState),(c=fo||bc(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,mo(e,t),o=t.memoizedProps,u=Sc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Di,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)&&xc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(vc(t,n,s,r),p=t.memoizedState),(u=fo||bc(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,Uc(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=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=cl(e,t,i),e}function qc(e,t,n,r){return ua(),t.flags|=256,Nc(e,t,n,r),t.child}var Jc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Yc(e){return{baseLanes:e,cachePool:Ka()}}function Xc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=hd),e}function Zc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(na){if(i?jo(t):Po(),(e=ta)?(e=pm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=hm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=$c({mode:`hidden`,children:a},i),r=Pi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Yc(n),r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(null,r)):(jo(t),Qc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return tl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ji(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Pi(i,a,n,null),i.flags|=2):i=ji(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Rc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Yc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Xc(e,o,n),t.memoizedState=Jc,Rc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=ji(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 Qc(e,t){return t=$c({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function $c(e,t){return e=ki(22,e,null,t),e.lanes=0,e}function el(e,t,n){return lo(t,e.child,null,n),e=Qc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,el(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=$c({mode:`visible`,children:a.children},s),o=Pi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Yc(c),a.childLanes=Xc(e,r,c),t.memoizedState=Jc,Rc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(t),hm(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})),el(e,t,c)}if(W||ba(e,t,c,!1),r=(c&e.childLanes)!==0,W||r){if(wo.current!==null)return el(e,t,c);if(r=nd,r!==null&&(a=ft(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,wi(e,a),Bd(r,e,a),Mc;return mm(o)||Qd(),el(e,t,c)}return mm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ta=_m(o.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=Qc(t,a.children),t.flags|=134221824,t)}function nl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function rl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function il(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 al(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 ol(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(al(e),Nc(e,t,r,n),al(e)):Nc(e,t,r,n),r=na?Ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nl(e,n,t);else if(e.tag===19)nl(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=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,al(t)),il(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&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}il(t,!0,n,null,a,r);break;case`together`:il(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=rl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),il(t,!1,i,n,a,r)}return t.child}function sl(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Nc(e,t,r.children,n),t.child}function cl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=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=ji(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ji(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ll(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function ul(e,t,n){switch(t.tag){case 3:be(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:Se(t);break;case 4:be(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,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Zc(e,t,n):(jo(t),e=cl(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return ol(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 ol(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,Lc(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return cl(e,t,n)}function dl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)W=!0;else{if(!ll(e,n)&&!(t.flags&128))return W=!1,ul(e,t,n);W=!!(e.flags&131072)}}else W=!1,na&&t.flags&1048576&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)Ai(e)?(r=Sc(e,r),t.tag=1,t=Kc(null,t,e,r,n)):(t.tag=0,t=Wc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===I){t.tag=11,t=Pc(null,t,e,r,n);break a}if(a===R){t.tag=14,t=Fc(null,t,e,r,n);break a}if(a===F){t.tag=10,t.type=e,t=sl(null,t,n);break a}}throw t=le(e)||e,Error(i(306,t,``))}}return t;case 0:return Wc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Sc(r,t.pendingProps),Kc(e,t,r,a,n);case 3:a:{if(be(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),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=qc(e,t,r,n);break a}if(r!==a){a=zi(Error(i(424)),t),fa(a),t=qc(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(ta=_m(e.firstChild),ea=t,na=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=cl(e,t,n);break a}Nc(e,t,r,n)}t=t.child}return t;case 26:return Uc(e,t),e===null?(n=Vm(t.type,null,t.pendingProps,null))?t.memoizedState=n:na||(t.stateNode=bp(t.type,t.pendingProps,ve.current,t)):t.memoizedState=Vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&na&&(r=t.stateNode=Cm(t.type,t.pendingProps,ve.current),ea=t,ia=!0,a=ta,Ap(t.type)?(vm=a,ta=_m(r.firstChild)):ta=a),Nc(e,t,t.pendingProps.children,n),Uc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&na&&((a=r=ta)&&(r=dm(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ea=t,ta=_m(r.firstChild),ia=!1,a=!0)),a||oa(t)),Se(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,xp(a,o)?r=null:s!==null&&xp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=$o(e,t,ns,null,null,n),hh._currentValue=a),Uc(e,t),Nc(e,t,r,n),t.child;case 6:return e===null&&na&&((e=n=ta)&&(n=fm(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ea=t,ta=null,e=!0)),e||oa(t)),null;case 13:return Zc(e,t,n);case 4:return be(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Nc(e,t,r,n),t.child;case 11:return Pc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Uc(e,t),Nc(e,t,r,n),t.child;case 8:return Nc(e,t,t.pendingProps.children,n),t.child;case 12:return Nc(e,t,t.pendingProps.children,n),t.child;case 10:return sl(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,Nc(e,t,r,n),t.child;case 14:return Fc(e,t,t.type,t.pendingProps,n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 19:return ol(e,t,n);case 31:return Hc(e,t,n);case 22:return Lc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=nd,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Nc(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:na&&Zi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Uc(e,t),Nc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fl(e){e.flags|=4}function pl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?nh(t,r):nh(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(Yd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function ml(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!rh(t)){if(Yd())e.flags|=8192;else throw eo=Xa,Ja}}function hl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:ot(),e.lanes|=t,gd|=t)}function gl(e,t){if(!na)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 _l(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 vl(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _l(t),null;case 1:return _l(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),xe(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?fl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),_l(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(fl(t),o===null?(_l(t),pl(t,a,null,r,n)):(_l(t),ml(t,o))):o?o===e.memoizedState?(_l(t),t.flags&=-16777217):(fl(t),_l(t),ml(t,o)):(e=e.memoizedProps,e!==r&&fl(t),_l(t),pl(t,a,e,r,n)),null;case 27:if(Ce(t),n=ve.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}e=ge.current,la(t)?sa(t,e):(e=Cm(a,r,n),t.stateNode=e,fl(t))}return _l(t),t.subtreeFlags&=-33554433,null;case 5:if(Ce(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return _l(t),t.subtreeFlags&=-33554433,null}if(o=ge.current,la(t))sa(t,o);else{var s=_p(ve.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[vt]=t,o[yt]=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(up(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&&fl(t)}}return _l(t),t.subtreeFlags&=-33554433,pl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&fl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ve.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ea,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[vt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||sp(e.nodeValue,n)),e||oa(t,!0)}else e=_p(e).createTextNode(r),e[vt]=t,t.stateNode=e}return _l(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[vt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return _l(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[vt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_l(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(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),hl(t,t.updateQueue),_l(t),null);case 4:return xe(),e===null&&Zf(t.stateNode.containerInfo),t.flags|=67108864,_l(t),null;case 10:return _a(t.type),_l(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return _l(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)gl(r,!1);else{if(dd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,gl(r,!1),e=o.updateQueue,t.updateQueue=e,hl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mi(n,e),n=n.sibling;return Lo(t,Io.current&1|2),na&&Yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ie()>Sd&&(t.flags|=128,a=!0,gl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,hl(t,e),gl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!na)return _l(t),null}else 2*Ie()-r.renderingStartTime>Sd&&n!==536870912&&(t.flags|=128,a=!0,gl(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=Ie(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||na?Lo(t,o):(n=o,he(ko,t),he(Io,n),Ao===null&&(Ao=t)),na&&Yi(t,r.treeForkCount),e}return _l(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(_l(t),t.subtreeFlags&6&&(t.flags|=8192)):_l(t),n=t.updateQueue,n!==null&&hl(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&&me(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),_l(t),null;case 25:return null;case 30:return t.flags|=33554432,_l(t),null}throw Error(i(156,t.tag))}function yl(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),xe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ce(t),null;case 31:if(t.memoizedState!==null){if(Fo(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(Fo(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 Ro(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 xe(),null;case 10:return _a(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&me(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function bl(e,t){switch(Qi(t),t.tag){case 3:_a(ka),xe();break;case 26:case 27:case 5:Ce(t);break;case 4:xe();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:_a(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&me(Ua);break;case 24:_a(ka)}}function xl(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){bf(t,t.return,e)}}function Sl(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){bf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){bf(t,t.return,e)}}function Cl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){bf(e,e.return,t)}}}function wl(e,t,n){n.props=Sc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){bf(e,t,n)}}function Tl(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=mi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Hp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Up(e);m(e.child,!1,om,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){bf(e,t,n)}}function El(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){bf(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){bf(e,t,n)}else n.current=null}}function Dl(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++)cm(e.stateNode,t[n])}function Ol(e){for(var t=e.return;t!==null&&(jl(t)&&cm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function kl(e){for(var t=e.return;t!==null&&(jl(t)&&lm(e.stateNode,t.stateNode),!Al(t));)t=t.return}function Al(e){return e.tag===5||e.tag===3||e.tag===27}function jl(e){return e&&e.tag===7&&e.stateNode!==null}function Ml(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){bf(e,e.return,t)}}function Nl(e,t,n){try{var r=e.stateNode;fp(r,e.type,n,t),r[yt]=t}catch(t){bf(e,e.return,t)}}function Pl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ap(e.type)||e.tag===4}function Fl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Pl(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&&Ap(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 Il(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=hn)),Dl(e,r),Ht=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Dl(e,r),Ht=!0;else if(i!==4&&(i===27&&(Dl(e,r),r=null,Ap(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ll(e,t,n,r),e=e.sibling;e!==null;)Ll(e,t,n,r),e=e.sibling}function Rl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);up(t,r,n),t[vt]=e,t[yt]=n}catch(t){bf(e,e.return,t)}}var zl=!1,Bl=null;function Vl(e){(e.tag===30||e.subtreeFlags&33554432)&&(zl=!0)}var Hl=null;function Ul(){var e=Hl;return Hl=null,e}var Wl=0;function Gl(e,t,n,r,i){return Wl=0,Kl(e.child,t,n,r,i)}function Kl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Ip(o);r.push(s),s.view&&(a=!0)}else a||Ip(o).view&&(a=!0);zl=!0,Np(o,Wl===0?t:t+`_`+Wl,n),Wl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Kl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function ql(e,t){for(;e!==null;)e.tag===5?Pp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||ql(e.child,t)),e=e.sibling}function Jl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Jl(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=gi(t.default,t.share),t!==`none`&&(Gl(e,n,t,null,!1)||ql(e.child,!1))}e=e.sibling}}function Yl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=mi(r,n),a=gi(r.default,n.paired?r.share:r.enter);a===`none`?Jl(e):Gl(e,i,a,null,!1)?(Jl(e),n.paired||t||zd(e,r.onEnter)):ql(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e,t),e=e.sibling;else Jl(e)}function Xl(e){if(Bl!==null&&Bl.size!==0){var t=Bl;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=gi(n.default,n.share);if(a!==`none`&&(Gl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,zd(e,n.onShare)):ql(e.child,!1)),t.delete(r),t.size===0)break}}}Xl(e)}e=e.sibling}}}function Zl(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),r=Bl===null?void 0:Bl.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Gl(e,n,i,null,!1)?r===void 0?zd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Bl.delete(n),zd(e,t.onShare)):ql(e.child,!1)),Bl!==null&&Xl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e),e=e.sibling;else Bl!==null&&Xl(e)}function Ql(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!==`none`&&Gl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Ql(e);e=e.sibling}}function $l(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,ql(e.child,!1))}$l(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,ql(e.child,!1),$l(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)eu(e),e=e.sibling;else $l(e)}function tu(e){for(e=e.child;e!==null;)e.tag===30?ql(e.child,!1):e.subtreeFlags&33554432&&tu(e),e=e.sibling}function nu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Wl<a.length){var l=a[Wl],u=Ip(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&&Np(c,Wl===0?n:n+`_`+Wl,i),s&&e.flags&4||(Hl===null&&(Hl=[]),Hl.push(c,Wl===0?r:r+`_`+Wl,t.memoizedProps)),Wl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:nu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function ru(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=mi(n,r),a=gi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Lp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Wl=0,i=nu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||zd(e,n.onUpdate))}else e.subtreeFlags&33554432&&ru(e,t);e=e.sibling}}var iu=!1,au=!1,ou=!1,su=!1,cu=typeof WeakSet==`function`?WeakSet:Set,lu=null,uu=!1,du=!1,fu=!1,pu=!1;function mu(e,t,n){if(e=e.containerInfo,hp=wh,e=Wr(e),Gr(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(gp={focusedElem:e,selectionRange:r},wh=!1,n=(n&335544064)===n,lu=t,t=n?9270:1024;lu!==null;){if(e=lu,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Zl(r[a]);if(e.alternate===null&&e.flags&2)n&&Vl(e),hu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Zl(r),hu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Vl(e),hu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,lu=r):(n&&Ql(e),hu(n))}}Bl=null}function hu(e){for(;lu!==null;){var t=lu,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=Sc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){bf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)um(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:um(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=mi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!==`none`&&Gl(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,lu=r;break}lu=t.return}}function gu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Iu(e,n),r&4&&xl(5,n);break;case 1:if(Iu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){bf(n,n.return,e)}else{var i=Sc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bf(n,n.return,e)}}}r&64&&Cl(n),r&512&&Tl(n,n.return);break;case 3:if(Iu(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{Co(e,t)}catch(e){bf(n,n.return,e)}}break;case 27:t===null&&r&4&&Rl(n);case 26:case 5:Iu(e,n),t===null&&r&4&&Ml(n),r&512&&Tl(n,n.return);break;case 12:Iu(e,n);break;case 31:Iu(e,n),r&4&&Tu(e,n);break;case 13:Iu(e,n),r&4&&Eu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wf.bind(null,n),gm(e,n))));break;case 22:if(r=n.memoizedState!==null||iu,!r){var a=t!==null&&t.memoizedState!==null||au;t=iu,i=au,iu=r,(au=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Ru(e,n,r)):Iu(e,n),iu=t,au=i}break;case 30:Iu(e,n),r&512&&Tl(n,n.return);break;case 7:r&512&&Tl(n,n.return);default:Iu(e,n)}}function _u(e,t){for(e=e.child;e!==null;)vu(e,t),e=e.sibling}function vu(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){bf(e,e.return,t)}yu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ht=!0}catch(t){bf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Mp(s,!0):Mp(e.stateNode,!1)}catch(t){bf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&_u(e,t);break;default:_u(e,t)}}function yu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:vu(n,r);break a;case 22:n.memoizedState===null&&yu(n,r);break a;default:yu(n,r)}}e=e.sibling}}function bu(e){var t=e.alternate;t!==null&&(e.alternate=null,bu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Dt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var xu=null,Su=!1;function Cu(e,t,n){for(n=n.child;n!==null;)wu(e,t,n),n=n.sibling}function wu(e,t,n){if(Ke&&typeof Ke.onCommitFiberUnmount==`function`)try{Ke.onCommitFiberUnmount(Ge,n)}catch{}switch(n.tag){case 26:au||El(n,t),Cu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!au&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:au||El(n,t),kl(n);var r=xu,i=Su;Ap(n.type)&&(xu=n.stateNode,Su=!1),Cu(e,t,n),wm(n.stateNode,n.type,n.memoizedProps),xu=r,Su=i;break;case 5:au||El(n,t),kl(n);case 6:if(n.tag===6&&kl(n),r=xu,i=Su,xu=null,Cu(e,t,n),xu=r,Su=i,xu!==null){if(Su)try{(xu.nodeType===9?xu.body:xu.nodeName===`HTML`?xu.ownerDocument.body:xu).removeChild(n.stateNode),Ht=!0}catch(e){bf(n,t,e)}else try{xu.removeChild(n.stateNode),Ht=!0}catch(e){bf(n,t,e)}}break;case 18:xu!==null&&(Su?(e=xu,jp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Xh(e)):jp(xu,n.stateNode));break;case 4:r=xu,i=Su,xu=n.stateNode.containerInfo,Su=!0,Cu(e,t,n),xu=r,Su=i;break;case 0:case 11:case 14:case 15:Sl(2,n,t),au||Sl(4,n,t),Cu(e,t,n);break;case 1:au||(El(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&wl(n,t,r)),Cu(e,t,n);break;case 21:Cu(e,t,n);break;case 22:au=(r=au)||n.memoizedState!==null,Cu(e,t,n),au=r;break;case 30:El(n,t),Cu(e,t,n);break;case 7:au||El(n,t),Cu(e,t,n);break;default:Cu(e,t,n)}}function Tu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xh(e)}catch(e){bf(t,t.return,e)}}}function Eu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xh(e)}catch(e){bf(t,t.return,e)}}function Du(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cu),t;default:throw Error(i(435,e.tag))}}function Ou(e,t){var n=Du(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Tf.bind(null,e,t);t.then(r,r)}})}function ku(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(Ap(l.type)){xu=l.stateNode,Su=!1;break a}break;case 5:xu=l.stateNode,Su=!1;break a;case 3:case 4:xu=l.stateNode.containerInfo,Su=!0;break a}l=l.return}if(xu===null)throw Error(i(160));wu(s,c,o),xu=null,Su=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ju(t,e,n),t=t.sibling}var Au=null;function ju(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}ku(t,e,n),Mu(e),a&4&&(Sl(3,e,e.return),xl(3,e),Sl(5,e,e.return));break;case 1:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),a&64&&iu&&(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=Au,ku(t,e,n),Mu(e),a&512&&(au||r===null||El(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(iu)e.stateNode=bp(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[Tt]||r[vt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),up(r,t,n),r[vt]=e,Mt(r),t=r;break a;case`link`:if(o=$m(`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),up(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=$m(`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),up(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[vt]=e,Mt(r),t=r}e.stateNode=t}}else iu||eh(o,e.type,e.stateNode)}else e.stateNode=Jm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Nl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||au||t.parentNode.removeChild(t)):a.count--,n===null?iu||eh(o,e.type,e.stateNode):Jm(o,n,e.memoizedProps))}break;case 27:ku(t,e,n),Mu(e),a&512&&(au||r===null||El(r,r.return)),r!==null&&a&4&&Nl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=ou,ou=!1,ku(t,e,n),ou=o,Mu(e),a&512&&(au||r===null||El(r,r.return)),e.flags&32){t=e.stateNode;try{sn(t,``),Ht=!0}catch(t){bf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Nl(e,t,r===null?t:r.memoizedProps)),a&1024&&(su=!0);break;case 6:if(ku(t,e,n),Mu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ht=!0}catch(t){bf(e,e.return,t)}}break;case 3:if(Ht=!1,Qm=null,o=Au,Au=Om(t.containerInfo),ku(t,e,n),Au=o,Mu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Xh(t.containerInfo)}catch(t){bf(e,e.return,t)}su&&(su=!1,Nu(e)),Ht=!1;break;case 4:a=ou,ou=iu,r=Ut(),o=Au,Au=Om(e.stateNode.containerInfo),ku(t,e,n),Mu(e),Au=o,Ht&&du&&(fu=!0),Ht=r,ou=a;break;case 12:ku(t,e,n),Mu(e);break;case 31:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 13:ku(t,e,n),Mu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(bd=Ie()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=iu,l=au,u=ou;iu=c||o,ou=u||o,au=l||s,ku(t,e,n),au=l,ou=u,iu=c,Mu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||iu||au||(t=s||au,n=iu,r=au,iu=o||iu,au=t,Lu(e,2),iu=n,au=r),!o&&ou||_u(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Ou(e,n))));break;case 19:ku(t,e,n),Mu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Ou(e,t)));break;case 30:a&512&&(au||r===null||El(r,r.return)),a=Ut(),o=du,s=(n&335544064)===n,c=e.memoizedProps,du=s&&gi(c.default,c.update)!==`none`,ku(t,e,n),Mu(e),s&&r!==null&&Ht&&(e.flags|=4),du=o,Ht=a;break;case 21:break;case 7:a&512&&(au||r===null||El(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ku(t,e,n),Mu(e)}}function Mu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Pl(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(jl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Al(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Ll(e,Fl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(sn(l,``),n.flags&=-33),Ll(e,Fl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Il(e,Fl(e),u,s);break;default:throw Error(i(161))}}catch(t){bf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,wh=!0,t.reset(),wh=!1),e=e.sibling}}function Pu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Fu(t,e),t=t.sibling;else ru(t,!1)}function Fu(e,t){var n=e.alternate;if(n===null)Yl(e,!1);else switch(e.tag){case 3:if(pu=uu=!1,Ul(),Pu(t,e),!uu&&!fu){if(e=Hl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Pp(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`})),pu=!0}Hl=null;break;case 5:Pu(t,e);break;case 4:r=uu,uu=!1,Pu(t,e),uu&&(fu=!0),uu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Pu(t,e):Yl(e,!1));break;case 30:r=uu,i=Ul(),uu=!1,Pu(t,e),uu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var s=gi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Wl=0,t=nu(e,n,t,o,s,a,!0),Wl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(zd(e,e.memoizedProps.onUpdate),Hl=i):i!==null&&(i.push.apply(i,Hl),Hl=i),uu=e.flags&32?!0:r;break;default:Pu(t,e)}}function Iu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)gu(e,t.alternate,t),t=t.sibling}function Lu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:Sl(4,n,n.return),Lu(n,r);break;case 1:El(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&wl(n,n.return,i),Lu(n,r);break;case 27:r&2&&wm(n.stateNode,n.type,n.memoizedProps);case 5:El(n,n.return),n.tag!==5&&n.tag!==27||kl(n),Lu(n,r);break;case 6:kl(n);break;case 26:El(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||au||i.parentNode.removeChild(i),Lu(n,r);break;case 22:n.memoizedState===null&&Lu(n,r);break;case 30:El(n,n.return),Lu(n,r);break;case 7:El(n,n.return);default:Lu(n,r)}e=e.sibling}}function Ru(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:Ru(i,a,n),xl(4,a);break;case 1:if(Ru(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){bf(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++)So(l[i],c)}catch(e){bf(r,r.return,e)}}s&&o&64&&Cl(a),Tl(a,a.return);break;case 27:n&2&&Rl(a);case 5:a.tag!==5&&a.tag!==27||Ol(a),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 6:Ol(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||iu||eh(Om(c.ownerDocument),a.type,c),Ru(i,a,n),s&&r===null&&o&4&&Ml(a),Tl(a,a.return);break;case 12:Ru(i,a,n);break;case 31:Ru(i,a,n),s&&o&4&&Tu(i,a);break;case 13:Ru(i,a,n),s&&o&4&&Eu(i,a);break;case 22:a.memoizedState===null&&Ru(i,a,n),Tl(a,a.return);break;case 30:Ru(i,a,n),Tl(a,a.return);break;case 7:Tl(a,a.return);default:Ru(i,a,n)}t=t.sibling}}function zu(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&&ja(n))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Vu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Hu(e,t,n,r),t=t.sibling;else i&&tu(t)}function Hu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Vu(e,t,n,r),a&2048&&xl(9,t);break;case 1:Vu(e,t,n,r);break;case 3:Vu(e,t,n,r),i&&pu&&(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&&ja(a)));break;case 12:if(a&2048){Vu(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){bf(t,t.return,e)}}else Vu(e,t,n,r);break;case 31:Vu(e,t,n,r);break;case 13:Vu(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&&eu(t),o._visibility&2?Vu(e,t,n,r):(o._visibility|=2,Uu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&eu(s),o._visibility&2?Vu(e,t,n,r):Wu(e,t)),a&2048&&zu(s,t);break;case 24:Vu(e,t,n,r),a&2048&&Bu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(ql(a.child,!0),ql(t.child,!0))),Vu(e,t,n,r);break;default:Vu(e,t,n,r)}}function Uu(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:Uu(a,o,s,c,i),xl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Uu(a,o,s,c,i)):u._visibility&2?Uu(a,o,s,c,i):Wu(a,o),i&&l&2048&&zu(o.alternate,o);break;case 24:Uu(a,o,s,c,i),i&&l&2048&&Bu(o.alternate,o);break;default:Uu(a,o,s,c,i)}t=t.sibling}}function Wu(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:Wu(n,r),i&2048&&zu(r.alternate,r);break;case 24:Wu(n,r),i&2048&&Bu(r.alternate,r);break;default:Wu(n,r)}t=t.sibling}}var Gu=8192;function Ku(e,t,n){if(e.subtreeFlags&Gu)for(e=e.child;e!==null;)qu(e,t,n),e=e.sibling}function qu(e,t,n){switch(e.tag){case 26:Ku(e,t,n),e.flags&Gu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&ah(n,e)):oh(n,Au,e.memoizedState,e.memoizedProps));break;case 5:Ku(e,t,n),e.flags&Gu&&(e=e.stateNode,(t&335544128)===t&&ah(n,e));break;case 3:case 4:var r=Au;Au=Om(e.stateNode.containerInfo),Ku(e,t,n),Au=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Gu,Gu=16777216,Ku(e,t,n),Gu=r):Ku(e,t,n));break;case 30:if((e.flags&Gu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Bl===null&&(Bl=new Map),Bl.set(r,i)}Ku(e,t,n);break;default:Ku(e,t,n)}}function Ju(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 Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xu(e),e=e.sibling}function Xu(e){switch(e.tag){case 0:case 11:case 15:Yu(e),e.flags&2048&&Sl(9,e,e.return);break;case 3:Yu(e);break;case 12:Yu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Zu(e)):Yu(e);break;default:Yu(e)}}function Zu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];lu=r,Qu(r,e)}Ju(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Sl(8,t,t.return),Zu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Zu(t));break;default:Zu(t)}e=e.sibling}}function Qu(e,t){for(;lu!==null;){var n=lu;switch(n.tag){case 0:case 11:case 15:Sl(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:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,lu=r;else a:for(n=e;lu!==null;){r=lu;var i=r.sibling,a=r.return;if(bu(r),r===n){lu=null;break a}if(i!==null){i.return=a,lu=i;break a}lu=a}}}var $u={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},ed=typeof WeakMap==`function`?WeakMap:Map,td=0,nd=null,rd=null,id=0,ad=0,od=null,sd=!1,cd=!1,ld=!1,ud=0,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=null,vd=null,yd=!1,bd=0,xd=0,Sd=1/0,Cd=null,wd=null,Td=0,Ed=null,Dd=null,Od=0,kd=0,Ad=null,jd=null,Md=null,Nd=null,Pd=null,Fd=0,Id=null;function Ld(){return td&2&&id!==0?id&-id:V.T===null?ht():Bf()}function Rd(){if(hd===0){if(!(id&536870912)||na){var e=$e;$e<<=1,!($e&3932160)&&($e=262144),hd=e}else hd=536870912}return e=ko.current,e!==null&&(e.flags|=32),hd}function zd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Hp(mi(e.memoizedProps,n))),Nd===null&&(Nd=[]),Nd.push(t.bind(null,r))}}function Bd(e,t,n){(e===nd&&(ad===2||ad===9)||e.cancelPendingCommit!==null)&&(qd(e,0),Wd(e,id,hd,!1)),ct(e,n),(!(td&2)||e!==nd)&&(e===nd&&(!(td&2)&&(pd|=n),dd===4&&Wd(e,id,hd,!1)),Mf(e))}function Vd(e,t,n){if(td&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||rt(e,t),a=r?tf(e,t):$d(e,t,!0),o=r;do{if(a===0){cd&&!r&&Wd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Ud(n)){a=$d(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=_d;var l=c.current.memoizedState.isDehydrated;if(l&&(qd(c,s).flags|=256),s=$d(c,s,!1),s!==2&&s!==6){if(ld&&!l){c.errorRecoveryDisabledLanes|=o,pd|=o,a=4;break a}o=vd,vd=a,o!==null&&(vd===null?vd=o:vd.push.apply(vd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){qd(e,0),Wd(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:Wd(r,t,hd,!sd);break a;case 2:vd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=bd+300-Ie(),10<a)){if(Wd(r,t,hd,!sd),nt(r,0,!0)!==0)break a;Od=t,r.timeoutHandle=wp(Hd.bind(null,r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,`Throttled`,-0,0),a);break a}Hd(r,n,vd,Cd,yd,t,hd,pd,gd,sd,o,null,-0,0)}break}while(1);Mf(e)}function Hd(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:hn},Bl=null,qu(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=uh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?bd-Ie():(a&4194048)===a?xd-Ie():0,m=ch(d,m),m!==null)){Od=a,e.cancelPendingCommit=m(lf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Wd(e,a,o,!l);return}lf(e,t,a,n,r,i,o,s,c,l,u,d)}function Ud(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(!Rr(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 Wd(e,t,n,r){t=it(e,t),t&=~md,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Je(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&ut(e,n,t)}function Gd(){return td&6?!0:(Nf(0,!1),!1)}function Kd(){if(rd!==null){if(ad===0)var e=rd.return;else e=rd,ha=ma=null,as(e),ro=null,io=0,e=rd;for(;e!==null;)bl(e.alternate,e),e=e.return;rd=null}}function qd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Tp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Od=0,Kd(),nd=e,rd=n=ji(e.current,null),id=t,ad=0,od=null,sd=!1,cd=rt(e,t),ld=!1,gd=hd=md=pd=fd=dd=0,vd=_d=null,yd=!1,ud=it(e,t),xi(),n}function Jd(e,t){Vo=null,V.H=hc,t===qa||t===Ya?(t=to(),ad=3):t===Ja?(t=to(),ad=4):ad=t===Mc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,od=t,rd===null&&(dd=1,Ec(e,zi(t,e.current)))}function Yd(){var e=ko.current;return e===null?!0:(id&4194048)===id?Ao===null:(id&62914560)===id||id&536870912?e===Ao:!1}function Xd(){var e=V.H;return V.H=hc,e===null?hc:e}function Zd(){var e=V.A;return V.A=$u,e}function Qd(){dd=4,sd||(id&4194048)!==id&&ko.current!==null||(cd=!0),!(fd&134217727)&&!(pd&134217727)||nd===null||Wd(nd,id,hd,!1)}function $d(e,t,n){var r=td;td|=2;var i=Xd(),a=Zd();(nd!==e||id!==t)&&(Cd=null,qd(e,t)),t=!1;var o=dd;a:do try{if(ad!==0&&rd!==null){var s=rd,c=od;switch(ad){case 8:Kd(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=ad;if(ad=0,od=null,of(e,s,c,l),n&&cd){o=0;break a}break;default:l=ad,ad=0,od=null,of(e,s,c,l)}}ef(),o=dd;break}catch(t){Jd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,td=r,V.H=i,V.A=a,rd===null&&(nd=null,id=0,xi()),o}function ef(){for(;rd!==null;)rf(rd)}function tf(e,t){var n=td;td|=2;var r=Xd(),a=Zd();nd!==e||id!==t?(Cd=null,Sd=Ie()+500,qd(e,t)):cd=rt(e,t);a:do try{if(ad!==0&&rd!==null){t=rd;var o=od;b:switch(ad){case 1:ad=0,od=null,of(e,t,o,1);break;case 2:case 9:if(Za(o)){ad=0,od=null,af(t);break}t=function(){ad!==2&&ad!==9||nd!==e||(ad=7),Mf(e)},o.then(t,t);break a;case 3:ad=7;break a;case 4:ad=5;break a;case 7:Za(o)?(ad=0,od=null,af(t)):(ad=0,od=null,of(e,t,o,7));break;case 5:var s=null;switch(rd.tag){case 26:s=rd.memoizedState;case 5:case 27:var c=rd;if(s?rh(s):c.stateNode.complete){ad=0,od=null;var l=c.sibling;if(l!==null)rd=l;else{var u=c.return;u===null?rd=null:(rd=u,sf(u))}break b}}ad=0,od=null,of(e,t,o,5);break;case 6:ad=0,od=null,of(e,t,o,6);break;case 8:Kd(),dd=6;break a;default:throw Error(i(462))}}nf();break}catch(t){Jd(e,t)}while(1);return ha=ma=null,V.H=r,V.A=a,td=n,rd===null?(nd=null,id=0,xi(),dd):0}function nf(){for(;rd!==null&&!Pe();)rf(rd)}function rf(e){var t=dl(e.alternate,e,ud);e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function af(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Gc(n,t,t.pendingProps,t.type,void 0,id);break;case 11:t=Gc(n,t,t.pendingProps,t.type.render,t.ref,id);break;case 5:as(t);var r=t;r===ea&&(na?(ca(r),r.tag===5&&r.stateNode!=null&&(ta=r.stateNode)):(ca(r),na=!0));default:bl(n,t),t=rd=Mi(t,ud),t=dl(n,t,ud)}e.memoizedProps=e.pendingProps,t===null?sf(e):rd=t}function of(e,t,n,r){ha=ma=null,as(t),ro=null,io=0;var i=t.return;try{if(jc(e,i,t,n,id)){dd=1,Ec(e,zi(n,e.current)),rd=null;return}}catch(t){if(i!==null)throw rd=i,t;dd=1,Ec(e,zi(n,e.current)),rd=null;return}t.flags&32768?(na||r===1?e=!0:cd||id&536870912?e=!1:(sd=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.current,r!==null&&r.tag===13&&(r.flags|=16384))),cf(t,e)):sf(t)}function sf(e){var t=e;do{if(t.flags&32768){cf(t,sd);return}e=t.return;var n=vl(t.alternate,t,ud);if(n!==null){rd=n;return}if(t=t.sibling,t!==null){rd=t;return}rd=t=e}while(t!==null);dd===0&&(dd=5)}function cf(e,t){do{var n=yl(e.alternate,e);if(n!==null){n.flags&=32767,rd=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){rd=e;return}rd=e=n}while(e!==null);dd=6,rd=null}function lf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do _f();while(Td!==0);if(td&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===nd&&(rd=nd=null,id=0),Dd=t,Ed=e,Od=n,Ad=a,jd=r,uf(e,t,n,s,c,l,f)}}function uf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(kd=s,s|=bi,lt(e,n,s,r,i,a),Nd=null,(n&335544064)===n?(Pd=Pa(e),r=10262):(Pd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Ef(Be,function(){return vf(),null})):(e.callbackNode=null,e.callbackPriority=0),zl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=V.T,V.T=null,i=ue.p,ue.p=2,a=td,td|=4;try{mu(e,t,n)}finally{td=a,ue.p=i,V.T=r}}Td=1,zl?Md=Bp(o,e.containerInfo,Pd,pf,mf,ff,hf,vf,df,null,null):(pf(),mf(),hf())}function df(e){if(Td!==0){var t=Ed.onRecoverableError;t(e,{componentStack:null})}}function ff(){Td===3&&(Td=0,Fu(Dd,Ed),Td=4)}function pf(){if(Td===1){Td=0;var e=Ed,t=Dd,n=Od,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=V.T,V.T=null;var i=ue.p;ue.p=2;var a=td;td|=4;try{du=fu=!1,ju(t,e,n),n=gp;var o=Wr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ur(s.ownerDocument.documentElement,s)){if(c!==null&&Gr(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 _=Hr(s,h),v=Hr(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}}wh=!!hp,gp=hp=null}finally{td=a,ue.p=i,V.T=r}}e.current=t,Td=2}}function mf(){if(Td===2){Td=0;var e=Ed,t=Dd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=V.T,V.T=null;var r=ue.p;ue.p=2;var i=td;td|=4;try{gu(e,t.alternate,t)}finally{td=i,ue.p=r,V.T=n}}Td=3}}function hf(){if(Td===4||Td===3){Td=0;var e=Md;Md=null,Fe();var t=Ed,n=Dd,r=Od,i=jd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Td=5:(Td=0,Dd=Ed=null,gf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(wd=null),mt(r),n=n.stateNode,Ke&&typeof Ke.onCommitFiberRoot==`function`)try{Ke.onCommitFiberRoot(Ge,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=V.T,a=ue.p,ue.p=2,V.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{V.T=n,ue.p=a}}if(i=Nd,o=Pd,Pd=null,i!==null&&(Nd=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);Od&3&&_f(),Mf(t),a=t.pendingLanes,r&261930&&a&42?t===Id?Fd++:(Fd=0,Id=t):(Fd=0,Id=null),Nf(0,!1)}}function gf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function _f(){return Md!==null&&(Md.skipTransition(),Md=null),pf(),mf(),hf(),vf()}function vf(){if(Td!==5)return!1;var e=Ed,t=kd;kd=0;var n=mt(Od),r=V.T,a=ue.p;try{ue.p=32>n?32:n,V.T=null,n=Ad,Ad=null;var o=Ed,s=Od;if(Td=0,Dd=Ed=null,Od=0,td&6)throw Error(i(331));var c=td;if(td|=4,Xu(o.current),Hu(o,o.current,s,n),td=c,Nf(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot==`function`)try{Ke.onPostCommitFiberRoot(Ge,o)}catch{}return!0}finally{ue.p=a,V.T=r,gf(e,t)}}function yf(e,t,n){t=zi(n,t),t=Oc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(ct(e,2),Mf(e))}function bf(e,t,n){if(e.tag===3)yf(e,e,n);else for(;t!==null;){if(t.tag===3){yf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(wd===null||!wd.has(r))){e=zi(n,e),n=kc(2),r=go(t,n,2),r!==null&&(Ac(n,r,t,e),ct(r,2),Mf(r));break}}t=t.return}}function xf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;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)||(ld=!0,i.add(n),e=Sf.bind(null,e,t,n),t.then(e,e))}function Sf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,nd===e&&(id&n)===n&&(dd===4||dd===3&&(id&62914560)===id&&300>Ie()-bd?td&2?md|=n:qd(e,0):md|=n,gd===id&&(gd=0)),Mf(e)}function Cf(e,t){t===0&&(t=ot()),e=wi(e,t),e!==null&&(ct(e,t),Mf(e))}function wf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cf(e,n)}function Tf(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),Cf(e,n)}function Ef(e,t){return Me(e,t)}var Df=null,Of=null,kf=!1,G=!1,Af=!1,jf=0;function Mf(e){e!==Of&&e.next===null&&(Of===null?Df=Of=e:Of=Of.next=e),G=!0,kf||(kf=!0,zf())}function Nf(e,t){if(!Af&&G){Af=!0;do for(var n=!1,r=Df;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-Je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Rf(r,a))}else a=id,a=nt(r,r===nd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||rt(r,a)||(n=!0,Rf(r,a))}r=r.next}while(n);Af=!1}}function Pf(){Ff()}function Ff(){G=kf=!1;var e=0;jf!==0&&Cp()&&(e=jf);for(var t=Ie(),n=null,r=Df;r!==null;){var i=r.next,a=If(r,t);a===0?(r.next=null,n===null?Df=i:n.next=i,i===null&&(Of=n)):(n=r,(e!==0||a&3)&&(G=!0)),r=i}Td!==0&&Td!==5||Nf(e,!1),jf!==0&&(jf=0)}function If(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Je(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=at(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=nd,n=id,n=nt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(ad===2||ad===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ne(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||rt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ne(r),mt(n)){case 2:case 8:n=ze;break;case 32:n=Be;break;case 268435456:n=He;break;default:n=Be}return r=Lf.bind(null,e),n=Me(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ne(r),e.callbackPriority=2,e.callbackNode=null,2}function Lf(e,t){if(Td!==0&&Td!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_f()&&e.callbackNode!==n)return null;var r=id;return r=nt(e,e===nd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Vd(e,r,t),If(e,Ie()),e.callbackNode!=null&&e.callbackNode===n?Lf.bind(null,e):null)}function Rf(e,t){if(_f())return null;Vd(e,t,!0)}function zf(){Op(function(){td&6?Me(Re,Pf):Ff()})}function Bf(){if(jf===0){var e=La;e===0&&(e=Qe,Qe<<=1,!(Qe&261888)&&(Qe=256)),jf=e}return jf}function Vf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:mn(e)}function Hf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Vf((i[yt]||null).action),o=r.submitter;o&&(t=(t=o[yt]||null)?Vf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new In(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(jf!==0){var e=new FormData(i,o);tc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),tc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Uf=0;Uf<di.length;Uf++){var Wf=di[Uf];fi(Wf.toLowerCase(),`on`+(Wf[0].toUpperCase()+Wf.slice(1)))}fi(ri,`onAnimationEnd`),fi(ii,`onAnimationIteration`),fi(ai,`onAnimationStart`),fi(`dblclick`,`onDoubleClick`),fi(`focusin`,`onFocus`),fi(`focusout`,`onBlur`),fi(oi,`onTransitionRun`),fi(si,`onTransitionStart`),fi(ci,`onTransitionCancel`),fi(li,`onTransitionEnd`),Lt(`onMouseEnter`,[`mouseout`,`mouseover`]),Lt(`onMouseLeave`,[`mouseout`,`mouseover`]),Lt(`onPointerEnter`,[`pointerout`,`pointerover`]),Lt(`onPointerLeave`,[`pointerout`,`pointerover`]),It(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),It(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),It(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),It(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),It(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),It(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Gf=`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(` `),Kf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Gf));function qf(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){_i(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){_i(e)}i.currentTarget=null,a=c}}}}function Jf(e,t){var n=t[xt];n===void 0&&(n=t[xt]=new Set);var r=e+`__bubble`;n.has(r)||(Qf(t,e,2,!1),n.add(r))}function Yf(e,t,n){var r=0;t&&(r|=4),Qf(n,e,r,t)}var Xf=`_reactListening`+Math.random().toString(36).slice(2);function Zf(e){if(!e[Xf]){e[Xf]=!0,Pt.forEach(function(t){t!==`selectionchange`&&(Kf.has(t)||Yf(t,!1,e),Yf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Xf]||(t[Xf]=!0,Yf(`selectionchange`,!1,t))}}function Qf(e,t,n,r){switch(jh(t)){case 2:var i=Th;break;case 8:i=Eh;break;default:i=Dh}n=i.bind(null,t,n,e),i=void 0,!Tn||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 $f(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=Ot(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}Sn(function(){var r=a,i=_n(n),s=[];a:{var c=ui.get(e);if(c!==void 0){var l=In,u=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:l=er;break;case`focusin`:u=`focus`,l=Gn;break;case`focusout`:u=`blur`,l=Gn;break;case`beforeblur`:case`afterblur`:l=Gn;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=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=rr;break;case ri:case ii:case ai:l=Kn;break;case li:l=ir;break;case`scroll`:case`scrollend`:l=Rn;break;case`wheel`:l=ar;break;case`copy`:case`cut`:case`paste`:l=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=tr;break;case`submit`:l=nr;break;case`toggle`:case`beforetoggle`:l=or}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=Cn(m,p),g!=null&&d.push(ep(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!==gn&&(u=n.relatedTarget||n.fromElement)&&(Ot(u)||u[bt]))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?Ot(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=Un,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=tr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:At(c),h=l==null?u:At(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Ot(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,np):null,c!==null&&rp(s,u,c,d,!1),l!==null&&f!==null&&rp(s,f,l,d,!0)))}a:{if(c=r?At(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Er;else if(br(c)){if(Dr)_=Ir;else{_=Pr;var v=Nr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&dn(r.elementType)&&(_=Er):_=Fr;if(_&&=_(e,r)){xr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?At(r):window,e){case`focusin`:(br(v)||v.contentEditable===`true`)&&(qr=v,Jr=r,Yr=null);break;case`focusout`:Yr=Jr=qr=null;break;case`mousedown`:Xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Xr=!1,Zr(s,n,i);break;case`selectionchange`:if(Kr)break;case`keydown`:case`keyup`:Zr(s,n,i)}var y;if(cr)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 gr?mr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(dr&&n.locale!==`ko`&&(gr||b!==`onCompositionStart`?b===`onCompositionEnd`&&gr&&(y=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,gr=!0)),v=tp(r,b),0<v.length&&(b=new Jn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=hr(n),y!==null&&(b.data=y)))),(y=ur?_r(e,n):vr(e,n))&&(b=tp(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Hf(s,e,r,n,i)}qf(s,t)})}function ep(e,t,n){return{instance:e,listener:t,currentTarget:n}}function tp(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=Cn(e,n),i!=null&&r.unshift(ep(e,i,a)),i=Cn(e,t),i!=null&&r.push(ep(e,i,a))),e.tag===3)return r;e=e.return}return[]}function np(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rp(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=Cn(n,a),l!=null&&o.unshift(ep(n,l,c))):i||(l=Cn(n,a),l!=null&&o.push(ep(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var ip=/\r\n?/g,ap=/\u0000|\uFFFD/g;function op(e){return(typeof e==`string`?e:``+e).replace(ip,`
|
|
61
|
-
`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&sn(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Gt(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=mn(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`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=hn);return;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`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=mn(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`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(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=fn.get(n)||n,Wt(e,n,r);else return}Ht=!0}function lp(e,t,n,r,a,o){switch(n){case`style`:un(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`)sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)sn(e,``+r);else return;break;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=hn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ft.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[yt]||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}Ht=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}Ht=!0}function up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`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:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`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:cp(e,t,r,d,n,null)}}tn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`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:cp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&rn(e,!!r,n,!0):rn(e,!!r,t,!1);return;case`textarea`:for(s in Jf(`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:cp(e,t,s,c,n,null)}on(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:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`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:cp(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(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)||cp(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&&(Ht=!0),o=m;break;case`name`:m!==f&&(Ht=!0),a=m;break;case`checked`:m!==f&&(Ht=!0),u=m;break;case`defaultChecked`:m!==f&&(Ht=!0),d=m;break;case`value`:m!==f&&(Ht=!0),s=m;break;case`defaultValue`:m!==f&&(Ht=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&cp(e,t,p,m,r,f)}}en(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)||cp(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&&(Ht=!0),p=o;break;case`defaultValue`:o!==l&&(Ht=!0),c=o;break;case`multiple`:o!==l&&(Ht=!0),s=o;default:o!==l&&cp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?rn(e,!!n,n?[]:``,!1):rn(e,!!n,t,!0)):rn(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:cp(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&&(Ht=!0),p=a;break;case`defaultValue`:a!==o&&(Ht=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&cp(e,t,s,a,r,o)}an(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:cp(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&&(Ht=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:cp(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)&&cp(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:cp(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(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||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(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||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){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&&pp(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&&pp(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 hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(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 yp(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 bp(e,t,n,r){return n=_p(n).createElement(e),n[vt]=r,n[yt]=t,up(n,e,t),Mt(n),n}function xp(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 Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(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),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tm(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(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 Np(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 Pp(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 Fp(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 Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(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`&&(Rp(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+=ih(f),u>sh){s.length=o;break}f=new Promise(zp.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 Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.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},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.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(Jp(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=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.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,Kp(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,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=b(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=_p(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(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}Up.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Xp,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||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(e,t,n,r,i){var a=Ot(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 am(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)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Xp,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),am(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),am(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=b(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function cm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(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`:um(n),Dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(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[Tt])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=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(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 _m(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 vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(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 xm(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 Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(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 wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Dt(e)}function Tm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Dt(e)}var Em=new Map,Dm=new Set;function Om(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 km=ue.d;ue.d={f:Am,r:jm,D:Pm,C:Fm,L:Im,m:Lm,X:zm,S:Rm,M:Bm};function Am(){var e=km.f(),t=Gd();return e||t}function jm(e){var t=kt(e);t!==null&&t.tag===5&&t.type===`form`?rc(t):km.r(e)}var Mm=typeof document>`u`?null:document;function Nm(e,t,n){var r=Mm;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Dm.has(i)||(Dm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),up(t,`link`,e),Mt(t),r.head.appendChild(t)))}}function Pm(e){km.D(e),Nm(`dns-prefetch`,e,null)}function Fm(e,t){km.C(e,t),Nm(`preconnect`,e,t)}function Im(e,t,n){km.L(e,t,n);var r=Mm;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=Hm(e);break;case`script`:a=Km(e)}if(!(Em.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Em.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Um(a))||t===`script`&&r.querySelector(qm(a))))){var o=r.createElement(`link`);up(o,`link`,e),t===`style`&&(o[Et]=!0,o.onload=o.onerror=function(){Nt(o)}),Mt(o),r.head.appendChild(o)}}}function Lm(e,t){km.m(e,t);var n=Mm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Km(e)}if(!Em.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Em.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qm(a)))return}r=n.createElement(`link`),up(r,`link`,e),Mt(r),n.head.appendChild(r)}}}function Rm(e,t,n){km.S(e,t,n);var r=Mm;if(r&&e){var i=jt(r).hoistableStyles,a=Hm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Um(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Em.get(a))&&Xm(e,n);var c=o=r.createElement(`link`);Mt(c),up(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,Ym(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zm(e,t){km.X(e,t);var n=Mm;if(n&&e){var r=jt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=D({src:e,async:!0},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),Mt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t){km.M(e,t);var n=Mm;if(n&&e){var r=jt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),Mt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t,n,r){var a=(a=ve.current)?Om(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=Hm(n.href),t=jt(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=Hm(n.href);var o=jt(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(Um(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Em.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},Em.set(e,o)),Gm(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=Km(n),t=jt(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 Hm(e){return`href="`+$t(e)+`"`}function Um(e){return`link[rel="stylesheet"][`+e+`]`}function Wm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Gm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Et]){r.loading=1;return}}else t=e.createElement(`link`),t[Et]=!0,t.onload=t.onerror=Nt.bind(null,t),up(t,`link`,n),Mt(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 Km(e){return`[src="`+$t(e)+`"]`}function qm(e){return`script[async]`+e}function Jm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Mt(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`),Mt(r),up(r,`style`,a),Ym(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hm(n.href);var o=e.querySelector(Um(a));if(o)return t.state.loading|=4,t.instance=o,Mt(o),o;r=Wm(n),(a=Em.get(a))&&Xm(r,a),o=(e.ownerDocument||e).createElement(`link`),Mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),up(o,`link`,r),t.state.loading|=4,Ym(o,n.precedence,e),t.instance=o;case`script`:return o=Km(n.src),(a=e.querySelector(qm(o)))?(t.instance=a,Mt(a),a):(r=n,(a=Em.get(o))&&(r=D({},n),Zm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Mt(a),up(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,Ym(r,n.precedence,e));return t.instance}function Ym(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 Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qm=null;function $m(e,t,n){if(Qm===null){var r=new Map,i=Qm=new Map;i.set(n,r)}else i=Qm,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[Tt]||a[vt]||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 eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function th(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 nh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function rh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ih(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ah(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ih(t),e.suspenseyImages.push(t)),e=dh.bind(e),t.decode().then(e,e))}function oh(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=Hm(r.href),a=t.querySelector(Um(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=uh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Mt(a);return}a=t.ownerDocument||t,r=Wm(r),(i=Em.get(i))&&Xm(r,i),a=a.createElement(`link`),Mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(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=uh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sh=0;function ch(e,t){return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sh===0&&(sh=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ph(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function uh(){this.count--,lh(this)}function dh(){this.imgCount--,lh(this)}var fh=null;function ph(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fh=new Map,t.forEach(mh,e),fh=null,uh.call(e))}function mh(e,t){if(!(t.state.loading&4)){var n=fh.get(e);if(n)var r=n.get(null);else{n=new Map,fh.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=uh.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 hh={$$typeof:F,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function gh(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=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(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 _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ki(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function vh(e){return e?(e=Di,e):Di}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Bd(n,e,t),_o(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Bd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Ld();t=pt(t);var n=wi(e,t);n!==null&&Bd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=V.T;V.T=null;var a=ue.p;try{ue.p=2,Dh(e,t,n,r)}finally{ue.p=a,V.T=i}}function Eh(e,t,n,r){var i=V.T;V.T=null;var a=ue.p;try{ue.p=8,Dh(e,t,n,r)}finally{ue.p=a,V.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.indexOf(e)){for(;i!==null;){var a=kt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=tt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Je(o);s.entanglements[1]|=c,o&=~c}Mf(a),!(td&6)&&(Sd=Ie()+500,Nf(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Bd(s,a,2),Gd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=_n(e),Ah(e)}var kh=null;function Ah(e){if(kh=null,e=Ot(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 kh=e,null}function jh(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(Le()){case Re:return 2;case ze:return 8;case Be:case Ve:return 32;case He:return 268435456;default:return 32}default:return 32}}var Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`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 Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(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=kt(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(e){var t=Ot(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,gt(e.priority,function(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,gt(e.priority,function(){Ch(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 Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gn=r,n.target.dispatchEvent(r),gn=null}else return t=kt(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=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(Ah(r||n)===null)continue;break}var a=kt(n);a!==null&&(e.splice(t,3),t-=3,tc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.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[yt]||null;if(typeof a==`function`)o||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[yt]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){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 Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Ld(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Gd(),t[bt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=ht();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`19.3.0`));ue.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 tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:V,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{Ge=ng.inject(tg),Ke=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;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=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[bt]=t.current,Zf(e),new Qh(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=l(d(),1),y=_();function b(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var S={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},C={duration:.5,overwrite:!1,delay:0},w,T,E,D=1e8,O=1/D,k=Math.PI*2,A=k/4,j=0,M=Math.sqrt,N=Math.cos,P=Math.sin,F=function(e){return typeof e==`string`},I=function(e){return typeof e==`function`},L=function(e){return typeof e==`number`},ee=function(e){return e===void 0},R=function(e){return typeof e==`object`},te=function(e){return e!==!1},z=function(){return typeof window<`u`},ne=function(e){return I(e)||F(e)},re=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},ie=Array.isArray,ae=/random\([^)]+\)/g,oe=/,\s*/g,se=/(?:-?\.?\d|\.)+/gi,ce=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,le=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,B=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,ue=/[^,'"\[\]\s]+/gi,de=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,fe,pe,me,he={},ge={},_e,ve=function(e){return(ge=Xe(e,he))&&gr},ye=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},be=function(e,t){return!t&&console.warn(e)},xe=function(e,t){return e&&(he[e]=t)&&ge&&(ge[e]=t)||he},Se=function(){return 0},Ce={suppressEvents:!0,isStart:!0,kill:!1},we={suppressEvents:!0,kill:!1},Te={suppressEvents:!0},Ee={},De=[],Oe={},ke,Ae={},je={},Me=30,Ne=[],Pe=``,Fe=function(e){var t=e[0],n,r;if(R(t)||I(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Ne.length;r--&&!Ne[r].targetTest(t););n=Ne[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new En(e[r],n)))||e.splice(r,1);return e},Ie=function(e){return e._gsap||Fe(Nt(e))[0]._gsap},Le=function(e,t,n){return(n=e[t])&&I(n)?e[t]():ee(n)&&e.getAttribute&&e.getAttribute(t)||n},Re=function(e,t){return(e=e.split(`,`)).forEach(t)||e},ze=function(e){return Math.round(e*1e5)/1e5||0},Be=function(e){return Math.round(e*1e7)/1e7||0},Ve=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},He=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Ue=function(){var e=De.length,t=De.slice(0),n,r;for(Oe={},De.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},We=function(e){return!!(e._initted||e._startAt||e.add)},Ge=function(e,t,n,r){De.length&&!T&&Ue(),e.render(t,n,r||!!(T&&t<0&&We(e))),De.length&&!T&&Ue()},Ke=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(ue).length<2?t:F(e)?e.trim():e},qe=function(e){return e},Je=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Ye=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Xe=function(e,t){for(var n in t)e[n]=t[n];return e},Ze=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=R(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Qe=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},$e=function(e){var t=e.parent||H,n=e.keyframes?Ye(ie(e.keyframes)):Je;if(te(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},et=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},tt=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},nt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},rt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},it=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},at=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ot=function(e,t,n,r){return e._startAt&&(T?e._startAt.revert(we):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},st=function e(t){return!t||t._ts&&e(t.parent)},ct=function(e){return e._repeat?lt(e._tTime,e=e.duration()+e._rDelay)*e:0},lt=function(e,t){var n=Math.floor(e=Be(e/t));return e&&n===e?n-1:n},ut=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},dt=function(e){return e._end=Be(e._start+(e._tDur/Math.abs(e._ts||e._rts||O)||0))},ft=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Be(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),dt(e),n._dirty||it(n,e)),e},pt=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=ut(e.rawTime(),t),(!t._dur||Dt(0,t.totalDuration(),n)-t._tTime>O)&&t.render(n,!0)),it(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-O}},mt=function(e,t,n,r){return t.parent&&rt(t),t._start=Be((L(n)?n:n||e!==H?wt(e,n,t):e._time)+t._delay),t._end=Be(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),tt(e,t,`_first`,`_last`,e._sort?`_start`:0),vt(t)||(e._recent=t),r||pt(e,t),e._ts<0&&ft(e,e._tTime),e},ht=function(e,t){return(he.ScrollTrigger||ye(`scrollTrigger`,t))&&he.ScrollTrigger.create(t,e)},gt=function(e,t,n,r,i){if(Fn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!T&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ke!==fn.frame)return De.push(e),e._lazy=[i,r],1},_t=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},vt=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},yt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&_t(e)&&(e._initted||!vt(e))||(e._ts<0||e._dp._ts<0)&&!vt(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=Dt(0,e._tDur,t),l=lt(s,o),e._yoyo&&l&1&&(a=1-a),l!==lt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||T||r||e._zTime===O||!t&&e._zTime){if(!e._initted&>(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?O:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&ot(e,t,n,!0),e._onUpdate&&!n&&Xt(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Xt(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&rt(e,1),!n&&!T&&(Xt(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},bt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},xt=function(e,t,n,r){var i=e._repeat,a=Be(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Be(a*(i+1)+e._rDelay*i):a,o>0&&!r&&ft(e,e._tTime=e._tDur*o),e.parent&&dt(e),n||it(e.parent,e),e},St=function(e){return e instanceof On?it(e):xt(e,e._dur)},Ct={_start:0,endTime:Se,totalDuration:Se},wt=function e(t,n,r){var i=t.labels,a=t._recent||Ct,o=t.duration()>=D?a.endTime(!1):t._dur,s,c,l;return F(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(ie(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Tt=function(e,t,n){var r=L(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=te(s.vars.inherit)&&s.parent;a.immediateRender=te(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Hn(t[0],a,t[i+1])},Et=function(e,t){return e||e===0?t(e):t},Dt=function(e,t,n){return n<e?e:n>t?t:n},Ot=function(e,t){return!F(e)||!(t=de.exec(e))?``:t[1]},kt=function(e,t,n){return Et(n,function(n){return Dt(e,t,n)})},At=[].slice,jt=function(e,t){return e&&R(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&R(e[0]))&&!e.nodeType&&e!==fe},Mt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return F(e)&&!t||jt(e,1)?(r=n).push.apply(r,Nt(e)):n.push(e)})||n},Nt=function(e,t,n){return E&&!t&&E.selector?E.selector(e):F(e)&&!n&&(pe||!pn())?At.call((t||me).querySelectorAll(e),0):ie(e)?Mt(e,n):jt(e)?At.call(e,0):e?[e]:[]},Pt=function(e){return e=Nt(e)[0]||be(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Nt(t,n.querySelectorAll?n:n===e?be(`Invalid scope`)||me.createElement(`div`):e)}},Ft=function(e){return e.sort(function(){return .5-Math.random()})},It=function(e){if(I(e))return e;var t=R(e)?e:{each:e},n=xn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return F(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,D])[1],!S){for(b=-D;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===D?0:s?f*u/S-.5:r/S|0,b=0,x=D,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):M(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&Ft(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=Ot(t.amount||t.each)||0,n=n&&f<0?bn(n):n}return f=(p[e]-p.min)/p.max||0,Be(p.b+(n?n(f):f)*p.v)+p.u}},Lt=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Be(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(L(n)?0:Ot(n))}},Rt=function(e,t){var n=ie(e),r,i;return!n&&R(e)&&(r=n=e.radius||D,e.values?(e=Nt(e.values),(i=!L(e[0]))&&(r*=r)):e=Lt(e.increment)),Et(t,n?I(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=D,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||L(t)?s:s+Ot(t)}:Lt(e))},zt=function(e,t,n,r){return Et(ie(e)?!t:n===!0?!!(n=0):!r,function(){return ie(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},Bt=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},Vt=function(e,t){return function(n){return e(parseFloat(n))+(t||Ot(n))}},Ht=function(e,t,n){return qt(e,t,0,1,n)},Ut=function(e,t,n){return Et(n,function(n){return e[~~t(n)]})},Wt=function e(t,n,r){var i=n-t;return ie(t)?Ut(t,e(0,t.length),n):Et(r,function(e){return(i+(e-t)%i)%i+t})},Gt=function e(t,n,r){var i=n-t,a=i*2;return ie(t)?Ut(t,e(0,t.length-1),n):Et(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Kt=function(e){return e.replace(ae,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(oe);return zt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},qt=function(e,t,n,r,i){var a=t-e,o=r-n;return Et(i,function(t){return n+((t-e)/a*o||0)})},Jt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=F(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(ie(t)&&!ie(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Xe(ie(t)?[]:{},t));if(!u){for(c in n)An.call(s,t,c,`get`,n[c]);a=function(e){return Zn(e,s)||(o?t.p:t)}}}return Et(r,a)},Yt=function(e,t,n){var r=e.labels,i=D,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Xt=function(e,t,n){var r=e.vars,i=r[t],a=E,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&De.length&&Ue(),o&&(E=o),l=s?i.apply(c,s):i.call(c),E=a,l},Zt=function(e){return rt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!T),e.progress()<1&&Xt(e,`onInterrupt`),e},Qt,$t=[],en=function(e){if(e){if(e=!e.name&&e.default||e,z()||e.headless){var t=e.name,n=I(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Se,render:Zn,add:An,kill:$n,modifier:Qn,rawVars:0},a={targetTest:0,get:0,getSetter:qn,aliases:{},register:0};if(pn(),e!==r){if(Ae[t])return;Je(r,Je(Qe(e,i),a)),Xe(r.prototype,Xe(i,Qe(e,a))),Ae[r.prop=t]=r,e.targetTest&&(Ne.push(r),Ee[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}xe(t,r),e.register&&e.register(gr,r,nr)}else $t.push(e)}},tn=255,nn={aqua:[0,tn,tn],lime:[0,tn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,tn],navy:[0,0,128],white:[tn,tn,tn],olive:[128,128,0],yellow:[tn,tn,0],orange:[tn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[tn,0,0],pink:[tn,192,203],cyan:[0,tn,tn],transparent:[tn,tn,tn,0]},rn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*tn+.5|0},an=function(e,t,n){var r=e?L(e)?[e>>16,e>>8&tn,e&tn]:0:nn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),nn[e])r=nn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&tn,r&tn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&tn,e&tn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(se),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=rn(s+1/3,i,a),r[1]=rn(s,i,a),r[2]=rn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ce),n&&r.length<4&&(r[3]=1),r}else r=e.match(se)||nn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/tn,a=r[1]/tn,o=r[2]/tn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},on=function(e){var t=[],n=[],r=-1;return e.split(cn).forEach(function(e){var i=e.match(le)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},sn=function(e,t,n){var r=``,i=(e+r).match(cn),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=an(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=on(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(cn,`1`).split(le),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(cn),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},cn=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in nn)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),ln=/hsl[a]?\(/,un=function(e){var t=e.join(` `),n;if(cn.lastIndex=0,cn.test(t))return n=ln.test(t),e[1]=sn(e[1],n),e[0]=sn(e[0],n,on(e[1])),!0},dn,fn=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){_e&&(!pe&&z()&&(fe=pe=window,me=fe.document||{},he.gsap=gr,(fe.gsapVersions||(fe.gsapVersions=[])).push(gr.version),ve(ge||fe.GreenSockGlobals||!fe.gsap&&fe||{}),$t.forEach(en)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},dn=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),dn=0,l=Se},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),pn(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),pn=function(){return!dn&&fn.wake()},mn={},hn=/^[\d.\-M][\d.\-,\s]/,gn=/["']/g,_n=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(gn,``).trim():+c,r=s.substr(o+1).trim();return t},vn=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},yn=function(e){var t=(e+``).split(`(`),n=mn[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[_n(t[1])]:vn(e).split(`,`).map(Ke)):mn._CE&&hn.test(e)?mn._CE(``,e):n},bn=function(e){return function(t){return 1-e(1-t)}},xn=function(e,t){return e&&(I(e)?e:mn[e]||yn(e))||t},Sn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return Re(e,function(e){for(var t in mn[e]=he[e]=i,mn[a=e.toLowerCase()]=n,i)mn[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=mn[e+`.`+t]=i[t]}),i},Cn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},wn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/k*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*P((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Cn(s);return a=k/a,c.config=function(n,r){return e(t,n,r)},c},Tn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Cn(r);return i.config=function(n){return e(t,n)},i};Re(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Sn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),mn.Linear.easeNone=mn.none=mn.Linear.easeIn,Sn(`Elastic`,wn(`in`),wn(`out`),wn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Sn(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Sn(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Sn(`Circ`,function(e){return-(M(1-e*e)-1)}),Sn(`Sine`,function(e){return e===1?1:-N(e*A)+1}),Sn(`Back`,Tn(`in`),Tn(`out`),Tn()),mn.SteppedEase=mn.steps=he.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-O;return function(e){return((r*Dt(0,a,e)|0)+i)*n}}},C.ease=mn[`quad.out`],Re(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Pe+=e+`,`+e+`Params,`});var En=function(e,t){this.id=j++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Le,this.set=t?t.getSetter:qn},Dn=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xt(this,+e.duration,1,1),this.data=e.data,E&&(this._ctx=E,E.data.push(this)),dn||fn.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(pn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ft(this,e),!n._dp||n.parent||pt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&mt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===O||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ge(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+ct(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+ct(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?lt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-O?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?ut(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-O?0:this._rts,this.totalTime(Dt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),dt(this),at(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(pn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==O&&(this._tTime-=O)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Be(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&mt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(te(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ut(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Te);var t=T;return T=e,We(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),T=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,St(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,St(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(wt(this,e),te(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,te(t)),this._dur||(this._zTime=-O),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-O:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-O,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-O)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=I(e)?e:qe,a=function(){var e=t.then;t.then=null,n&&n(),I(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Zt(this)},e}();Je(Dn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-O,_prom:0,_ps:!1,_rts:1});var On=function(e){x(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=te(t.sortChildren),H&&mt(t.parent||H,b(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&ht(b(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Tt(0,arguments,this),this},n.from=function(e,t,n){return Tt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Tt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,$e(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Hn(e,t,wt(this,n),1),this},n.call=function(e,t,n){return mt(this,Hn.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Hn(e,n,wt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,$e(n).immediateRender=te(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,$e(r).immediateRender=te(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:Be(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==H&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=Be(o%f),o===i?(d=this._repeat,c=a):(_=Be(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=lt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:Be(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Xt(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=bt(this,Be(r),Be(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Xt(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-O);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||T&&We(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-O:O);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-O)._zTime=c>=r?1:-1,this._ts))return this._start=g,dt(this),this.render(e,t,n);this._onUpdate&&!t&&Xt(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&rt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Xt(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(L(t)||(t=wt(this,t,e)),!(e instanceof Dn)){if(ie(e))return e.forEach(function(e){return n.add(e,t)}),this;if(F(e))return this.addLabel(e,t);if(I(e))e=Hn.delayedCall(0,e);else return this}return this===e?this:mt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-D);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Hn?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return F(e)?this.removeLabel(e):I(e)?this.killTweensOf(e):(e.parent===this&&nt(this,e),e===this._recent&&(this._recent=this._last),it(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Be(fn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=wt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Hn.delayedCall(0,t||Se,n);return r.data=`isPause`,this._hasPause=1,mt(this,r,wt(this,e))},n.removePause=function(e){var t=this._first;for(e=wt(this,e);t;)t._start===e&&t.data===`isPause`&&rt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Nn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Nt(e),i=this._first,a=L(t),o;i;)i instanceof Hn?He(i._targets,r)&&(a?(!Nn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=wt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Hn.to(n,Je({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||O,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&xt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Je({startAt:{time:wt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Yt(this,wt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Yt(this,wt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+O)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Be(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return it(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),it(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=D,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,mt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Be(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;xt(n,n===H&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(H._ts&&(Ge(H,ut(e,H)),ke=fn.frame),fn.frame>=Me){Me+=S.autoSleep||120;var t=H._first;if((!t||!t._ts)&&S.autoSleep&&fn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||fn.sleep()}}},t}(Dn);Je(On.prototype,{_lock:0,_hasPause:0,_forcing:0});var kn=function(e,t,n,r,i,a,o){var s=new nr(this._pt,e,t,0,1,Xn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Kt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(B)||[];u=B.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ve(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=B.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(V.test(r)||g)&&(s.e=0),this._pt=s,s},An=function(e,t,n,r,i,a,o,s,c,l){I(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?I(u)?c?e[t.indexOf(`set`)||!I(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=I(u)?c?Gn:Wn:Un,p;if(F(r)&&(~r.indexOf(`random(`)&&(r=Kt(r)),r.charAt(1)===`=`&&(p=Ve(d,r)+(Ot(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Pn)return!isNaN(d*r)&&r!==``?(p=new nr(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?Yn:Jn,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&ye(t,r),kn.call(this,e,t,d,r,f,s||S.stringFilter,c))},jn=function(e,t,n,r,i){if(I(e)&&(e=zn(e,i,t,n,r)),!R(e)||e.style&&e.nodeType||ie(e)||re(e))return F(e)?zn(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=zn(e[o],i,t,n,r);return a},Mn=function(e,t,n,r,i,a){var o,s,c,l;if(Ae[e]&&(o=new Ae[e]).init(i,o.rawVars?t[e]:jn(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new nr(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Qt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Nn,Pn,Fn=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!w,b=t.timeline,x=i.easeReverse||d,S,E,k,A,j,M,N,P,F,I,L,ee,R;if(b&&(!f||!a)&&(a=`none`),t._ease=xn(a,C.ease),t._rEase=x&&(xn(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(P=g[0]?Ie(g[0]).harness:0,ee=P&&i[P.prop],S=Qe(i,Ee),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?we:Ce),h._lazy=0),o){if(rt(t._startAt=Hn.set(g,Je({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&te(c),startAt:null,delay:0,onUpdate:l&&function(){return Xt(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(T||!s&&!p)&&t._startAt.revert(we),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),k=Je({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&te(c),immediateRender:s,stagger:0,parent:_},S),ee&&(k[P.prop]=ee),rt(t._startAt=Hn.set(g,k)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(T?t._startAt.revert(we):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,O,O);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&te(c)||c&&!m,E=0;E<g.length;E++){if(j=g[E],N=j._gsap||Fe(g)[E]._gsap,t._ptLookup[E]=I={},Oe[N.id]&&De.length&&Ue(),L=v===g?E:v.indexOf(j),P&&(F=new P).init(j,ee||S,t,L,v)!==!1&&(t._pt=A=new nr(t._pt,j,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(e){I[e]=A}),F.priority&&(M=1)),!P||ee)for(k in S)Ae[k]&&(F=Mn(k,S,t,L,j,v))?F.priority&&(M=1):I[k]=A=An.call(t,j,k,`get`,S[k],L,v,0,i.stringFilter);t._op&&t._op[E]&&t.kill(j,t._op[E]),y&&t._pt&&(Nn=t,H.killTweensOf(j,I,t.globalTime(n)),R=!t.parent,Nn=0),t._pt&&c&&(Oe[N.id]=1)}M&&tr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!R,f&&n<=0&&b.render(D,!0,!0)},In=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Pn=1,e.vars[t]=`+=0`,Fn(e,o),Pn=0,s?be(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=ze(n)+Ot(u.e)),u.b&&(u.b=l.s+Ot(u.b))},Ln=function(e,t){var n=e[0]?Ie(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Xe({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Rn=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(ie(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},zn=function(e,t,n,r,i){return I(e)?e.call(t,n,r,i):F(e)&&~e.indexOf(`random(`)?Kt(e):e},Bn=Pe+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Vn={};Re(Bn+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Vn[e]=1});var Hn=function(e){x(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:$e(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||H,g=(ie(t)||re(t)?L(t[0]):`length`in n)?[t]:Nt(t),_,v,y,x,C,T,E,D;if(a._targets=g.length?Fe(g):be(`GSAP target `+t+` not found. https://gsap.com`,!S.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||ne(s)||ne(c)){n=a.vars;var k=n.easeReverse||n.yoyoEase;if(_=a.timeline=new On({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=b(a),_._start=0,u||ne(s)||ne(c)){if(x=g.length,E=u&&It(u),R(u))for(C in u)~Bn.indexOf(C)&&(D||={},D[C]=u[C]);for(v=0;v<x;v++)y=Qe(n,Vn),y.stagger=0,k&&(y.easeReverse=k),D&&Xe(y,D),T=g[v],y.duration=+zn(s,b(a),v,T,g),y.delay=(+zn(c,b(a),v,T,g)||0)-a._delay,!u&&x===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(T,y,E?E(v,T,g):0),_._ease=mn.none;_.duration()?s=c=0:a.timeline=0}else if(f){$e(Je(_.vars.defaults,{ease:`none`})),_._ease=xn(f.ease||n.ease||`none`);var A=0,j,M,N;if(ie(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(C in y={},f)C===`ease`||C===`easeEach`||Rn(C,f[C],y,f.easeEach);for(C in y)for(j=y[C].sort(function(e,t){return e.t-t.t}),A=0,v=0;v<j.length;v++)M=j[v],N={ease:M.e,duration:(M.t-(v?j[v-1].t:0))/100*s},N[C]=M.v,_.to(g,N,A),A+=N.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!w&&(Nn=b(a),H.killTweensOf(g),Nn=0),mt(h,b(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Be(h._time)&&te(l)&&st(b(a))&&h.data!==`nested`)&&(a._tTime=-O,a.render(Math.max(0,-c)||0)),m&&ht(b(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-O&&!o?i:e<O?0:e,c,l,u,d,f,p,m,h;if(!a)yt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=Be(s%d),s===i?(u=this._repeat,c=a):(f=Be(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=lt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(Be(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(gt(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Xt(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&ot(this,e,t,n),Xt(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Xt(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&ot(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&rt(this,1),!t&&(!o||r)&&(s||r||p)&&(Xt(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){dn||fn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Fn(this,a),o=this._ease(a/this._dur),In(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ft(this,0),this.parent||tt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Zt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!T),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Nn&&Nn.vars.overwrite!==!0)._first||Zt(this),this.parent&&n!==this.timeline.totalDuration()&&xt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Nt(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&et(r,i))return t===`all`&&(this._pt=0),Zt(this);for(s=this._op=this._op||[],t!==`all`&&(F(t)&&(d={},Re(t,function(e){return d[e]=1}),t=d),t=Ln(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&nt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Zt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Tt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Tt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return H.killTweensOf(e,t,n)},t}(Dn);Je(Hn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Re(`staggerTo,staggerFrom,staggerFromTo`,function(e){Hn[e]=function(){var t=new On,n=At.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Un=function(e,t,n){return e[t]=n},Wn=function(e,t,n){return e[t](n)},Gn=function(e,t,n,r){return e[t](r.fp,n)},Kn=function(e,t,n){return e.setAttribute(t,n)},qn=function(e,t){return I(e[t])?Wn:ee(e[t])&&e.setAttribute?Kn:Un},Jn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Yn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Xn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Zn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Qn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},$n=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?nt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},er=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},tr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},nr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Jn,this.d=o||this,this.set=s||Un,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=er,this.m=e,this.mt=n,this.tween=t},e}();Re(Pe+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return Ee[e]=1}),he.TweenMax=he.TweenLite=Hn,he.TimelineLite=he.TimelineMax=On,H=new On({sortChildren:!1,defaults:C,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),S.stringFilter=un;var rr=[],ir={},ar=[],or=0,sr=0,cr=function(e){return(ir[e]||ar).map(function(e){return e()})},lr=function(){var e=Date.now(),t=[];e-or>2&&(cr(`matchMediaInit`),rr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=fe.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),cr(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),or=e,cr(`matchMedia`))},ur=function(){function e(e,t){this.selector=t&&Pt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=sr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){I(e)&&(n=t,t=e,e=I);var r=this,i=function(){var e=E,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Pt(n)),E=r,a=t.apply(r,arguments),I(a)&&r._r.push(a),E=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===I?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=E;E=null,e(this),E=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Hn&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof On?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Hn)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=rr.length;r--;)rr[r].id===this.id&&rr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),dr=function(){function e(e){this.contexts=[],this.scope=e,E&&E.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){R(e)||(e={matches:e});var r=new ur(0,n||this.scope),i=r.conditions={},a,o,s;for(o in E&&!r.selector&&(r.selector=E.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=fe.matchMedia(e[o]),a&&(rr.indexOf(r)<0&&rr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(lr):a.addEventListener(`change`,lr)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),fr={registerPlugin:function(){[...arguments].forEach(function(e){return en(e)})},timeline:function(e){return new On(e)},getTweensOf:function(e,t){return H.getTweensOf(e,t)},getProperty:function(e,t,n,r){F(e)&&(e=Nt(e)[0]);var i=Ie(e||{}).get,a=n?qe:Ke;return n===`native`&&(n=``),e&&(t?a((Ae[t]&&Ae[t].get||i)(e,t,n,r)):function(t,n,r){return a((Ae[t]&&Ae[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Nt(e),e.length>1){var r=e.map(function(e){return gr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Ae[t],o=Ie(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Qt._pt=0,r.init(e,n?t+n:t,Qt,0,[e]),r.render(1,r),Qt._pt&&Zn(1,Qt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=gr.to(e,Je((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=xn(e.ease,C.ease)),Ze(C,e||{})},config:function(e){return Ze(S,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Ae[e]&&!he[e]&&be(t+` effect requires `+e+` plugin.`)}),je[t]=function(e,t,r){return n(Nt(e),Je(t||{},i),r)},a&&(On.prototype[t]=function(e,n,r){return this.add(je[t](e,R(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){mn[e]=xn(t)},parseEase:function(e,t){return arguments.length?xn(e,t):mn},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new On(e),r,i;for(n.smoothChildTiming=te(e.smoothChildTiming),H.remove(n),n._dp=0,n._time=n._tTime=H._time,r=H._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Hn&&r.vars.onComplete===r._targets[0]))&&mt(n,r,r._start-r._delay),r=i;return mt(H,n,0),n},context:function(e,t){return e?new ur(e,t):E},matchMedia:function(e){return new dr(e)},matchMediaRefresh:function(){return rr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||lr()},addEventListener:function(e,t){var n=ir[e]||(ir[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ir[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Wt,wrapYoyo:Gt,distribute:It,random:zt,snap:Rt,normalize:Ht,getUnit:Ot,clamp:kt,splitColor:an,toArray:Nt,selector:Pt,mapRange:qt,pipe:Bt,unitize:Vt,interpolate:Jt,shuffle:Ft},install:ve,effects:je,ticker:fn,updateRoot:On.updateRoot,plugins:Ae,globalTimeline:H,core:{PropTween:nr,globals:xe,Tween:Hn,Timeline:On,Animation:Dn,getCache:Ie,_removeLinkedListItem:nt,reverting:function(){return T},context:function(e){return e&&E&&(E.data.push(e),e._ctx=E),E},suppressOverwrites:function(e){return w=e}}};Re(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return fr[e]=Hn[e]}),fn.add(On.updateRoot),Qt=fr.to({},{duration:0});var pr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},mr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=pr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},hr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(F(n)&&(r={},Re(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}mr(e,n)}}}},gr=fr.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)T?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},hr(`roundProps`,Lt),hr(`modifiers`),hr(`snap`,Rt))||fr;Hn.version=On.version=gr.version=`3.15.0`,_e=1,z()&&pn(),mn.Power0,mn.Power1,mn.Power2,mn.Power3,mn.Power4,mn.Linear,mn.Quad,mn.Cubic,mn.Quart,mn.Quint,mn.Strong,mn.Elastic,mn.Back,mn.SteppedEase,mn.Bounce,mn.Sine,mn.Expo,mn.Circ;var _r,vr,yr,br,xr,Sr,Cr,wr=function(){return typeof window<`u`},Tr={},Er=180/Math.PI,Dr=Math.PI/180,Or=Math.atan2,kr=1e8,Ar=/([A-Z])/g,jr=/(left|right|width|margin|padding|x)/i,Mr=/[\s,\(]\S/,Nr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Pr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Fr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ir=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Lr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Rr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},zr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Br=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Vr=function(e,t,n){return e.style[t]=n},Hr=function(e,t,n){return e.style.setProperty(t,n)},Ur=function(e,t,n){return e._gsap[t]=n},Wr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Gr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Kr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},qr=`transform`,Jr=qr+`Origin`,Yr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Tr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Nr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=mi(i,e)}):this.tfm[t]=o.x?o[t]:mi(i,t),t===Jr&&(this.tfm.zOrigin=o.zOrigin);else return Nr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(qr)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Jr,n,``)),t=qr}(a||n)&&this.props.push(t,n,a[t])},Xr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Zr=function(){for(var e=this.props,t=this.target,n=t.style,r=t._gsap,i=0,a;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(Ar,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Cr(),(!i||!i.isStart)&&!n[qr]&&(Xr(n),r.zOrigin&&n[Jr]&&(n[Jr]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Qr=function(e,t){var n={target:e,props:[],revert:Zr,save:Yr};return e._gsap||gr.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},$r,ei=function(e,t){var n=vr.createElementNS?vr.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):vr.createElement(e);return n&&n.style?n:vr.createElement(e)},ti=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Ar,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ri(n)||n,1)||``},ni=`O,Moz,ms,Ms,Webkit`.split(`,`),ri=function(e,t,n){var r=(t||xr).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(ni[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?ni[i]:``)+e},ii=function(){wr()&&window.document&&(_r=window,vr=_r.document,yr=vr.documentElement,xr=ei(`div`)||{style:{}},ei(`div`),qr=ri(qr),Jr=qr+`Origin`,xr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,$r=!!ri(`perspective`),Cr=gr.core.reverting,br=1)},ai=function(e){var t=e.ownerSVGElement,n=ei(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),yr.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),yr.removeChild(n),i},oi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},si=function(e){var t,n;try{t=e.getBBox()}catch{t=ai(e),n=1}return t&&(t.width||t.height)||n||(t=ai(e)),t&&!t.width&&!t.x&&!t.y?{x:+oi(e,[`x`,`cx`,`x1`])||0,y:+oi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},ci=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!si(e))},li=function(e,t){if(t){var n=e.style,r;t in Tr&&t!==Jr&&(t=qr),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Ar,`-$1`).toLowerCase())):n.removeAttribute(t)}},ui=function(e,t,n,r,i,a){var o=new nr(e._pt,t,n,0,1,a?Br:zr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},di={deg:1,rad:1,turn:1},fi={grid:1,flex:1},pi=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=xr.style,c=jr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||di[i]||di[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&ci(t),(p||o===`%`)&&(Tr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],ze(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===vr||!h.appendChild)&&(h=vr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===fn.time&&!g.uncache)return ze(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:li(t,n)}else(p||o===`%`)&&!fi[ti(h,`display`)]&&(s.position=ti(t,`position`)),h===t&&(s.position=`static`),h.appendChild(xr),m=xr[u],h.removeChild(xr),s.position=`absolute`;return c&&p&&(g=Ie(h),g.time=fn.time,g.width=h[u]),ze(f?m*a/d:m&&a?d/m*a:0)},mi=function(e,t,n,r){var i;return br||ii(),t in Nr&&t!==`transform`&&(t=Nr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Tr[t]&&t!==`transform`?(i=Ei(e,r),i=t===`transformOrigin`?i.svg?i.origin:Di(ti(e,Jr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=yi[t]&&yi[t](e,t,n)||ti(e,t)||Le(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?pi(e,t,i,n)+n:i},hi=function(e,t,n,r){if(!n||n===`none`){var i=ri(t,e,1),a=i&&ti(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=ti(e,`borderTopColor`))}var o=new nr(this._pt,e.style,t,0,1,Xn),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=ti(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=ti(e,t)||r,m?e.style[t]=m:li(e,t)),l=[n,r],un(l),n=l[0],r=l[1],d=n.match(le)||[],b=r.match(le)||[],b.length){for(;u=le.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ve(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=le.lastIndex-v.length,v||(v=v||S.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=pi(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?Br:zr;return V.test(r)&&(o.e=0),this._pt=o,o},gi={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},_i=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=gi[n]||n,t[1]=gi[r]||r,t.join(` `)},vi=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Tr[o]&&(s=1,o=o===`transformOrigin`?Jr:qr),li(n,o);s&&(li(n,qr),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Ei(n,1),a.uncache=1,Xr(r)))}},yi={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new nr(e._pt,t,n,0,0,vi);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},bi=[1,0,0,1,0,0],xi={},Si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Ci=function(e){var t=ti(e,qr);return Si(t)?bi:t.substr(7).match(ce).map(ze)},wi=function(e,t){var n=e._gsap||Ie(e),r=e.style,i=Ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?bi:i):(i===bi&&!e.offsetParent&&e!==yr&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,yr.appendChild(e)),i=Ci(e),s?r.display=s:li(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):yr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Ti=function(e,t,n,r,i,a){var o=e._gsap,s=i||wi(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==bi&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=si(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Jr]=`0px 0px`,a&&(ui(a,o,`xOrigin`,c,y),ui(a,o,`yOrigin`,l,b),ui(a,o,`xOffset`,u,o.xOffset),ui(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Ei=function(e,t){var n=e._gsap||new En(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=ti(e,Jr)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,ee,R,te,z;return n.svg=!!(e.getCTM&&ci(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[qr]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[qr]===`none`?``:s[qr])),r.scale=r.rotate=r.translate=`none`),C=wi(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),Ti(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),b=n.xOrigin||0,x=n.yOrigin||0,C!==bi&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?Or(O,D)*Er:0,_=k||A?Or(k,A)*Er+m:0,_&&(p*=Math.abs(Math.cos(_*Dr))),n.svg&&(l-=b-(b*D+x*k),u-=x-(b*O+x*A))):(z=C[6],R=C[7],I=C[8],L=C[9],ee=C[10],te=C[11],l=C[12],u=C[13],d=C[14],w=Or(z,ee),h=w*Er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+L*E,F=z*T+ee*E,I=j*-E+I*T,L=M*-E+L*T,ee=z*-E+ee*T,te=R*-E+te*T,j=N,M=P,z=F),w=Or(-k,ee),g=w*Er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-L*E,F=k*T-ee*E,te=A*E+te*T,D=N,O=P,k=F),w=Or(O,D),m=w*Er,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=ze(Math.sqrt(D*D+O*O+k*k)),p=ze(Math.sqrt(M*M+z*z)),w=Or(j,M),_=Math.abs(w)>2e-4?w*Er:0,y=te?1/(te<0?-te:te):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Si(ti(e,qr)),N&&e.setAttribute(`transform`,N))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=ze(f),n.scaleY=ze(p),n.rotation=ze(m)+o,n.rotationX=ze(h)+o,n.rotationY=ze(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Jr]=Di(c)),n.xOffset=n.yOffset=0,n.force3D=S.force3D,n.renderTransform=n.svg?Pi:$r?Ni:ki,n.uncache=0,n},Di=function(e){return(e=e.split(` `))[0]+` `+e[1]},Oi=function(e,t,n){var r=Ot(t);return ze(parseFloat(t)+parseFloat(pi(e,`x`,n+`px`,r)))+r},ki=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Ni(e,t)},Ai=`0deg`,ji=`0px`,Mi=`) `,Ni=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Ai||l!==Ai)){var x=parseFloat(l)*Dr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Dr,w=Math.cos(x),a=Oi(_,a,S*w*-v),o=Oi(_,o,-Math.sin(x)*-v),s=Oi(_,s,C*w*-v+v)}h!==ji&&(y+=`perspective(`+h+Mi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ji||o!==ji||s!==ji)&&(y+=s!==ji||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Mi),c!==Ai&&(y+=`rotate(`+c+Mi),l!==Ai&&(y+=`rotateY(`+l+Mi),u!==Ai&&(y+=`rotateX(`+u+Mi),(d!==Ai||f!==Ai)&&(y+=`skew(`+d+`, `+f+Mi),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Mi),_.style[qr]=y||`translate(0, 0)`},Pi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Dr,c*=Dr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Dr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=ze(b),x=ze(x),S=ze(S),C=ze(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=pi(f,`x`,a,`px`),y=pi(f,`y`,o,`px`)),(p||m||h||g)&&(v=ze(v+p-(p*b+m*S)+h),y=ze(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=ze(v+r/100*w.width),y=ze(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[qr]=w)},Fi=function(e,t,n,r,i){var a=360,o=F(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Er:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*kr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*kr)%a-~~(s/a)*a)),e._pt=u=new nr(e._pt,t,n,r,s,Fr),u.e=c,u.u=`deg`,e._props.push(n),u},Ii=function(e,t){for(var n in t)e[n]=t[n];return e},Li=function(e,t,n){var r=Ii({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[qr]=t,o=Ei(n,1),li(n,qr),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[qr],a[qr]=t,o=Ei(n,1),a[qr]=c),Tr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=Ot(c),p=Ot(l),u=f===p?parseFloat(c):pi(n,s,c,p),d=parseFloat(l),e._pt=new nr(e._pt,o,s,u,d-u,Pr),e._pt.u=p||0,e._props.push(s));Ii(o,r)};Re(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});yi[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return mi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ri={name:`css`,register:ii,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,C,w,T;for(m in br||ii(),this.styles=this.styles||Qr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Ae[m]&&Mn(m,t,n,r,e,i)))){if(f=typeof l,p=yi[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Kt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,cn.lastIndex=0,cn.test(c)||(h=Ot(c),g=Ot(l),g?h!==g&&(c=pi(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],F(c)&&~c.indexOf(`random(`)&&(c=Kt(c)),Ot(c+``)||c===`auto`||(c+=S.units[m]||Ot(mi(e,m))||``),(c+``).charAt(1)===`=`&&(c=mi(e,m))):c=mi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Nr&&(m===`autoAlpha`&&(d===1&&mi(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),ui(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Nr[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Tr,v){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=ti(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=ti(e,`perspective`),E?e.style.perspective=E:li(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Ei(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new nr(this._pt,o,qr,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new nr(this._pt,b,`scaleY`,b.scaleY,(_?Ve(b.scaleY,_+u):u)-b.scaleY||0,Pr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Jr,0,o[Jr]),l=_i(l),b.svg?Ti(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&ui(this,b,`zOrigin`,b.zOrigin,g),ui(this,o,m,Di(c),Di(l)));continue}else if(m===`svgOrigin`){Ti(e,l,1,x,0,this);continue}else if(m in xi){Fi(this,b,m,d,_?Ve(d,_+l):l);continue}else if(m===`smoothOrigin`){ui(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Li(this,l,e);continue}}else m in o||(m=ri(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Mr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=Ot(l)||(m in S.units?S.units[m]:h),h!==g&&(d=pi(e,m,c,g)),this._pt=new nr(this._pt,v?b:o,m,d,(_?Ve(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Rr:Pr),this._pt.u=g||0,v&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=Lr):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Ir);else if(m in o)hi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){ye(m,l);continue}v||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&tr(this)},render:function(e,t){if(t.tween._time||!Cr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:mi,aliases:Nr,getSetter:function(e,t,n){var r=Nr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Tr&&t!==Jr&&(e._gsap.x||mi(e,`x`))?n&&Sr===n?t===`scale`?Wr:Ur:(Sr=n||{})&&(t===`scale`?Gr:Kr):e.style&&!ee(e.style[t])?Vr:~t.indexOf(`-`)?Hr:qn(e,t)},core:{_removeProperty:li,_getMatrix:wi}};gr.utils.checkPrefix=ri,gr.core.getStyleSaver=Qr,(function(e,t,n,r){var i=Re(e+`,`+t+`,`+n,function(e){Tr[e]=1});Re(t,function(e){S.units[e]=`deg`,xi[e]=1}),Nr[i[13]]=e+`,`+t,Re(r,function(e){var t=e.split(`:`);Nr[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),Re(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){S.units[e]=`px`}),gr.registerPlugin(Ri);var zi=gr.registerPlugin(Ri)||gr;zi.core.Tween;function Bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t,n){return t&&Bi(e.prototype,t),n&&Bi(e,n),e}var Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta=function(){return Hi||typeof window<`u`&&(Hi=window.gsap)&&Hi.registerPlugin&&Hi},na=1,ra=[],ia=[],aa=[],oa=Date.now,sa=function(e,t){return t},ca=function(){var e=Xi.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,ia),r.push.apply(r,aa),ia=n,aa=r,sa=function(e,n){return t[e](n)}},la=function(e,t){return~aa.indexOf(e)&&aa[aa.indexOf(e)+1][t]},ua=function(e){return!!~Zi.indexOf(e)},da=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},fa=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},pa=`scrollLeft`,ma=`scrollTop`,ha=function(){return Qi&&Qi.isPressed||ia.cache++},ga=function(e,t){var n=function n(r){if(r||r===0){na&&(Wi.history.scrollRestoration=`manual`);var i=Qi&&Qi.isPressed;r=n.v=Math.round(r)||(Qi&&Qi.iOS?1:0),e(r),n.cacheID=ia.cache,i&&sa(`ss`,r)}else(t||ia.cache!==n.cacheID||sa(`ref`))&&(n.cacheID=ia.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},_a={s:pa,p:`left`,p2:`Left`,os:`right`,os2:`Right`,d:`width`,d2:`Width`,a:`x`,sc:ga(function(e){return arguments.length?Wi.scrollTo(e,va.sc()):Wi.pageXOffset||Gi[pa]||Ki[pa]||qi[pa]||0})},va={s:ma,p:`top`,p2:`Top`,os:`bottom`,os2:`Bottom`,d:`height`,d2:`Height`,a:`y`,op:_a,sc:ga(function(e){return arguments.length?Wi.scrollTo(_a.sc(),e):Wi.pageYOffset||Gi[ma]||Ki[ma]||qi[ma]||0})},ya=function(e,t){return(t&&t._ctx&&t._ctx.selector||Hi.utils.toArray)(e)[0]||(typeof e==`string`&&Hi.config().nullTargetWarn!==!1?console.warn(`Element not found:`,e):null)},ba=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},xa=function(e,t){var n=t.s,r=t.sc;ua(e)&&(e=Gi.scrollingElement||Ki);var i=ia.indexOf(e),a=r===va.sc?1:2;!~i&&(i=ia.push(e)-1),ia[i+a]||da(e,`scroll`,ha);var o=ia[i+a],s=o||(ia[i+a]=ga(la(e,n),!0)||(ua(e)?r:ga(function(t){return arguments.length?e[n]=t:e[n]})));return s.target=e,o||(s.smooth=Hi.getProperty(e,`scrollBehavior`)===`smooth`),s},Sa=function(e,t,n){var r=e,i=e,a=oa(),o=a,s=t||50,c=Math.max(500,s*3),l=function(e,t){var c=oa();t||c-a>s?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=oa();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},Ca=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},wa=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Ta=function(){Xi=Hi.core.globals().ScrollTrigger,Xi&&Xi.core&&ca()},Ea=function(e){return Hi=e||ta(),!Ui&&Hi&&typeof document<`u`&&document.body&&(Wi=window,Gi=document,Ki=Gi.documentElement,qi=Gi.body,Zi=[Wi,Gi,Ki,qi],Hi.utils.clamp,ea=Hi.core.context||function(){},Yi=`onpointerenter`in qi?`pointer`:`mouse`,Ji=Da.isTouch=Wi.matchMedia&&Wi.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Wi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,$i=Da.eventTypes=(`ontouchstart`in Ki?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Ki?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return na=0},500),Ui=1),Xi||Ta(),Ui};_a.op=va,ia.cache=0;var Da=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Ui||Ea(Hi)||console.warn(`Please gsap.registerPlugin(Observer)`),Xi||Ta();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,F=e.onEnable,I=e.onDisable,L=e.onClick,ee=e.scrollSpeed,R=e.capture,te=e.allowClicks,z=e.lockAxis,ne=e.onLockAxis;this.target=i=ya(i)||Ki,this.vars=e,u&&=Hi.utils.toArray(u),t||=1e-9,n||=0,d||=1,ee||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Wi.getComputedStyle(qi).lineHeight)||22;var re,ie,ae,oe,se,ce,le,B=this,V=0,ue=0,de=e.passive||!s&&e.passive!==!1,H=xa(i,_a),fe=xa(i,va),pe=H(),me=fe(),he=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&$i[0]===`pointerdown`,ge=ua(i),_e=i.ownerDocument||Gi,ve=[0,0,0],ye=[0,0,0],be=0,xe=function(){return be=oa()},Se=function(e,t){return(B.event=e)&&u&&ba(e.target,u)||t&&he&&e.pointerType!==`touch`||A&&A(e,t)},Ce=function(){B._vx.reset(),B._vy.reset(),ie.pause(),c&&c(B)},we=function(){var e=B.deltaX=wa(ve),n=B.deltaY=wa(ye),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(B,e,n,ve,ye),r&&(v&&B.deltaX>0&&v(B),y&&B.deltaX<0&&y(B),S&&S(B),T&&B.deltaX<0!=V<0&&T(B),V=B.deltaX,ve[0]=ve[1]=ve[2]=0),i&&(x&&B.deltaY>0&&x(B),b&&B.deltaY<0&&b(B),C&&C(B),E&&B.deltaY<0!=ue<0&&E(B),ue=B.deltaY,ye[0]=ye[1]=ye[2]=0),(oe||ae)&&(k&&k(B),ae&&=(p&&ae===1&&p(B),h&&h(B),0),oe=!1),ce&&!(ce=!1)&&ne&&ne(B),se&&=(P(B),!1),re=0},Te=function(e,t,n){ve[n]+=e,ye[n]+=t,B._vx.update(e),B._vy.update(t),o?re||=requestAnimationFrame(we):we()},Ee=function(e,t){z&&!le&&(B.axis=le=Math.abs(e)>Math.abs(t)?`x`:`y`,ce=!0),le!==`y`&&(ve[2]+=e,B._vx.update(e,!0)),le!==`x`&&(ye[2]+=t,B._vy.update(t,!0)),o?re||=requestAnimationFrame(we):we()},De=function(e){if(!Se(e,1)){e=Ca(e,s);var t=e.clientX,r=e.clientY,i=t-B.x,a=r-B.y,o=B.isDragging;B.x=t,B.y=r,(o||(i||a)&&(Math.abs(B.startX-t)>=n||Math.abs(B.startY-r)>=n))&&(ae||=o?2:1,o||(B.isDragging=!0),Ee(i,a))}},Oe=B.onPress=function(e){Se(e,1)||e&&e.button||(B.axis=le=null,ie.pause(),B.isPressed=!0,e=Ca(e),V=ue=0,B.startX=B.x=e.clientX,B.startY=B.y=e.clientY,B._vx.reset(),B._vy.reset(),da(j?i:_e,$i[1],De,de,!0),B.deltaX=B.deltaY=0,g&&g(B))},ke=B.onRelease=function(e){if(!Se(e,1)){fa(j?i:_e,$i[1],De,!0);var t=!isNaN(B.y-B.startY),n=B.isDragging,r=n&&(Math.abs(B.x-B.startX)>3||Math.abs(B.y-B.startY)>3),a=Ca(e);!r&&t&&(B._vx.reset(),B._vy.reset(),s&&te&&Hi.delayedCall(.08,function(){if(oa()-be>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(_e.createEvent){var t=_e.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Wi,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),B.isDragging=B.isGesturing=B.isPressed=!1,c&&n&&!j&&ie.restart(!0),ae&&we(),m&&n&&m(B),_&&_(B,r)}},Ae=function(e){return e.touches&&e.touches.length>1&&(B.isGesturing=!0)&&M(e,B.isDragging)},je=function(){return(B.isGesturing=!1)||N(B)},Me=function(e){if(!Se(e)){var t=H(),n=fe();Te((t-pe)*ee,(n-me)*ee,1),pe=t,me=n,c&&ie.restart(!0)}},Ne=function(e){if(!Se(e)){e=Ca(e,s),P&&(se=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Wi.innerHeight:1)*d;Te(e.deltaX*t,e.deltaY*t,0),c&&!j&&ie.restart(!0)}},Pe=function(e){if(!Se(e)){var t=e.clientX,n=e.clientY,r=t-B.x,i=n-B.y;B.x=t,B.y=n,oe=!0,c&&ie.restart(!0),(r||i)&&Ee(r,i)}},Fe=function(e){B.event=e,D(B)},Ie=function(e){B.event=e,O(B)},Le=function(e){return Se(e)||Ca(e,s)&&L(B)};ie=B._dc=Hi.delayedCall(l||.25,Ce).pause(),B.deltaX=B.deltaY=0,B._vx=Sa(0,50,!0),B._vy=Sa(0,50,!0),B.scrollX=H,B.scrollY=fe,B.isDragging=B.isGesturing=B.isPressed=!1,ea(this),B.enable=function(e){return B.isEnabled||(da(ge?_e:i,`scroll`,ha),r.indexOf(`scroll`)>=0&&da(ge?_e:i,`scroll`,Me,de,R),r.indexOf(`wheel`)>=0&&da(i,`wheel`,Ne,de,R),(r.indexOf(`touch`)>=0&&Ji||r.indexOf(`pointer`)>=0)&&(da(i,$i[0],Oe,de,R),da(_e,$i[2],ke),da(_e,$i[3],ke),te&&da(i,`click`,xe,!0,!0),L&&da(i,`click`,Le),M&&da(_e,`gesturestart`,Ae),N&&da(_e,`gestureend`,je),D&&da(i,Yi+`enter`,Fe),O&&da(i,Yi+`leave`,Ie),k&&da(i,Yi+`move`,Pe)),B.isEnabled=!0,B.isDragging=B.isGesturing=B.isPressed=oe=ae=!1,B._vx.reset(),B._vy.reset(),pe=H(),me=fe(),e&&e.type&&Oe(e),F&&F(B)),B},B.disable=function(){B.isEnabled&&(ra.filter(function(e){return e!==B&&ua(e.target)}).length||fa(ge?_e:i,`scroll`,ha),B.isPressed&&(B._vx.reset(),B._vy.reset(),fa(j?i:_e,$i[1],De,!0)),fa(ge?_e:i,`scroll`,Me,R),fa(i,`wheel`,Ne,R),fa(i,$i[0],Oe,R),fa(_e,$i[2],ke),fa(_e,$i[3],ke),fa(i,`click`,xe,!0),fa(i,`click`,Le),fa(_e,`gesturestart`,Ae),fa(_e,`gestureend`,je),fa(i,Yi+`enter`,Fe),fa(i,Yi+`leave`,Ie),fa(i,Yi+`move`,Pe),B.isEnabled=B.isPressed=B.isDragging=!1,I&&I(B))},B.kill=B.revert=function(){B.disable();var e=ra.indexOf(B);e>=0&&ra.splice(e,1),Qi===B&&(Qi=0)},ra.push(B),j&&ua(i)&&(Qi=B),B.enable(f)},Vi(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Da.version=`3.15.0`,Da.create=function(e){return new Da(e)},Da.register=Ea,Da.getAll=function(){return ra.slice()},Da.getById=function(e){return ra.filter(function(t){return t.vars.id===e})[0]},ta()&&Hi.registerPlugin(Da);var Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co=1,lo=Date.now,uo=lo(),fo=0,po=0,mo=function(e,t,n){var r=Ao(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},ho=function(e,t){return t&&(!Ao(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},go=function e(){return po&&requestAnimationFrame(e)},_o=function(){return Va=1},vo=function(){return Va=0},yo=function(e){return e},bo=function(e){return Math.round(e*1e5)/1e5||0},xo=function(){return typeof window<`u`},So=function(){return Oa||xo()&&(Oa=window.gsap)&&Oa.registerPlugin&&Oa},Co=function(e){return!!~Pa.indexOf(e)},wo=function(e){return(e===`Height`?io:Aa[`inner`+e])||Ma[`client`+e]||Na[`client`+e]},To=function(e){return la(e,`getBoundingClientRect`)||(Co(e)?function(){return Qs.width=Aa.innerWidth,Qs.height=io,Qs}:function(){return ts(e)})},Eo=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=la(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?wo(i):e[`client`+i])||0}},Do=function(e,t){return!t||~aa.indexOf(e)?To(e):function(){return Qs}},Oo=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=la(e,n))?a()-To(e)()[i]:Co(e)?(Ma[n]||Na[n])-wo(r):e[n]-e[`offset`+r])},ko=function(e,t){for(var n=0;n<Ka.length;n+=3)(!t||~t.indexOf(Ka[n+1]))&&e(Ka[n],Ka[n+1],Ka[n+2])},Ao=function(e){return typeof e==`string`},jo=function(e){return typeof e==`function`},Mo=function(e){return typeof e==`number`},No=function(e){return typeof e==`object`},Po=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},Fo=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);r&&r.totalTime&&(e.callbackAnimation=r)}},Io=Math.abs,Lo=`left`,Ro=`top`,zo=`right`,Bo=`bottom`,Vo=`width`,Ho=`height`,Uo=`Right`,Wo=`Left`,Go=`Top`,Ko=`Bottom`,qo=`padding`,Jo=`margin`,Yo=`Width`,Xo=`Height`,Zo=`px`,Qo=function(e){return Aa.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},$o=function(e){var t=Qo(e).position;e.style.position=t===`absolute`||t===`fixed`?t:`relative`},es=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},ts=function(e,t){var n=t&&Qo(e)[Ha]!==`matrix(1, 0, 0, 1, 0, 0)`&&Oa.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},ns=function(e,t){var n=t.d2;return e[`offset`+n]||e[`client`+n]||0},rs=function(e){var t=[],n=e.labels,r=e.duration(),i;for(i in n)t.push(n[i]/r);return t},is=function(e){return function(t){return Oa.utils.snap(rs(e),t)}},as=function(e){var t=Oa.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){i===void 0&&(i=.001);var a;if(!r)return t(e);if(r>0){for(e-=i,a=0;a<n.length;a++)if(n[a]>=e)return n[a];return n[a-1]}for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)<i||a-n<0==r<0?a:t(r<0?n-e:n+e)}},os=function(e){return function(t,n){return as(rs(e))(t,n.direction)}},ss=function(e,t,n,r){return n.split(`,`).forEach(function(n){return e(t,n,r)})},cs=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},ls=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},us=function(e,t,n){n&&=n.wheelHandler,n&&(e(t,`wheel`,n),e(t,`touchmove`,n))},ds={startColor:`green`,endColor:`red`,indent:0,fontSize:`16px`,fontWeight:`normal`},fs={toggleActions:`play`,anticipatePin:0},ps={top:0,left:0,center:.5,bottom:1,right:1},ms=function(e,t){if(Ao(e)){var n=e.indexOf(`=`),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf(`%`)>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in ps?ps[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},hs=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=ja.createElement(`div`),m=Co(n)||la(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?Na:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===va?zo:Bo)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],gs(p,0,r,_),p},gs=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Yo]=1,i[`border`+o+Yo]=0,i[n.p]=t+`px`,Oa.set(e,i)},_s=[],vs={},ys,bs=function(){return lo()-fo>34&&(ys||=requestAnimationFrame(Us))},xs=function(){(!Xa||!Xa.isPressed||Xa.startX>Na.clientWidth)&&(ia.cache++,Xa?ys||=requestAnimationFrame(Us):Us(),fo||Ds(`scrollStart`),fo=lo())},Ss=function(){$a=Aa.innerWidth,Qa=Aa.innerHeight},Cs=function(e){ia.cache++,(e===!0||!Ba&&!Ya&&!ja.fullscreenElement&&!ja.webkitFullscreenElement&&(!Za||$a!==Aa.innerWidth||Math.abs(Aa.innerHeight-Qa)>Aa.innerHeight*.25))&&Fa.restart(!0)},ws={},Ts=[],Es=function e(){return ls(ac,`scrollEnd`,e)||zs(!0)},Ds=function(e){return ws[e]&&ws[e].map(function(e){return e()})||Ts},Os=[],ks=function(e){for(var t=0;t<Os.length;t+=5)(!e||Os[t+4]&&Os[t+4].query===e)&&(Os[t].style.cssText=Os[t+1],Os[t].getBBox&&Os[t].setAttribute(`transform`,Os[t+2]||``),Os[t+3].uncache=1)},As=function(){return ia.forEach(function(e){return jo(e)&&++e.cacheID&&(e.rec=e())})},js=function(e,t){var n;for(Ua=0;Ua<_s.length;Ua++)n=_s[Ua],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));ao=!0,t&&ks(t),t||Ds(`revert`)},Ms=function(e,t){ia.cache++,(t||!Ns)&&ia.forEach(function(e){return jo(e)&&e.cacheID++&&(e.rec=0)}),Ao(e)&&(Aa.history.scrollRestoration=no=e)},Ns,Ps=0,Fs,Is=function(){if(Fs!==Ps){var e=Fs=Ps;requestAnimationFrame(function(){return e===Ps&&zs(!0)})}},Ls=function(){Na.appendChild(ro),io=!Xa&&ro.offsetHeight||Aa.innerHeight,Na.removeChild(ro)},Rs=function(e){return Ia(`.gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end`).forEach(function(t){return t.style.display=e?`none`:`block`})},zs=function(e,t){if(Ma=ja.documentElement,Na=ja.body,Pa=[Aa,ja,Ma,Na],fo&&!e&&!ao){cs(ac,`scrollEnd`,Es);return}Ls(),Ns=ac.isRefreshing=!0,ao||As();var n=Ds(`refreshInit`);qa&&ac.sort(),t||js(),ia.forEach(function(e){jo(e)&&(e.smooth&&(e.target.style.scrollBehavior=`auto`),e(0))}),_s.slice(0).forEach(function(e){return e.refresh()}),ao=!1,_s.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?`offsetWidth`:`offsetHeight`,n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),oo=1,Rs(!0),_s.forEach(function(e){var t=Oo(e.scroller,e._dir),n=e.vars.end===`max`||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Rs(!1),oo=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),ia.forEach(function(e){jo(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Ms(no,1),Fa.pause(),Ps++,Ns=2,Us(2),_s.forEach(function(e){return jo(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Ns=ac.isRefreshing=!1,Ds(`refresh`)},Bs=0,Vs=1,Hs,Us=function(e){if(e===2||!Ns&&!ao){ac.isUpdating=!0,Hs&&Hs.update(0);var t=_s.length,n=lo(),r=n-uo>=50,i=t&&_s[0].scroll();if(Vs=Bs>i?-1:1,Ns||(Bs=i),r&&(fo&&!Va&&n-fo>200&&(fo=0,Ds(`scrollEnd`)),Ra=uo,uo=n),Vs<0){for(Ua=t;Ua-->0;)_s[Ua]&&_s[Ua].update(0,r);Vs=1}else for(Ua=0;Ua<t;Ua++)_s[Ua]&&_s[Ua].update(0,r);ac.isUpdating=!1}ys=0},Ws=[Lo,Ro,Bo,zo,Jo+Ko,Jo+Uo,Jo+Go,Jo+Wo,`display`,`flexShrink`,`float`,`zIndex`,`gridColumnStart`,`gridColumnEnd`,`gridRowStart`,`gridRowEnd`,`gridArea`,`justifySelf`,`alignSelf`,`placeSelf`,`order`],Gs=Ws.concat([Vo,Ho,`boxSizing`,`max`+Yo,`max`+Xo,`position`,Jo,qo,qo+Go,qo+Uo,qo+Ko,qo+Wo]),Ks=function(e,t,n){Ys(n);var r=e._gsap;if(r.spacerIsNative)Ys(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},qs=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i=Ws.length,a=t.style,o=e.style,s;i--;)s=Ws[i],a[s]=n[s];a.position=n.position===`absolute`?`absolute`:`relative`,n.display===`inline`&&(a.display=`inline-block`),o[Bo]=o[zo]=`auto`,a.flexBasis=n.flexBasis||`auto`,a.overflow=`visible`,a.boxSizing=`border-box`,a[Vo]=ns(e,_a)+Zo,a[Ho]=ns(e,va)+Zo,a[qo]=o[Jo]=o[Ro]=o[Lo]=`0`,Ys(r),o[Vo]=o[`max`+Yo]=n[Vo],o[Ho]=o[`max`+Xo]=n[Ho],o[qo]=n[qo],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Js=/([A-Z])/g,Ys=function(e){if(e){var t=e.t.style,n=e.length,r=0,i,a;for((e.t._gsap||Oa.core.getCache(e.t)).uncache=1;r<n;r+=2)a=e[r+1],i=e[r],a?t[i]=a:t[i]&&t.removeProperty(i.replace(Js,`-$1`).toLowerCase())}},Xs=function(e){for(var t=Gs.length,n=e.style,r=[],i=0;i<t;i++)r.push(Gs[i],n[Gs[i]]);return r.t=e,r},Zs=function(e,t,n){for(var r=[],i=e.length,a=n?8:0,o;a<i;a+=2)o=e[a],r.push(o,o in t?t[o]:e[a+1]);return r.t=e.t,r},Qs={left:0,top:0},$s=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){jo(e)&&(e=e(s)),Ao(e)&&e.substr(0,3)===`max`&&(e=d+(e.charAt(4)===`=`?ms(`0`+e.substr(3),n):0));var m=f?f.time():0,h,g,_;if(f&&f.seek(0),isNaN(e)||(e=+e),Mo(e))f&&(e=Oa.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),o&&gs(o,n,r,!0);else{jo(t)&&(t=t(s));var v=(e||`0`).split(` `),y,b,x,S;_=ya(t,s)||Na,y=ts(_)||{},(!y||!y.left&&!y.top)&&Qo(_).display===`none`&&(S=_.style.display,_.style.display=`block`,y=ts(_),S?_.style.display=S:_.style.removeProperty(`display`)),b=ms(v[0],y[r.d]),x=ms(v[1]||`0`,n),e=y[r.p]-c[r.p]-l+b+i-x,o&&gs(o,x,r,n-x<20||o._isStart&&x>20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,gs(a,C,r,w&&C>20||!w&&(u?Math.max(Na[h],Ma[h]):a.parentNode[h])<=C+1),u&&(c=ts(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Zo))}return f&&_&&(h=ts(_),f.seek(d),g=ts(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},ec=/(webkit|moz|length|cssText|inset)/i,tc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===Na){for(a in e._stOrig=i.cssText,o=Qo(e),o)!+a&&!ec.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;Oa.core.getCache(e).uncache=1,t.appendChild(e)}},nc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},rc=function(e,t,n){var r={};r[t.p]=`+=`+n,Oa.set(e,r)},ic=function(e,t){var n=xa(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=nc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){ia.cache++,t.tween&&Us()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=Oa.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},cs(e,`wheel`,n.wheelHandler),ac.isTouch&&cs(e,`touchmove`,n.wheelHandler),i},ac=function(){function e(t,n){ka||e.register(Oa)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),to(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!po){this.update=this.refresh=this.kill=yo;return}t=es(Ao(t)||Mo(t)||t.nodeType?{trigger:t}:t,fs);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?_a:va,T=!l&&l!==0,E=ya(t.scroller||Aa),D=Oa.core.getCache(E),O=Co(E),k=(`pinType`in t?t.pinType:la(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:fs.markers,N=O?0:parseFloat(Qo(E)[`border`+w.p2+Yo])||0,P=this,F=t.onRefreshInit&&function(){return t.onRefreshInit(P)},I=Eo(E,O,w),L=Do(E,O),ee=0,R=0,te=0,z=xa(E,w),ne,re,ie,ae,oe,se,ce,le,B,V,ue,de,H,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):z,ae=z(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(qa=1,t.refreshPriority===-9999&&(Hs=P)),D.tweenScroll=D.tweenScroll||{top:ic(E,va),left:ic(E,_a)},P.tweenTo=ne=D.tweenScroll[w.p],P.scrubDuration=function(e){je=Mo(e)&&e,je?Ae?Ae.duration(e):Ae=Oa.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:je,paused:!0,onComplete:function(){return h&&h(P)}}):(Ae&&Ae.progress(1).kill(),Ae=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Oe=0,o||=n.vars.id),v&&((!No(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in Na.style&&Oa.set(O?[Na,Ma]:E,{scrollBehavior:`auto`}),ia.forEach(function(e){return jo(e)&&e.target===(O?ja.scrollingElement||Ma:E)&&(e.smooth=!1)}),ie=jo(v.snapTo)?v.snapTo:v.snapTo===`labels`?is(n):v.snapTo===`labelsDirectional`?os(n):v.directional===!1?Oa.utils.snap(v.snapTo):function(e,t){return as(v.snapTo)(e,lo()-R<500?0:t.direction)},Me=v.duration||{min:.1,max:2},Me=No(Me)?La(Me.min,Me.max):La(Me,Me),Ne=Oa.delayedCall(v.delay||je/2||.1,function(){var e=z(),t=lo()-R<500,r=ne.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!Va&&ee!==e){var i=(e-se)/fe,a=n&&!T?n.totalProgress():i,o=t?0:(a-ke)/(lo()-Ra)*1e3||0,s=Oa.utils.clamp(-i,1-i,Io(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=ie(c,P),Mo(l)||(l=c),u=Math.max(0,Math.round(se+l*fe)),e<=ce&&e>=se&&u!==e){if(r&&!r._initted&&r.data<=Io(u-e))return;v.inertia===!1&&(s=l-i),ne(u,{duration:Me(Io(Math.max(Io(c-a),Io(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Io(u-e),onInterrupt:function(){return Ne.restart(!0)&&p&&Fo(P,p)},onComplete:function(){P.update(),ee=z(),n&&!T&&(Ae?Ae.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Oe=ke=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&Fo(P,m)}},e,s*fe,u-e-s*fe),f&&Fo(P,f,ne.tween)}}else P.isActive&&ee!==e&&Ne.restart(!0)}).pause()),o&&(vs[o]=P),u=P.trigger=ya(u||d!==!0&&d),Le=u&&u._gsap&&u._gsap.stRevert,Le&&=Le(P),d=d===!0?u:ya(d),Ao(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Jo||(f=!f&&d.parentNode&&d.parentNode.style&&Qo(d.parentNode).display===`flex`?!1:qo),P.pin=d,re=Oa.core.getCache(d),re.spacer?pe=re.pinState:(b&&(b=ya(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),re.spacerIsNative=!!b,b&&(re.spacerState=Xs(b))),re.spacer=ge=b||ja.createElement(`div`),ge.classList.add(`pin-spacer`),o&&ge.classList.add(`pin-spacer-`+o),re.pinState=pe=Xs(d)),t.force3D!==!1&&Oa.set(d,{force3D:!0}),P.spacer=ge=re.spacer,De=Qo(d),Se=De[f+w.os2],ve=Oa.getProperty(d),ye=Oa.quickSetter(d,w.a,Zo),qs(d,ge,De),he=Xs(d)),M){de=No(M)?es(M,ds):ds,V=hs(`scroller-start`,o,E,w,de,0),ue=hs(`scroller-end`,o,E,w,de,0,V),_e=V[`offset`+w.op.d2];var Re=ya(la(E,`content`)||E);le=this.markerStart=hs(`start`,o,Re,w,de,_e,0,x),B=this.markerEnd=hs(`end`,o,Re,w,de,_e,0,x),x&&(Ie=Oa.quickSetter([le,B],w.a,Zo)),!k&&!(aa.length&&la(E,`fixedMarkers`)===!0)&&($o(O?Na:E),Oa.set([V,ue],{force3D:!0}),we=Oa.quickSetter(V,w.a,Zo),Ee=Oa.quickSetter(ue,w.a,Zo))}if(x){var ze=x.vars.onUpdate,Be=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),ze&&ze.apply(x,Be||[])})}if(P.previous=function(){return _s[_s.indexOf(P)-1]},P.next=function(){return _s[_s.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Ba;r!==P.isReverted&&(r&&(Pe=Math.max(z(),P.scroll.rec||0),te=P.progress,Fe=n&&n.progress()),le&&[le,B,V,ue].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Ba=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Ks(d,ge,pe):qs(d,ge,Qo(d),Ce)),r||P.update(r),Ba=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!Ba&&P.enabled||i){if(d&&r&&fo){cs(e,`scrollEnd`,Es);return}!Ns&&F&&F(P),Ba=P,ne.tween&&!a&&(ne.tween.kill(),ne.tween=0),Ae&&Ae.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=I(),l=L(),m=x?x.duration():Oo(E,w),h=fe<=.01||!fe,g=0,_=o||0,v=No(a)?a.end:t.end,b=t.endTrigger||u,S=No(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&ya(t.pinnedContainer,P),D=u&&Math.max(0,_s.indexOf(P))||0,A=D,j,re,ie,de,_e,ye,Se,we,Ee,De,Oe,ke,je;for(M&&No(a)&&(ke=Oa.getProperty(V,w.p),je=Oa.getProperty(ue,w.p));A-->0;)ye=_s[A],ye.end||ye.refresh(0,1)||(Ba=P),Se=ye.pin,Se&&(Se===u||Se===d||Se===C)&&!ye.isReverted&&(De||=[],De.unshift(ye),ye.revert(!0,!0)),ye!==_s[A]&&(D--,A--);for(jo(S)&&(S=S(P)),S=mo(S,`start`,P),se=$s(S,u,s,w,z(),le,V,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),jo(v)&&(v=v(P)),Ao(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Ao(S)?S.split(` `)[0]:``)+v:(g=ms(v.substr(2),s),v=Ao(S)?S:(x?Oa.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,se):se)+g,b=u)),v=mo(v,`end`,P),ce=Math.max(se,$s(v||(b?`100% 0`:m),b,s,w,z()+g,B,ue,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)ye=_s[A]||{},Se=ye.pin,Se&&ye.start-ye._pinPush<=se&&!x&&ye.end>0&&(j=ye.end-(P._startClamp?Math.max(0,ye.start):ye.start),(Se===u&&ye.start-ye._pinPush<se||Se===C)&&isNaN(S)&&(g+=j*(1-ye.progress)),Se===d&&(_+=j));if(se+=g,ce+=g,P._startClamp&&(P._startClamp+=g),P._endClamp&&!Ns&&(P._endClamp=ce||-.001,ce=Math.min(ce,Oo(E,w))),fe=ce-se||(se-=.01)&&.001,h&&(te=Oa.utils.clamp(0,1,Oa.utils.normalize(se,ce,Pe))),P._pinPush=_,le&&g&&(j={},j[w.a]=`+=`+g,C&&(j[w.p]=`-=`+z()),Oa.set([le,B],j)),d&&!(oo&&P.end>=Oo(E,w)))j=Qo(d),de=w===va,ie=z(),be=parseFloat(ve(w.a))+_,!m&&ce>1&&(Oe=(O?ja.scrollingElement||Ma:E).style,Oe={style:Oe,value:Oe[`overflow`+w.a.toUpperCase()]},O&&Qo(Na)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Oe.style[`overflow`+w.a.toUpperCase()]=`scroll`)),qs(d,ge,j),he=Xs(d),re=ts(d,!0),we=k&&xa(E,de?_a:va)(),f?(Ce=[f+w.os2,fe+_+Zo],Ce.t=ge,A=f===qo?ns(d,w)+fe+_:0,A&&(Ce.push(w.d,A+Zo),ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Zo)),Ys(Ce),C&&_s.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&z(Pe)):(A=ns(d,w),A&&ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Zo)),k&&(_e={top:re.top+(de?ie-se:we)+Zo,left:re.left+(de?we:ie-se)+Zo,boxSizing:`border-box`,position:`fixed`},_e[Vo]=_e[`max`+Yo]=Math.ceil(re.width)+Zo,_e[Ho]=_e[`max`+Xo]=Math.ceil(re.height)+Zo,_e[Jo]=_e[Jo+Go]=_e[Jo+Uo]=_e[Jo+Ko]=_e[Jo+Wo]=`0`,_e[qo]=j[qo],_e[qo+Go]=j[qo+Go],_e[qo+Uo]=j[qo+Uo],_e[qo+Ko]=j[qo+Ko],_e[qo+Wo]=j[qo+Wo],me=Zs(pe,_e,y),Ns&&z(0)),n?(Ee=n._initted,Ja(1),n.render(n.duration(),!0,!0),xe=ve(w.a)-be+fe+_,Te=Math.abs(fe-xe)>1,k&&Te&&me.splice(me.length-2,2),n.render(0,!0,!0),Ee||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ja(0)):xe=fe,Oe&&(Oe.value?Oe.style[`overflow`+w.a.toUpperCase()]=Oe.value:Oe.style.removeProperty(`overflow-`+w.a));else if(u&&z()&&!x)for(re=u.parentNode;re&&re!==Na;)re._pinOffset&&(se-=re._pinOffset,ce-=re._pinOffset),re=re.parentNode;De&&De.forEach(function(e){return e.revert(!1,!0)}),P.start=se,P.end=ce,ae=oe=Ns?Pe:z(),!x&&!Ns&&(ae<Pe&&z(Pe),P.scroll.rec=0),P.revert(!1,!0),R=lo(),Ne&&(ee=-1,Ne.restart(!0)),Ba=0,n&&T&&(n._initted||Fe)&&n.progress()!==Fe&&n.progress(Fe||0,!0).render(n.time(),!0,!0),(h||te!==P.progress||x||p||n&&!n._initted)&&(n&&!T&&(n._initted||te||n.vars.immediateRender!==!1)&&n.totalProgress(x&&se<-.001&&!te?Oa.utils.normalize(se,ce,0):te,!0),P.progress=h||(ae-se)/fe===te?0:te),d&&f&&(ge._pinOffset=Math.round(P.progress*xe)),Ae&&Ae.invalidate(),isNaN(ke)||(ke-=Oa.getProperty(V,w.p),je-=Oa.getProperty(ue,w.p),rc(V,w,ke),rc(le,w,ke-(o||0)),rc(ue,w,je),rc(B,w,je-(o||0))),h&&!Ns&&P.update(),c&&!Ns&&!H&&(H=!0,c(P),H=!1)}},P.getVelocity=function(){return(z()-oe)/(lo()-Ra)*1e3||0},P.endAnimation=function(){Po(P.callbackAnimation),n&&(Ae?Ae.progress(1):n.paused()?T||Po(n,P.direction<0,1):Po(n,n.reversed()))},P.labelToScroll=function(e){return n&&n.labels&&(se||P.refresh()||se)+n.labels[e]/n.duration()*fe||0},P.getTrailing=function(e){var t=_s.indexOf(P),n=P.direction>0?_s.slice(0,t).reverse():_s.slice(t+1);return(Ao(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=se:e.start>=ce})},P.update=function(e,t,r){if(!x||r||e){var o=Ns===!0?Pe:P.scroll(),c=e?0:(o-se)/fe,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,F;if(t&&(oe=ae,ae=x?z():o,v&&(ke=Oe,Oe=n&&!T?n.totalProgress():u)),m&&d&&!Ba&&!co&&fo&&(!u&&se<o+(o-oe)/(lo()-Ra)*m?u=1e-4:u===1&&ce>o+(o-oe)/(lo()-Ra)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Ba&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],F=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||F)&&(F||l||!n)&&(jo(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(Ae&&!Ba&&!co?(Ae._dp._time-Ae._start!==Ae._time&&Ae.render(Ae._dp._time-Ae._start),Ae.resetTo?Ae.resetTo(`totalProgress`,u,n._tTime/n._tDur):(Ae.vars.totalProgress=u,Ae.invalidate().restart())):n&&n.totalProgress(u,!!(Ba&&(R||e)))),d){if(e&&f&&(ge.style[f+w.os2]=Se),!k)ye(bo(be+xe*u));else if(O){if(N=!e&&u>p&&ce+1>o&&o+1>=Oo(E,w),y){if(!e&&(h||N)){var I=ts(d,!0),L=o-se;tc(d,Na,I.top+(w===va?L:0)+Zo,I.left+(w===va?0:L)+Zo)}else tc(d,ge)}Ys(h||N?me:he),Te&&u<1&&h||ye(be+(u===1&&!N?xe:0))}}v&&!ne.tween&&!Ba&&!co&&Ne.restart(!0),a&&(M||_&&u&&(u<1||!so))&&Ia(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Ba?(T&&(F&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!so)&&(s&&M&&Fo(P,s),A[b]&&Fo(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&Fo(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(Mo(S)?S:2500)&&(Po(P.callbackAnimation),Ae?Ae.progress(1):Po(n,D===`reverse`?1:!u,1))):T&&i&&!Ba&&i(P)}if(Ee){var ee=x?o/x.duration()*(x._caScrollDist||0):o;we(ee+ +!!V._isFlipped),Ee(ee)}Ie&&Ie(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,cs(E,`resize`,Cs),O||cs(E,`scroll`,xs),F&&cs(e,`refreshInit`,F),t!==!1&&(P.progress=te=0,ae=oe=ee=z()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ne?ne.tween:Ae},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:ho(e,n&&!!P._startClamp),end:ho(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Ce&&e){var t=Ce.indexOf(w.d)+1;Ce[t]=parseFloat(Ce[t])+e+Zo,Ce[1]=parseFloat(Ce[1])+e+Zo,Ys(Ce)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||Ae&&Ae.pause(),Pe=0,re&&(re.uncache=1),F&&ls(e,`refreshInit`,F),Ne&&(Ne.pause(),ne.tween&&ne.tween.kill()&&(ne.tween=0)),!O)){for(var r=_s.length;r--;)if(_s[r].scroller===E&&_s[r]!==P)return;ls(E,`resize`,Cs),O||ls(E,`scroll`,xs)}},P.kill=function(e,r){P.disable(e,r),Ae&&!r&&Ae.kill(),o&&delete vs[o];var i=_s.indexOf(P);i>=0&&_s.splice(i,1),i===Ua&&Vs>0&&Ua--,i=0,_s.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||Ns||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),le&&[le,B,V,ue].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Hs===P&&(Hs=0),d&&(re&&(re.uncache=1),i=0,_s.forEach(function(e){return e.pin===d&&i++}),i||(re.spacer=0)),t.onKill&&t.onKill(P)},_s.push(P),P.enable(!1,!1),Le&&Le(P),n&&n.add&&!fe){var Ve=P.update;P.update=function(){P.update=Ve,ia.cache++,se||ce||P.refresh()},Oa.delayedCall(.01,P.update),fe=.01,se=ce=0}else P.refresh();d&&Is()},e.register=function(t){return ka||=(Oa=t||So(),xo()&&window.document&&e.enable(),po),ka},e.defaults=function(e){if(e)for(var t in e)fs[t]=e[t];return fs},e.disable=function(e,t){po=0,_s.forEach(function(n){return n[t?`kill`:`disable`](e)}),ls(Aa,`wheel`,xs),ls(ja,`scroll`,xs),clearInterval(za),ls(ja,`touchcancel`,yo),ls(Na,`touchstart`,yo),ss(ls,ja,`pointerdown,touchstart,mousedown`,_o),ss(ls,ja,`pointerup,touchend,mouseup`,vo),Fa.kill(),ko(ls);for(var n=0;n<ia.length;n+=3)us(ls,ia[n],ia[n+1]),us(ls,ia[n],ia[n+2])},e.enable=function(){if(Aa=window,ja=document,Ma=ja.documentElement,Na=ja.body,Oa){if(Ia=Oa.utils.toArray,La=Oa.utils.clamp,to=Oa.core.context||yo,Ja=Oa.core.suppressOverwrites||yo,no=Aa.history.scrollRestoration||`auto`,Bs=Aa.pageYOffset||0,Oa.core.globals(`ScrollTrigger`,e),Na){po=1,ro=document.createElement(`div`),ro.style.height=`100vh`,ro.style.position=`absolute`,Ls(),go(),Da.register(Oa),e.isTouch=Da.isTouch,eo=Da.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Za=Da.isTouch===1,cs(Aa,`wheel`,xs),Pa=[Aa,ja,Ma,Na],Oa.matchMedia?(e.matchMedia=function(e){var t=Oa.matchMedia(),n;for(n in e)t.add(n,e[n]);return t},Oa.addEventListener(`matchMediaInit`,function(){As(),js()}),Oa.addEventListener(`matchMediaRevert`,function(){return ks()}),Oa.addEventListener(`matchMedia`,function(){zs(0,1),Ds(`matchMedia`)}),Oa.matchMedia().add(`(orientation: portrait)`,function(){return Ss(),Ss})):console.warn(`Requires GSAP 3.11.0 or later`),Ss(),cs(ja,`scroll`,xs);var t=Na.hasAttribute(`style`),n=Na.style,r=n.borderTopStyle,i=Oa.core.Animation.prototype,a,o;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle=`solid`,a=ts(Na),va.m=Math.round(a.top+va.sc())||0,_a.m=Math.round(a.left+_a.sc())||0,r?n.borderTopStyle=r:n.removeProperty(`border-top-style`),t||(Na.setAttribute(`style`,``),Na.removeAttribute(`style`)),za=setInterval(bs,250),Oa.delayedCall(.5,function(){return co=0}),cs(ja,`touchcancel`,yo),cs(Na,`touchstart`,yo),ss(cs,ja,`pointerdown,touchstart,mousedown`,_o),ss(cs,ja,`pointerup,touchend,mouseup`,vo),Ha=Oa.utils.checkPrefix(`transform`),Gs.push(Ha),ka=lo(),Fa=Oa.delayedCall(.2,zs).pause(),Ka=[ja,`visibilitychange`,function(){var e=Aa.innerWidth,t=Aa.innerHeight;ja.hidden?(Wa=e,Ga=t):(Wa!==e||Ga!==t)&&Cs()},ja,`DOMContentLoaded`,zs,Aa,`load`,zs,Aa,`resize`,Cs],ko(cs),_s.forEach(function(e){return e.enable(0,1)}),o=0;o<ia.length;o+=3)us(ls,ia[o],ia[o+1]),us(ls,ia[o],ia[o+2])}else ja&&ja.addEventListener(`DOMContentLoaded`,function t(){e.enable(),ja.removeEventListener(`DOMContentLoaded`,t)})}},e.config=function(t){`limitCallbacks`in t&&(so=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(za)||(za=n)&&setInterval(bs,n),`ignoreMobileResize`in t&&(Za=e.isTouch===1&&t.ignoreMobileResize),`autoRefreshEvents`in t&&(ko(ls)||ko(cs,t.autoRefreshEvents||`none`),Ya=(t.autoRefreshEvents+``).indexOf(`resize`)===-1)},e.scrollerProxy=function(e,t){var n=ya(e),r=ia.indexOf(n),i=Co(n);~r&&ia.splice(r,i?6:2),t&&(i?aa.unshift(Aa,t,Na,t,Ma,t):aa.unshift(n,t))},e.clearMatchMedia=function(e){_s.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(Ao(e)?ya(e):e).getBoundingClientRect(),i=r[n?Vo:Ho]*t||0;return n?r.right-i>0&&r.left+i<Aa.innerWidth:r.bottom-i>0&&r.top+i<Aa.innerHeight},e.positionInViewport=function(e,t,n){Ao(e)&&(e=ya(e));var r=e.getBoundingClientRect(),i=r[n?Vo:Ho],a=t==null?i/2:t in ps?ps[t]*i:~t.indexOf(`%`)?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+a)/Aa.innerWidth:(r.top+a)/Aa.innerHeight},e.killAll=function(e){if(_s.slice(0).forEach(function(e){return e.vars.id!==`ScrollSmoother`&&e.kill()}),e!==!0){var t=ws.killAll||[];ws={},t.forEach(function(e){return e()})}},e}();ac.version=`3.15.0`,ac.saveStyles=function(e){return e?Ia(e).forEach(function(e){if(e&&e.style){var t=Os.indexOf(e);t>=0&&Os.splice(t,5),Os.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),Oa.core.getCache(e),to())}}):Os},ac.revert=function(e,t){return js(!e,t)},ac.create=function(e,t){return new ac(e,t)},ac.refresh=function(e){return e?Cs(!0):(ka||ac.register())&&zs(!0)},ac.update=function(e){return++ia.cache&&Us(e===!0?2:0)},ac.clearScrollMemory=Ms,ac.maxScroll=function(e,t){return Oo(e,t?_a:va)},ac.getScrollFunc=function(e,t){return xa(ya(e),t?_a:va)},ac.getById=function(e){return vs[e]},ac.getAll=function(){return _s.filter(function(e){return e.vars.id!==`ScrollSmoother`})},ac.isScrolling=function(){return!!fo},ac.snapDirectional=as,ac.addEventListener=function(e,t){var n=ws[e]||(ws[e]=[]);~n.indexOf(t)||n.push(t)},ac.removeEventListener=function(e,t){var n=ws[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},ac.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=Oa.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&jo(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return jo(a)&&(a=a(),cs(ac,`refresh`,function(){return a=t.batchMax()})),Ia(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(ac.create(t))}),n};var oc=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},sc=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Da.isTouch?` pinch-zoom`:``):`none`,t===Ma&&e(Na,n)},cc={auto:1,scroll:1},lc=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||Oa.core.getCache(i),o=lo(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==Na&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(cc[(s=Qo(i)).overflowY]||cc[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!Co(i)&&(cc[(s=Qo(i)).overflowY]||cc[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},uc=function(e,t,n,r){return Da.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=lc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&cs(ja,Da.eventTypes[0],pc,!1,!0)},onDisable:function(){return ls(ja,Da.eventTypes[0],pc,!0)}})},dc=/(input|label|select|textarea)/i,fc,pc=function(e){var t=dc.test(e.target.tagName);(t||fc)&&(e._gsapAllow=!0,fc=t)},mc=function(e){No(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type=`wheel,touch`),e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=ya(e.target)||Ma,l=Oa.core.globals().ScrollSmoother,u=l&&l.get(),d=eo&&(e.content&&ya(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=xa(c,va),p=xa(c,_a),m=1,h=(Da.isTouch&&Aa.visualViewport?Aa.visualViewport.scale*Aa.visualViewport.width:Aa.outerWidth)/Aa.innerWidth,g=0,_=jo(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=uc(c,e.type,!0,i),x=function(){return y=!1},S=yo,C=yo,w=function(){s=Oo(c,va),C=La(+!!eo,s),n&&(S=La(0,Oo(c,_a))),v=Ps},T=function(){d._gsap.y=bo(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=bo(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=bo((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=ia.cache,Us()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&Oa.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return eo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=bo((Aa.visualViewport&&Aa.visualViewport.scale||1)/h),D.pause(),e!==m&&sc(c,m>1.01||!n&&`x`),O=p(),k=f(),w(),v=Ps},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{ia.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=oc(p,i,o,Oo(c,_a)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=oc(f,i,o,Oo(c,va)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(eo&&D.vars.scrollY>=s||i>=s-1)&&Oa.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),lo()-g>1e3&&(v=0,g=lo())},e.onChange=function(e,t,r,i,a){if(Ps!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&Us()},e.onEnable=function(){sc(c,!n&&`x`),ac.addEventListener(`refresh`,j),cs(Aa,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){sc(c,!0),ls(Aa,`resize`,j),ac.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Da(e),o.iOS=eo,eo&&!f()&&f(1),eo&&Oa.ticker.add(yo),A=o._dc,D=Oa.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:nc(f,f(),function(){return D.pause()})},onUpdate:Us,onComplete:A.vars.onComplete}),o};ac.sort=function(e){if(jo(e))return _s.sort(e);var t=Aa.pageYOffset||0;return ac.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Aa.innerHeight}),_s.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},ac.observe=function(e){return new Da(e)},ac.normalizeScroll=function(e){if(e===void 0)return Xa;if(e===!0&&Xa)return Xa.enable();if(e===!1){Xa&&Xa.kill(),Xa=e;return}var t=e instanceof Da?e:mc(e);return Xa&&Xa.target===t.target&&Xa.kill(),Co(t.target)&&(Xa=t),t},ac.core={_getVelocityProp:Sa,_inputObserver:uc,_scrollers:ia,_proxies:aa,bridge:{ss:function(){fo||Ds(`scrollStart`),fo=lo()},ref:function(){return Ba}}},So()&&Oa.registerPlugin(ac);var hc=new URLSearchParams(location.search).get(`token`)??``,gc=e=>hc?`${e}${e.includes(`?`)?`&`:`?`}token=${encodeURIComponent(hc)}`:e;async function U(e,t){let n=await fetch(gc(e),{signal:t,headers:hc?{authorization:`Bearer ${hc}`}:{}});if(!n.ok)throw Error(`${n.status} ${n.statusText}`);return await n.json()}async function _c(e,t){return await(await fetch(gc(e),{method:`POST`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(t)})).json().catch(()=>({}))}async function vc(e,t){return await(await fetch(gc(e),{method:`DELETE`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(t)})).json().catch(()=>({}))}async function yc(e){let t=await fetch(gc(`/api/events`),{method:`DELETE`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(e)});if(!t.ok)throw Error(`${t.status} ${t.statusText}`);return await t.json()}var bc=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function xc(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:bc(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Sc=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},Cc=e=>{let t=Sc(e);return t.charAt(0).toUpperCase()+t.slice(1)},wc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Tc={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 Ec(e){return e!=null}function Dc(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Tc.width,a=e.size??e.height??Tc.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?wc(...c):wc(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Tc[`stroke-width`])*Number(e.size??e.width??Tc.width)/Number(t.size??t.width??Tc.width):t.strokeWidth??Tc[`stroke-width`];return[`svg`,{...Object.entries(Tc).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ec(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ec(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ec(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 Oc(e,t={}){return Dc(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var kc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ac=(0,v.createContext)({}),jc=()=>(0,v.useContext)(Ac),Mc=(0,v.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:y=``}=jc()??{},b=!!c||kc(d),[x,S,C=[]]=Oc(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:wc(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function W(e,t=[],n=[]){let r=typeof e==`string`?xc(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Mc,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Cc(r.name)),i}var Nc={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};Nc.node;var Pc=W(Nc),Fc={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};Fc.node;var Ic=W(Fc),Lc={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Lc.node;var Rc=W(Lc),zc={name:`arrow-left-right`,size:24,node:[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]};zc.node;var Bc=W(zc),Vc={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Vc.node;var Hc=W(Vc),Uc={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Uc.node;var Wc=W(Uc),Gc={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Gc.node;var Kc=W(Gc),qc={name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]};qc.node;var Jc=W(qc),Yc={name:`bell-off`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]};Yc.node;var Xc=W(Yc),Zc={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Zc.node;var Qc=W(Zc),$c={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};$c.node;var el=W($c),tl={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};tl.node;var nl=W(tl),rl={name:`cable`,size:24,node:[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]};rl.node;var il=W(rl),al={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};al.node;var ol=W(al),sl={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};sl.node;var cl=W(sl),ll={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};ll.node;var ul=W(ll),dl={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};dl.node;var fl=W(dl),pl={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};pl.node;var ml=W(pl),hl={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`}]]};hl.node;var gl=W(hl),_l={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};_l.node;var vl=W(_l),yl={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};yl.node;var bl=W(yl),xl={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};xl.node;var Sl=W(xl),Cl={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Cl.node;var wl=W(Cl),Tl={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};Tl.node;var El=W(Tl),Dl={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Dl.node;var Ol=W(Dl),kl={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};kl.node;var Al=W(kl),jl={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};jl.node;var Ml=W(jl),Nl={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`}]]};Nl.node;var Pl=W(Nl),Fl={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};Fl.node;var Il=W(Fl),Ll={name:`crosshair`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]};Ll.node;var Rl=W(Ll),zl={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};zl.node;var Bl=W(zl),Vl={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Vl.node;var Hl=W(Vl),Ul={name:`earth`,size:24,node:[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],aliases:[`globe-2`]};Ul.node;var Wl=W(Ul),Gl={name:`ethernet-port`,size:24,node:[[`path`,{d:`M10 8v1`,key:`1talb4`}],[`path`,{d:`M14 8v1`,key:`1rsfgr`}],[`path`,{d:`M18 8v1`,key:`gnkwox`}],[`path`,{d:`M19 17a2 2 0 00-1.765 1.059l-.47.882A2 2 0 0115 20H9a2 2 0 01-1.765-1.059l-.47-.882A2 2 0 005 17H4a2 2 0 01-2-2V6a2 2 0 012-2h16a2 2 0 012 2v9a2 2 0 01-2 2z`,key:`v5qa57`}],[`path`,{d:`M6 8v1`,key:`1636ez`}]]};Gl.node;var Kl=W(Gl),ql={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ql.node;var Jl=W(ql),Yl={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Yl.node;var Xl=W(Yl),Zl={name:`file-braces`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]],aliases:[`file-json`]};Zl.node;var Ql=W(Zl),$l={name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]};$l.node;var eu=W($l),tu={name:`fingerprint-pattern`,size:24,node:[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]],aliases:[`fingerprint`]};tu.node;var nu=W(tu),ru={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};ru.node;var iu=W(ru),au={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};au.node;var ou=W(au),su={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};su.node;var cu=W(su),lu={name:`grip-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]};lu.node;var uu=W(lu),du={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};du.node;var fu=W(du),pu={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};pu.node;var mu=W(pu),hu={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};hu.node;var gu=W(hu),_u={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};_u.node;var vu=W(_u),yu={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};yu.node;var bu=W(yu),xu={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};xu.node;var Su=W(xu),Cu={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]};Cu.node;var wu=W(Cu),Tu={name:`memory-stick`,size:24,node:[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]};Tu.node;var Eu=W(Tu),Du={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Du.node;var Ou=W(Du),ku={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};ku.node;var Au=W(ku),ju={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};ju.node;var Mu=W(ju),Nu={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Nu.node;var Pu=W(Nu),Fu={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};Fu.node;var Iu=W(Fu),Lu={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`}]]};Lu.node;var Ru=W(Lu),zu={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};zu.node;var Bu=W(zu),Vu={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};Vu.node;var Hu=W(Vu),Uu={name:`pin-off`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]};Uu.node;var Wu=W(Uu),Gu={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`}]]};Gu.node;var Ku=W(Gu),qu={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};qu.node;var Ju=W(qu),Yu={name:`radar`,size:24,node:[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]};Yu.node;var Xu=W(Yu),Zu={name:`radio`,size:24,node:[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};Zu.node;var Qu=W(Zu),$u={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};$u.node;var ed=W($u),td={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};td.node;var nd=W(td),rd={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};rd.node;var id=W(rd),ad={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};ad.node;var od=W(ad),sd={name:`router`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]};sd.node;var cd=W(sd),ld={name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]};ld.node;var ud=W(ld),dd={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};dd.node;var fd=W(dd),pd={name:`server-cog`,size:24,node:[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]};pd.node;var md=W(pd),hd={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};hd.node;var gd=W(hd),_d={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};_d.node;var vd=W(_d),yd={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};yd.node;var bd=W(yd),xd={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};xd.node;var Sd=W(xd),Cd={name:`shield-question-mark`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`shield-question`]};Cd.node;var wd=W(Cd),Td={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};Td.node;var Ed=W(Td),Dd={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Dd.node;var Od=W(Dd),kd={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};kd.node;var Ad=W(kd),jd={name:`split`,size:24,node:[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M8 3H3v5`,key:`15dfkv`}],[`path`,{d:`M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3`,key:`1qrqzj`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}]]};jd.node;var Md=W(jd),Nd={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Nd.node;var Pd=W(Nd),Fd={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};Fd.node;var Id=W(Fd),Ld={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Ld.node;var Rd=W(Ld),zd={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};zd.node;var Bd=W(zd),Vd={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Vd.node;var Hd=W(Vd),Ud={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ud.node;var Wd=W(Ud),Gd={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Gd.node;var Kd=W(Gd),qd={name:`unplug`,size:24,node:[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]};qd.node;var Jd=W(qd),Yd={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Yd.node;var Xd=W(Yd),Zd={name:`waypoints`,size:24,node:[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]};Zd.node;var Qd=W(Zd),$d={name:`wifi-off`,size:24,node:[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};$d.node;var ef=W($d),tf={name:`wifi`,size:24,node:[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]};tf.node;var nf=W(tf),rf={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};rf.node;var af=W(rf),of=Object.defineProperty,sf=(e,t)=>of(e,`name`,{value:t,configurable:!0});function cf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}sf(cf,`setRef`);function lf(...e){return t=>{let n=!1,r=e.map(e=>{let r=cf(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():cf(e[t],null)}}}}sf(lf,`composeRefs`);function uf(...e){return v.useCallback(lf(...e),e)}sf(uf,`useComposedRefs`);var df=Object.defineProperty,ff=(e,t)=>df(e,`name`,{value:t,configurable:!0});function pf(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Sf(r)&&typeof Ef==`function`&&(r=Ef(r._payload)),v.Children.forEach(r,e=>{if(bf(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Sf(n)&&typeof Ef==`function`&&(n=Ef(n._payload)),a=_f(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?yf(a):void 0,l=uf(n,c);if(!a){if(r||r===0)throw Error(o?Tf(e):wf(e));return r}let u=vf(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}ff(pf,`createSlot`);var mf=pf(`Slot`),hf=Symbol.for(`radix.slottable`);function gf(e){let t=ff(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=hf,t}ff(gf,`createSlottable`);var _f=ff((e,t)=>{if(`child`in e.props){let t=e.props.child;return v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null}return v.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function vf(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}}ff(vf,`mergeProps`);function yf(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)}ff(yf,`getElementRef`);function bf(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===hf}ff(bf,`isSlottable`);var xf=Symbol.for(`react.lazy`);function Sf(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===xf&&`_payload`in e&&Cf(e._payload)}ff(Sf,`isLazyComponent`);function Cf(e){return typeof e==`object`&&!!e&&`then`in e}ff(Cf,`isPromiseLike`);var wf=ff(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Tf=ff(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ef=v.use,Df=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})),Of=o(((e,t)=>{t.exports=Df()})),kf=l(h(),1),G=Of(),Af=Object.defineProperty,jf=(e,t)=>Af(e,`name`,{value:t,configurable:!0}),Mf=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pf(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nf(e,t){e&&kf.flushSync(()=>e.dispatchEvent(t))}jf(Nf,`dispatchDiscreteCustomEvent`);var Pf=Object.defineProperty,Ff=(e,t)=>Pf(e,`name`,{value:t,configurable:!0});function If(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=Ff(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,G.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Ff(i,`useContext`),[r,i]}Ff(If,`createContext`);function Lf(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Ff(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,G.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=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Ff(s,`useContext`),[o,s]}Ff(r,`createContext`);let i=Ff(()=>{let t=n.map(e=>v.createContext(e));return Ff(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Rf(i,...t)]}Ff(Lf,`createContextScope`);function Rf(...e){let t=e[0];if(e.length===1)return t;let n=Ff(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Ff(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Ff(Rf,`composeContextScopes`);var zf=Object.defineProperty,Bf=(e,t)=>zf(e,`name`,{value:t,configurable:!0}),Vf=!!(typeof window<`u`&&window.document&&window.document.createElement);function Hf(e,t,{checkForDefaultPrevented:n=!0}={}){return Bf(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Bf(Hf,`composeEventHandlers`);function Uf(e){if(!Vf)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Bf(Uf,`getOwnerWindow`);function Wf(e){if(!Vf)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Bf(Wf,`getOwnerDocument`);function Gf(e,t=!1){let{activeElement:n}=Wf(e);if(!n?.nodeName)return null;if(Kf(n)&&n.contentDocument)return Gf(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Wf(n).getElementById(e);if(t)return t}}return n}Bf(Gf,`getActiveElement`);function Kf(e){return e.tagName===`IFRAME`}Bf(Kf,`isFrame`);var qf=globalThis?.document?v.useLayoutEffect:()=>{},Jf=Object.defineProperty,Yf=(e,t)=>Jf(e,`name`,{value:t,configurable:!0}),Xf=v.useEffectEvent,Zf=v.useInsertionEffect;function Qf(e){if(typeof Xf==`function`)return Xf(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Zf==`function`?Zf(()=>{t.current=e}):qf(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Yf(Qf,`useEffectEvent`);var $f=Object.defineProperty,ep=(e,t)=>$f(e,`name`,{value:t,configurable:!0}),tp=v.useInsertionEffect||qf;function np({prop:e,defaultProp:t,onChange:n=ep(()=>{},`onChange`),caller:r}){let[i,a,o]=rp({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=ip(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ep(np,`useControllableState`);function rp({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return tp(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ep(rp,`useUncontrolledState`);function ip(e){return typeof e==`function`}ep(ip,`isFunction`);var ap=Symbol(`RADIX:SYNC_STATE`);function op(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Qf(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===ap)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=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:ap,state:i})},[i,d.state,c]),[h,f]}ep(op,`useControllableStateReducer`);var sp=Object.defineProperty,cp=(e,t)=>sp(e,`name`,{value:t,configurable:!0});function lp(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}cp(lp,`useStateMachine`);var up=cp(e=>{let{present:t,children:n}=e,r=dp(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=pp(r.ref,hp(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function dp(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=lp(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??mp(r.current),o.current=void 0):a.current=`none`},[s]),qf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=mp(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]),qf(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=cp(a=>{let o=mp(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=cp(e=>{e.target===t&&(a.current=mp(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:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=mp(t)}else r.current=null;n(e)},[])}}cp(dp,`usePresence`);function fp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}cp(fp,`setRef`);function pp(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=fp(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():fp(n[e],null)}}},[])}cp(pp,`useStableComposedRefs`);function mp(e){return e?.animationName||`none`}cp(mp,`getAnimationName`);function hp(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)}cp(hp,`getElementRef`);var gp=Object.defineProperty,_p=(e,t)=>gp(e,`name`,{value:t,configurable:!0}),vp=v.useId||(()=>void 0),yp=0;function bp(e){let[t,n]=v.useState(vp());return qf(()=>{e||n(e=>e??String(yp++))},[e]),e||(t?`radix-${t}`:``)}_p(bp,`useId`);var xp=Object.defineProperty,Sp=(e,t)=>xp(e,`name`,{value:t,configurable:!0});function Cp(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Sp(Cp,`useCallbackRef`);var wp=Object.defineProperty,Tp=(e,t)=>wp(e,`name`,{value:t,configurable:!0}),Ep=`dismissableLayer.update`,Dp=`dismissableLayer.pointerDownOutside`,Op=`dismissableLayer.focusOutside`,kp,Ap=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),jp=v.forwardRef(Tp(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Ap),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=uf(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=Pp(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Fp(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?b===g.length-1:!1,D=Cp(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kp=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ip(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=kp))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ip())},[d,u]),v.useEffect(()=>{let e=Tp(()=>m({}),`handleUpdate`);return document.addEventListener(Ep,e),()=>document.removeEventListener(Ep,e)},[]),(0,G.jsx)(Mf.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Hf(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Hf(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Hf(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Mp(){let e=v.useContext(Ap),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Tp(Mp,`useDismissableLayerSurface`);var Np=Tp(()=>!0,`IS_TRUE`);function Pp(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Np}=t,s=Cp(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Tp(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Tp(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)}Tp(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Tp(p,`handleInteractionBubble`);let m=Tp(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Lp(Dp,s,p,{discrete:!0})};if(Tp(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:Tp(()=>c.current=!0,`onPointerDownCapture`)}}Tp(Pp,`usePointerDownOutside`);function Fp(e,t=globalThis?.document){let n=Cp(e),r=v.useRef(!1);return v.useEffect(()=>{let e=Tp(e=>{e.target&&!r.current&&Lp(Op,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Tp(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Tp(()=>r.current=!1,`onBlurCapture`)}}Tp(Fp,`useFocusOutside`);function Ip(){let e=new CustomEvent(Ep);document.dispatchEvent(e)}Tp(Ip,`dispatchUpdate`);function Lp(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?Nf(i,a):i.dispatchEvent(a)}Tp(Lp,`handleAndDispatchCustomEvent`);var Rp=Object.defineProperty,zp=(e,t)=>Rp(e,`name`,{value:t,configurable:!0}),Bp=`focusScope.autoFocusOnMount`,Vp=`focusScope.autoFocusOnUnmount`,Hp={bubbles:!1,cancelable:!0},Up=v.forwardRef(zp(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=v.useState(null),l=Cp(i),u=Cp(a),d=v.useRef(null),f=uf(t,c),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Xp(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Xp(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Xp(s)};zp(e,`handleFocusIn`),zp(t,`handleFocusOut`),zp(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]),v.useEffect(()=>{if(s){Zp.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Bp,Hp);s.addEventListener(Bp,l),s.dispatchEvent(t),t.defaultPrevented||(Wp(em(Kp(s)),{select:!0}),document.activeElement===e&&Xp(s))}return()=>{s.removeEventListener(Bp,l),setTimeout(()=>{let t=new CustomEvent(Vp,Hp);s.addEventListener(Vp,u),s.dispatchEvent(t),t.defaultPrevented||Xp(e??document.body,{select:!0}),s.removeEventListener(Vp,u),Zp.remove(p)},0)}}},[s,l,u,p]);let m=v.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]=Gp(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Xp(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Xp(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,G.jsx)(Mf.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Wp(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Xp(r,{select:t}),document.activeElement!==n)return}zp(Wp,`focusFirst`);function Gp(e){let t=Kp(e);return[qp(t,e),qp(t.reverse(),e)]}zp(Gp,`getTabbableEdges`);function Kp(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:zp(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}zp(Kp,`getTabbableCandidates`);function qp(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Jp(r,{upTo:t})))return r}zp(qp,`findVisible`);function Jp(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}zp(Jp,`isHidden`);function Yp(e){return e instanceof HTMLInputElement&&`select`in e}zp(Yp,`isSelectableInput`);function Xp(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yp(e)&&t&&e.select()}}zp(Xp,`focus`);var Zp=Qp();function Qp(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=$p(e,t),e.unshift(t)},remove(t){e=$p(e,t),e[0]?.resume()}}}zp(Qp,`createFocusScopesStack`);function $p(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}zp($p,`arrayRemove`);function em(e){return e.filter(e=>e.tagName!==`A`)}zp(em,`removeLinks`);var tm=Object.defineProperty,nm=v.forwardRef(((e,t)=>tm(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);qf(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?kf.createPortal((0,G.jsx)(Mf.div,{...r,ref:t}),o):null},`Portal`)),rm=Object.defineProperty,im=(e,t)=>rm(e,`name`,{value:t,configurable:!0}),am=0,om=null;function sm(e){return cm(),e.children}im(sm,`FocusGuards`);function cm(){v.useEffect(()=>{om||={start:lm(),end:lm()};let{start:e,end:t}=om;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),am++,()=>{am===1&&(om?.start.remove(),om?.end.remove(),om=null),am=Math.max(0,am-1)}},[])}im(cm,`useFocusGuards`);function lm(){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}im(lm,`createFocusGuard`);var um=function(){return um=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},um.apply(this,arguments)};function dm(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 fm(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 pm=`right-scroll-bar-position`,mm=`width-before-scroll-bar`,hm=`with-scroll-bars-hidden`,gm=`--removed-body-scroll-bar-size`;function _m(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function vm(e,t){var n=(0,v.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 ym=typeof window<`u`?v.useLayoutEffect:v.useEffect,bm=new WeakMap;function xm(e,t){var n=vm(t||null,function(t){return e.forEach(function(e){return _m(e,t)})});return ym(function(){var t=bm.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||_m(e,null)}),i.forEach(function(e){r.has(e)||_m(e,a)})}bm.set(n,e)},[e]),n}function Sm(e){return e}function Cm(e,t){t===void 0&&(t=Sm);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 wm(e){e===void 0&&(e={});var t=Cm(null);return t.options=um({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=dm(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 v.createElement(r,um({},n))};Tm.isSideCarExport=!0;function Em(e,t){return e.useMedium(t),Tm}var Dm=wm(),Om=function(){},km=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Om,onWheelCapture:Om,onTouchMoveCapture:Om}),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,y=_===void 0?`div`:_,b=e.gapMode,x=dm(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=xm([n,t]),w=um(um({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:Dm,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),um(um({},w),{ref:C})):v.createElement(y,um({},w,{className:c,ref:C}),s))});km.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},km.classNames={fullWidth:mm,zeroRight:pm};var Am=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function jm(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Am();return t&&e.setAttribute(`nonce`,t),e}function Mm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nm(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Pm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jm())&&(Mm(t,n),Nm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fm=function(){var e=Pm();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Im=function(){var e=Fm();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Lm={left:0,top:0,right:0,gap:0},Rm=function(e){return parseInt(e||``,10)||0},zm=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[Rm(n),Rm(r),Rm(i)]},Bm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Lm;var t=zm(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])}},Vm=Im(),Hm=`data-scroll-locked`,Um=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
61
|
+
`).replace(ap,``)}function sp(e,t){return t=op(t),op(e)===t}function cp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&sn(e,``+r);else return;break;case`className`:Gt(e,`class`,r);break;case`tabIndex`:Gt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Gt(e,n,r);break;case`style`:un(e,r,o);return;case`data`:if(t!==`object`){Gt(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=mn(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`&&cp(e,t,`name`,a.name,a,null),cp(e,t,`formEncType`,a.formEncType,a,null),cp(e,t,`formMethod`,a.formMethod,a,null),cp(e,t,`formTarget`,a.formTarget,a,null)):(cp(e,t,`encType`,a.encType,a,null),cp(e,t,`method`,a.method,a,null),cp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=mn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=hn);return;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`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=mn(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`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Wt(e,`popover`,r);break;case`xlinkActuate`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Kt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Kt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Wt(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=fn.get(n)||n,Wt(e,n,r);else return}Ht=!0}function lp(e,t,n,r,a,o){switch(n){case`style`:un(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`)sn(e,r);else if(typeof r==`number`||typeof r==`bigint`)sn(e,``+r);else return;break;case`onScroll`:r!=null&&Jf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Jf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=hn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ft.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[yt]||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}Ht=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Wt(e,n,r)}return}Ht=!0}function up(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Jf(`error`,e),Jf(`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:cp(e,t,o,s,n,null)}}a&&cp(e,t,`srcSet`,n.srcSet,n,null),r&&cp(e,t,`src`,n.src,n,null);return;case`input`:Jf(`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:cp(e,t,r,d,n,null)}}tn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Jf(`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:cp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&rn(e,!!r,n,!0):rn(e,!!r,t,!1);return;case`textarea`:for(s in Jf(`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:cp(e,t,s,c,n,null)}on(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:cp(e,t,l,r,n,null)}return;case`dialog`:Jf(`beforetoggle`,e),Jf(`toggle`,e),Jf(`cancel`,e),Jf(`close`,e);break;case`iframe`:case`object`:Jf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Gf.length;r++)Jf(Gf[r],e);break;case`image`:Jf(`error`,e),Jf(`load`,e);break;case`details`:Jf(`toggle`,e);break;case`embed`:case`source`:case`link`:Jf(`error`,e),Jf(`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:cp(e,t,u,r,n,null)}return;default:if(dn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&lp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&cp(e,t,c,r,n,null))}var dp={};function fp(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)||cp(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&&(Ht=!0),o=m;break;case`name`:m!==f&&(Ht=!0),a=m;break;case`checked`:m!==f&&(Ht=!0),u=m;break;case`defaultChecked`:m!==f&&(Ht=!0),d=m;break;case`value`:m!==f&&(Ht=!0),s=m;break;case`defaultValue`:m!==f&&(Ht=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&cp(e,t,p,m,r,f)}}en(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)||cp(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&&(Ht=!0),p=o;break;case`defaultValue`:o!==l&&(Ht=!0),c=o;break;case`multiple`:o!==l&&(Ht=!0),s=o;default:o!==l&&cp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?rn(e,!!n,n?[]:``,!1):rn(e,!!n,t,!0)):rn(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:cp(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&&(Ht=!0),p=a;break;case`defaultValue`:a!==o&&(Ht=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&cp(e,t,s,a,r,o)}an(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:cp(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&&(Ht=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:cp(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)&&cp(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:cp(e,t,u,p,r,m)}return;default:if(dn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&lp(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||lp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&cp(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||cp(e,t,f,p,r,m)}function pp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function mp(){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&&pp(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&&pp(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 hp=null,gp=null;function _p(e){return e.nodeType===9?e:e.ownerDocument}function vp(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 yp(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 bp(e,t,n,r){return n=_p(n).createElement(e),n[vt]=r,n[yt]=t,up(n,e,t),Mt(n),n}function xp(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 Sp=null;function Cp(){var e=window.event;return e&&e.type===`popstate`?e!==Sp&&(Sp=e,!0):(Sp=null,!1)}var wp=typeof setTimeout==`function`?setTimeout:void 0,Tp=typeof clearTimeout==`function`?clearTimeout:void 0,Ep=typeof Promise==`function`?Promise:void 0,Dp=typeof requestAnimationFrame==`function`?requestAnimationFrame:wp,Op=typeof queueMicrotask==`function`?queueMicrotask:Ep===void 0?wp:function(e){return Ep.resolve(null).then(e).catch(kp)};function kp(e){setTimeout(function(){throw e})}function Ap(e){return e===`head`}function jp(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),Xh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Tm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Tm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Tt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Tm(e.ownerDocument.body)}n=i}while(n);Xh(t)}function Mp(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 Np(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 Pp(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 Fp(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 Ip(e){return Fp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Lp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Fp(t,n,e)}function Rp(e){return e.documentElement.clientHeight}function zp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Bp(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`&&(Rp(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+=ih(f),u>sh){s.length=o;break}f=new Promise(zp.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 Vp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Vp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:D({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Vp.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},Vp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Hp(e){return{name:e,group:new Vp(`group`,e),imagePair:new Vp(`image-pair`,e),old:new Vp(`old`,e),new:new Vp(`new`,e)}}function Up(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Up.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(Jp(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=Kp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),m(this._fragmentFiber.child,!1,Wp,e,s,r)}this._eventListeners=a}};function Wp(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Up.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Jp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Kp(i.optionsOrUseCapture),m(this._fragmentFiber.child,!1,Gp,e,n,i),r.splice(t,1),a!==null&&a()}};function Gp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Kp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function qp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Jp(e,t,n,r){if(e.length===0)return-1;r=qp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&qp(a.optionsOrUseCapture)===r)return i}return-1}Up.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,Kp(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,Kp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Up.prototype.focus=function(e){m(this._fragmentFiber.child,!0,Yp,e,void 0,void 0)};function Yp(e,t){return e.tag!==6&&(e=b(e),xm(e,t))}Up.prototype.focusLast=function(e){var t=[];m(this._fragmentFiber.child,!0,Xp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Yp(t[n],e);n--);};function Xp(e,t){return t.push(e),!1}Up.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=_p(e).activeElement,e!==null&&m(this._fragmentFiber.child,!1,Zp,e,void 0,void 0))};function Zp(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Up.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),m(this._fragmentFiber.child,!1,Qp,e,void 0,void 0)};function Qp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Up.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),m(this._fragmentFiber.child,!1,$p,e,void 0,void 0);for(var n=t=0;n<em.length;n++){var r=em[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):em[t++]=r}em.length=t}};function $p(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var em=[],tm=!1;function nm(e,t,n){em.push({fragmentInstance:e,observer:t,instance:n}),tm||(tm=!0,Sm(function(){tm=!1;var e=em;em=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Up.prototype.getClientRects=function(){var e=[];return m(this._fragmentFiber.child,!1,rm,e,void 0,void 0),e};function rm(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}Up.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Up.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];m(this._fragmentFiber.child,!1,Xp,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||im(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function im(e,t,n,r,i){var a=Ot(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 am(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)}Up.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];m(this._fragmentFiber.child,!1,Xp,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),am(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),am(a,n)):b(a).scrollIntoView(e),r+=n?-1:1}};function om(e,t){return e=b(e),sm(e,t),!1}function sm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function cm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<em.length;i++){var a=em[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(em[r++]=a)}em.length=r,n.observe(e)}),sm(e,t))}function lm(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,Kp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?nm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function um(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`:um(n),Dt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function dm(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[Tt])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=_m(e.nextSibling),e===null)break}return null}function fm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=_m(e.nextSibling),e===null))return null;return e}function pm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=_m(e.nextSibling),e===null))return null;return e}function mm(e){return e.data===`$?`||e.data===`$~`}function hm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function gm(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 _m(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 vm=null;function ym(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return _m(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function bm(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 xm(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 Sm(e){Dp(function(){Dp(function(t){return e(t)})})}function Cm(e,t,n){switch(t=_p(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 wm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&cp(e,t,r,null,dp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===hn&&(e.onclick=null),Dt(e)}function Tm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Dt(e)}var Em=new Map,Dm=new Set;function Om(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 km=ue.d;ue.d={f:Am,r:jm,D:Pm,C:Fm,L:Im,m:Lm,X:zm,S:Rm,M:Bm};function Am(){var e=km.f(),t=Gd();return e||t}function jm(e){var t=kt(e);t!==null&&t.tag===5&&t.type===`form`?rc(t):km.r(e)}var Mm=typeof document>`u`?null:document;function Nm(e,t,n){var r=Mm;if(r&&typeof t==`string`&&t){var i=$t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Dm.has(i)||(Dm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),up(t,`link`,e),Mt(t),r.head.appendChild(t)))}}function Pm(e){km.D(e),Nm(`dns-prefetch`,e,null)}function Fm(e,t){km.C(e,t),Nm(`preconnect`,e,t)}function Im(e,t,n){km.L(e,t,n);var r=Mm;if(r&&e&&t){var i=`link[rel="preload"][as="`+$t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$t(n.imageSizes)+`"]`)):i+=`[href="`+$t(e)+`"]`;var a=i;switch(t){case`style`:a=Hm(e);break;case`script`:a=Km(e)}if(!(Em.has(a)||(e=D({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Em.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Um(a))||t===`script`&&r.querySelector(qm(a))))){var o=r.createElement(`link`);up(o,`link`,e),t===`style`&&(o[Et]=!0,o.onload=o.onerror=function(){Nt(o)}),Mt(o),r.head.appendChild(o)}}}function Lm(e,t){km.m(e,t);var n=Mm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$t(r)+`"][href="`+$t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Km(e)}if(!Em.has(a)&&(e=D({rel:`modulepreload`,href:e},t),Em.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(qm(a)))return}r=n.createElement(`link`),up(r,`link`,e),Mt(r),n.head.appendChild(r)}}}function Rm(e,t,n){km.S(e,t,n);var r=Mm;if(r&&e){var i=jt(r).hoistableStyles,a=Hm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Um(a)))s.loading=5;else{e=D({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Em.get(a))&&Xm(e,n);var c=o=r.createElement(`link`);Mt(c),up(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,Ym(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function zm(e,t){km.X(e,t);var n=Mm;if(n&&e){var r=jt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=D({src:e,async:!0},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),Mt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bm(e,t){km.M(e,t);var n=Mm;if(n&&e){var r=jt(n).hoistableScripts,i=Km(e),a=r.get(i);a||(a=n.querySelector(qm(i)),a||(e=D({src:e,async:!0,type:`module`},t),(t=Em.get(i))&&Zm(e,t),a=n.createElement(`script`),Mt(a),up(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t,n,r){var a=(a=ve.current)?Om(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=Hm(n.href),t=jt(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=Hm(n.href);var o=jt(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(Um(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Em.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},Em.set(e,o)),Gm(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=Km(n),t=jt(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 Hm(e){return`href="`+$t(e)+`"`}function Um(e){return`link[rel="stylesheet"][`+e+`]`}function Wm(e){return D({},e,{"data-precedence":e.precedence,precedence:null})}function Gm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Et]){r.loading=1;return}}else t=e.createElement(`link`),t[Et]=!0,t.onload=t.onerror=Nt.bind(null,t),up(t,`link`,n),Mt(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 Km(e){return`[src="`+$t(e)+`"]`}function qm(e){return`script[async]`+e}function Jm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$t(n.href)+`"]`);if(r)return t.instance=r,Mt(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`),Mt(r),up(r,`style`,a),Ym(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Hm(n.href);var o=e.querySelector(Um(a));if(o)return t.state.loading|=4,t.instance=o,Mt(o),o;r=Wm(n),(a=Em.get(a))&&Xm(r,a),o=(e.ownerDocument||e).createElement(`link`),Mt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),up(o,`link`,r),t.state.loading|=4,Ym(o,n.precedence,e),t.instance=o;case`script`:return o=Km(n.src),(a=e.querySelector(qm(o)))?(t.instance=a,Mt(a),a):(r=n,(a=Em.get(o))&&(r=D({},n),Zm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Mt(a),up(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,Ym(r,n.precedence,e));return t.instance}function Ym(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 Xm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Qm=null;function $m(e,t,n){if(Qm===null){var r=new Map,i=Qm=new Map;i.set(n,r)}else i=Qm,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[Tt]||a[vt]||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 eh(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function th(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 nh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function rh(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ih(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function ah(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ih(t),e.suspenseyImages.push(t)),e=dh.bind(e),t.decode().then(e,e))}function oh(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=Hm(r.href),a=t.querySelector(Um(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=uh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Mt(a);return}a=t.ownerDocument||t,r=Wm(r),(i=Em.get(i))&&Xm(r,i),a=a.createElement(`link`),Mt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),up(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=uh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var sh=0;function ch(e,t){return e.stylesheets&&e.count===0&&ph(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&sh===0&&(sh=62500*mp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ph(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>sh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function lh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ph(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function uh(){this.count--,lh(this)}function dh(){this.imgCount--,lh(this)}var fh=null;function ph(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fh=new Map,t.forEach(mh,e),fh=null,uh.call(e))}function mh(e,t){if(!(t.state.loading&4)){var n=fh.get(e);if(n)var r=n.get(null);else{n=new Map,fh.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=uh.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 hh={$$typeof:F,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function gh(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=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(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 _h(e,t,n,r,i,a,o,s,c,l,u,d){return e=new gh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ki(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function vh(e){return e?(e=Di,e):Di}function yh(e,t,n,r,i,a){i=vh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Bd(n,e,t),_o(n,e,t))}function bh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xh(e,t){bh(e,t),(e=e.alternate)&&bh(e,t)}function Sh(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Bd(t,e,67108864),xh(e,67108864)}}function Ch(e){if(e.tag===13||e.tag===31){var t=Ld();t=pt(t);var n=wi(e,t);n!==null&&Bd(n,e,t),xh(e,t)}}var wh=!0;function Th(e,t,n,r){var i=V.T;V.T=null;var a=ue.p;try{ue.p=2,Dh(e,t,n,r)}finally{ue.p=a,V.T=i}}function Eh(e,t,n,r){var i=V.T;V.T=null;var a=ue.p;try{ue.p=8,Dh(e,t,n,r)}finally{ue.p=a,V.T=i}}function Dh(e,t,n,r){if(wh){var i=Oh(r);if(i===null)$f(e,t,r,kh,n),Bh(e,r);else if(Hh(i,e,t,n,r))r.stopPropagation();else if(Bh(e,r),t&4&&-1<zh.indexOf(e)){for(;i!==null;){var a=kt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=tt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Je(o);s.entanglements[1]|=c,o&=~c}Mf(a),!(td&6)&&(Sd=Ie()+500,Nf(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Bd(s,a,2),Gd(),xh(a,2)}if(a=Oh(r),a===null&&$f(e,t,r,kh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else $f(e,t,r,null,n)}}function Oh(e){return e=_n(e),Ah(e)}var kh=null;function Ah(e){if(kh=null,e=Ot(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 kh=e,null}function jh(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(Le()){case Re:return 2;case ze:return 8;case Be:case Ve:return 32;case He:return 268435456;default:return 32}default:return 32}}var Mh=!1,Nh=null,Ph=null,Fh=null,Ih=new Map,Lh=new Map,Rh=[],zh=`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 Bh(e,t){switch(e){case`focusin`:case`focusout`:Nh=null;break;case`dragenter`:case`dragleave`:Ph=null;break;case`mouseover`:case`mouseout`:Fh=null;break;case`pointerover`:case`pointerout`:Ih.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lh.delete(t.pointerId)}}function Vh(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=kt(t),t!==null&&Sh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hh(e,t,n,r,i){switch(t){case`focusin`:return Nh=Vh(Nh,e,t,n,r,i),!0;case`dragenter`:return Ph=Vh(Ph,e,t,n,r,i),!0;case`mouseover`:return Fh=Vh(Fh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Ih.set(a,Vh(Ih.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lh.set(a,Vh(Lh.get(a)||null,e,t,n,r,i)),!0}return!1}function Uh(e){var t=Ot(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,gt(e.priority,function(){Ch(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,gt(e.priority,function(){Ch(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 Wh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gn=r,n.target.dispatchEvent(r),gn=null}else return t=kt(n),t!==null&&Sh(t),e.blockedOn=n,!1;t.shift()}return!0}function Gh(e,t,n){Wh(e)&&n.delete(t)}function Kh(){Mh=!1,Nh!==null&&Wh(Nh)&&(Nh=null),Ph!==null&&Wh(Ph)&&(Ph=null),Fh!==null&&Wh(Fh)&&(Fh=null),Ih.forEach(Gh),Lh.forEach(Gh)}function qh(e,n){e.blockedOn===n&&(e.blockedOn=null,Mh||(Mh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Kh)))}var Jh=null;function Yh(e){Jh!==e&&(Jh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Jh===e&&(Jh=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(Ah(r||n)===null)continue;break}var a=kt(n);a!==null&&(e.splice(t,3),t-=3,tc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Xh(e){function t(t){return qh(t,e)}Nh!==null&&qh(Nh,e),Ph!==null&&qh(Ph,e),Fh!==null&&qh(Fh,e),Ih.forEach(t),Lh.forEach(t);for(var n=0;n<Rh.length;n++){var r=Rh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rh.length&&(n=Rh[0],n.blockedOn===null);)Uh(n),n.blockedOn===null&&Rh.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[yt]||null;if(typeof a==`function`)o||Yh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[yt]||null)s=o.formAction;else if(Ah(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Yh(n)}}}function Zh(){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 Qh(e){this._internalRoot=e}$h.prototype.render=Qh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;yh(n,Ld(),e,t,null,null)},$h.prototype.unmount=Qh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yh(e.current,2,null,e,null,null),Gd(),t[bt]=null}};function $h(e){this._internalRoot=e}$h.prototype.unstable_scheduleHydration=function(e){if(e){var t=ht();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rh.length&&t!==0&&t<Rh[n].priority;n++);Rh.splice(n,0,e),n===0&&Uh(e)}};var eg=n.version;if(eg!==`19.3.0`)throw Error(i(527,eg,`19.3.0`));ue.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 tg={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:V,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ng=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ng.isDisabled&&ng.supportsFiber)try{Ge=ng.inject(tg),Ke=ng}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Cc,s=wc,c=Tc;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=_h(e,1,!1,null,null,n,r,null,o,s,c,Zh),e[bt]=t.current,Zf(e),new Qh(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=l(d(),1),y=_();function b(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var S={autoSleep:120,force3D:`auto`,nullTargetWarn:1,units:{lineHeight:``}},C={duration:.5,overwrite:!1,delay:0},w,T,E,D=1e8,O=1/D,k=Math.PI*2,A=k/4,j=0,M=Math.sqrt,N=Math.cos,P=Math.sin,F=function(e){return typeof e==`string`},I=function(e){return typeof e==`function`},L=function(e){return typeof e==`number`},ee=function(e){return e===void 0},R=function(e){return typeof e==`object`},te=function(e){return e!==!1},z=function(){return typeof window<`u`},ne=function(e){return I(e)||F(e)},re=typeof ArrayBuffer==`function`&&ArrayBuffer.isView||function(){},ie=Array.isArray,ae=/random\([^)]+\)/g,oe=/,\s*/g,se=/(?:-?\.?\d|\.)+/gi,ce=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,le=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,B=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,V=/[+-]=-?[.\d]+/,ue=/[^,'"\[\]\s]+/gi,de=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,H,fe,pe,me,he={},ge={},_e,ve=function(e){return(ge=Xe(e,he))&&gr},ye=function(e,t){return console.warn(`Invalid property`,e,`set to`,t,`Missing plugin? gsap.registerPlugin()`)},be=function(e,t){return!t&&console.warn(e)},xe=function(e,t){return e&&(he[e]=t)&&ge&&(ge[e]=t)||he},Se=function(){return 0},Ce={suppressEvents:!0,isStart:!0,kill:!1},we={suppressEvents:!0,kill:!1},Te={suppressEvents:!0},Ee={},De=[],Oe={},ke,Ae={},je={},Me=30,Ne=[],Pe=``,Fe=function(e){var t=e[0],n,r;if(R(t)||I(t)||(e=[e]),!(n=(t._gsap||{}).harness)){for(r=Ne.length;r--&&!Ne[r].targetTest(t););n=Ne[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new En(e[r],n)))||e.splice(r,1);return e},Ie=function(e){return e._gsap||Fe(Nt(e))[0]._gsap},Le=function(e,t,n){return(n=e[t])&&I(n)?e[t]():ee(n)&&e.getAttribute&&e.getAttribute(t)||n},Re=function(e,t){return(e=e.split(`,`)).forEach(t)||e},ze=function(e){return Math.round(e*1e5)/1e5||0},Be=function(e){return Math.round(e*1e7)/1e7||0},Ve=function(e,t){var n=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),n===`+`?e+r:n===`-`?e-r:n===`*`?e*r:e/r},He=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r<n;);return r<n},Ue=function(){var e=De.length,t=De.slice(0),n,r;for(Oe={},De.length=0,n=0;n<e;n++)r=t[n],r&&r._lazy&&(r.render(r._lazy[0],r._lazy[1],!0)._lazy=0)},We=function(e){return!!(e._initted||e._startAt||e.add)},Ge=function(e,t,n,r){De.length&&!T&&Ue(),e.render(t,n,r||!!(T&&t<0&&We(e))),De.length&&!T&&Ue()},Ke=function(e){var t=parseFloat(e);return(t||t===0)&&(e+``).match(ue).length<2?t:F(e)?e.trim():e},qe=function(e){return e},Je=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},Ye=function(e){return function(t,n){for(var r in n)r in t||r===`duration`&&e||r===`ease`||(t[r]=n[r])}},Xe=function(e,t){for(var n in t)e[n]=t[n];return e},Ze=function e(t,n){for(var r in n)r!==`__proto__`&&r!==`constructor`&&r!==`prototype`&&(t[r]=R(n[r])?e(t[r]||(t[r]={}),n[r]):n[r]);return t},Qe=function(e,t){var n={},r;for(r in e)r in t||(n[r]=e[r]);return n},$e=function(e){var t=e.parent||H,n=e.keyframes?Ye(ie(e.keyframes)):Je;if(te(e.inherit))for(;t;)n(e,t.vars.defaults),t=t.parent||t._dp;return e},et=function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0},tt=function(e,t,n,r,i){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var a=e[r],o;if(i)for(o=t[i];a&&a[i]>o;)a=a._prev;return a?(t._next=a._next,a._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=a,t.parent=t._dp=e,t},nt=function(e,t,n,r){n===void 0&&(n=`_first`),r===void 0&&(r=`_last`);var i=t._prev,a=t._next;i?i._next=a:e[n]===t&&(e[n]=a),a?a._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},rt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},it=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var n=e;n;)n._dirty=1,n=n.parent;return e},at=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ot=function(e,t,n,r){return e._startAt&&(T?e._startAt.revert(we):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},st=function e(t){return!t||t._ts&&e(t.parent)},ct=function(e){return e._repeat?lt(e._tTime,e=e.duration()+e._rDelay)*e:0},lt=function(e,t){var n=Math.floor(e=Be(e/t));return e&&n===e?n-1:n},ut=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},dt=function(e){return e._end=Be(e._start+(e._tDur/Math.abs(e._ts||e._rts||O)||0))},ft=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=Be(n._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),dt(e),n._dirty||it(n,e)),e},pt=function(e,t){var n;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(n=ut(e.rawTime(),t),(!t._dur||Dt(0,t.totalDuration(),n)-t._tTime>O)&&t.render(n,!0)),it(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(n=e;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-O}},mt=function(e,t,n,r){return t.parent&&rt(t),t._start=Be((L(n)?n:n||e!==H?wt(e,n,t):e._time)+t._delay),t._end=Be(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),tt(e,t,`_first`,`_last`,e._sort?`_start`:0),vt(t)||(e._recent=t),r||pt(e,t),e._ts<0&&ft(e,e._tTime),e},ht=function(e,t){return(he.ScrollTrigger||ye(`scrollTrigger`,t))&&he.ScrollTrigger.create(t,e)},gt=function(e,t,n,r,i){if(Fn(e,t,i),!e._initted)return 1;if(!n&&e._pt&&!T&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&ke!==fn.frame)return De.push(e),e._lazy=[i,r],1},_t=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},vt=function(e){var t=e.data;return t===`isFromStart`||t===`isStart`},yt=function(e,t,n,r){var i=e.ratio,a=t<0||!t&&(!e._start&&_t(e)&&(e._initted||!vt(e))||(e._ts<0||e._dp._ts<0)&&!vt(e))?0:1,o=e._rDelay,s=0,c,l,u;if(o&&e._repeat&&(s=Dt(0,e._tDur,t),l=lt(s,o),e._yoyo&&l&1&&(a=1-a),l!==lt(e._tTime,o)&&(i=1-a,e.vars.repeatRefresh&&e._initted&&e.invalidate())),a!==i||T||r||e._zTime===O||!t&&e._zTime){if(!e._initted&>(e,t,r,n,s))return;for(u=e._zTime,e._zTime=t||(n?O:0),n||=t&&!u,e.ratio=a,e._from&&(a=1-a),e._time=0,e._tTime=s,c=e._pt;c;)c.r(a,c.d),c=c._next;t<0&&ot(e,t,n,!0),e._onUpdate&&!n&&Xt(e,`onUpdate`),s&&e._repeat&&!n&&e.parent&&Xt(e,`onRepeat`),(t>=e._tDur||t<0)&&e.ratio===a&&(a&&rt(e,1),!n&&!T&&(Xt(e,a?`onComplete`:`onReverseComplete`,!0),e._prom&&e._prom()))}else e._zTime||=t},bt=function(e,t,n){var r;if(n>t)for(r=e._first;r&&r._start<=n;){if(r.data===`isPause`&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(r.data===`isPause`&&r._start<t)return r;r=r._prev}},xt=function(e,t,n,r){var i=e._repeat,a=Be(t)||0,o=e._tTime/e._tDur;return o&&!r&&(e._time*=a/e._dur),e._dur=a,e._tDur=i?i<0?1e10:Be(a*(i+1)+e._rDelay*i):a,o>0&&!r&&ft(e,e._tTime=e._tDur*o),e.parent&&dt(e),n||it(e.parent,e),e},St=function(e){return e instanceof On?it(e):xt(e,e._dur)},Ct={_start:0,endTime:Se,totalDuration:Se},wt=function e(t,n,r){var i=t.labels,a=t._recent||Ct,o=t.duration()>=D?a.endTime(!1):t._dur,s,c,l;return F(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),l=n.substr(-1)===`%`,s=n.indexOf(`=`),c===`<`||c===`>`?(s>=0&&(n=n.replace(/=/,``)),(c===`<`?a._start:a.endTime(a._repeat>=0))+(parseFloat(n.substr(1))||0)*(l?(s<0?a:r).totalDuration()/100:1)):s<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(s-1)+n.substr(s+1)),l&&r&&(c=c/100*(ie(r)?r[0]:r).totalDuration()),s>1?e(t,n.substr(0,s-1),r)+c:o+c)):n==null?o:+n},Tt=function(e,t,n){var r=L(t[1]),i=(r?2:1)+(e<2?0:1),a=t[i],o,s;if(r&&(a.duration=t[1]),a.parent=n,e){for(o=a,s=n;s&&!(`immediateRender`in o);)o=s.vars.defaults||{},s=te(s.vars.inherit)&&s.parent;a.immediateRender=te(o.immediateRender),e<2?a.runBackwards=1:a.startAt=t[i-1]}return new Hn(t[0],a,t[i+1])},Et=function(e,t){return e||e===0?t(e):t},Dt=function(e,t,n){return n<e?e:n>t?t:n},Ot=function(e,t){return!F(e)||!(t=de.exec(e))?``:t[1]},kt=function(e,t,n){return Et(n,function(n){return Dt(e,t,n)})},At=[].slice,jt=function(e,t){return e&&R(e)&&`length`in e&&(!t&&!e.length||e.length-1 in e&&R(e[0]))&&!e.nodeType&&e!==fe},Mt=function(e,t,n){return n===void 0&&(n=[]),e.forEach(function(e){var r;return F(e)&&!t||jt(e,1)?(r=n).push.apply(r,Nt(e)):n.push(e)})||n},Nt=function(e,t,n){return E&&!t&&E.selector?E.selector(e):F(e)&&!n&&(pe||!pn())?At.call((t||me).querySelectorAll(e),0):ie(e)?Mt(e,n):jt(e)?At.call(e,0):e?[e]:[]},Pt=function(e){return e=Nt(e)[0]||be(`Invalid scope`)||{},function(t){var n=e.current||e.nativeElement||e;return Nt(t,n.querySelectorAll?n:n===e?be(`Invalid scope`)||me.createElement(`div`):e)}},Ft=function(e){return e.sort(function(){return .5-Math.random()})},It=function(e){if(I(e))return e;var t=R(e)?e:{each:e},n=xn(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,c=t.axis,l=r,u=r;return F(r)?l=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],u=r[1]),function(e,o,d){var f=(d||t).length,p=a[f],m,h,g,_,v,y,b,x,S;if(!p){if(S=t.grid===`auto`?0:(t.grid||[1,D])[1],!S){for(b=-D;b<(b=d[S++].getBoundingClientRect().left)&&S<f;);S<f&&S--}for(p=a[f]=[],m=s?Math.min(S,f)*l-.5:r%S,h=S===D?0:s?f*u/S-.5:r/S|0,b=0,x=D,y=0;y<f;y++)g=y%S-m,_=h-(y/S|0),p[y]=v=c?Math.abs(c===`y`?_:g):M(g*g+_*_),v>b&&(b=v),v<x&&(x=v);r===`random`&&Ft(p),p.max=b-x,p.min=x,p.v=f=(parseFloat(t.amount)||parseFloat(t.each)*(S>f?f-1:c?c===`y`?f/S:S:Math.max(S,f/S))||0)*(r===`edges`?-1:1),p.b=f<0?i-f:i,p.u=Ot(t.amount||t.each)||0,n=n&&f<0?bn(n):n}return f=(p[e]-p.min)/p.max||0,Be(p.b+(n?n(f):f)*p.v)+p.u}},Lt=function(e){var t=10**((e+``).split(`.`)[1]||``).length;return function(n){var r=Be(Math.round(parseFloat(n)/e)*e*t);return(r-r%1)/t+(L(n)?0:Ot(n))}},Rt=function(e,t){var n=ie(e),r,i;return!n&&R(e)&&(r=n=e.radius||D,e.values?(e=Nt(e.values),(i=!L(e[0]))&&(r*=r)):e=Lt(e.increment)),Et(t,n?I(e)?function(t){return i=e(t),Math.abs(i-t)<=r?i:t}:function(t){for(var n=parseFloat(i?t.x:t),a=parseFloat(i?t.y:0),o=D,s=0,c=e.length,l,u;c--;)i?(l=e[c].x-n,u=e[c].y-a,l=l*l+u*u):l=Math.abs(e[c]-n),l<o&&(o=l,s=c);return s=!r||o<=r?e[s]:t,i||s===t||L(t)?s:s+Ot(t)}:Lt(e))},zt=function(e,t,n,r){return Et(ie(e)?!t:n===!0?!!(n=0):!r,function(){return ie(e)?e[~~(Math.random()*e.length)]:(n||=1e-5)&&(r=n<1?10**((n+``).length-2):1)&&Math.floor(Math.round((e-n/2+Math.random()*(t-e+n*.99))/n)*n*r)/r})},Bt=function(){var e=[...arguments];return function(t){return e.reduce(function(e,t){return t(e)},t)}},Vt=function(e,t){return function(n){return e(parseFloat(n))+(t||Ot(n))}},Ht=function(e,t,n){return qt(e,t,0,1,n)},Ut=function(e,t,n){return Et(n,function(n){return e[~~t(n)]})},Wt=function e(t,n,r){var i=n-t;return ie(t)?Ut(t,e(0,t.length),n):Et(r,function(e){return(i+(e-t)%i)%i+t})},Gt=function e(t,n,r){var i=n-t,a=i*2;return ie(t)?Ut(t,e(0,t.length-1),n):Et(r,function(e){return e=(a+(e-t)%a)%a||0,t+(e>i?a-e:e)})},Kt=function(e){return e.replace(ae,function(e){var t=e.indexOf(`[`)+1,n=e.substring(t||7,t?e.indexOf(`]`):e.length-1).split(oe);return zt(t?n:+n[0],t?0:+n[1],+n[2]||1e-5)})},qt=function(e,t,n,r,i){var a=t-e,o=r-n;return Et(i,function(t){return n+((t-e)/a*o||0)})},Jt=function e(t,n,r,i){var a=isNaN(t+n)?0:function(e){return(1-e)*t+e*n};if(!a){var o=F(t),s={},c,l,u,d,f;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(ie(t)&&!ie(n)){for(u=[],d=t.length,f=d-2,l=1;l<d;l++)u.push(e(t[l-1],t[l]));d--,a=function(e){e*=d;var t=Math.min(f,~~e);return u[t](e-t)},r=n}else i||(t=Xe(ie(t)?[]:{},t));if(!u){for(c in n)An.call(s,t,c,`get`,n[c]);a=function(e){return Zn(e,s)||(o?t.p:t)}}}return Et(r,a)},Yt=function(e,t,n){var r=e.labels,i=D,a,o,s;for(a in r)o=r[a]-t,o<0==!!n&&o&&i>(o=Math.abs(o))&&(s=a,i=o);return s},Xt=function(e,t,n){var r=e.vars,i=r[t],a=E,o=e._ctx,s,c,l;if(i)return s=r[t+`Params`],c=r.callbackScope||e,n&&De.length&&Ue(),o&&(E=o),l=s?i.apply(c,s):i.call(c),E=a,l},Zt=function(e){return rt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!T),e.progress()<1&&Xt(e,`onInterrupt`),e},Qt,$t=[],en=function(e){if(e){if(e=!e.name&&e.default||e,z()||e.headless){var t=e.name,n=I(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:Se,render:Zn,add:An,kill:$n,modifier:Qn,rawVars:0},a={targetTest:0,get:0,getSetter:qn,aliases:{},register:0};if(pn(),e!==r){if(Ae[t])return;Je(r,Je(Qe(e,i),a)),Xe(r.prototype,Xe(i,Qe(e,a))),Ae[r.prop=t]=r,e.targetTest&&(Ne.push(r),Ee[t]=1),t=(t===`css`?`CSS`:t.charAt(0).toUpperCase()+t.substr(1))+`Plugin`}xe(t,r),e.register&&e.register(gr,r,nr)}else $t.push(e)}},tn=255,nn={aqua:[0,tn,tn],lime:[0,tn,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,tn],navy:[0,0,128],white:[tn,tn,tn],olive:[128,128,0],yellow:[tn,tn,0],orange:[tn,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[tn,0,0],pink:[tn,192,203],cyan:[0,tn,tn],transparent:[tn,tn,tn,0]},rn=function(e,t,n){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(n-t)*e*6:e<.5?n:e*3<2?t+(n-t)*(2/3-e)*6:t)*tn+.5|0},an=function(e,t,n){var r=e?L(e)?[e>>16,e>>8&tn,e&tn]:0:nn.black,i,a,o,s,c,l,u,d,f,p;if(!r){if(e.substr(-1)===`,`&&(e=e.substr(0,e.length-1)),nn[e])r=nn[e];else if(e.charAt(0)===`#`){if(e.length<6&&(i=e.charAt(1),a=e.charAt(2),o=e.charAt(3),e=`#`+i+i+a+a+o+o+(e.length===5?e.charAt(4)+e.charAt(4):``)),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&tn,r&tn,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&tn,e&tn]}else if(e.substr(0,3)===`hsl`){if(r=p=e.match(se),!t)s=r[0]%360/360,c=r[1]/100,l=r[2]/100,a=l<=.5?l*(c+1):l+c-l*c,i=l*2-a,r.length>3&&(r[3]*=1),r[0]=rn(s+1/3,i,a),r[1]=rn(s,i,a),r[2]=rn(s-1/3,i,a);else if(~e.indexOf(`=`))return r=e.match(ce),n&&r.length<4&&(r[3]=1),r}else r=e.match(se)||nn.transparent;r=r.map(Number)}return t&&!p&&(i=r[0]/tn,a=r[1]/tn,o=r[2]/tn,u=Math.max(i,a,o),d=Math.min(i,a,o),l=(u+d)/2,u===d?s=c=0:(f=u-d,c=l>.5?f/(2-u-d):f/(u+d),s=u===i?(a-o)/f+(a<o?6:0):u===a?(o-i)/f+2:(i-a)/f+4,s*=60),r[0]=~~(s+.5),r[1]=~~(c*100+.5),r[2]=~~(l*100+.5)),n&&r.length<4&&(r[3]=1),r},on=function(e){var t=[],n=[],r=-1;return e.split(cn).forEach(function(e){var i=e.match(le)||[];t.push.apply(t,i),n.push(r+=i.length+1)}),t.c=n,t},sn=function(e,t,n){var r=``,i=(e+r).match(cn),a=t?`hsla(`:`rgba(`,o=0,s,c,l,u;if(!i)return e;if(i=i.map(function(e){return(e=an(e,t,1))&&a+(t?e[0]+`,`+e[1]+`%,`+e[2]+`%,`+e[3]:e.join(`,`))+`)`}),n&&(l=on(e),s=n.c,s.join(r)!==l.c.join(r)))for(c=e.replace(cn,`1`).split(le),u=c.length-1;o<u;o++)r+=c[o]+(~s.indexOf(o)?i.shift()||a+`0,0,0,0)`:(l.length?l:i.length?i:n).shift());if(!c)for(c=e.split(cn),u=c.length-1;o<u;o++)r+=c[o]+i[o];return r+c[u]},cn=function(){var e=`(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b`,t;for(t in nn)e+=`|`+t+`\\b`;return RegExp(e+`)`,`gi`)}(),ln=/hsl[a]?\(/,un=function(e){var t=e.join(` `),n;if(cn.lastIndex=0,cn.test(t))return n=ln.test(t),e[1]=sn(e[1],n),e[0]=sn(e[0],n,on(e[1])),!0},dn,fn=function(){var e=Date.now,t=500,n=33,r=e(),i=r,a=1e3/240,o=a,s=[],c,l,u,d,f,p,m=function u(m){var h=e()-i,g=m===!0,_,v,y,b;if((h>t||h<0)&&(r+=h-n),i+=h,y=i-r,_=y-o,(_>0||g)&&(b=++d.frame,f=y-d.time*1e3,d.time=y/=1e3,o+=_+(_>=a?4:a-_),v=1),g||(c=l(u)),v)for(p=0;p<s.length;p++)s[p](y,f,b,m)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(e){return f/(1e3/(e||60))},wake:function(){_e&&(!pe&&z()&&(fe=pe=window,me=fe.document||{},he.gsap=gr,(fe.gsapVersions||(fe.gsapVersions=[])).push(gr.version),ve(ge||fe.GreenSockGlobals||!fe.gsap&&fe||{}),$t.forEach(en)),u=typeof requestAnimationFrame<`u`&&requestAnimationFrame,c&&d.sleep(),l=u||function(e){return setTimeout(e,o-d.time*1e3+1|0)},dn=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(c),dn=0,l=Se},lagSmoothing:function(e,r){t=e||1/0,n=Math.min(r||33,t)},fps:function(e){a=1e3/(e||240),o=d.time*1e3+a},add:function(e,t,n){var r=t?function(t,n,i,a){e(t,n,i,a),d.remove(r)}:e;return d.remove(e),s[n?`unshift`:`push`](r),pn(),r},remove:function(e,t){~(t=s.indexOf(e))&&s.splice(t,1)&&p>=t&&p--},_listeners:s},d}(),pn=function(){return!dn&&fn.wake()},mn={},hn=/^[\d.\-M][\d.\-,\s]/,gn=/["']/g,_n=function(e){for(var t={},n=e.substr(1,e.length-3).split(`:`),r=n[0],i=1,a=n.length,o,s,c;i<a;i++)s=n[i],o=i===a-1?s.length:s.lastIndexOf(`,`),c=s.substr(0,o),t[r]=isNaN(c)?c.replace(gn,``).trim():+c,r=s.substr(o+1).trim();return t},vn=function(e){var t=e.indexOf(`(`)+1,n=e.indexOf(`)`),r=e.indexOf(`(`,t);return e.substring(t,~r&&r<n?e.indexOf(`)`,n+1):n)},yn=function(e){var t=(e+``).split(`(`),n=mn[t[0]];return n&&t.length>1&&n.config?n.config.apply(null,~e.indexOf(`{`)?[_n(t[1])]:vn(e).split(`,`).map(Ke)):mn._CE&&hn.test(e)?mn._CE(``,e):n},bn=function(e){return function(t){return 1-e(1-t)}},xn=function(e,t){return e&&(I(e)?e:mn[e]||yn(e))||t},Sn=function(e,t,n,r){n===void 0&&(n=function(e){return 1-t(1-e)}),r===void 0&&(r=function(e){return e<.5?t(e*2)/2:1-t((1-e)*2)/2});var i={easeIn:t,easeOut:n,easeInOut:r},a;return Re(e,function(e){for(var t in mn[e]=he[e]=i,mn[a=e.toLowerCase()]=n,i)mn[a+(t===`easeIn`?`.in`:t===`easeOut`?`.out`:`.inOut`)]=mn[e+`.`+t]=i[t]}),i},Cn=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},wn=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/k*(Math.asin(1/i)||0),s=function(e){return e===1?1:i*2**(-10*e)*P((e-o)*a)+1},c=t===`out`?s:t===`in`?function(e){return 1-s(1-e)}:Cn(s);return a=k/a,c.config=function(n,r){return e(t,n,r)},c},Tn=function e(t,n){n===void 0&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i=t===`out`?r:t===`in`?function(e){return 1-r(1-e)}:Cn(r);return i.config=function(n){return e(t,n)},i};Re(`Linear,Quad,Cubic,Quart,Quint,Strong`,function(e,t){var n=t<5?t+1:t;Sn(e+`,Power`+(n-1),t?function(e){return e**+n}:function(e){return e},function(e){return 1-(1-e)**n},function(e){return e<.5?(e*2)**n/2:1-((1-e)*2)**n/2})}),mn.Linear.easeNone=mn.none=mn.Linear.easeIn,Sn(`Elastic`,wn(`in`),wn(`out`),wn()),(function(e,t){var n=1/t,r=2*n,i=2.5*n,a=function(a){return a<n?e*a*a:a<r?e*(a-1.5/t)**2+.75:a<i?e*(a-=2.25/t)*a+.9375:e*(a-2.625/t)**2+.984375};Sn(`Bounce`,function(e){return 1-a(1-e)},a)})(7.5625,2.75),Sn(`Expo`,function(e){return 2**(10*(e-1))*e+e*e*e*e*e*e*(1-e)}),Sn(`Circ`,function(e){return-(M(1-e*e)-1)}),Sn(`Sine`,function(e){return e===1?1:-N(e*A)+1}),Sn(`Back`,Tn(`in`),Tn(`out`),Tn()),mn.SteppedEase=mn.steps=he.SteppedEase={config:function(e,t){e===void 0&&(e=1);var n=1/e,r=e+ +!t,i=+!!t,a=1-O;return function(e){return((r*Dt(0,a,e)|0)+i)*n}}},C.ease=mn[`quad.out`],Re(`onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt`,function(e){return Pe+=e+`,`+e+`Params,`});var En=function(e,t){this.id=j++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:Le,this.set=t?t.getSetter:qn},Dn=function(){function e(e){this.vars=e,this._delay=+e.delay||0,(this._repeat=e.repeat===1/0?-2:e.repeat||0)&&(this._rDelay=e.repeatDelay||0,this._yoyo=!!e.yoyo||!!e.yoyoEase),this._ts=1,xt(this,+e.duration,1,1),this.data=e.data,E&&(this._ctx=E,E.data.push(this)),dn||fn.wake()}var t=e.prototype;return t.delay=function(e){return e||e===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+e-this._delay),this._delay=e,this):this._delay},t.duration=function(e){return arguments.length?this.totalDuration(this._repeat>0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){return arguments.length?(this._dirty=0,xt(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(e,t){if(pn(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ft(this,e),!n._dp||n.parent||pt(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e<this._tDur||this._ts<0&&e>0||!this._tDur&&!e)&&mt(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&Math.abs(this._zTime)===O||!this._initted&&this._dur&&e||!e&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=e),Ge(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+ct(this))%(this._dur+this._rDelay)||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-e:e)+ct(this),t):this.duration()?Math.min(1,this._time/this._dur):+(this.rawTime()>0)},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?lt(this._tTime,n)+1:1},t.timeScale=function(e,t){if(!arguments.length)return this._rts===-O?0:this._rts;if(this._rts===e)return this;var n=this.parent&&this._ts?ut(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||e===-O?0:this._rts,this.totalTime(Dt(-Math.abs(this._delay),this.totalDuration(),n),t!==!1),dt(this),at(this)},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(pn(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==O&&(this._tTime-=O)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=Be(e);var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&mt(t,this,this._start-this._delay),this}return this._start},t.endTime=function(e){return this._start+(te(e)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ut(t.rawTime(e),this):this._tTime:this._tTime},t.revert=function(e){e===void 0&&(e=Te);var t=T;return T=e,We(this)&&(this.timeline&&this.timeline.revert(e),this.totalTime(-.01,e.suppressEvents)),this.data!==`nested`&&e.kill!==!1&&this.kill(),T=t,this},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(Math.abs(t._ts)||1),t=t._dp;return!this.parent&&this._sat?this._sat.globalTime(e):n},t.repeat=function(e){return arguments.length?(this._repeat=e===1/0?-2:e,St(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(e){if(arguments.length){var t=this._time;return this._rDelay=e,St(this),t?this.time(t):this}return this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime(wt(this,e),te(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,te(t)),this._dur||(this._zTime=-O),this},t.play=function(e,t){return e!=null&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return e!=null&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return e!=null&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-O:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-O,this},t.isActive=function(){var e=this.parent||this._dp,t=this._start,n;return!!(!e||this._ts&&this._initted&&e.isActive()&&(n=e.rawTime(!0))>=t&&n<this.endTime(!0)-O)},t.eventCallback=function(e,t,n){var r=this.vars;return arguments.length>1?(t?(r[e]=t,n&&(r[e+`Params`]=n),e===`onUpdate`&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this,n=t._prom;return new Promise(function(r){var i=I(e)?e:qe,a=function(){var e=t.then;t.then=null,n&&n(),I(i)&&(i=i(t))&&(i.then||i===t)&&(t.then=e),r(i),t.then=e};t._initted&&t.totalProgress()===1&&t._ts>=0||!t._tTime&&t._ts<0?a():t._prom=a})},t.kill=function(){Zt(this)},e}();Je(Dn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-O,_prom:0,_ps:!1,_rts:1});var On=function(e){x(t,e);function t(t,n){var r;return t===void 0&&(t={}),r=e.call(this,t)||this,r.labels={},r.smoothChildTiming=!!t.smoothChildTiming,r.autoRemoveChildren=!!t.autoRemoveChildren,r._sort=te(t.sortChildren),H&&mt(t.parent||H,b(r),n),t.reversed&&r.reverse(),t.paused&&r.paused(!0),t.scrollTrigger&&ht(b(r),t.scrollTrigger),r}var n=t.prototype;return n.to=function(e,t,n){return Tt(0,arguments,this),this},n.from=function(e,t,n){return Tt(1,arguments,this),this},n.fromTo=function(e,t,n,r){return Tt(2,arguments,this),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,$e(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Hn(e,t,wt(this,n),1),this},n.call=function(e,t,n){return mt(this,Hn.delayedCall(0,e,t),n)},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Hn(e,n,wt(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,$e(n).immediateRender=te(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,$e(r).immediateRender=te(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r=this._time,i=this._dirty?this.totalDuration():this._tDur,a=this._dur,o=e<=0?0:Be(e),s=this._zTime<0!=e<0&&(this._initted||!a),c,l,u,d,f,p,m,h,g,_,v,y;if(this!==H&&o>i&&e>=0&&(o=i),o!==this._tTime||n||s){if(r!==this._time&&a&&(o+=this._time-r,e+=this._time-r),c=o,g=this._start,h=this._ts,p=!h,s&&(a||(r=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat){if(v=this._yoyo,f=a+this._rDelay,this._repeat<-1&&e<0)return this.totalTime(f*100+e,t,n);if(c=Be(o%f),o===i?(d=this._repeat,c=a):(_=Be(o/f),d=~~_,d&&d===_&&(c=a,d--),c>a&&(c=a)),_=lt(this._tTime,f),!r&&this._tTime&&_!==d&&this._tTime-_*f-this._dur<=0&&(_=d),v&&d&1&&(c=a-c,y=1),d!==_&&!this._lock){var b=v&&_&1,x=b===(v&&d&1);if(d<_&&(b=!b),r=b?0:o%a?a:o,this._lock=1,this.render(r||(y?0:Be(d*f)),t,!a)._lock=0,this._tTime=o,!t&&this.parent&&Xt(this,`onRepeat`),this.vars.repeatRefresh&&!y&&(this.invalidate()._lock=1,_=d),r&&r!==this._time||p!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act||(a=this._dur,i=this._tDur,x&&(this._lock=2,r=b?a:-1e-4,this.render(r,!0),this.vars.repeatRefresh&&!y&&this.invalidate()),this._lock=0,!this._ts&&!p))return this}}if(this._hasPause&&!this._forcing&&this._lock<2&&(m=bt(this,Be(r),Be(c)),m&&(o-=c-(c=m._start))),this._tTime=o,this._time=c,this._act=!!h,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=e,r=0),!r&&o&&a&&!t&&!_&&(Xt(this,`onStart`),this._tTime!==o))return this;if(c>=r&&e>=0)for(l=this._first;l;){if(u=l._next,(l._act||c>=l._start)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(c-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(c-l._start)*l._ts,t,n),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=-O);break}}l=u}else{l=this._last;for(var S=e<0?e:c;l;){if(u=l._prev,(l._act||S<=l._end)&&l._ts&&m!==l){if(l.parent!==this)return this.render(e,t,n);if(l.render(l._ts>0?(S-l._start)*l._ts:(l._dirty?l.totalDuration():l._tDur)+(S-l._start)*l._ts,t,n||T&&We(l)),c!==this._time||!this._ts&&!p){m=0,u&&(o+=this._zTime=S?-O:O);break}}l=u}}if(m&&!t&&(this.pause(),m.render(c>=r?0:-O)._zTime=c>=r?1:-1,this._ts))return this._start=g,dt(this),this.render(e,t,n);this._onUpdate&&!t&&Xt(this,`onUpdate`,!0),(o===i&&this._tTime>=this.totalDuration()||!o&&r)&&(g===this._start||Math.abs(h)!==Math.abs(this._ts))&&(this._lock||((e||!a)&&(o===i&&this._ts>0||!o&&this._ts<0)&&rt(this,1),!t&&!(e<0&&!r)&&(o||r||!i)&&(Xt(this,o===i&&e>=0?`onComplete`:`onReverseComplete`,!0),this._prom&&!(o<i&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(L(t)||(t=wt(this,t,e)),!(e instanceof Dn)){if(ie(e))return e.forEach(function(e){return n.add(e,t)}),this;if(F(e))return this.addLabel(e,t);if(I(e))e=Hn.delayedCall(0,e);else return this}return this===e?this:mt(this,e,t)},n.getChildren=function(e,t,n,r){e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),r===void 0&&(r=-D);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Hn?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return F(e)?this.removeLabel(e):I(e)?this.killTweensOf(e):(e.parent===this&&nt(this,e),e===this._recent&&(this._recent=this._last),it(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Be(fn.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=wt(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Hn.delayedCall(0,t||Se,n);return r.data=`isPause`,this._hasPause=1,mt(this,r,wt(this,e))},n.removePause=function(e){var t=this._first;for(e=wt(this,e);t;)t._start===e&&t.data===`isPause`&&rt(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Nn!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n=[],r=Nt(e),i=this._first,a=L(t),o;i;)i instanceof Hn?He(i._targets,r)&&(a?(!Nn||i._initted&&i._ts)&&i.globalTime(0)<=t&&i.globalTime(i.totalDuration())>t:!t||i.isActive())&&n.push(i):(o=i.getTweensOf(r,t)).length&&n.push.apply(n,o),i=i._next;return n},n.tweenTo=function(e,t){t||={};var n=this,r=wt(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,c=i.immediateRender,l,u=Hn.to(n,Je({ease:t.ease||`none`,lazy:!1,immediateRender:!1,time:r,overwrite:`auto`,duration:t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale())||O,onStart:function(){if(n.pause(),!l){var e=t.duration||Math.abs((r-(a&&`time`in a?a.time:n._time))/n.timeScale());u._dur!==e&&xt(u,e,0,1).render(u._time,!0,!0),l=1}o&&o.apply(u,s||[])}},t));return c?u.render(0):u},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Je({startAt:{time:wt(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return e===void 0&&(e=this._time),Yt(this,wt(this,e))},n.previousLabel=function(e){return e===void 0&&(e=this._time),Yt(this,wt(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+O)},n.shiftChildren=function(e,t,n){n===void 0&&(n=0);var r=this._first,i=this.labels,a;for(e=Be(e);r;)r._start>=n&&(r._start+=e,r._end+=e),r=r._next;if(t)for(a in i)i[a]>=n&&(i[a]+=e);return it(this)},n.invalidate=function(t){var n=this._first;for(this._lock=0;n;)n.invalidate(t),n=n._next;return e.prototype.invalidate.call(this,t)},n.clear=function(e){e===void 0&&(e=!0);for(var t=this._first,n;t;)n=t._next,this.remove(t),t=n;return this._dp&&(this._time=this._tTime=this._pTime=0),e&&(this.labels={}),it(this)},n.totalDuration=function(e){var t=0,n=this,r=n._last,i=D,a,o,s;if(arguments.length)return n.timeScale((n._repeat<0?n.duration():n.totalDuration())/(n.reversed()?-e:e));if(n._dirty){for(s=n.parent;r;)a=r._prev,r._dirty&&r.totalDuration(),o=r._start,o>i&&n._sort&&r._ts&&!n._lock?(n._lock=1,mt(n,r,o-r._delay,1)._lock=0):i=o,o<0&&r._ts&&(t-=o,(!s&&!n._dp||s&&s.smoothChildTiming)&&(n._start+=Be(o/n._ts),n._time-=o,n._tTime-=o),n.shiftChildren(-o,!1,-1/0),i=0),r._end>t&&r._ts&&(t=r._end),r=a;xt(n,n===H&&n._time>t?n._time:t,1,1),n._dirty=0}return n._tDur},t.updateRoot=function(e){if(H._ts&&(Ge(H,ut(e,H)),ke=fn.frame),fn.frame>=Me){Me+=S.autoSleep||120;var t=H._first;if((!t||!t._ts)&&S.autoSleep&&fn._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||fn.sleep()}}},t}(Dn);Je(On.prototype,{_lock:0,_hasPause:0,_forcing:0});var kn=function(e,t,n,r,i,a,o){var s=new nr(this._pt,e,t,0,1,Xn,null,i),c=0,l=0,u,d,f,p,m,h,g,_;for(s.b=n,s.e=r,n+=``,r+=``,(g=~r.indexOf(`random(`))&&(r=Kt(r)),a&&(_=[n,r],a(_,e,t),n=_[0],r=_[1]),d=n.match(B)||[];u=B.exec(r);)p=u[0],m=r.substring(c,u.index),f?f=(f+1)%5:m.substr(-5)===`rgba(`&&(f=1),p!==d[l++]&&(h=parseFloat(d[l-1])||0,s._pt={_next:s._pt,p:m||l===1?m:`,`,s:h,c:p.charAt(1)===`=`?Ve(h,p)-h:parseFloat(p)-h,m:f&&f<4?Math.round:0},c=B.lastIndex);return s.c=c<r.length?r.substring(c,r.length):``,s.fp=o,(V.test(r)||g)&&(s.e=0),this._pt=s,s},An=function(e,t,n,r,i,a,o,s,c,l){I(r)&&(r=r(i||0,e,a));var u=e[t],d=n===`get`?I(u)?c?e[t.indexOf(`set`)||!I(e[`get`+t.substr(3)])?t:`get`+t.substr(3)](c):e[t]():u:n,f=I(u)?c?Gn:Wn:Un,p;if(F(r)&&(~r.indexOf(`random(`)&&(r=Kt(r)),r.charAt(1)===`=`&&(p=Ve(d,r)+(Ot(d)||0),(p||p===0)&&(r=p))),!l||d!==r||Pn)return!isNaN(d*r)&&r!==``?(p=new nr(this._pt,e,t,+d||0,r-(d||0),typeof u==`boolean`?Yn:Jn,0,f),c&&(p.fp=c),o&&p.modifier(o,this,e),this._pt=p):(!u&&!(t in e)&&ye(t,r),kn.call(this,e,t,d,r,f,s||S.stringFilter,c))},jn=function(e,t,n,r,i){if(I(e)&&(e=zn(e,i,t,n,r)),!R(e)||e.style&&e.nodeType||ie(e)||re(e))return F(e)?zn(e,i,t,n,r):e;var a={},o;for(o in e)a[o]=zn(e[o],i,t,n,r);return a},Mn=function(e,t,n,r,i,a){var o,s,c,l;if(Ae[e]&&(o=new Ae[e]).init(i,o.rawVars?t[e]:jn(t[e],r,i,a,n),n,r,a)!==!1&&(n._pt=s=new nr(n._pt,i,e,0,1,o.render,o,0,o.priority),n!==Qt))for(c=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)c[o._props[l]]=s;return o},Nn,Pn,Fn=function e(t,n,r){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,c=i.lazy,l=i.onUpdate,u=i.runBackwards,d=i.yoyoEase,f=i.keyframes,p=i.autoRevert,m=t._dur,h=t._startAt,g=t._targets,_=t.parent,v=_&&_.data===`nested`?_.vars.targets:g,y=t._overwrite===`auto`&&!w,b=t.timeline,x=i.easeReverse||d,S,E,k,A,j,M,N,P,F,I,L,ee,R;if(b&&(!f||!a)&&(a=`none`),t._ease=xn(a,C.ease),t._rEase=x&&(xn(x)||t._ease),t._from=!b&&!!i.runBackwards,t._from&&(t.ratio=1),!b||f&&!i.stagger){if(P=g[0]?Ie(g[0]).harness:0,ee=P&&i[P.prop],S=Qe(i,Ee),h&&(h._zTime<0&&h.progress(1),n<0&&u&&s&&!p?h.render(-1,!0):h.revert(u&&m?we:Ce),h._lazy=0),o){if(rt(t._startAt=Hn.set(g,Je({data:`isStart`,overwrite:!1,parent:_,immediateRender:!0,lazy:!h&&te(c),startAt:null,delay:0,onUpdate:l&&function(){return Xt(t,`onUpdate`)},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,n<0&&(T||!s&&!p)&&t._startAt.revert(we),s&&m&&n<=0&&r<=0){n&&(t._zTime=n);return}}else if(u&&m&&!h){if(n&&(s=!1),k=Je({overwrite:!1,data:`isFromStart`,lazy:s&&!h&&te(c),immediateRender:s,stagger:0,parent:_},S),ee&&(k[P.prop]=ee),rt(t._startAt=Hn.set(g,k)),t._startAt._dp=0,t._startAt._sat=t,n<0&&(T?t._startAt.revert(we):t._startAt.render(-1,!0)),t._zTime=n,!s)e(t._startAt,O,O);else if(!n)return}for(t._pt=t._ptCache=0,c=m&&te(c)||c&&!m,E=0;E<g.length;E++){if(j=g[E],N=j._gsap||Fe(g)[E]._gsap,t._ptLookup[E]=I={},Oe[N.id]&&De.length&&Ue(),L=v===g?E:v.indexOf(j),P&&(F=new P).init(j,ee||S,t,L,v)!==!1&&(t._pt=A=new nr(t._pt,j,F.name,0,1,F.render,F,0,F.priority),F._props.forEach(function(e){I[e]=A}),F.priority&&(M=1)),!P||ee)for(k in S)Ae[k]&&(F=Mn(k,S,t,L,j,v))?F.priority&&(M=1):I[k]=A=An.call(t,j,k,`get`,S[k],L,v,0,i.stringFilter);t._op&&t._op[E]&&t.kill(j,t._op[E]),y&&t._pt&&(Nn=t,H.killTweensOf(j,I,t.globalTime(n)),R=!t.parent,Nn=0),t._pt&&c&&(Oe[N.id]=1)}M&&tr(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!R,f&&n<=0&&b.render(D,!0,!0)},In=function(e,t,n,r,i,a,o,s){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],l,u,d,f;if(!c)for(c=e._ptCache[t]=[],d=e._ptLookup,f=e._targets.length;f--;){if(l=d[f][t],l&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==t&&l.fp!==t;)l=l._next;if(!l)return Pn=1,e.vars[t]=`+=0`,Fn(e,o),Pn=0,s?be(t+` not eligible for reset. Try splitting into individual properties`):1;c.push(l)}for(f=c.length;f--;)u=c[f],l=u._pt||u,l.s=(r||r===0)&&!i?r:l.s+(r||0)+a*l.c,l.c=n-l.s,u.e&&(u.e=ze(n)+Ot(u.e)),u.b&&(u.b=l.s+Ot(u.b))},Ln=function(e,t){var n=e[0]?Ie(e[0]).harness:0,r=n&&n.aliases,i,a,o,s;if(!r)return t;for(a in i=Xe({},t),r)if(a in i)for(s=r[a].split(`,`),o=s.length;o--;)i[s[o]]=i[a];return i},Rn=function(e,t,n,r){var i=t.ease||r||`power1.inOut`,a,o;if(ie(t))o=n[e]||(n[e]=[]),t.forEach(function(e,n){return o.push({t:n/(t.length-1)*100,v:e,e:i})});else for(a in t)o=n[a]||(n[a]=[]),a===`ease`||o.push({t:parseFloat(e),v:t[a],e:i})},zn=function(e,t,n,r,i){return I(e)?e.call(t,n,r,i):F(e)&&~e.indexOf(`random(`)?Kt(e):e},Bn=Pe+`repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,easeReverse,autoRevert`,Vn={};Re(Bn+`,id,stagger,delay,duration,paused,scrollTrigger`,function(e){return Vn[e]=1});var Hn=function(e){x(t,e);function t(t,n,r,i){var a;typeof n==`number`&&(r.duration=n,n=r,r=null),a=e.call(this,i?n:$e(n))||this;var o=a.vars,s=o.duration,c=o.delay,l=o.immediateRender,u=o.stagger,d=o.overwrite,f=o.keyframes,p=o.defaults,m=o.scrollTrigger,h=n.parent||H,g=(ie(t)||re(t)?L(t[0]):`length`in n)?[t]:Nt(t),_,v,y,x,C,T,E,D;if(a._targets=g.length?Fe(g):be(`GSAP target `+t+` not found. https://gsap.com`,!S.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=d,f||u||ne(s)||ne(c)){n=a.vars;var k=n.easeReverse||n.yoyoEase;if(_=a.timeline=new On({data:`nested`,defaults:p||{},targets:h&&h.data===`nested`?h.vars.targets:g}),_.kill(),_.parent=_._dp=b(a),_._start=0,u||ne(s)||ne(c)){if(x=g.length,E=u&&It(u),R(u))for(C in u)~Bn.indexOf(C)&&(D||={},D[C]=u[C]);for(v=0;v<x;v++)y=Qe(n,Vn),y.stagger=0,k&&(y.easeReverse=k),D&&Xe(y,D),T=g[v],y.duration=+zn(s,b(a),v,T,g),y.delay=(+zn(c,b(a),v,T,g)||0)-a._delay,!u&&x===1&&y.delay&&(a._delay=c=y.delay,a._start+=c,y.delay=0),_.to(T,y,E?E(v,T,g):0),_._ease=mn.none;_.duration()?s=c=0:a.timeline=0}else if(f){$e(Je(_.vars.defaults,{ease:`none`})),_._ease=xn(f.ease||n.ease||`none`);var A=0,j,M,N;if(ie(f))f.forEach(function(e){return _.to(g,e,`>`)}),_.duration();else{for(C in y={},f)C===`ease`||C===`easeEach`||Rn(C,f[C],y,f.easeEach);for(C in y)for(j=y[C].sort(function(e,t){return e.t-t.t}),A=0,v=0;v<j.length;v++)M=j[v],N={ease:M.e,duration:(M.t-(v?j[v-1].t:0))/100*s},N[C]=M.v,_.to(g,N,A),A+=N.duration;_.duration()<s&&_.to({},{duration:s-_.duration()})}}s||a.duration(s=_.duration())}else a.timeline=0;return d===!0&&!w&&(Nn=b(a),H.killTweensOf(g),Nn=0),mt(h,b(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(l||!s&&!f&&a._start===Be(h._time)&&te(l)&&st(b(a))&&h.data!==`nested`)&&(a._tTime=-O,a.render(Math.max(0,-c)||0)),m&&ht(b(a),m),a}var n=t.prototype;return n.render=function(e,t,n){var r=this._time,i=this._tDur,a=this._dur,o=e<0,s=e>i-O&&!o?i:e<O?0:e,c,l,u,d,f,p,m,h;if(!a)yt(this,e,t,n);else if(s!==this._tTime||!e||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==o||this._lazy){if(c=s,h=this.timeline,this._repeat){if(d=a+this._rDelay,this._repeat<-1&&o)return this.totalTime(d*100+e,t,n);if(c=Be(s%d),s===i?(u=this._repeat,c=a):(f=Be(s/d),u=~~f,u&&u===f?(c=a,u--):c>a&&(c=a)),p=this._yoyo&&u&1,p&&(c=a-c),f=lt(this._tTime,d),c===r&&!n&&this._initted&&u===f)return this._tTime=s,this;u!==f&&this.vars.repeatRefresh&&!p&&!this._lock&&c!==d&&this._initted&&(this._lock=n=1,this.render(Be(d*u),!0).invalidate()._lock=0)}if(!this._initted){if(gt(this,o?e:c,n,t,s))return this._tTime=0,this;if(r!==this._time&&!(n&&this.vars.repeatRefresh&&u!==f))return this;if(a!==this._dur)return this.render(e,t,n)}if(this._rEase){var g=c<r;if(g!==this._inv){var _=g?r:a-r;this._inv=g,this._from&&(this.ratio=1-this.ratio),this._invRatio=this.ratio,this._invTime=r,this._invRecip=_?(g?-1:1)/_:0,this._invScale=g?-this.ratio:1-this.ratio,this._invEase=g?this._rEase:this._ease}this.ratio=m=this._invRatio+this._invScale*this._invEase((c-this._invTime)*this._invRecip)}else this.ratio=m=this._ease(c/a);if(this._from&&(this.ratio=m=1-m),this._tTime=s,this._time=c,!this._act&&this._ts&&(this._act=1,this._lazy=0),!r&&s&&!t&&!f&&(Xt(this,`onStart`),this._tTime!==s))return this;for(l=this._pt;l;)l.r(m,l.d),l=l._next;h&&h.render(e<0?e:h._dur*h._ease(c/this._dur),t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(o&&ot(this,e,t,n),Xt(this,`onUpdate`)),this._repeat&&u!==f&&this.vars.onRepeat&&!t&&this.parent&&Xt(this,`onRepeat`),(s===this._tDur||!s)&&this._tTime===s&&(o&&!this._onUpdate&&ot(this,e,!0,!0),(e||!a)&&(s===this._tDur&&this._ts>0||!s&&this._ts<0)&&rt(this,1),!t&&(!o||r)&&(s||r||p)&&(Xt(this,s===i?`onComplete`:`onReverseComplete`,!0),this._prom&&!(s<i&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(t){return(!t||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(t),e.prototype.invalidate.call(this,t)},n.resetTo=function(e,t,n,r,i){dn||fn.wake(),this._ts||this.play();var a=Math.min(this._dur,(this._dp._time-this._start)*this._ts),o;return this._initted||Fn(this,a),o=this._ease(a/this._dur),In(this,e,t,n,r,o,a,i)?this.resetTo(e,t,n,r,1):(ft(this,0),this.parent||tt(this._dp,this,`_first`,`_last`,this._dp._sort?`_start`:0),this.render(0))},n.kill=function(e,t){if(t===void 0&&(t=`all`),!e&&(!t||t===`all`))return this._lazy=this._pt=0,this.parent?Zt(this):this.scrollTrigger&&this.scrollTrigger.kill(!!T),this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Nn&&Nn.vars.overwrite!==!0)._first||Zt(this),this.parent&&n!==this.timeline.totalDuration()&&xt(this,this._dur*this.timeline._tDur/n,0,1),this}var r=this._targets,i=e?Nt(e):r,a=this._ptLookup,o=this._pt,s,c,l,u,d,f,p;if((!t||t===`all`)&&et(r,i))return t===`all`&&(this._pt=0),Zt(this);for(s=this._op=this._op||[],t!==`all`&&(F(t)&&(d={},Re(t,function(e){return d[e]=1}),t=d),t=Ln(r,t)),p=r.length;p--;)if(~i.indexOf(r[p]))for(d in c=a[p],t===`all`?(s[p]=t,u=c,l={}):(l=s[p]=s[p]||{},u=t),u)f=c&&c[d],f&&((!(`kill`in f.d)||f.d.kill(d)===!0)&&nt(this,f,`_pt`),delete c[d]),l!==`all`&&(l[d]=1);return this._initted&&!this._pt&&o&&Zt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,t){return Tt(1,arguments)},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,t,n){return Tt(2,arguments)},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return H.killTweensOf(e,t,n)},t}(Dn);Je(Hn.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Re(`staggerTo,staggerFrom,staggerFromTo`,function(e){Hn[e]=function(){var t=new On,n=At.call(arguments,0);return n.splice(e===`staggerFromTo`?5:4,0,0),t[e].apply(t,n)}});var Un=function(e,t,n){return e[t]=n},Wn=function(e,t,n){return e[t](n)},Gn=function(e,t,n,r){return e[t](r.fp,n)},Kn=function(e,t,n){return e.setAttribute(t,n)},qn=function(e,t){return I(e[t])?Wn:ee(e[t])&&e.setAttribute?Kn:Un},Jn=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},Yn=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Xn=function(e,t){var n=t._pt,r=``;if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round((n.s+n.c*e)*1e4)/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},Zn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},Qn=function(e,t,n,r){for(var i=this._pt,a;i;)a=i._next,i.p===r&&i.modifier(e,t,n),i=a},$n=function(e){for(var t=this._pt,n,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?nt(this,t,`_pt`):t.dep||(n=1),t=r;return!n},er=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},tr=function(e){for(var t=e._pt,n,r,i,a;t;){for(n=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:a)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:a=t,t=n}e._pt=i},nr=function(){function e(e,t,n,r,i,a,o,s,c){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Jn,this.d=o||this,this.set=s||Un,this.pr=c||0,this._next=e,e&&(e._prev=this)}var t=e.prototype;return t.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=er,this.m=e,this.mt=n,this.tween=t},e}();Re(Pe+`parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger,easeReverse`,function(e){return Ee[e]=1}),he.TweenMax=he.TweenLite=Hn,he.TimelineLite=he.TimelineMax=On,H=new On({sortChildren:!1,defaults:C,autoRemoveChildren:!0,id:`root`,smoothChildTiming:!0}),S.stringFilter=un;var rr=[],ir={},ar=[],or=0,sr=0,cr=function(e){return(ir[e]||ar).map(function(e){return e()})},lr=function(){var e=Date.now(),t=[];e-or>2&&(cr(`matchMediaInit`),rr.forEach(function(e){var n=e.queries,r=e.conditions,i,a,o,s;for(a in n)i=fe.matchMedia(n[a]).matches,i&&(o=1),i!==r[a]&&(r[a]=i,s=1);s&&(e.revert(),o&&t.push(e))}),cr(`matchMediaRevert`),t.forEach(function(e){return e.onMatch(e,function(t){return e.add(null,t)})}),or=e,cr(`matchMedia`))},ur=function(){function e(e,t){this.selector=t&&Pt(t),this.data=[],this._r=[],this.isReverted=!1,this.id=sr++,e&&this.add(e)}var t=e.prototype;return t.add=function(e,t,n){I(e)&&(n=t,t=e,e=I);var r=this,i=function(){var e=E,i=r.selector,a;return e&&e!==r&&e.data.push(r),n&&(r.selector=Pt(n)),E=r,a=t.apply(r,arguments),I(a)&&r._r.push(a),E=e,r.selector=i,r.isReverted=!1,a};return r.last=i,e===I?i(r,function(e){return r.add(null,e)}):e?r[e]=i:i},t.ignore=function(e){var t=E;E=null,e(this),E=t},t.getTweens=function(){var t=[];return this.data.forEach(function(n){return n instanceof e?t.push.apply(t,n.getTweens()):n instanceof Hn&&!(n.parent&&n.parent.data===`nested`)&&t.push(n)}),t},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(e,t){var n=this;if(e?(function(){for(var t=n.getTweens(),r=n.data.length,i;r--;)i=n.data[r],i.data===`isFlip`&&(i.revert(),i.getChildren(!0,!0,!1).forEach(function(e){return t.splice(t.indexOf(e),1)}));for(t.map(function(e){return{g:e._dur||e._delay||e._sat&&!e._sat.vars.immediateRender?e.globalTime(0):-1/0,t:e}}).sort(function(e,t){return t.g-e.g||-1/0}).forEach(function(t){return t.t.revert(e)}),r=n.data.length;r--;)i=n.data[r],i instanceof On?i.data!==`nested`&&(i.scrollTrigger&&i.scrollTrigger.revert(),i.kill()):!(i instanceof Hn)&&i.revert&&i.revert(e);n._r.forEach(function(t){return t(e,n)}),n.isReverted=!0})():this.data.forEach(function(e){return e.kill&&e.kill()}),this.clear(),t)for(var r=rr.length;r--;)rr[r].id===this.id&&rr.splice(r,1)},t.revert=function(e){this.kill(e||{})},e}(),dr=function(){function e(e){this.contexts=[],this.scope=e,E&&E.data.push(this)}var t=e.prototype;return t.add=function(e,t,n){R(e)||(e={matches:e});var r=new ur(0,n||this.scope),i=r.conditions={},a,o,s;for(o in E&&!r.selector&&(r.selector=E.selector),this.contexts.push(r),t=r.add(`onMatch`,t),r.queries=e,e)o===`all`?s=1:(a=fe.matchMedia(e[o]),a&&(rr.indexOf(r)<0&&rr.push(r),(i[o]=a.matches)&&(s=1),a.addListener?a.addListener(lr):a.addEventListener(`change`,lr)));return s&&t(r,function(e){return r.add(null,e)}),this},t.revert=function(e){this.kill(e||{})},t.kill=function(e){this.contexts.forEach(function(t){return t.kill(e,!0)})},e}(),fr={registerPlugin:function(){[...arguments].forEach(function(e){return en(e)})},timeline:function(e){return new On(e)},getTweensOf:function(e,t){return H.getTweensOf(e,t)},getProperty:function(e,t,n,r){F(e)&&(e=Nt(e)[0]);var i=Ie(e||{}).get,a=n?qe:Ke;return n===`native`&&(n=``),e&&(t?a((Ae[t]&&Ae[t].get||i)(e,t,n,r)):function(t,n,r){return a((Ae[t]&&Ae[t].get||i)(e,t,n,r))})},quickSetter:function(e,t,n){if(e=Nt(e),e.length>1){var r=e.map(function(e){return gr.quickSetter(e,t,n)}),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=Ae[t],o=Ie(e),s=o.harness&&(o.harness.aliases||{})[t]||t,c=a?function(t){var r=new a;Qt._pt=0,r.init(e,n?t+n:t,Qt,0,[e]),r.render(1,r),Qt._pt&&Zn(1,Qt)}:o.set(e,s);return a?c:function(t){return c(e,s,n?t+n:t,o,1)}},quickTo:function(e,t,n){var r,i=gr.to(e,Je((r={},r[t]=`+=0.1`,r.paused=!0,r.stagger=0,r),n||{})),a=function(e,n,r){return i.resetTo(t,e,n,r)};return a.tween=i,a},isTweening:function(e){return H.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=xn(e.ease,C.ease)),Ze(C,e||{})},config:function(e){return Ze(S,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||``).split(`,`).forEach(function(e){return e&&!Ae[e]&&!he[e]&&be(t+` effect requires `+e+` plugin.`)}),je[t]=function(e,t,r){return n(Nt(e),Je(t||{},i),r)},a&&(On.prototype[t]=function(e,n,r){return this.add(je[t](e,R(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){mn[e]=xn(t)},parseEase:function(e,t){return arguments.length?xn(e,t):mn},getById:function(e){return H.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var n=new On(e),r,i;for(n.smoothChildTiming=te(e.smoothChildTiming),H.remove(n),n._dp=0,n._time=n._tTime=H._time,r=H._first;r;)i=r._next,(t||!(!r._dur&&r instanceof Hn&&r.vars.onComplete===r._targets[0]))&&mt(n,r,r._start-r._delay),r=i;return mt(H,n,0),n},context:function(e,t){return e?new ur(e,t):E},matchMedia:function(e){return new dr(e)},matchMediaRefresh:function(){return rr.forEach(function(e){var t=e.conditions,n,r;for(r in t)t[r]&&(t[r]=!1,n=1);n&&e.revert()})||lr()},addEventListener:function(e,t){var n=ir[e]||(ir[e]=[]);~n.indexOf(t)||n.push(t)},removeEventListener:function(e,t){var n=ir[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},utils:{wrap:Wt,wrapYoyo:Gt,distribute:It,random:zt,snap:Rt,normalize:Ht,getUnit:Ot,clamp:kt,splitColor:an,toArray:Nt,selector:Pt,mapRange:qt,pipe:Bt,unitize:Vt,interpolate:Jt,shuffle:Ft},install:ve,effects:je,ticker:fn,updateRoot:On.updateRoot,plugins:Ae,globalTimeline:H,core:{PropTween:nr,globals:xe,Tween:Hn,Timeline:On,Animation:Dn,getCache:Ie,_removeLinkedListItem:nt,reverting:function(){return T},context:function(e){return e&&E&&(E.data.push(e),e._ctx=E),E},suppressOverwrites:function(e){return w=e}}};Re(`to,from,fromTo,delayedCall,set,killTweensOf`,function(e){return fr[e]=Hn[e]}),fn.add(On.updateRoot),Qt=fr.to({},{duration:0});var pr=function(e,t){for(var n=e._pt;n&&n.p!==t&&n.op!==t&&n.fp!==t;)n=n._next;return n},mr=function(e,t){var n=e._targets,r,i,a;for(r in t)for(i=n.length;i--;)a=e._ptLookup[i][r],(a&&=a.d)&&(a._pt&&(a=pr(a,r)),a&&a.modifier&&a.modifier(t[r],e,n[i],r))},hr=function(e,t){return{name:e,headless:1,rawVars:1,init:function(e,n,r){r._onInit=function(e){var r,i;if(F(n)&&(r={},Re(n,function(e){return r[e]=1}),n=r),t){for(i in r={},n)r[i]=t(n[i]);n=r}mr(e,n)}}}},gr=fr.registerPlugin({name:`attr`,init:function(e,t,n,r,i){var a,o,s;for(a in this.tween=n,t)s=e.getAttribute(a)||``,o=this.add(e,`setAttribute`,(s||0)+``,t[a],r,i,0,0,a),o.op=a,o.b=s,this._props.push(a)},render:function(e,t){for(var n=t._pt;n;)T?n.set(n.t,n.p,n.b,n):n.r(e,n.d),n=n._next}},{name:`endArray`,headless:1,init:function(e,t){for(var n=t.length;n--;)this.add(e,n,e[n]||0,t[n],0,0,0,0,0,1)}},hr(`roundProps`,Lt),hr(`modifiers`),hr(`snap`,Rt))||fr;Hn.version=On.version=gr.version=`3.15.0`,_e=1,z()&&pn(),mn.Power0,mn.Power1,mn.Power2,mn.Power3,mn.Power4,mn.Linear,mn.Quad,mn.Cubic,mn.Quart,mn.Quint,mn.Strong,mn.Elastic,mn.Back,mn.SteppedEase,mn.Bounce,mn.Sine,mn.Expo,mn.Circ;var _r,vr,yr,br,xr,Sr,Cr,wr=function(){return typeof window<`u`},Tr={},Er=180/Math.PI,Dr=Math.PI/180,Or=Math.atan2,kr=1e8,Ar=/([A-Z])/g,jr=/(left|right|width|margin|padding|x)/i,Mr=/[\s,\(]\S/,Nr={autoAlpha:`opacity,visibility`,scale:`scaleX,scaleY`,alpha:`opacity`},Pr=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Fr=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Ir=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Lr=function(e,t){return t.set(t.t,t.p,e===1?t.e:e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Rr=function(e,t){var n=t.s+t.c*e;t.set(t.t,t.p,~~(n+(n<0?-.5:.5))+t.u,t)},zr=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Br=function(e,t){return t.set(t.t,t.p,e===1?t.e:t.b,t)},Vr=function(e,t,n){return e.style[t]=n},Hr=function(e,t,n){return e.style.setProperty(t,n)},Ur=function(e,t,n){return e._gsap[t]=n},Wr=function(e,t,n){return e._gsap.scaleX=e._gsap.scaleY=n},Gr=function(e,t,n,r,i){var a=e._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Kr=function(e,t,n,r,i){var a=e._gsap;a[t]=n,a.renderTransform(i,a)},qr=`transform`,Jr=qr+`Origin`,Yr=function e(t,n){var r=this,i=this.target,a=i.style,o=i._gsap;if(t in Tr&&a){if(this.tfm=this.tfm||{},t!==`transform`)t=Nr[t]||t,~t.indexOf(`,`)?t.split(`,`).forEach(function(e){return r.tfm[e]=mi(i,e)}):this.tfm[t]=o.x?o[t]:mi(i,t),t===Jr&&(this.tfm.zOrigin=o.zOrigin);else return Nr.transform.split(`,`).forEach(function(t){return e.call(r,t,n)});if(this.props.indexOf(qr)>=0)return;o.svg&&(this.svgo=i.getAttribute(`data-svg-origin`),this.props.push(Jr,n,``)),t=qr}(a||n)&&this.props.push(t,n,a[t])},Xr=function(e){e.translate&&(e.removeProperty(`translate`),e.removeProperty(`scale`),e.removeProperty(`rotate`))},Zr=function(){for(var e=this.props,t=this.target,n=t.style,r=t._gsap,i=0,a;i<e.length;i+=3)e[i+1]?e[i+1]===2?t[e[i]](e[i+2]):t[e[i]]=e[i+2]:e[i+2]?n[e[i]]=e[i+2]:n.removeProperty(e[i].substr(0,2)===`--`?e[i]:e[i].replace(Ar,`-$1`).toLowerCase());if(this.tfm){for(a in this.tfm)r[a]=this.tfm[a];r.svg&&(r.renderTransform(),t.setAttribute(`data-svg-origin`,this.svgo||``)),i=Cr(),(!i||!i.isStart)&&!n[qr]&&(Xr(n),r.zOrigin&&n[Jr]&&(n[Jr]+=` `+r.zOrigin+`px`,r.zOrigin=0,r.renderTransform()),r.uncache=1)}},Qr=function(e,t){var n={target:e,props:[],revert:Zr,save:Yr};return e._gsap||gr.core.getCache(e),t&&e.style&&e.nodeType&&t.split(`,`).forEach(function(e){return n.save(e)}),n},$r,ei=function(e,t){var n=vr.createElementNS?vr.createElementNS((t||`http://www.w3.org/1999/xhtml`).replace(/^https/,`http`),e):vr.createElement(e);return n&&n.style?n:vr.createElement(e)},ti=function e(t,n,r){var i=getComputedStyle(t);return i[n]||i.getPropertyValue(n.replace(Ar,`-$1`).toLowerCase())||i.getPropertyValue(n)||!r&&e(t,ri(n)||n,1)||``},ni=`O,Moz,ms,Ms,Webkit`.split(`,`),ri=function(e,t,n){var r=(t||xr).style,i=5;if(e in r&&!n)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);i--&&!(ni[i]+e in r););return i<0?null:(i===3?`ms`:i>=0?ni[i]:``)+e},ii=function(){wr()&&window.document&&(_r=window,vr=_r.document,yr=vr.documentElement,xr=ei(`div`)||{style:{}},ei(`div`),qr=ri(qr),Jr=qr+`Origin`,xr.style.cssText=`border-width:0;line-height:0;position:absolute;padding:0`,$r=!!ri(`perspective`),Cr=gr.core.reverting,br=1)},ai=function(e){var t=e.ownerSVGElement,n=ei(`svg`,t&&t.getAttribute(`xmlns`)||`http://www.w3.org/2000/svg`),r=e.cloneNode(!0),i;r.style.display=`block`,n.appendChild(r),yr.appendChild(n);try{i=r.getBBox()}catch{}return n.removeChild(r),yr.removeChild(n),i},oi=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},si=function(e){var t,n;try{t=e.getBBox()}catch{t=ai(e),n=1}return t&&(t.width||t.height)||n||(t=ai(e)),t&&!t.width&&!t.x&&!t.y?{x:+oi(e,[`x`,`cx`,`x1`])||0,y:+oi(e,[`y`,`cy`,`y1`])||0,width:0,height:0}:t},ci=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!si(e))},li=function(e,t){if(t){var n=e.style,r;t in Tr&&t!==Jr&&(t=qr),n.removeProperty?(r=t.substr(0,2),(r===`ms`||t.substr(0,6)===`webkit`)&&(t=`-`+t),n.removeProperty(r===`--`?t:t.replace(Ar,`-$1`).toLowerCase())):n.removeAttribute(t)}},ui=function(e,t,n,r,i,a){var o=new nr(e._pt,t,n,0,1,a?Br:zr);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},di={deg:1,rad:1,turn:1},fi={grid:1,flex:1},pi=function e(t,n,r,i){var a=parseFloat(r)||0,o=(r+``).trim().substr((a+``).length)||`px`,s=xr.style,c=jr.test(n),l=t.tagName.toLowerCase()===`svg`,u=(l?`client`:`offset`)+(c?`Width`:`Height`),d=100,f=i===`px`,p=i===`%`,m,h,g,_;if(i===o||!a||di[i]||di[o])return a;if(o!==`px`&&!f&&(a=e(t,n,r,`px`)),_=t.getCTM&&ci(t),(p||o===`%`)&&(Tr[n]||~n.indexOf(`adius`)))return m=_?t.getBBox()[c?`width`:`height`]:t[u],ze(p?a/m*d:a/100*m);if(s[c?`width`:`height`]=d+(f?o:i),h=i!==`rem`&&~n.indexOf(`adius`)||i===`em`&&t.appendChild&&!l?t:t.parentNode,_&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===vr||!h.appendChild)&&(h=vr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===fn.time&&!g.uncache)return ze(a/g.width*d);if(p&&(n===`height`||n===`width`)){var v=t.style[n];t.style[n]=d+i,m=t[u],v?t.style[n]=v:li(t,n)}else(p||o===`%`)&&!fi[ti(h,`display`)]&&(s.position=ti(t,`position`)),h===t&&(s.position=`static`),h.appendChild(xr),m=xr[u],h.removeChild(xr),s.position=`absolute`;return c&&p&&(g=Ie(h),g.time=fn.time,g.width=h[u]),ze(f?m*a/d:m&&a?d/m*a:0)},mi=function(e,t,n,r){var i;return br||ii(),t in Nr&&t!==`transform`&&(t=Nr[t],~t.indexOf(`,`)&&(t=t.split(`,`)[0])),Tr[t]&&t!==`transform`?(i=Ei(e,r),i=t===`transformOrigin`?i.svg?i.origin:Di(ti(e,Jr))+` `+i.zOrigin+`px`:i[t]):(i=e.style[t],(!i||i===`auto`||r||~(i+``).indexOf(`calc(`))&&(i=yi[t]&&yi[t](e,t,n)||ti(e,t)||Le(e,t)||+(t===`opacity`))),n&&!~(i+``).trim().indexOf(` `)?pi(e,t,i,n)+n:i},hi=function(e,t,n,r){if(!n||n===`none`){var i=ri(t,e,1),a=i&&ti(e,i,1);a&&a!==n?(t=i,n=a):t===`borderColor`&&(n=ti(e,`borderTopColor`))}var o=new nr(this._pt,e.style,t,0,1,Xn),s=0,c=0,l,u,d,f,p,m,h,g,_,v,y,b;if(o.b=n,o.e=r,n+=``,r+=``,r.substring(0,6)===`var(--`&&(r=ti(e,r.substring(4,r.indexOf(`)`)))),r===`auto`&&(m=e.style[t],e.style[t]=r,r=ti(e,t)||r,m?e.style[t]=m:li(e,t)),l=[n,r],un(l),n=l[0],r=l[1],d=n.match(le)||[],b=r.match(le)||[],b.length){for(;u=le.exec(r);)h=u[0],_=r.substring(s,u.index),p?p=(p+1)%5:(_.substr(-5)===`rgba(`||_.substr(-5)===`hsla(`)&&(p=1),h!==(m=d[c++]||``)&&(f=parseFloat(m)||0,y=m.substr((f+``).length),h.charAt(1)===`=`&&(h=Ve(f,h)+y),g=parseFloat(h),v=h.substr((g+``).length),s=le.lastIndex-v.length,v||(v=v||S.units[t]||y,s===r.length&&(r+=v,o.e+=v)),y!==v&&(f=pi(e,t,m,v)||0),o._pt={_next:o._pt,p:_||c===1?_:`,`,s:f,c:g-f,m:p&&p<4||t===`zIndex`?Math.round:0});o.c=s<r.length?r.substring(s,r.length):``}else o.r=t===`display`&&r===`none`?Br:zr;return V.test(r)&&(o.e=0),this._pt=o,o},gi={top:`0%`,bottom:`100%`,left:`0%`,right:`100%`,center:`50%`},_i=function(e){var t=e.split(` `),n=t[0],r=t[1]||`50%`;return(n===`top`||n===`bottom`||r===`left`||r===`right`)&&(e=n,n=r,r=e),t[0]=gi[n]||n,t[1]=gi[r]||r,t.join(` `)},vi=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var n=t.t,r=n.style,i=t.u,a=n._gsap,o,s,c;if(i===`all`||i===!0)r.cssText=``,s=1;else for(i=i.split(`,`),c=i.length;--c>-1;)o=i[c],Tr[o]&&(s=1,o=o===`transformOrigin`?Jr:qr),li(n,o);s&&(li(n,qr),a&&(a.svg&&n.removeAttribute(`transform`),r.scale=r.rotate=r.translate=`none`,Ei(n,1),a.uncache=1,Xr(r)))}},yi={clearProps:function(e,t,n,r,i){if(i.data!==`isFromStart`){var a=e._pt=new nr(e._pt,t,n,0,0,vi);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},bi=[1,0,0,1,0,0],xi={},Si=function(e){return e===`matrix(1, 0, 0, 1, 0, 0)`||e===`none`||!e},Ci=function(e){var t=ti(e,qr);return Si(t)?bi:t.substr(7).match(ce).map(ze)},wi=function(e,t){var n=e._gsap||Ie(e),r=e.style,i=Ci(e),a,o,s,c;return n.svg&&e.getAttribute(`transform`)?(s=e.transform.baseVal.consolidate().matrix,i=[s.a,s.b,s.c,s.d,s.e,s.f],i.join(`,`)===`1,0,0,1,0,0`?bi:i):(i===bi&&!e.offsetParent&&e!==yr&&!n.svg&&(s=r.display,r.display=`block`,a=e.parentNode,(!a||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,o=e.nextElementSibling,yr.appendChild(e)),i=Ci(e),s?r.display=s:li(e,`display`),c&&(o?a.insertBefore(e,o):a?a.appendChild(e):yr.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},Ti=function(e,t,n,r,i,a){var o=e._gsap,s=i||wi(e,!0),c=o.xOrigin||0,l=o.yOrigin||0,u=o.xOffset||0,d=o.yOffset||0,f=s[0],p=s[1],m=s[2],h=s[3],g=s[4],_=s[5],v=t.split(` `),y=parseFloat(v[0])||0,b=parseFloat(v[1])||0,x,S,C,w;n?s!==bi&&(S=f*h-p*m)&&(C=h/S*y+b*(-m/S)+(m*_-h*g)/S,w=y*(-p/S)+f/S*b-(f*_-p*g)/S,y=C,b=w):(x=si(e),y=x.x+(~v[0].indexOf(`%`)?y/100*x.width:y),b=x.y+(~(v[1]||v[0]).indexOf(`%`)?b/100*x.height:b)),r||r!==!1&&o.smooth?(g=y-c,_=b-l,o.xOffset=u+(g*f+_*m)-g,o.yOffset=d+(g*p+_*h)-_):o.xOffset=o.yOffset=0,o.xOrigin=y,o.yOrigin=b,o.smooth=!!r,o.origin=t,o.originIsAbsolute=!!n,e.style[Jr]=`0px 0px`,a&&(ui(a,o,`xOrigin`,c,y),ui(a,o,`yOrigin`,l,b),ui(a,o,`xOffset`,u,o.xOffset),ui(a,o,`yOffset`,d,o.yOffset)),e.setAttribute(`data-svg-origin`,y+` `+b)},Ei=function(e,t){var n=e._gsap||new En(e);if(`x`in n&&!t&&!n.uncache)return n;var r=e.style,i=n.scaleX<0,a=`px`,o=`deg`,s=getComputedStyle(e),c=ti(e,Jr)||`0`,l=u=d=m=h=g=_=v=y=0,u,d,f=p=1,p,m,h,g,_,v,y,b,x,C,w,T,E,D,O,k,A,j,M,N,P,F,I,L,ee,R,te,z;return n.svg=!!(e.getCTM&&ci(e)),s.translate&&((s.translate!==`none`||s.scale!==`none`||s.rotate!==`none`)&&(r[qr]=(s.translate===`none`?``:`translate3d(`+(s.translate+` 0 0`).split(` `).slice(0,3).join(`, `)+`) `)+(s.rotate===`none`?``:`rotate(`+s.rotate+`) `)+(s.scale===`none`?``:`scale(`+s.scale.split(` `).join(`,`)+`) `)+(s[qr]===`none`?``:s[qr])),r.scale=r.rotate=r.translate=`none`),C=wi(e,n.svg),n.svg&&(n.uncache?(P=e.getBBox(),c=n.xOrigin-P.x+`px `+(n.yOrigin-P.y)+`px`,N=``):N=!t&&e.getAttribute(`data-svg-origin`),Ti(e,N||c,!!N||n.originIsAbsolute,n.smooth!==!1,C)),b=n.xOrigin||0,x=n.yOrigin||0,C!==bi&&(D=C[0],O=C[1],k=C[2],A=C[3],l=j=C[4],u=M=C[5],C.length===6?(f=Math.sqrt(D*D+O*O),p=Math.sqrt(A*A+k*k),m=D||O?Or(O,D)*Er:0,_=k||A?Or(k,A)*Er+m:0,_&&(p*=Math.abs(Math.cos(_*Dr))),n.svg&&(l-=b-(b*D+x*k),u-=x-(b*O+x*A))):(z=C[6],R=C[7],I=C[8],L=C[9],ee=C[10],te=C[11],l=C[12],u=C[13],d=C[14],w=Or(z,ee),h=w*Er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=j*T+I*E,P=M*T+L*E,F=z*T+ee*E,I=j*-E+I*T,L=M*-E+L*T,ee=z*-E+ee*T,te=R*-E+te*T,j=N,M=P,z=F),w=Or(-k,ee),g=w*Er,w&&(T=Math.cos(-w),E=Math.sin(-w),N=D*T-I*E,P=O*T-L*E,F=k*T-ee*E,te=A*E+te*T,D=N,O=P,k=F),w=Or(O,D),m=w*Er,w&&(T=Math.cos(w),E=Math.sin(w),N=D*T+O*E,P=j*T+M*E,O=O*T-D*E,M=M*T-j*E,D=N,j=P),h&&Math.abs(h)+Math.abs(m)>359.9&&(h=m=0,g=180-g),f=ze(Math.sqrt(D*D+O*O+k*k)),p=ze(Math.sqrt(M*M+z*z)),w=Or(j,M),_=Math.abs(w)>2e-4?w*Er:0,y=te?1/(te<0?-te:te):0),n.svg&&(N=e.getAttribute(`transform`),n.forceCSS=e.setAttribute(`transform`,``)||!Si(ti(e,qr)),N&&e.setAttribute(`transform`,N))),Math.abs(_)>90&&Math.abs(_)<270&&(i?(f*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(p*=-1,_+=_<=0?180:-180)),t||=n.uncache,n.x=l-((n.xPercent=l&&(!t&&n.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-l)?-50:0)))?e.offsetWidth*n.xPercent/100:0)+a,n.y=u-((n.yPercent=u&&(!t&&n.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-u)?-50:0)))?e.offsetHeight*n.yPercent/100:0)+a,n.z=d+a,n.scaleX=ze(f),n.scaleY=ze(p),n.rotation=ze(m)+o,n.rotationX=ze(h)+o,n.rotationY=ze(g)+o,n.skewX=_+o,n.skewY=v+o,n.transformPerspective=y+a,(n.zOrigin=parseFloat(c.split(` `)[2])||!t&&n.zOrigin||0)&&(r[Jr]=Di(c)),n.xOffset=n.yOffset=0,n.force3D=S.force3D,n.renderTransform=n.svg?Pi:$r?Ni:ki,n.uncache=0,n},Di=function(e){return(e=e.split(` `))[0]+` `+e[1]},Oi=function(e,t,n){var r=Ot(t);return ze(parseFloat(t)+parseFloat(pi(e,`x`,n+`px`,r)))+r},ki=function(e,t){t.z=`0px`,t.rotationY=t.rotationX=`0deg`,t.force3D=0,Ni(e,t)},Ai=`0deg`,ji=`0px`,Mi=`) `,Ni=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,c=n.rotation,l=n.rotationY,u=n.rotationX,d=n.skewX,f=n.skewY,p=n.scaleX,m=n.scaleY,h=n.transformPerspective,g=n.force3D,_=n.target,v=n.zOrigin,y=``,b=g===`auto`&&e&&e!==1||g===!0;if(v&&(u!==Ai||l!==Ai)){var x=parseFloat(l)*Dr,S=Math.sin(x),C=Math.cos(x),w;x=parseFloat(u)*Dr,w=Math.cos(x),a=Oi(_,a,S*w*-v),o=Oi(_,o,-Math.sin(x)*-v),s=Oi(_,s,C*w*-v+v)}h!==ji&&(y+=`perspective(`+h+Mi),(r||i)&&(y+=`translate(`+r+`%, `+i+`%) `),(b||a!==ji||o!==ji||s!==ji)&&(y+=s!==ji||b?`translate3d(`+a+`, `+o+`, `+s+`) `:`translate(`+a+`, `+o+Mi),c!==Ai&&(y+=`rotate(`+c+Mi),l!==Ai&&(y+=`rotateY(`+l+Mi),u!==Ai&&(y+=`rotateX(`+u+Mi),(d!==Ai||f!==Ai)&&(y+=`skew(`+d+`, `+f+Mi),(p!==1||m!==1)&&(y+=`scale(`+p+`, `+m+Mi),_.style[qr]=y||`translate(0, 0)`},Pi=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.rotation,c=n.skewX,l=n.skewY,u=n.scaleX,d=n.scaleY,f=n.target,p=n.xOrigin,m=n.yOrigin,h=n.xOffset,g=n.yOffset,_=n.forceCSS,v=parseFloat(a),y=parseFloat(o),b,x,S,C,w;s=parseFloat(s),c=parseFloat(c),l=parseFloat(l),l&&(l=parseFloat(l),c+=l,s+=l),s||c?(s*=Dr,c*=Dr,b=Math.cos(s)*u,x=Math.sin(s)*u,S=Math.sin(s-c)*-d,C=Math.cos(s-c)*d,c&&(l*=Dr,w=Math.tan(c-l),w=Math.sqrt(1+w*w),S*=w,C*=w,l&&(w=Math.tan(l),w=Math.sqrt(1+w*w),b*=w,x*=w)),b=ze(b),x=ze(x),S=ze(S),C=ze(C)):(b=u,C=d,x=S=0),(v&&!~(a+``).indexOf(`px`)||y&&!~(o+``).indexOf(`px`))&&(v=pi(f,`x`,a,`px`),y=pi(f,`y`,o,`px`)),(p||m||h||g)&&(v=ze(v+p-(p*b+m*S)+h),y=ze(y+m-(p*x+m*C)+g)),(r||i)&&(w=f.getBBox(),v=ze(v+r/100*w.width),y=ze(y+i/100*w.height)),w=`matrix(`+b+`,`+x+`,`+S+`,`+C+`,`+v+`,`+y+`)`,f.setAttribute(`transform`,w),_&&(f.style[qr]=w)},Fi=function(e,t,n,r,i){var a=360,o=F(i),s=parseFloat(i)*(o&&~i.indexOf(`rad`)?Er:1)-r,c=r+s+`deg`,l,u;return o&&(l=i.split(`_`)[1],l===`short`&&(s%=a,s!==s%(a/2)&&(s+=s<0?a:-a)),l===`cw`&&s<0?s=(s+a*kr)%a-~~(s/a)*a:l===`ccw`&&s>0&&(s=(s-a*kr)%a-~~(s/a)*a)),e._pt=u=new nr(e._pt,t,n,r,s,Fr),u.e=c,u.u=`deg`,e._props.push(n),u},Ii=function(e,t){for(var n in t)e[n]=t[n];return e},Li=function(e,t,n){var r=Ii({},n._gsap),i=`perspective,force3D,transformOrigin,svgOrigin`,a=n.style,o,s,c,l,u,d,f,p;for(s in r.svg?(c=n.getAttribute(`transform`),n.setAttribute(`transform`,``),a[qr]=t,o=Ei(n,1),li(n,qr),n.setAttribute(`transform`,c)):(c=getComputedStyle(n)[qr],a[qr]=t,o=Ei(n,1),a[qr]=c),Tr)c=r[s],l=o[s],c!==l&&i.indexOf(s)<0&&(f=Ot(c),p=Ot(l),u=f===p?parseFloat(c):pi(n,s,c,p),d=parseFloat(l),e._pt=new nr(e._pt,o,s,u,d-u,Pr),e._pt.u=p||0,e._props.push(s));Ii(o,r)};Re(`padding,margin,Width,Radius`,function(e,t){var n=`Top`,r=`Right`,i=`Bottom`,a=`Left`,o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map(function(n){return t<2?e+n:`border`+n+e});yi[t>1?`border`+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map(function(t){return mi(e,t,n)}),s=a.join(` `),s.split(a[0]).length===5?a[0]:s;a=(r+``).split(` `),s={},o.forEach(function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]}),e.init(t,s,i)}});var Ri={name:`css`,register:ii,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a=this._props,o=e.style,s=n.vars.startAt,c,l,u,d,f,p,m,h,g,_,v,y,b,x,C,w,T;for(m in br||ii(),this.styles=this.styles||Qr(e),w=this.styles.props,this.tween=n,t)if(m!==`autoRound`&&(l=t[m],!(Ae[m]&&Mn(m,t,n,r,e,i)))){if(f=typeof l,p=yi[m],f===`function`&&(l=l.call(n,r,e,i),f=typeof l),f===`string`&&~l.indexOf(`random(`)&&(l=Kt(l)),p)p(this,e,m,l,n)&&(C=1);else if(m.substr(0,2)===`--`)c=(getComputedStyle(e).getPropertyValue(m)+``).trim(),l+=``,cn.lastIndex=0,cn.test(c)||(h=Ot(c),g=Ot(l),g?h!==g&&(c=pi(e,m,c,g)+g):h&&(l+=h)),this.add(o,`setProperty`,c,l,r,i,0,0,m),a.push(m),w.push(m,0,o[m]);else if(f!==`undefined`){if(s&&m in s?(c=typeof s[m]==`function`?s[m].call(n,r,e,i):s[m],F(c)&&~c.indexOf(`random(`)&&(c=Kt(c)),Ot(c+``)||c===`auto`||(c+=S.units[m]||Ot(mi(e,m))||``),(c+``).charAt(1)===`=`&&(c=mi(e,m))):c=mi(e,m),d=parseFloat(c),_=f===`string`&&l.charAt(1)===`=`&&l.substr(0,2),_&&(l=l.substr(2)),u=parseFloat(l),m in Nr&&(m===`autoAlpha`&&(d===1&&mi(e,`visibility`)===`hidden`&&u&&(d=0),w.push(`visibility`,0,o.visibility),ui(this,o,`visibility`,d?`inherit`:`hidden`,u?`inherit`:`hidden`,!u)),m!==`scale`&&m!==`transform`&&(m=Nr[m],~m.indexOf(`,`)&&(m=m.split(`,`)[0]))),v=m in Tr,v){if(this.styles.save(m),T=l,f===`string`&&l.substring(0,6)===`var(--`){if(l=ti(e,l.substring(4,l.indexOf(`)`))),l.substring(0,5)===`calc(`){var E=e.style.perspective;e.style.perspective=l,l=ti(e,`perspective`),E?e.style.perspective=E:li(e,`perspective`)}u=parseFloat(l)}if(y||(b=e._gsap,b.renderTransform&&!t.parseTransform||Ei(e,t.parseTransform),x=t.smoothOrigin!==!1&&b.smooth,y=this._pt=new nr(this._pt,o,qr,0,1,b.renderTransform,b,0,-1),y.dep=1),m===`scale`)this._pt=new nr(this._pt,b,`scaleY`,b.scaleY,(_?Ve(b.scaleY,_+u):u)-b.scaleY||0,Pr),this._pt.u=0,a.push(`scaleY`,m),m+=`X`;else if(m===`transformOrigin`){w.push(Jr,0,o[Jr]),l=_i(l),b.svg?Ti(e,l,0,x,0,this):(g=parseFloat(l.split(` `)[2])||0,g!==b.zOrigin&&ui(this,b,`zOrigin`,b.zOrigin,g),ui(this,o,m,Di(c),Di(l)));continue}else if(m===`svgOrigin`){Ti(e,l,1,x,0,this);continue}else if(m in xi){Fi(this,b,m,d,_?Ve(d,_+l):l);continue}else if(m===`smoothOrigin`){ui(this,b,`smooth`,b.smooth,l);continue}else if(m===`force3D`){b[m]=l;continue}else if(m===`transform`){Li(this,l,e);continue}}else m in o||(m=ri(m)||m);if(v||(u||u===0)&&(d||d===0)&&!Mr.test(l)&&m in o)h=(c+``).substr((d+``).length),u||=0,g=Ot(l)||(m in S.units?S.units[m]:h),h!==g&&(d=pi(e,m,c,g)),this._pt=new nr(this._pt,v?b:o,m,d,(_?Ve(d,_+u):u)-d,!v&&(g===`px`||m===`zIndex`)&&t.autoRound!==!1?Rr:Pr),this._pt.u=g||0,v&&T!==l?(this._pt.b=c,this._pt.e=T,this._pt.r=Lr):h!==g&&g!==`%`&&(this._pt.b=c,this._pt.r=Ir);else if(m in o)hi.call(this,e,m,c,_?_+l:l);else if(m in e)this.add(e,m,c||e[m],_?_+l:l,r,i);else if(m!==`parseTransform`){ye(m,l);continue}v||(m in o?w.push(m,0,o[m]):typeof e[m]==`function`?w.push(m,2,e[m]()):w.push(m,1,c||e[m])),a.push(m)}}C&&tr(this)},render:function(e,t){if(t.tween._time||!Cr())for(var n=t._pt;n;)n.r(e,n.d),n=n._next;else t.styles.revert()},get:mi,aliases:Nr,getSetter:function(e,t,n){var r=Nr[t];return r&&r.indexOf(`,`)<0&&(t=r),t in Tr&&t!==Jr&&(e._gsap.x||mi(e,`x`))?n&&Sr===n?t===`scale`?Wr:Ur:(Sr=n||{})&&(t===`scale`?Gr:Kr):e.style&&!ee(e.style[t])?Vr:~t.indexOf(`-`)?Hr:qn(e,t)},core:{_removeProperty:li,_getMatrix:wi}};gr.utils.checkPrefix=ri,gr.core.getStyleSaver=Qr,(function(e,t,n,r){var i=Re(e+`,`+t+`,`+n,function(e){Tr[e]=1});Re(t,function(e){S.units[e]=`deg`,xi[e]=1}),Nr[i[13]]=e+`,`+t,Re(r,function(e){var t=e.split(`:`);Nr[t[1]]=i[t[0]]})})(`x,y,z,scale,scaleX,scaleY,xPercent,yPercent`,`rotation,rotationX,rotationY,skewX,skewY`,`transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective`,`0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY`),Re(`x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective`,function(e){S.units[e]=`px`}),gr.registerPlugin(Ri);var zi=gr.registerPlugin(Ri)||gr;zi.core.Tween;function Bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vi(e,t,n){return t&&Bi(e.prototype,t),n&&Bi(e,n),e}var Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta=function(){return Hi||typeof window<`u`&&(Hi=window.gsap)&&Hi.registerPlugin&&Hi},na=1,ra=[],ia=[],aa=[],oa=Date.now,sa=function(e,t){return t},ca=function(){var e=Xi.core,t=e.bridge||{},n=e._scrollers,r=e._proxies;n.push.apply(n,ia),r.push.apply(r,aa),ia=n,aa=r,sa=function(e,n){return t[e](n)}},la=function(e,t){return~aa.indexOf(e)&&aa[aa.indexOf(e)+1][t]},ua=function(e){return!!~Zi.indexOf(e)},da=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:r!==!1,capture:!!i})},fa=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},pa=`scrollLeft`,ma=`scrollTop`,ha=function(){return Qi&&Qi.isPressed||ia.cache++},ga=function(e,t){var n=function n(r){if(r||r===0){na&&(Wi.history.scrollRestoration=`manual`);var i=Qi&&Qi.isPressed;r=n.v=Math.round(r)||(Qi&&Qi.iOS?1:0),e(r),n.cacheID=ia.cache,i&&sa(`ss`,r)}else(t||ia.cache!==n.cacheID||sa(`ref`))&&(n.cacheID=ia.cache,n.v=e());return n.v+n.offset};return n.offset=0,e&&n},_a={s:pa,p:`left`,p2:`Left`,os:`right`,os2:`Right`,d:`width`,d2:`Width`,a:`x`,sc:ga(function(e){return arguments.length?Wi.scrollTo(e,va.sc()):Wi.pageXOffset||Gi[pa]||Ki[pa]||qi[pa]||0})},va={s:ma,p:`top`,p2:`Top`,os:`bottom`,os2:`Bottom`,d:`height`,d2:`Height`,a:`y`,op:_a,sc:ga(function(e){return arguments.length?Wi.scrollTo(_a.sc(),e):Wi.pageYOffset||Gi[ma]||Ki[ma]||qi[ma]||0})},ya=function(e,t){return(t&&t._ctx&&t._ctx.selector||Hi.utils.toArray)(e)[0]||(typeof e==`string`&&Hi.config().nullTargetWarn!==!1?console.warn(`Element not found:`,e):null)},ba=function(e,t){for(var n=t.length;n--;)if(t[n]===e||t[n].contains(e))return!0;return!1},xa=function(e,t){var n=t.s,r=t.sc;ua(e)&&(e=Gi.scrollingElement||Ki);var i=ia.indexOf(e),a=r===va.sc?1:2;!~i&&(i=ia.push(e)-1),ia[i+a]||da(e,`scroll`,ha);var o=ia[i+a],s=o||(ia[i+a]=ga(la(e,n),!0)||(ua(e)?r:ga(function(t){return arguments.length?e[n]=t:e[n]})));return s.target=e,o||(s.smooth=Hi.getProperty(e,`scrollBehavior`)===`smooth`),s},Sa=function(e,t,n){var r=e,i=e,a=oa(),o=a,s=t||50,c=Math.max(500,s*3),l=function(e,t){var c=oa();t||c-a>s?(i=r,r=e,o=a,a=c):n?r+=e:r=i+(e-i)/(c-o)*(a-o)};return{update:l,reset:function(){i=r=n?0:r,o=a=0},getVelocity:function(e){var t=o,s=i,u=oa();return(e||e===0)&&e!==r&&l(e),a===o||u-o>c?0:(r+(n?s:-s))/((n?u:a)-t)*1e3}}},Ca=function(e,t){return t&&!e._gsapAllow&&e.cancelable!==!1&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},wa=function(e){var t=Math.max.apply(Math,e),n=Math.min.apply(Math,e);return Math.abs(t)>=Math.abs(n)?t:n},Ta=function(){Xi=Hi.core.globals().ScrollTrigger,Xi&&Xi.core&&ca()},Ea=function(e){return Hi=e||ta(),!Ui&&Hi&&typeof document<`u`&&document.body&&(Wi=window,Gi=document,Ki=Gi.documentElement,qi=Gi.body,Zi=[Wi,Gi,Ki,qi],Hi.utils.clamp,ea=Hi.core.context||function(){},Yi=`onpointerenter`in qi?`pointer`:`mouse`,Ji=Da.isTouch=Wi.matchMedia&&Wi.matchMedia(`(hover: none), (pointer: coarse)`).matches?1:`ontouchstart`in Wi||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,$i=Da.eventTypes=(`ontouchstart`in Ki?`touchstart,touchmove,touchcancel,touchend`:`onpointerdown`in Ki?`pointerdown,pointermove,pointercancel,pointerup`:`mousedown,mousemove,mouseup,mouseup`).split(`,`),setTimeout(function(){return na=0},500),Ui=1),Xi||Ta(),Ui};_a.op=va,ia.cache=0;var Da=function(){function e(e){this.init(e)}var t=e.prototype;return t.init=function(e){Ui||Ea(Hi)||console.warn(`Please gsap.registerPlugin(Observer)`),Xi||Ta();var t=e.tolerance,n=e.dragMinimum,r=e.type,i=e.target,a=e.lineHeight,o=e.debounce,s=e.preventDefault,c=e.onStop,l=e.onStopDelay,u=e.ignore,d=e.wheelSpeed,f=e.event,p=e.onDragStart,m=e.onDragEnd,h=e.onDrag,g=e.onPress,_=e.onRelease,v=e.onRight,y=e.onLeft,b=e.onUp,x=e.onDown,S=e.onChangeX,C=e.onChangeY,w=e.onChange,T=e.onToggleX,E=e.onToggleY,D=e.onHover,O=e.onHoverEnd,k=e.onMove,A=e.ignoreCheck,j=e.isNormalizer,M=e.onGestureStart,N=e.onGestureEnd,P=e.onWheel,F=e.onEnable,I=e.onDisable,L=e.onClick,ee=e.scrollSpeed,R=e.capture,te=e.allowClicks,z=e.lockAxis,ne=e.onLockAxis;this.target=i=ya(i)||Ki,this.vars=e,u&&=Hi.utils.toArray(u),t||=1e-9,n||=0,d||=1,ee||=1,r||=`wheel,touch,pointer`,o=o!==!1,a||=parseFloat(Wi.getComputedStyle(qi).lineHeight)||22;var re,ie,ae,oe,se,ce,le,B=this,V=0,ue=0,de=e.passive||!s&&e.passive!==!1,H=xa(i,_a),fe=xa(i,va),pe=H(),me=fe(),he=~r.indexOf(`touch`)&&!~r.indexOf(`pointer`)&&$i[0]===`pointerdown`,ge=ua(i),_e=i.ownerDocument||Gi,ve=[0,0,0],ye=[0,0,0],be=0,xe=function(){return be=oa()},Se=function(e,t){return(B.event=e)&&u&&ba(e.target,u)||t&&he&&e.pointerType!==`touch`||A&&A(e,t)},Ce=function(){B._vx.reset(),B._vy.reset(),ie.pause(),c&&c(B)},we=function(){var e=B.deltaX=wa(ve),n=B.deltaY=wa(ye),r=Math.abs(e)>=t,i=Math.abs(n)>=t;w&&(r||i)&&w(B,e,n,ve,ye),r&&(v&&B.deltaX>0&&v(B),y&&B.deltaX<0&&y(B),S&&S(B),T&&B.deltaX<0!=V<0&&T(B),V=B.deltaX,ve[0]=ve[1]=ve[2]=0),i&&(x&&B.deltaY>0&&x(B),b&&B.deltaY<0&&b(B),C&&C(B),E&&B.deltaY<0!=ue<0&&E(B),ue=B.deltaY,ye[0]=ye[1]=ye[2]=0),(oe||ae)&&(k&&k(B),ae&&=(p&&ae===1&&p(B),h&&h(B),0),oe=!1),ce&&!(ce=!1)&&ne&&ne(B),se&&=(P(B),!1),re=0},Te=function(e,t,n){ve[n]+=e,ye[n]+=t,B._vx.update(e),B._vy.update(t),o?re||=requestAnimationFrame(we):we()},Ee=function(e,t){z&&!le&&(B.axis=le=Math.abs(e)>Math.abs(t)?`x`:`y`,ce=!0),le!==`y`&&(ve[2]+=e,B._vx.update(e,!0)),le!==`x`&&(ye[2]+=t,B._vy.update(t,!0)),o?re||=requestAnimationFrame(we):we()},De=function(e){if(!Se(e,1)){e=Ca(e,s);var t=e.clientX,r=e.clientY,i=t-B.x,a=r-B.y,o=B.isDragging;B.x=t,B.y=r,(o||(i||a)&&(Math.abs(B.startX-t)>=n||Math.abs(B.startY-r)>=n))&&(ae||=o?2:1,o||(B.isDragging=!0),Ee(i,a))}},Oe=B.onPress=function(e){Se(e,1)||e&&e.button||(B.axis=le=null,ie.pause(),B.isPressed=!0,e=Ca(e),V=ue=0,B.startX=B.x=e.clientX,B.startY=B.y=e.clientY,B._vx.reset(),B._vy.reset(),da(j?i:_e,$i[1],De,de,!0),B.deltaX=B.deltaY=0,g&&g(B))},ke=B.onRelease=function(e){if(!Se(e,1)){fa(j?i:_e,$i[1],De,!0);var t=!isNaN(B.y-B.startY),n=B.isDragging,r=n&&(Math.abs(B.x-B.startX)>3||Math.abs(B.y-B.startY)>3),a=Ca(e);!r&&t&&(B._vx.reset(),B._vy.reset(),s&&te&&Hi.delayedCall(.08,function(){if(oa()-be>300&&!e.defaultPrevented){if(e.target.click)e.target.click();else if(_e.createEvent){var t=_e.createEvent(`MouseEvents`);t.initMouseEvent(`click`,!0,!0,Wi,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(t)}}})),B.isDragging=B.isGesturing=B.isPressed=!1,c&&n&&!j&&ie.restart(!0),ae&&we(),m&&n&&m(B),_&&_(B,r)}},Ae=function(e){return e.touches&&e.touches.length>1&&(B.isGesturing=!0)&&M(e,B.isDragging)},je=function(){return(B.isGesturing=!1)||N(B)},Me=function(e){if(!Se(e)){var t=H(),n=fe();Te((t-pe)*ee,(n-me)*ee,1),pe=t,me=n,c&&ie.restart(!0)}},Ne=function(e){if(!Se(e)){e=Ca(e,s),P&&(se=!0);var t=(e.deltaMode===1?a:e.deltaMode===2?Wi.innerHeight:1)*d;Te(e.deltaX*t,e.deltaY*t,0),c&&!j&&ie.restart(!0)}},Pe=function(e){if(!Se(e)){var t=e.clientX,n=e.clientY,r=t-B.x,i=n-B.y;B.x=t,B.y=n,oe=!0,c&&ie.restart(!0),(r||i)&&Ee(r,i)}},Fe=function(e){B.event=e,D(B)},Ie=function(e){B.event=e,O(B)},Le=function(e){return Se(e)||Ca(e,s)&&L(B)};ie=B._dc=Hi.delayedCall(l||.25,Ce).pause(),B.deltaX=B.deltaY=0,B._vx=Sa(0,50,!0),B._vy=Sa(0,50,!0),B.scrollX=H,B.scrollY=fe,B.isDragging=B.isGesturing=B.isPressed=!1,ea(this),B.enable=function(e){return B.isEnabled||(da(ge?_e:i,`scroll`,ha),r.indexOf(`scroll`)>=0&&da(ge?_e:i,`scroll`,Me,de,R),r.indexOf(`wheel`)>=0&&da(i,`wheel`,Ne,de,R),(r.indexOf(`touch`)>=0&&Ji||r.indexOf(`pointer`)>=0)&&(da(i,$i[0],Oe,de,R),da(_e,$i[2],ke),da(_e,$i[3],ke),te&&da(i,`click`,xe,!0,!0),L&&da(i,`click`,Le),M&&da(_e,`gesturestart`,Ae),N&&da(_e,`gestureend`,je),D&&da(i,Yi+`enter`,Fe),O&&da(i,Yi+`leave`,Ie),k&&da(i,Yi+`move`,Pe)),B.isEnabled=!0,B.isDragging=B.isGesturing=B.isPressed=oe=ae=!1,B._vx.reset(),B._vy.reset(),pe=H(),me=fe(),e&&e.type&&Oe(e),F&&F(B)),B},B.disable=function(){B.isEnabled&&(ra.filter(function(e){return e!==B&&ua(e.target)}).length||fa(ge?_e:i,`scroll`,ha),B.isPressed&&(B._vx.reset(),B._vy.reset(),fa(j?i:_e,$i[1],De,!0)),fa(ge?_e:i,`scroll`,Me,R),fa(i,`wheel`,Ne,R),fa(i,$i[0],Oe,R),fa(_e,$i[2],ke),fa(_e,$i[3],ke),fa(i,`click`,xe,!0),fa(i,`click`,Le),fa(_e,`gesturestart`,Ae),fa(_e,`gestureend`,je),fa(i,Yi+`enter`,Fe),fa(i,Yi+`leave`,Ie),fa(i,Yi+`move`,Pe),B.isEnabled=B.isPressed=B.isDragging=!1,I&&I(B))},B.kill=B.revert=function(){B.disable();var e=ra.indexOf(B);e>=0&&ra.splice(e,1),Qi===B&&(Qi=0)},ra.push(B),j&&ua(i)&&(Qi=B),B.enable(f)},Vi(e,[{key:`velocityX`,get:function(){return this._vx.getVelocity()}},{key:`velocityY`,get:function(){return this._vy.getVelocity()}}]),e}();Da.version=`3.15.0`,Da.create=function(e){return new Da(e)},Da.register=Ea,Da.getAll=function(){return ra.slice()},Da.getById=function(e){return ra.filter(function(t){return t.vars.id===e})[0]},ta()&&Hi.registerPlugin(Da);var Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co=1,lo=Date.now,uo=lo(),fo=0,po=0,mo=function(e,t,n){var r=Ao(e)&&(e.substr(0,6)===`clamp(`||e.indexOf(`max`)>-1);return n[`_`+t+`Clamp`]=r,r?e.substr(6,e.length-7):e},ho=function(e,t){return t&&(!Ao(e)||e.substr(0,6)!==`clamp(`)?`clamp(`+e+`)`:e},go=function e(){return po&&requestAnimationFrame(e)},_o=function(){return Va=1},vo=function(){return Va=0},yo=function(e){return e},bo=function(e){return Math.round(e*1e5)/1e5||0},xo=function(){return typeof window<`u`},So=function(){return Oa||xo()&&(Oa=window.gsap)&&Oa.registerPlugin&&Oa},Co=function(e){return!!~Pa.indexOf(e)},wo=function(e){return(e===`Height`?io:Aa[`inner`+e])||Ma[`client`+e]||Na[`client`+e]},To=function(e){return la(e,`getBoundingClientRect`)||(Co(e)?function(){return Qs.width=Aa.innerWidth,Qs.height=io,Qs}:function(){return ts(e)})},Eo=function(e,t,n){var r=n.d,i=n.d2,a=n.a;return(a=la(e,`getBoundingClientRect`))?function(){return a()[r]}:function(){return(t?wo(i):e[`client`+i])||0}},Do=function(e,t){return!t||~aa.indexOf(e)?To(e):function(){return Qs}},Oo=function(e,t){var n=t.s,r=t.d2,i=t.d,a=t.a;return Math.max(0,(n=`scroll`+r)&&(a=la(e,n))?a()-To(e)()[i]:Co(e)?(Ma[n]||Na[n])-wo(r):e[n]-e[`offset`+r])},ko=function(e,t){for(var n=0;n<Ka.length;n+=3)(!t||~t.indexOf(Ka[n+1]))&&e(Ka[n],Ka[n+1],Ka[n+2])},Ao=function(e){return typeof e==`string`},jo=function(e){return typeof e==`function`},Mo=function(e){return typeof e==`number`},No=function(e){return typeof e==`object`},Po=function(e,t,n){return e&&e.progress(+!t)&&n&&e.pause()},Fo=function(e,t,n){if(e.enabled){var r=e._ctx?e._ctx.add(function(){return t(e,n)}):t(e,n);r&&r.totalTime&&(e.callbackAnimation=r)}},Io=Math.abs,Lo=`left`,Ro=`top`,zo=`right`,Bo=`bottom`,Vo=`width`,Ho=`height`,Uo=`Right`,Wo=`Left`,Go=`Top`,Ko=`Bottom`,qo=`padding`,Jo=`margin`,Yo=`Width`,Xo=`Height`,Zo=`px`,Qo=function(e){return Aa.getComputedStyle(e.nodeType===Node.DOCUMENT_NODE?e.scrollingElement:e)},$o=function(e){var t=Qo(e).position;e.style.position=t===`absolute`||t===`fixed`?t:`relative`},es=function(e,t){for(var n in t)n in e||(e[n]=t[n]);return e},ts=function(e,t){var n=t&&Qo(e)[Ha]!==`matrix(1, 0, 0, 1, 0, 0)`&&Oa.to(e,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=e.getBoundingClientRect?e.getBoundingClientRect():e.scrollingElement.getBoundingClientRect();return n&&n.progress(0).kill(),r},ns=function(e,t){var n=t.d2;return e[`offset`+n]||e[`client`+n]||0},rs=function(e){var t=[],n=e.labels,r=e.duration(),i;for(i in n)t.push(n[i]/r);return t},is=function(e){return function(t){return Oa.utils.snap(rs(e),t)}},as=function(e){var t=Oa.utils.snap(e),n=Array.isArray(e)&&e.slice(0).sort(function(e,t){return e-t});return n?function(e,r,i){i===void 0&&(i=.001);var a;if(!r)return t(e);if(r>0){for(e-=i,a=0;a<n.length;a++)if(n[a]>=e)return n[a];return n[a-1]}for(a=n.length,e+=i;a--;)if(n[a]<=e)return n[a];return n[0]}:function(n,r,i){i===void 0&&(i=.001);var a=t(n);return!r||Math.abs(a-n)<i||a-n<0==r<0?a:t(r<0?n-e:n+e)}},os=function(e){return function(t,n){return as(rs(e))(t,n.direction)}},ss=function(e,t,n,r){return n.split(`,`).forEach(function(n){return e(t,n,r)})},cs=function(e,t,n,r,i){return e.addEventListener(t,n,{passive:!r,capture:!!i})},ls=function(e,t,n,r){return e.removeEventListener(t,n,!!r)},us=function(e,t,n){n&&=n.wheelHandler,n&&(e(t,`wheel`,n),e(t,`touchmove`,n))},ds={startColor:`green`,endColor:`red`,indent:0,fontSize:`16px`,fontWeight:`normal`},fs={toggleActions:`play`,anticipatePin:0},ps={top:0,left:0,center:.5,bottom:1,right:1},ms=function(e,t){if(Ao(e)){var n=e.indexOf(`=`),r=~n?+(e.charAt(n-1)+1)*parseFloat(e.substr(n+1)):0;~n&&(e.indexOf(`%`)>n&&(r*=t/100),e=e.substr(0,n-1)),e=r+(e in ps?ps[e]*t:~e.indexOf(`%`)?parseFloat(e)*t/100:parseFloat(e)||0)}return e},hs=function(e,t,n,r,i,a,o,s){var c=i.startColor,l=i.endColor,u=i.fontSize,d=i.indent,f=i.fontWeight,p=ja.createElement(`div`),m=Co(n)||la(n,`pinType`)===`fixed`,h=e.indexOf(`scroller`)!==-1,g=m?Na:n.tagName===`IFRAME`?n.contentDocument.body:n,_=e.indexOf(`start`)!==-1,v=_?c:l,y=`border-color:`+v+`;font-size:`+u+`;color:`+v+`;font-weight:`+f+`;pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;`;return y+=`position:`+((h||s)&&m?`fixed;`:`absolute;`),(h||s||!m)&&(y+=(r===va?zo:Bo)+`:`+(a+parseFloat(d))+`px;`),o&&(y+=`box-sizing:border-box;text-align:left;width:`+o.offsetWidth+`px;`),p._isStart=_,p.setAttribute(`class`,`gsap-marker-`+e+(t?` marker-`+t:``)),p.style.cssText=y,p.innerText=t||t===0?e+`-`+t:e,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p[`offset`+r.op.d2],gs(p,0,r,_),p},gs=function(e,t,n,r){var i={display:`block`},a=n[r?`os2`:`p2`],o=n[r?`p2`:`os2`];e._isFlipped=r,i[n.a+`Percent`]=r?-100:0,i[n.a]=r?`1px`:0,i[`border`+a+Yo]=1,i[`border`+o+Yo]=0,i[n.p]=t+`px`,Oa.set(e,i)},_s=[],vs={},ys,bs=function(){return lo()-fo>34&&(ys||=requestAnimationFrame(Us))},xs=function(){(!Xa||!Xa.isPressed||Xa.startX>Na.clientWidth)&&(ia.cache++,Xa?ys||=requestAnimationFrame(Us):Us(),fo||Ds(`scrollStart`),fo=lo())},Ss=function(){$a=Aa.innerWidth,Qa=Aa.innerHeight},Cs=function(e){ia.cache++,(e===!0||!Ba&&!Ya&&!ja.fullscreenElement&&!ja.webkitFullscreenElement&&(!Za||$a!==Aa.innerWidth||Math.abs(Aa.innerHeight-Qa)>Aa.innerHeight*.25))&&Fa.restart(!0)},ws={},Ts=[],Es=function e(){return ls(ac,`scrollEnd`,e)||zs(!0)},Ds=function(e){return ws[e]&&ws[e].map(function(e){return e()})||Ts},Os=[],ks=function(e){for(var t=0;t<Os.length;t+=5)(!e||Os[t+4]&&Os[t+4].query===e)&&(Os[t].style.cssText=Os[t+1],Os[t].getBBox&&Os[t].setAttribute(`transform`,Os[t+2]||``),Os[t+3].uncache=1)},As=function(){return ia.forEach(function(e){return jo(e)&&++e.cacheID&&(e.rec=e())})},js=function(e,t){var n;for(Ua=0;Ua<_s.length;Ua++)n=_s[Ua],n&&(!t||n._ctx===t)&&(e?n.kill(1):n.revert(!0,!0));ao=!0,t&&ks(t),t||Ds(`revert`)},Ms=function(e,t){ia.cache++,(t||!Ns)&&ia.forEach(function(e){return jo(e)&&e.cacheID++&&(e.rec=0)}),Ao(e)&&(Aa.history.scrollRestoration=no=e)},Ns,Ps=0,Fs,Is=function(){if(Fs!==Ps){var e=Fs=Ps;requestAnimationFrame(function(){return e===Ps&&zs(!0)})}},Ls=function(){Na.appendChild(ro),io=!Xa&&ro.offsetHeight||Aa.innerHeight,Na.removeChild(ro)},Rs=function(e){return Ia(`.gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end`).forEach(function(t){return t.style.display=e?`none`:`block`})},zs=function(e,t){if(Ma=ja.documentElement,Na=ja.body,Pa=[Aa,ja,Ma,Na],fo&&!e&&!ao){cs(ac,`scrollEnd`,Es);return}Ls(),Ns=ac.isRefreshing=!0,ao||As();var n=Ds(`refreshInit`);qa&&ac.sort(),t||js(),ia.forEach(function(e){jo(e)&&(e.smooth&&(e.target.style.scrollBehavior=`auto`),e(0))}),_s.slice(0).forEach(function(e){return e.refresh()}),ao=!1,_s.forEach(function(e){if(e._subPinOffset&&e.pin){var t=e.vars.horizontal?`offsetWidth`:`offsetHeight`,n=e.pin[t];e.revert(!0,1),e.adjustPinSpacing(e.pin[t]-n),e.refresh()}}),oo=1,Rs(!0),_s.forEach(function(e){var t=Oo(e.scroller,e._dir),n=e.vars.end===`max`||e._endClamp&&e.end>t,r=e._startClamp&&e.start>=t;(n||r)&&e.setPositions(r?t-1:e.start,n?Math.max(r?t:e.start+1,t):e.end,!0)}),Rs(!1),oo=0,n.forEach(function(e){return e&&e.render&&e.render(-1)}),ia.forEach(function(e){jo(e)&&(e.smooth&&requestAnimationFrame(function(){return e.target.style.scrollBehavior=`smooth`}),e.rec&&e(e.rec))}),Ms(no,1),Fa.pause(),Ps++,Ns=2,Us(2),_s.forEach(function(e){return jo(e.vars.onRefresh)&&e.vars.onRefresh(e)}),Ns=ac.isRefreshing=!1,Ds(`refresh`)},Bs=0,Vs=1,Hs,Us=function(e){if(e===2||!Ns&&!ao){ac.isUpdating=!0,Hs&&Hs.update(0);var t=_s.length,n=lo(),r=n-uo>=50,i=t&&_s[0].scroll();if(Vs=Bs>i?-1:1,Ns||(Bs=i),r&&(fo&&!Va&&n-fo>200&&(fo=0,Ds(`scrollEnd`)),Ra=uo,uo=n),Vs<0){for(Ua=t;Ua-->0;)_s[Ua]&&_s[Ua].update(0,r);Vs=1}else for(Ua=0;Ua<t;Ua++)_s[Ua]&&_s[Ua].update(0,r);ac.isUpdating=!1}ys=0},Ws=[Lo,Ro,Bo,zo,Jo+Ko,Jo+Uo,Jo+Go,Jo+Wo,`display`,`flexShrink`,`float`,`zIndex`,`gridColumnStart`,`gridColumnEnd`,`gridRowStart`,`gridRowEnd`,`gridArea`,`justifySelf`,`alignSelf`,`placeSelf`,`order`],Gs=Ws.concat([Vo,Ho,`boxSizing`,`max`+Yo,`max`+Xo,`position`,Jo,qo,qo+Go,qo+Uo,qo+Ko,qo+Wo]),Ks=function(e,t,n){Ys(n);var r=e._gsap;if(r.spacerIsNative)Ys(r.spacerState);else if(e._gsap.swappedIn){var i=t.parentNode;i&&(i.insertBefore(e,t),i.removeChild(t))}e._gsap.swappedIn=!1},qs=function(e,t,n,r){if(!e._gsap.swappedIn){for(var i=Ws.length,a=t.style,o=e.style,s;i--;)s=Ws[i],a[s]=n[s];a.position=n.position===`absolute`?`absolute`:`relative`,n.display===`inline`&&(a.display=`inline-block`),o[Bo]=o[zo]=`auto`,a.flexBasis=n.flexBasis||`auto`,a.overflow=`visible`,a.boxSizing=`border-box`,a[Vo]=ns(e,_a)+Zo,a[Ho]=ns(e,va)+Zo,a[qo]=o[Jo]=o[Ro]=o[Lo]=`0`,Ys(r),o[Vo]=o[`max`+Yo]=n[Vo],o[Ho]=o[`max`+Xo]=n[Ho],o[qo]=n[qo],e.parentNode!==t&&(e.parentNode.insertBefore(t,e),t.appendChild(e)),e._gsap.swappedIn=!0}},Js=/([A-Z])/g,Ys=function(e){if(e){var t=e.t.style,n=e.length,r=0,i,a;for((e.t._gsap||Oa.core.getCache(e.t)).uncache=1;r<n;r+=2)a=e[r+1],i=e[r],a?t[i]=a:t[i]&&t.removeProperty(i.replace(Js,`-$1`).toLowerCase())}},Xs=function(e){for(var t=Gs.length,n=e.style,r=[],i=0;i<t;i++)r.push(Gs[i],n[Gs[i]]);return r.t=e,r},Zs=function(e,t,n){for(var r=[],i=e.length,a=n?8:0,o;a<i;a+=2)o=e[a],r.push(o,o in t?t[o]:e[a+1]);return r.t=e.t,r},Qs={left:0,top:0},$s=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p){jo(e)&&(e=e(s)),Ao(e)&&e.substr(0,3)===`max`&&(e=d+(e.charAt(4)===`=`?ms(`0`+e.substr(3),n):0));var m=f?f.time():0,h,g,_;if(f&&f.seek(0),isNaN(e)||(e=+e),Mo(e))f&&(e=Oa.utils.mapRange(f.scrollTrigger.start,f.scrollTrigger.end,0,d,e)),o&&gs(o,n,r,!0);else{jo(t)&&(t=t(s));var v=(e||`0`).split(` `),y,b,x,S;_=ya(t,s)||Na,y=ts(_)||{},(!y||!y.left&&!y.top)&&Qo(_).display===`none`&&(S=_.style.display,_.style.display=`block`,y=ts(_),S?_.style.display=S:_.style.removeProperty(`display`)),b=ms(v[0],y[r.d]),x=ms(v[1]||`0`,n),e=y[r.p]-c[r.p]-l+b+i-x,o&&gs(o,x,r,n-x<20||o._isStart&&x>20),n-=n-x}if(p&&(s[p]=e||-.001,e<0&&(e=0)),a){var C=e+n,w=a._isStart;h=`scroll`+r.d2,gs(a,C,r,w&&C>20||!w&&(u?Math.max(Na[h],Ma[h]):a.parentNode[h])<=C+1),u&&(c=ts(o),u&&(a.style[r.op.p]=c[r.op.p]-r.op.m-a._offset+Zo))}return f&&_&&(h=ts(_),f.seek(d),g=ts(_),f._caScrollDist=h[r.p]-g[r.p],e=e/f._caScrollDist*d),f&&f.seek(m),f?e:Math.round(e)},ec=/(webkit|moz|length|cssText|inset)/i,tc=function(e,t,n,r){if(e.parentNode!==t){var i=e.style,a,o;if(t===Na){for(a in e._stOrig=i.cssText,o=Qo(e),o)!+a&&!ec.test(a)&&o[a]&&typeof i[a]==`string`&&a!==`0`&&(i[a]=o[a]);i.top=n,i.left=r}else i.cssText=e._stOrig;Oa.core.getCache(e).uncache=1,t.appendChild(e)}},nc=function(e,t,n){var r=t,i=r;return function(t){var a=Math.round(e());return a!==r&&a!==i&&Math.abs(a-r)>3&&Math.abs(a-i)>3&&(t=a,n&&n()),i=r,r=Math.round(t),r}},rc=function(e,t,n){var r={};r[t.p]=`+=`+n,Oa.set(e,r)},ic=function(e,t){var n=xa(e,t),r=`_scroll`+t.p2,i=function t(i,a,o,s,c){var l=t.tween,u=a.onComplete,d={};o||=n();var f=nc(n,o,function(){l.kill(),t.tween=0});return c=s&&c||0,s||=i-o,l&&l.kill(),a[r]=i,a.inherit=!1,a.modifiers=d,d[r]=function(){return f(o+s*l.ratio+c*l.ratio*l.ratio)},a.onUpdate=function(){ia.cache++,t.tween&&Us()},a.onComplete=function(){t.tween=0,u&&u.call(l)},l=t.tween=Oa.to(e,a),l};return e[r]=n,n.wheelHandler=function(){return i.tween&&i.tween.kill()&&(i.tween=0)},cs(e,`wheel`,n.wheelHandler),ac.isTouch&&cs(e,`touchmove`,n.wheelHandler),i},ac=function(){function e(t,n){ka||e.register(Oa)||console.warn(`Please gsap.registerPlugin(ScrollTrigger)`),to(this),this.init(t,n)}var t=e.prototype;return t.init=function(t,n){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!po){this.update=this.refresh=this.kill=yo;return}t=es(Ao(t)||Mo(t)||t.nodeType?{trigger:t}:t,fs);var r=t,i=r.onUpdate,a=r.toggleClass,o=r.id,s=r.onToggle,c=r.onRefresh,l=r.scrub,u=r.trigger,d=r.pin,f=r.pinSpacing,p=r.invalidateOnRefresh,m=r.anticipatePin,h=r.onScrubComplete,g=r.onSnapComplete,_=r.once,v=r.snap,y=r.pinReparent,b=r.pinSpacer,x=r.containerAnimation,S=r.fastScrollEnd,C=r.preventOverlaps,w=t.horizontal||t.containerAnimation&&t.horizontal!==!1?_a:va,T=!l&&l!==0,E=ya(t.scroller||Aa),D=Oa.core.getCache(E),O=Co(E),k=(`pinType`in t?t.pinType:la(E,`pinType`)||O&&`fixed`)===`fixed`,A=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],j=T&&t.toggleActions.split(` `),M=`markers`in t?t.markers:fs.markers,N=O?0:parseFloat(Qo(E)[`border`+w.p2+Yo])||0,P=this,F=t.onRefreshInit&&function(){return t.onRefreshInit(P)},I=Eo(E,O,w),L=Do(E,O),ee=0,R=0,te=0,z=xa(E,w),ne,re,ie,ae,oe,se,ce,le,B,V,ue,de,H,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le;if(P._startClamp=P._endClamp=!1,P._dir=w,m*=45,P.scroller=E,P.scroll=x?x.time.bind(x):z,ae=z(),P.vars=t,n||=t.animation,`refreshPriority`in t&&(qa=1,t.refreshPriority===-9999&&(Hs=P)),D.tweenScroll=D.tweenScroll||{top:ic(E,va),left:ic(E,_a)},P.tweenTo=ne=D.tweenScroll[w.p],P.scrubDuration=function(e){je=Mo(e)&&e,je?Ae?Ae.duration(e):Ae=Oa.to(n,{ease:`expo`,totalProgress:`+=0`,inherit:!1,duration:je,paused:!0,onComplete:function(){return h&&h(P)}}):(Ae&&Ae.progress(1).kill(),Ae=0)},n&&(n.vars.lazy=!1,n._initted&&!P.isReverted||n.vars.immediateRender!==!1&&t.immediateRender!==!1&&n.duration()&&n.render(0,!0,!0),P.animation=n.pause(),n.scrollTrigger=P,P.scrubDuration(l),Oe=0,o||=n.vars.id),v&&((!No(v)||v.push)&&(v={snapTo:v}),`scrollBehavior`in Na.style&&Oa.set(O?[Na,Ma]:E,{scrollBehavior:`auto`}),ia.forEach(function(e){return jo(e)&&e.target===(O?ja.scrollingElement||Ma:E)&&(e.smooth=!1)}),ie=jo(v.snapTo)?v.snapTo:v.snapTo===`labels`?is(n):v.snapTo===`labelsDirectional`?os(n):v.directional===!1?Oa.utils.snap(v.snapTo):function(e,t){return as(v.snapTo)(e,lo()-R<500?0:t.direction)},Me=v.duration||{min:.1,max:2},Me=No(Me)?La(Me.min,Me.max):La(Me,Me),Ne=Oa.delayedCall(v.delay||je/2||.1,function(){var e=z(),t=lo()-R<500,r=ne.tween;if((t||Math.abs(P.getVelocity())<10)&&!r&&!Va&&ee!==e){var i=(e-se)/fe,a=n&&!T?n.totalProgress():i,o=t?0:(a-ke)/(lo()-Ra)*1e3||0,s=Oa.utils.clamp(-i,1-i,Io(o/2)*o/.185),c=i+(v.inertia===!1?0:s),l,u,d=v,f=d.onStart,p=d.onInterrupt,m=d.onComplete;if(l=ie(c,P),Mo(l)||(l=c),u=Math.max(0,Math.round(se+l*fe)),e<=ce&&e>=se&&u!==e){if(r&&!r._initted&&r.data<=Io(u-e))return;v.inertia===!1&&(s=l-i),ne(u,{duration:Me(Io(Math.max(Io(c-a),Io(l-a))*.185/o/.05||0)),ease:v.ease||`power3`,data:Io(u-e),onInterrupt:function(){return Ne.restart(!0)&&p&&Fo(P,p)},onComplete:function(){P.update(),ee=z(),n&&!T&&(Ae?Ae.resetTo(`totalProgress`,l,n._tTime/n._tDur):n.progress(l)),Oe=ke=n&&!T?n.totalProgress():P.progress,g&&g(P),m&&Fo(P,m)}},e,s*fe,u-e-s*fe),f&&Fo(P,f,ne.tween)}}else P.isActive&&ee!==e&&Ne.restart(!0)}).pause()),o&&(vs[o]=P),u=P.trigger=ya(u||d!==!0&&d),Le=u&&u._gsap&&u._gsap.stRevert,Le&&=Le(P),d=d===!0?u:ya(d),Ao(a)&&(a={targets:u,className:a}),d&&(f===!1||f===Jo||(f=!f&&d.parentNode&&d.parentNode.style&&Qo(d.parentNode).display===`flex`?!1:qo),P.pin=d,re=Oa.core.getCache(d),re.spacer?pe=re.pinState:(b&&(b=ya(b),b&&!b.nodeType&&(b=b.current||b.nativeElement),re.spacerIsNative=!!b,b&&(re.spacerState=Xs(b))),re.spacer=ge=b||ja.createElement(`div`),ge.classList.add(`pin-spacer`),o&&ge.classList.add(`pin-spacer-`+o),re.pinState=pe=Xs(d)),t.force3D!==!1&&Oa.set(d,{force3D:!0}),P.spacer=ge=re.spacer,De=Qo(d),Se=De[f+w.os2],ve=Oa.getProperty(d),ye=Oa.quickSetter(d,w.a,Zo),qs(d,ge,De),he=Xs(d)),M){de=No(M)?es(M,ds):ds,V=hs(`scroller-start`,o,E,w,de,0),ue=hs(`scroller-end`,o,E,w,de,0,V),_e=V[`offset`+w.op.d2];var Re=ya(la(E,`content`)||E);le=this.markerStart=hs(`start`,o,Re,w,de,_e,0,x),B=this.markerEnd=hs(`end`,o,Re,w,de,_e,0,x),x&&(Ie=Oa.quickSetter([le,B],w.a,Zo)),!k&&!(aa.length&&la(E,`fixedMarkers`)===!0)&&($o(O?Na:E),Oa.set([V,ue],{force3D:!0}),we=Oa.quickSetter(V,w.a,Zo),Ee=Oa.quickSetter(ue,w.a,Zo))}if(x){var ze=x.vars.onUpdate,Be=x.vars.onUpdateParams;x.eventCallback(`onUpdate`,function(){P.update(0,0,1),ze&&ze.apply(x,Be||[])})}if(P.previous=function(){return _s[_s.indexOf(P)-1]},P.next=function(){return _s[_s.indexOf(P)+1]},P.revert=function(e,t){if(!t)return P.kill(!0);var r=e!==!1||!P.enabled,i=Ba;r!==P.isReverted&&(r&&(Pe=Math.max(z(),P.scroll.rec||0),te=P.progress,Fe=n&&n.progress()),le&&[le,B,V,ue].forEach(function(e){return e.style.display=r?`none`:`block`}),r&&(Ba=P,P.update(r)),d&&(!y||!P.isActive)&&(r?Ks(d,ge,pe):qs(d,ge,Qo(d),Ce)),r||P.update(r),Ba=i,P.isReverted=r)},P.refresh=function(r,i,a,o){if(!Ba&&P.enabled||i){if(d&&r&&fo){cs(e,`scrollEnd`,Es);return}!Ns&&F&&F(P),Ba=P,ne.tween&&!a&&(ne.tween.kill(),ne.tween=0),Ae&&Ae.pause(),p&&n&&(n.revert({kill:!1}).invalidate(),n.getChildren?n.getChildren(!0,!0,!1).forEach(function(e){return e.vars.immediateRender&&e.render(0,!0,!0)}):n.vars.immediateRender&&n.render(0,!0,!0)),P.isReverted||P.revert(!0,!0),P._subPinOffset=!1;var s=I(),l=L(),m=x?x.duration():Oo(E,w),h=fe<=.01||!fe,g=0,_=o||0,v=No(a)?a.end:t.end,b=t.endTrigger||u,S=No(a)?a.start:t.start||(t.start===0||!u?0:d?`0 0`:`0 100%`),C=P.pinnedContainer=t.pinnedContainer&&ya(t.pinnedContainer,P),D=u&&Math.max(0,_s.indexOf(P))||0,A=D,j,re,ie,de,_e,ye,Se,we,Ee,De,Oe,ke,je;for(M&&No(a)&&(ke=Oa.getProperty(V,w.p),je=Oa.getProperty(ue,w.p));A-->0;)ye=_s[A],ye.end||ye.refresh(0,1)||(Ba=P),Se=ye.pin,Se&&(Se===u||Se===d||Se===C)&&!ye.isReverted&&(De||=[],De.unshift(ye),ye.revert(!0,!0)),ye!==_s[A]&&(D--,A--);for(jo(S)&&(S=S(P)),S=mo(S,`start`,P),se=$s(S,u,s,w,z(),le,V,P,l,N,k,m,x,P._startClamp&&`_startClamp`)||(d?-.001:0),jo(v)&&(v=v(P)),Ao(v)&&!v.indexOf(`+=`)&&(~v.indexOf(` `)?v=(Ao(S)?S.split(` `)[0]:``)+v:(g=ms(v.substr(2),s),v=Ao(S)?S:(x?Oa.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,se):se)+g,b=u)),v=mo(v,`end`,P),ce=Math.max(se,$s(v||(b?`100% 0`:m),b,s,w,z()+g,B,ue,P,l,N,k,m,x,P._endClamp&&`_endClamp`))||-.001,g=0,A=D;A--;)ye=_s[A]||{},Se=ye.pin,Se&&ye.start-ye._pinPush<=se&&!x&&ye.end>0&&(j=ye.end-(P._startClamp?Math.max(0,ye.start):ye.start),(Se===u&&ye.start-ye._pinPush<se||Se===C)&&isNaN(S)&&(g+=j*(1-ye.progress)),Se===d&&(_+=j));if(se+=g,ce+=g,P._startClamp&&(P._startClamp+=g),P._endClamp&&!Ns&&(P._endClamp=ce||-.001,ce=Math.min(ce,Oo(E,w))),fe=ce-se||(se-=.01)&&.001,h&&(te=Oa.utils.clamp(0,1,Oa.utils.normalize(se,ce,Pe))),P._pinPush=_,le&&g&&(j={},j[w.a]=`+=`+g,C&&(j[w.p]=`-=`+z()),Oa.set([le,B],j)),d&&!(oo&&P.end>=Oo(E,w)))j=Qo(d),de=w===va,ie=z(),be=parseFloat(ve(w.a))+_,!m&&ce>1&&(Oe=(O?ja.scrollingElement||Ma:E).style,Oe={style:Oe,value:Oe[`overflow`+w.a.toUpperCase()]},O&&Qo(Na)[`overflow`+w.a.toUpperCase()]!==`scroll`&&(Oe.style[`overflow`+w.a.toUpperCase()]=`scroll`)),qs(d,ge,j),he=Xs(d),re=ts(d,!0),we=k&&xa(E,de?_a:va)(),f?(Ce=[f+w.os2,fe+_+Zo],Ce.t=ge,A=f===qo?ns(d,w)+fe+_:0,A&&(Ce.push(w.d,A+Zo),ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Zo)),Ys(Ce),C&&_s.forEach(function(e){e.pin===C&&e.vars.pinSpacing!==!1&&(e._subPinOffset=!0)}),k&&z(Pe)):(A=ns(d,w),A&&ge.style.flexBasis!==`auto`&&(ge.style.flexBasis=A+Zo)),k&&(_e={top:re.top+(de?ie-se:we)+Zo,left:re.left+(de?we:ie-se)+Zo,boxSizing:`border-box`,position:`fixed`},_e[Vo]=_e[`max`+Yo]=Math.ceil(re.width)+Zo,_e[Ho]=_e[`max`+Xo]=Math.ceil(re.height)+Zo,_e[Jo]=_e[Jo+Go]=_e[Jo+Uo]=_e[Jo+Ko]=_e[Jo+Wo]=`0`,_e[qo]=j[qo],_e[qo+Go]=j[qo+Go],_e[qo+Uo]=j[qo+Uo],_e[qo+Ko]=j[qo+Ko],_e[qo+Wo]=j[qo+Wo],me=Zs(pe,_e,y),Ns&&z(0)),n?(Ee=n._initted,Ja(1),n.render(n.duration(),!0,!0),xe=ve(w.a)-be+fe+_,Te=Math.abs(fe-xe)>1,k&&Te&&me.splice(me.length-2,2),n.render(0,!0,!0),Ee||n.invalidate(!0),n.parent||n.totalTime(n.totalTime()),Ja(0)):xe=fe,Oe&&(Oe.value?Oe.style[`overflow`+w.a.toUpperCase()]=Oe.value:Oe.style.removeProperty(`overflow-`+w.a));else if(u&&z()&&!x)for(re=u.parentNode;re&&re!==Na;)re._pinOffset&&(se-=re._pinOffset,ce-=re._pinOffset),re=re.parentNode;De&&De.forEach(function(e){return e.revert(!1,!0)}),P.start=se,P.end=ce,ae=oe=Ns?Pe:z(),!x&&!Ns&&(ae<Pe&&z(Pe),P.scroll.rec=0),P.revert(!1,!0),R=lo(),Ne&&(ee=-1,Ne.restart(!0)),Ba=0,n&&T&&(n._initted||Fe)&&n.progress()!==Fe&&n.progress(Fe||0,!0).render(n.time(),!0,!0),(h||te!==P.progress||x||p||n&&!n._initted)&&(n&&!T&&(n._initted||te||n.vars.immediateRender!==!1)&&n.totalProgress(x&&se<-.001&&!te?Oa.utils.normalize(se,ce,0):te,!0),P.progress=h||(ae-se)/fe===te?0:te),d&&f&&(ge._pinOffset=Math.round(P.progress*xe)),Ae&&Ae.invalidate(),isNaN(ke)||(ke-=Oa.getProperty(V,w.p),je-=Oa.getProperty(ue,w.p),rc(V,w,ke),rc(le,w,ke-(o||0)),rc(ue,w,je),rc(B,w,je-(o||0))),h&&!Ns&&P.update(),c&&!Ns&&!H&&(H=!0,c(P),H=!1)}},P.getVelocity=function(){return(z()-oe)/(lo()-Ra)*1e3||0},P.endAnimation=function(){Po(P.callbackAnimation),n&&(Ae?Ae.progress(1):n.paused()?T||Po(n,P.direction<0,1):Po(n,n.reversed()))},P.labelToScroll=function(e){return n&&n.labels&&(se||P.refresh()||se)+n.labels[e]/n.duration()*fe||0},P.getTrailing=function(e){var t=_s.indexOf(P),n=P.direction>0?_s.slice(0,t).reverse():_s.slice(t+1);return(Ao(e)?n.filter(function(t){return t.vars.preventOverlaps===e}):n).filter(function(e){return P.direction>0?e.end<=se:e.start>=ce})},P.update=function(e,t,r){if(!x||r||e){var o=Ns===!0?Pe:P.scroll(),c=e?0:(o-se)/fe,u=c<0?0:c>1?1:c||0,p=P.progress,h,g,b,D,O,M,N,F;if(t&&(oe=ae,ae=x?z():o,v&&(ke=Oe,Oe=n&&!T?n.totalProgress():u)),m&&d&&!Ba&&!co&&fo&&(!u&&se<o+(o-oe)/(lo()-Ra)*m?u=1e-4:u===1&&ce>o+(o-oe)/(lo()-Ra)*m&&(u=.9999)),u!==p&&P.enabled){if(h=P.isActive=!!u&&u<1,g=!!p&&p<1,M=h!==g,O=M||!!u!=!!p,P.direction=u>p?1:-1,P.progress=u,O&&!Ba&&(b=u&&!p?0:u===1?1:p===1?2:3,T&&(D=!M&&j[b+1]!==`none`&&j[b+1]||j[b],F=n&&(D===`complete`||D===`reset`||D in n))),C&&(M||F)&&(F||l||!n)&&(jo(C)?C(P):P.getTrailing(C).forEach(function(e){return e.endAnimation()})),T||(Ae&&!Ba&&!co?(Ae._dp._time-Ae._start!==Ae._time&&Ae.render(Ae._dp._time-Ae._start),Ae.resetTo?Ae.resetTo(`totalProgress`,u,n._tTime/n._tDur):(Ae.vars.totalProgress=u,Ae.invalidate().restart())):n&&n.totalProgress(u,!!(Ba&&(R||e)))),d){if(e&&f&&(ge.style[f+w.os2]=Se),!k)ye(bo(be+xe*u));else if(O){if(N=!e&&u>p&&ce+1>o&&o+1>=Oo(E,w),y){if(!e&&(h||N)){var I=ts(d,!0),L=o-se;tc(d,Na,I.top+(w===va?L:0)+Zo,I.left+(w===va?0:L)+Zo)}else tc(d,ge)}Ys(h||N?me:he),Te&&u<1&&h||ye(be+(u===1&&!N?xe:0))}}v&&!ne.tween&&!Ba&&!co&&Ne.restart(!0),a&&(M||_&&u&&(u<1||!so))&&Ia(a.targets).forEach(function(e){return e.classList[h||_?`add`:`remove`](a.className)}),i&&!T&&!e&&i(P),O&&!Ba?(T&&(F&&(D===`complete`?n.pause().totalProgress(1):D===`reset`?n.restart(!0).pause():D===`restart`?n.restart(!0):n[D]()),i&&i(P)),(M||!so)&&(s&&M&&Fo(P,s),A[b]&&Fo(P,A[b]),_&&(u===1?P.kill(!1,1):A[b]=0),M||(b=u===1?1:3,A[b]&&Fo(P,A[b]))),S&&!h&&Math.abs(P.getVelocity())>(Mo(S)?S:2500)&&(Po(P.callbackAnimation),Ae?Ae.progress(1):Po(n,D===`reverse`?1:!u,1))):T&&i&&!Ba&&i(P)}if(Ee){var ee=x?o/x.duration()*(x._caScrollDist||0):o;we(ee+ +!!V._isFlipped),Ee(ee)}Ie&&Ie(-o/x.duration()*(x._caScrollDist||0))}},P.enable=function(t,n){P.enabled||(P.enabled=!0,cs(E,`resize`,Cs),O||cs(E,`scroll`,xs),F&&cs(e,`refreshInit`,F),t!==!1&&(P.progress=te=0,ae=oe=ee=z()),n!==!1&&P.refresh())},P.getTween=function(e){return e&&ne?ne.tween:Ae},P.setPositions=function(e,t,n,r){if(x){var i=x.scrollTrigger,a=x.duration(),o=i.end-i.start;e=i.start+o*e/a,t=i.start+o*t/a}P.refresh(!1,!1,{start:ho(e,n&&!!P._startClamp),end:ho(t,n&&!!P._endClamp)},r),P.update()},P.adjustPinSpacing=function(e){if(Ce&&e){var t=Ce.indexOf(w.d)+1;Ce[t]=parseFloat(Ce[t])+e+Zo,Ce[1]=parseFloat(Ce[1])+e+Zo,Ys(Ce)}},P.disable=function(t,n){if(t!==!1&&P.revert(!0,!0),P.enabled&&(P.enabled=P.isActive=!1,n||Ae&&Ae.pause(),Pe=0,re&&(re.uncache=1),F&&ls(e,`refreshInit`,F),Ne&&(Ne.pause(),ne.tween&&ne.tween.kill()&&(ne.tween=0)),!O)){for(var r=_s.length;r--;)if(_s[r].scroller===E&&_s[r]!==P)return;ls(E,`resize`,Cs),O||ls(E,`scroll`,xs)}},P.kill=function(e,r){P.disable(e,r),Ae&&!r&&Ae.kill(),o&&delete vs[o];var i=_s.indexOf(P);i>=0&&_s.splice(i,1),i===Ua&&Vs>0&&Ua--,i=0,_s.forEach(function(e){return e.scroller===P.scroller&&(i=1)}),i||Ns||(P.scroll.rec=0),n&&(n.scrollTrigger=null,e&&n.revert({kill:!1}),r||n.kill()),le&&[le,B,V,ue].forEach(function(e){return e.parentNode&&e.parentNode.removeChild(e)}),Hs===P&&(Hs=0),d&&(re&&(re.uncache=1),i=0,_s.forEach(function(e){return e.pin===d&&i++}),i||(re.spacer=0)),t.onKill&&t.onKill(P)},_s.push(P),P.enable(!1,!1),Le&&Le(P),n&&n.add&&!fe){var Ve=P.update;P.update=function(){P.update=Ve,ia.cache++,se||ce||P.refresh()},Oa.delayedCall(.01,P.update),fe=.01,se=ce=0}else P.refresh();d&&Is()},e.register=function(t){return ka||=(Oa=t||So(),xo()&&window.document&&e.enable(),po),ka},e.defaults=function(e){if(e)for(var t in e)fs[t]=e[t];return fs},e.disable=function(e,t){po=0,_s.forEach(function(n){return n[t?`kill`:`disable`](e)}),ls(Aa,`wheel`,xs),ls(ja,`scroll`,xs),clearInterval(za),ls(ja,`touchcancel`,yo),ls(Na,`touchstart`,yo),ss(ls,ja,`pointerdown,touchstart,mousedown`,_o),ss(ls,ja,`pointerup,touchend,mouseup`,vo),Fa.kill(),ko(ls);for(var n=0;n<ia.length;n+=3)us(ls,ia[n],ia[n+1]),us(ls,ia[n],ia[n+2])},e.enable=function(){if(Aa=window,ja=document,Ma=ja.documentElement,Na=ja.body,Oa){if(Ia=Oa.utils.toArray,La=Oa.utils.clamp,to=Oa.core.context||yo,Ja=Oa.core.suppressOverwrites||yo,no=Aa.history.scrollRestoration||`auto`,Bs=Aa.pageYOffset||0,Oa.core.globals(`ScrollTrigger`,e),Na){po=1,ro=document.createElement(`div`),ro.style.height=`100vh`,ro.style.position=`absolute`,Ls(),go(),Da.register(Oa),e.isTouch=Da.isTouch,eo=Da.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Za=Da.isTouch===1,cs(Aa,`wheel`,xs),Pa=[Aa,ja,Ma,Na],Oa.matchMedia?(e.matchMedia=function(e){var t=Oa.matchMedia(),n;for(n in e)t.add(n,e[n]);return t},Oa.addEventListener(`matchMediaInit`,function(){As(),js()}),Oa.addEventListener(`matchMediaRevert`,function(){return ks()}),Oa.addEventListener(`matchMedia`,function(){zs(0,1),Ds(`matchMedia`)}),Oa.matchMedia().add(`(orientation: portrait)`,function(){return Ss(),Ss})):console.warn(`Requires GSAP 3.11.0 or later`),Ss(),cs(ja,`scroll`,xs);var t=Na.hasAttribute(`style`),n=Na.style,r=n.borderTopStyle,i=Oa.core.Animation.prototype,a,o;for(i.revert||Object.defineProperty(i,"revert",{value:function(){return this.time(-.01,!0)}}),n.borderTopStyle=`solid`,a=ts(Na),va.m=Math.round(a.top+va.sc())||0,_a.m=Math.round(a.left+_a.sc())||0,r?n.borderTopStyle=r:n.removeProperty(`border-top-style`),t||(Na.setAttribute(`style`,``),Na.removeAttribute(`style`)),za=setInterval(bs,250),Oa.delayedCall(.5,function(){return co=0}),cs(ja,`touchcancel`,yo),cs(Na,`touchstart`,yo),ss(cs,ja,`pointerdown,touchstart,mousedown`,_o),ss(cs,ja,`pointerup,touchend,mouseup`,vo),Ha=Oa.utils.checkPrefix(`transform`),Gs.push(Ha),ka=lo(),Fa=Oa.delayedCall(.2,zs).pause(),Ka=[ja,`visibilitychange`,function(){var e=Aa.innerWidth,t=Aa.innerHeight;ja.hidden?(Wa=e,Ga=t):(Wa!==e||Ga!==t)&&Cs()},ja,`DOMContentLoaded`,zs,Aa,`load`,zs,Aa,`resize`,Cs],ko(cs),_s.forEach(function(e){return e.enable(0,1)}),o=0;o<ia.length;o+=3)us(ls,ia[o],ia[o+1]),us(ls,ia[o],ia[o+2])}else ja&&ja.addEventListener(`DOMContentLoaded`,function t(){e.enable(),ja.removeEventListener(`DOMContentLoaded`,t)})}},e.config=function(t){`limitCallbacks`in t&&(so=!!t.limitCallbacks);var n=t.syncInterval;n&&clearInterval(za)||(za=n)&&setInterval(bs,n),`ignoreMobileResize`in t&&(Za=e.isTouch===1&&t.ignoreMobileResize),`autoRefreshEvents`in t&&(ko(ls)||ko(cs,t.autoRefreshEvents||`none`),Ya=(t.autoRefreshEvents+``).indexOf(`resize`)===-1)},e.scrollerProxy=function(e,t){var n=ya(e),r=ia.indexOf(n),i=Co(n);~r&&ia.splice(r,i?6:2),t&&(i?aa.unshift(Aa,t,Na,t,Ma,t):aa.unshift(n,t))},e.clearMatchMedia=function(e){_s.forEach(function(t){return t._ctx&&t._ctx.query===e&&t._ctx.kill(!0,!0)})},e.isInViewport=function(e,t,n){var r=(Ao(e)?ya(e):e).getBoundingClientRect(),i=r[n?Vo:Ho]*t||0;return n?r.right-i>0&&r.left+i<Aa.innerWidth:r.bottom-i>0&&r.top+i<Aa.innerHeight},e.positionInViewport=function(e,t,n){Ao(e)&&(e=ya(e));var r=e.getBoundingClientRect(),i=r[n?Vo:Ho],a=t==null?i/2:t in ps?ps[t]*i:~t.indexOf(`%`)?parseFloat(t)*i/100:parseFloat(t)||0;return n?(r.left+a)/Aa.innerWidth:(r.top+a)/Aa.innerHeight},e.killAll=function(e){if(_s.slice(0).forEach(function(e){return e.vars.id!==`ScrollSmoother`&&e.kill()}),e!==!0){var t=ws.killAll||[];ws={},t.forEach(function(e){return e()})}},e}();ac.version=`3.15.0`,ac.saveStyles=function(e){return e?Ia(e).forEach(function(e){if(e&&e.style){var t=Os.indexOf(e);t>=0&&Os.splice(t,5),Os.push(e,e.style.cssText,e.getBBox&&e.getAttribute(`transform`),Oa.core.getCache(e),to())}}):Os},ac.revert=function(e,t){return js(!e,t)},ac.create=function(e,t){return new ac(e,t)},ac.refresh=function(e){return e?Cs(!0):(ka||ac.register())&&zs(!0)},ac.update=function(e){return++ia.cache&&Us(e===!0?2:0)},ac.clearScrollMemory=Ms,ac.maxScroll=function(e,t){return Oo(e,t?_a:va)},ac.getScrollFunc=function(e,t){return xa(ya(e),t?_a:va)},ac.getById=function(e){return vs[e]},ac.getAll=function(){return _s.filter(function(e){return e.vars.id!==`ScrollSmoother`})},ac.isScrolling=function(){return!!fo},ac.snapDirectional=as,ac.addEventListener=function(e,t){var n=ws[e]||(ws[e]=[]);~n.indexOf(t)||n.push(t)},ac.removeEventListener=function(e,t){var n=ws[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)},ac.batch=function(e,t){var n=[],r={},i=t.interval||.016,a=t.batchMax||1e9,o=function(e,t){var n=[],r=[],o=Oa.delayedCall(i,function(){t(n,r),n=[],r=[]}).pause();return function(e){n.length||o.restart(!0),n.push(e.trigger),r.push(e),a<=n.length&&o.progress(1)}},s;for(s in t)r[s]=s.substr(0,2)===`on`&&jo(t[s])&&s!==`onRefreshInit`?o(s,t[s]):t[s];return jo(a)&&(a=a(),cs(ac,`refresh`,function(){return a=t.batchMax()})),Ia(e).forEach(function(e){var t={};for(s in r)t[s]=r[s];t.trigger=e,n.push(ac.create(t))}),n};var oc=function(e,t,n,r){return t>r?e(r):t<0&&e(0),n>r?(r-t)/(n-t):n<0?t/(t-n):1},sc=function e(t,n){n===!0?t.style.removeProperty(`touch-action`):t.style.touchAction=n===!0?`auto`:n?`pan-`+n+(Da.isTouch?` pinch-zoom`:``):`none`,t===Ma&&e(Na,n)},cc={auto:1,scroll:1},lc=function(e){var t=e.event,n=e.target,r=e.axis,i=(t.changedTouches?t.changedTouches[0]:t).target,a=i._gsap||Oa.core.getCache(i),o=lo(),s;if(!a._isScrollT||o-a._isScrollT>2e3){for(;i&&i!==Na&&(i.scrollHeight<=i.clientHeight&&i.scrollWidth<=i.clientWidth||!(cc[(s=Qo(i)).overflowY]||cc[s.overflowX]));)i=i.parentNode;a._isScroll=i&&i!==n&&!Co(i)&&(cc[(s=Qo(i)).overflowY]||cc[s.overflowX]),a._isScrollT=o}(a._isScroll||r===`x`)&&(t.stopPropagation(),t._gsapAllow=!0)},uc=function(e,t,n,r){return Da.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:t,onWheel:r&&=lc,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return n&&cs(ja,Da.eventTypes[0],pc,!1,!0)},onDisable:function(){return ls(ja,Da.eventTypes[0],pc,!0)}})},dc=/(input|label|select|textarea)/i,fc,pc=function(e){var t=dc.test(e.target.tagName);(t||fc)&&(e._gsapAllow=!0,fc=t)},mc=function(e){No(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type=`wheel,touch`),e.debounce=!!e.debounce,e.id=e.id||`normalizer`;var t=e,n=t.normalizeScrollX,r=t.momentum,i=t.allowNestedScroll,a=t.onRelease,o,s,c=ya(e.target)||Ma,l=Oa.core.globals().ScrollSmoother,u=l&&l.get(),d=eo&&(e.content&&ya(e.content)||u&&e.content!==!1&&!u.smooth()&&u.content()),f=xa(c,va),p=xa(c,_a),m=1,h=(Da.isTouch&&Aa.visualViewport?Aa.visualViewport.scale*Aa.visualViewport.width:Aa.outerWidth)/Aa.innerWidth,g=0,_=jo(r)?function(){return r(o)}:function(){return r||2.8},v,y,b=uc(c,e.type,!0,i),x=function(){return y=!1},S=yo,C=yo,w=function(){s=Oo(c,va),C=La(+!!eo,s),n&&(S=La(0,Oo(c,_a))),v=Ps},T=function(){d._gsap.y=bo(parseFloat(d._gsap.y)+f.offset)+`px`,d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+parseFloat(d._gsap.y)+`, 0, 1)`,f.offset=f.cacheID=0},E=function(){if(y){requestAnimationFrame(x);var e=bo(o.deltaY/2),t=C(f.v-e);if(d&&t!==f.v+f.offset){f.offset=t-f.v;var n=bo((parseFloat(d&&d._gsap.y)||0)-f.offset);d.style.transform=`matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, `+n+`, 0, 1)`,d._gsap.y=n+`px`,f.cacheID=ia.cache,Us()}return!0}f.offset&&T(),y=!0},D,O,k,A,j=function(){w(),D.isActive()&&D.vars.scrollY>s&&(f()>s?D.progress(1)&&f(s):D.resetTo(`scrollY`,s))};return d&&Oa.set(d,{y:`+=0`}),e.ignoreCheck=function(e){return eo&&e.type===`touchmove`&&E(e)||m>1.05&&e.type!==`touchstart`||o.isGesturing||e.touches&&e.touches.length>1},e.onPress=function(){y=!1;var e=m;m=bo((Aa.visualViewport&&Aa.visualViewport.scale||1)/h),D.pause(),e!==m&&sc(c,m>1.01||!n&&`x`),O=p(),k=f(),w(),v=Ps},e.onRelease=e.onGestureStart=function(e,t){if(f.offset&&T(),!t)A.restart(!0);else{ia.cache++;var r=_(),i,o;n&&(i=p(),o=i+r*.05*-e.velocityX/.227,r*=oc(p,i,o,Oo(c,_a)),D.vars.scrollX=S(o)),i=f(),o=i+r*.05*-e.velocityY/.227,r*=oc(f,i,o,Oo(c,va)),D.vars.scrollY=C(o),D.invalidate().duration(r).play(.01),(eo&&D.vars.scrollY>=s||i>=s-1)&&Oa.to({},{onUpdate:j,duration:r})}a&&a(e)},e.onWheel=function(){D._ts&&D.pause(),lo()-g>1e3&&(v=0,g=lo())},e.onChange=function(e,t,r,i,a){if(Ps!==v&&w(),t&&n&&p(S(i[2]===t?O+(e.startX-e.x):p()+t-i[1])),r){f.offset&&T();var o=a[2]===r,s=o?k+e.startY-e.y:f()+r-a[1],c=C(s);o&&s!==c&&(k+=c-s),f(c)}(r||t)&&Us()},e.onEnable=function(){sc(c,!n&&`x`),ac.addEventListener(`refresh`,j),cs(Aa,`resize`,j),f.smooth&&=(f.target.style.scrollBehavior=`auto`,p.smooth=!1),b.enable()},e.onDisable=function(){sc(c,!0),ls(Aa,`resize`,j),ac.removeEventListener(`refresh`,j),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Da(e),o.iOS=eo,eo&&!f()&&f(1),eo&&Oa.ticker.add(yo),A=o._dc,D=Oa.to(o,{ease:`power4`,paused:!0,inherit:!1,scrollX:n?`+=0.1`:`+=0`,scrollY:`+=0.1`,modifiers:{scrollY:nc(f,f(),function(){return D.pause()})},onUpdate:Us,onComplete:A.vars.onComplete}),o};ac.sort=function(e){if(jo(e))return _s.sort(e);var t=Aa.pageYOffset||0;return ac.getAll().forEach(function(e){return e._sortY=e.trigger?t+e.trigger.getBoundingClientRect().top:e.start+Aa.innerHeight}),_s.sort(e||function(e,t){return(e.vars.refreshPriority||0)*-1e6+(e.vars.containerAnimation?1e6:e._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})},ac.observe=function(e){return new Da(e)},ac.normalizeScroll=function(e){if(e===void 0)return Xa;if(e===!0&&Xa)return Xa.enable();if(e===!1){Xa&&Xa.kill(),Xa=e;return}var t=e instanceof Da?e:mc(e);return Xa&&Xa.target===t.target&&Xa.kill(),Co(t.target)&&(Xa=t),t},ac.core={_getVelocityProp:Sa,_inputObserver:uc,_scrollers:ia,_proxies:aa,bridge:{ss:function(){fo||Ds(`scrollStart`),fo=lo()},ref:function(){return Ba}}},So()&&Oa.registerPlugin(ac);var hc=new URLSearchParams(location.search).get(`token`)??``,gc=e=>hc?`${e}${e.includes(`?`)?`&`:`?`}token=${encodeURIComponent(hc)}`:e;async function U(e,t){let n=await fetch(gc(e),{signal:t,headers:hc?{authorization:`Bearer ${hc}`}:{}});if(!n.ok)throw Error(`${n.status} ${n.statusText}`);return await n.json()}async function _c(e,t){return await(await fetch(gc(e),{method:`POST`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(t)})).json().catch(()=>({}))}async function vc(e,t){return await(await fetch(gc(e),{method:`DELETE`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(t)})).json().catch(()=>({}))}async function yc(e){let t=await fetch(gc(`/api/events`),{method:`DELETE`,headers:{"content-type":`application/json`,...hc?{authorization:`Bearer ${hc}`}:{}},body:JSON.stringify(e)});if(!t.ok)throw Error(`${t.status} ${t.statusText}`);return await t.json()}var bc=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function xc(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:bc(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var Sc=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},Cc=e=>{let t=Sc(e);return t.charAt(0).toUpperCase()+t.slice(1)},wc=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),Tc={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 Ec(e){return e!=null}function Dc(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??Tc.width,a=e.size??e.height??Tc.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?wc(...c):wc(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??Tc[`stroke-width`])*Number(e.size??e.width??Tc.width)/Number(t.size??t.width??Tc.width):t.strokeWidth??Tc[`stroke-width`];return[`svg`,{...Object.entries(Tc).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ec(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ec(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ec(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 Oc(e,t={}){return Dc(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var kc=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ac=(0,v.createContext)({}),jc=()=>(0,v.useContext)(Ac),Mc=(0,v.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:y=``}=jc()??{},b=!!c||kc(d),[x,S,C=[]]=Oc(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:wc(y,s),hasA11yProp:b,attributes:d});return(0,v.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,v.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function W(e,t=[],n=[]){let r=typeof e==`string`?xc(e,t,n):e,i=(0,v.forwardRef)(({className:e,...t},n)=>(0,v.createElement)(Mc,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=Cc(r.name)),i}var Nc={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};Nc.node;var Pc=W(Nc),Fc={name:`arrow-down-to-line`,size:24,node:[[`path`,{d:`M12 17V3`,key:`1cwfxf`}],[`path`,{d:`m6 11 6 6 6-6`,key:`12ii2o`}],[`path`,{d:`M19 21H5`,key:`150jfl`}]]};Fc.node;var Ic=W(Fc),Lc={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};Lc.node;var Rc=W(Lc),zc={name:`arrow-left-right`,size:24,node:[[`path`,{d:`M8 3 4 7l4 4`,key:`9rb6wj`}],[`path`,{d:`M4 7h16`,key:`6tx8e3`}],[`path`,{d:`m16 21 4-4-4-4`,key:`siv7j2`}],[`path`,{d:`M20 17H4`,key:`h6l3hr`}]]};zc.node;var Bc=W(zc),Vc={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};Vc.node;var Hc=W(Vc),Uc={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};Uc.node;var Wc=W(Uc),Gc={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Gc.node;var Kc=W(Gc),qc={name:`asterisk`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m18.065 8.496-12.125 7`,key:`1h26g9`}],[`path`,{d:`m5.94 8.504 12.125 7`,key:`k77sdm`}]]};qc.node;var Jc=W(qc),Yc={name:`bell-off`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742`,key:`178tsu`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05`,key:`1hqiys`}]]};Yc.node;var Xc=W(Yc),Zc={name:`bell`,size:24,node:[[`path`,{d:`M10.268 21a2 2 0 0 0 3.464 0`,key:`vwvbt9`}],[`path`,{d:`M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326`,key:`11g9vi`}]]};Zc.node;var Qc=W(Zc),$c={name:`book-open`,size:24,node:[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}]]};$c.node;var el=W($c),tl={name:`braces`,size:24,node:[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]],aliases:[`curly-braces`]};tl.node;var nl=W(tl),rl={name:`cable`,size:24,node:[[`path`,{d:`M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z`,key:`trhst0`}],[`path`,{d:`M17 21v-2`,key:`ds4u3f`}],[`path`,{d:`M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10`,key:`1mo9zo`}],[`path`,{d:`M21 21v-2`,key:`eo0ou`}],[`path`,{d:`M3 5V3`,key:`1k5hjh`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z`,key:`1dd30t`}],[`path`,{d:`M7 5V3`,key:`1t1388`}]]};rl.node;var il=W(rl),al={name:`check-check`,size:24,node:[[`path`,{d:`M18 6 7 17l-5-5`,key:`116fxf`}],[`path`,{d:`m22 10-7.5 7.5L13 16`,key:`ke71qq`}]]};al.node;var ol=W(al),sl={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};sl.node;var cl=W(sl),ll={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};ll.node;var ul=W(ll),dl={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};dl.node;var fl=W(dl),pl={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};pl.node;var ml=W(pl),hl={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`}]]};hl.node;var gl=W(hl),_l={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};_l.node;var vl=W(_l),yl={name:`circle-check`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 9-5.5 5.5L8 12`,key:`xofnsj`}]],aliases:[`check-circle-2`]};yl.node;var bl=W(yl),xl={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};xl.node;var Sl=W(xl),Cl={name:`circle`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]};Cl.node;var wl=W(Cl),Tl={name:`clock-3`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]};Tl.node;var El=W(Tl),Dl={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};Dl.node;var Ol=W(Dl),kl={name:`cloud`,size:24,node:[[`path`,{d:`M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z`,key:`p7xjir`}]]};kl.node;var Al=W(kl),jl={name:`code-xml`,size:24,node:[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]],aliases:[`code-2`]};jl.node;var Ml=W(jl),Nl={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`}]]};Nl.node;var Pl=W(Nl),Fl={name:`cpu`,size:24,node:[[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M17 20v2`,key:`1rnc9c`}],[`path`,{d:`M17 2v2`,key:`11trls`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M2 17h2`,key:`7oei6x`}],[`path`,{d:`M2 7h2`,key:`asdhe0`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`M20 17h2`,key:`1fpfkl`}],[`path`,{d:`M20 7h2`,key:`1o8tra`}],[`path`,{d:`M7 20v2`,key:`4gnj0m`}],[`path`,{d:`M7 2v2`,key:`1i4yhu`}],[`rect`,{x:`4`,y:`4`,width:`16`,height:`16`,rx:`2`,key:`1vbyd7`}],[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`1`,key:`z9xiuo`}]]};Fl.node;var Il=W(Fl),Ll={name:`crosshair`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`22`,x2:`18`,y1:`12`,y2:`12`,key:`l9bcsi`}],[`line`,{x1:`6`,x2:`2`,y1:`12`,y2:`12`,key:`13hhkx`}],[`line`,{x1:`12`,x2:`12`,y1:`6`,y2:`2`,key:`10w3f3`}],[`line`,{x1:`12`,x2:`12`,y1:`22`,y2:`18`,key:`15g9kq`}]]};Ll.node;var Rl=W(Ll),zl={name:`database`,size:24,node:[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]};zl.node;var Bl=W(zl),Vl={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Vl.node;var Hl=W(Vl),Ul={name:`earth`,size:24,node:[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]],aliases:[`globe-2`]};Ul.node;var Wl=W(Ul),Gl={name:`ethernet-port`,size:24,node:[[`path`,{d:`M10 8v1`,key:`1talb4`}],[`path`,{d:`M14 8v1`,key:`1rsfgr`}],[`path`,{d:`M18 8v1`,key:`gnkwox`}],[`path`,{d:`M19 17a2 2 0 00-1.765 1.059l-.47.882A2 2 0 0115 20H9a2 2 0 01-1.765-1.059l-.47-.882A2 2 0 005 17H4a2 2 0 01-2-2V6a2 2 0 012-2h16a2 2 0 012 2v9a2 2 0 01-2 2z`,key:`v5qa57`}],[`path`,{d:`M6 8v1`,key:`1636ez`}]]};Gl.node;var Kl=W(Gl),ql={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};ql.node;var Jl=W(ql),Yl={name:`eye`,size:24,node:[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};Yl.node;var Xl=W(Yl),Zl={name:`file-braces`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1`,key:`1oajmo`}],[`path`,{d:`M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1`,key:`mpwhp6`}]],aliases:[`file-json`]};Zl.node;var Ql=W(Zl),$l={name:`file-spreadsheet`,size:24,node:[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 13h2`,key:`yr2amv`}],[`path`,{d:`M14 13h2`,key:`un5t4a`}],[`path`,{d:`M8 17h2`,key:`2yhykz`}],[`path`,{d:`M14 17h2`,key:`10kma7`}]]};$l.node;var eu=W($l),tu={name:`fingerprint-pattern`,size:24,node:[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]],aliases:[`fingerprint`]};tu.node;var nu=W(tu),ru={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};ru.node;var iu=W(ru),au={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};au.node;var ou=W(au),su={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};su.node;var cu=W(su),lu={name:`grip-horizontal`,size:24,node:[[`circle`,{cx:`12`,cy:`9`,r:`1`,key:`124mty`}],[`circle`,{cx:`19`,cy:`9`,r:`1`,key:`1ruzo2`}],[`circle`,{cx:`5`,cy:`9`,r:`1`,key:`1a8b28`}],[`circle`,{cx:`12`,cy:`15`,r:`1`,key:`1e56xg`}],[`circle`,{cx:`19`,cy:`15`,r:`1`,key:`1a92ep`}],[`circle`,{cx:`5`,cy:`15`,r:`1`,key:`5r1jwy`}]]};lu.node;var uu=W(lu),du={name:`hard-drive`,size:24,node:[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]};du.node;var fu=W(du),pu={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};pu.node;var mu=W(pu),hu={name:`layers`,size:24,node:[[`path`,{d:`M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z`,key:`zw3jo`}],[`path`,{d:`M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12`,key:`1wduqc`}],[`path`,{d:`M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17`,key:`kqbvx6`}]],aliases:[`layers-3`]};hu.node;var gu=W(hu),_u={name:`layout-grid`,size:24,node:[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]};_u.node;var vu=W(_u),yu={name:`list-filter`,size:24,node:[[`path`,{d:`M2 5h20`,key:`1fs1ex`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`path`,{d:`M9 19h6`,key:`456am0`}]]};yu.node;var bu=W(yu),xu={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};xu.node;var Su=W(xu),Cu={name:`lock-keyhole`,size:24,node:[[`circle`,{cx:`12`,cy:`16`,r:`1`,key:`1au0dj`}],[`rect`,{x:`3`,y:`10`,width:`18`,height:`12`,rx:`2`,key:`6s8ecr`}],[`path`,{d:`M7 10V7a5 5 0 0 1 10 0v3`,key:`1pqi11`}]]};Cu.node;var wu=W(Cu),Tu={name:`memory-stick`,size:24,node:[[`path`,{d:`M12 12v-2`,key:`fwoke6`}],[`path`,{d:`M12 18v-2`,key:`qj6yno`}],[`path`,{d:`M16 12v-2`,key:`heuere`}],[`path`,{d:`M16 18v-2`,key:`s1ct0w`}],[`path`,{d:`M2 11h1.5`,key:`15p63e`}],[`path`,{d:`M20 18v-2`,key:`12ehxp`}],[`path`,{d:`M20.5 11H22`,key:`khsy7a`}],[`path`,{d:`M4 18v-2`,key:`1c3oqr`}],[`path`,{d:`M8 12v-2`,key:`1mwtfd`}],[`path`,{d:`M8 18v-2`,key:`qcmpov`}],[`rect`,{x:`2`,y:`6`,width:`20`,height:`10`,rx:`2`,key:`1qcswk`}]]};Tu.node;var Eu=W(Tu),Du={name:`menu`,size:24,node:[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]};Du.node;var Ou=W(Du),ku={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};ku.node;var Au=W(ku),ju={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};ju.node;var Mu=W(ju),Nu={name:`moon`,size:24,node:[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]};Nu.node;var Pu=W(Nu),Fu={name:`network`,size:24,node:[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]};Fu.node;var Iu=W(Fu),Lu={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`}]]};Lu.node;var Ru=W(Lu),zu={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};zu.node;var Bu=W(zu),Vu={name:`pin-off`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`,key:`znwnzq`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`,key:`c9qhm2`}]]};Vu.node;var Hu=W(Vu),Uu={name:`pin`,size:24,node:[[`path`,{d:`M12 17v5`,key:`bb1du9`}],[`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`,key:`1nkz8b`}]]};Uu.node;var Wu=W(Uu),Gu={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`}]]};Gu.node;var Ku=W(Gu),qu={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};qu.node;var Ju=W(qu),Yu={name:`radar`,size:24,node:[[`path`,{d:`M19.07 4.93A10 10 0 0 0 6.99 3.34`,key:`z3du51`}],[`path`,{d:`M4 6h.01`,key:`oypzma`}],[`path`,{d:`M2.29 9.62A10 10 0 1 0 21.31 8.35`,key:`qzzz0`}],[`path`,{d:`M16.24 7.76A6 6 0 1 0 8.23 16.67`,key:`1yjesh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M17.99 11.66A6 6 0 0 1 15.77 16.67`,key:`1u2y91`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}],[`path`,{d:`m13.41 10.59 5.66-5.66`,key:`mhq4k0`}]]};Yu.node;var Xu=W(Yu),Zu={name:`radio`,size:24,node:[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};Zu.node;var Qu=W(Zu),$u={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};$u.node;var ed=W($u),td={name:`rotate-ccw-clock`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]],aliases:[`history`]};td.node;var nd=W(td),rd={name:`rotate-cw`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]};rd.node;var id=W(rd),ad={name:`route`,size:24,node:[[`circle`,{cx:`6`,cy:`19`,r:`3`,key:`1kj8tv`}],[`path`,{d:`M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15`,key:`1d8sl`}],[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}]]};ad.node;var od=W(ad),sd={name:`router`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,key:`w68u3i`}],[`path`,{d:`M6.01 18H6`,key:`19vcac`}],[`path`,{d:`M10.01 18H10`,key:`uamcmx`}],[`path`,{d:`M15 10v4`,key:`qjz1xs`}],[`path`,{d:`M17.84 7.17a4 4 0 0 0-5.66 0`,key:`1rif40`}],[`path`,{d:`M20.66 4.34a8 8 0 0 0-11.31 0`,key:`6a5xfq`}]]};sd.node;var cd=W(sd),ld={name:`scale`,size:24,node:[[`path`,{d:`M12 3v18`,key:`108xh3`}],[`path`,{d:`m19 8 3 8a5 5 0 0 1-6 0zV7`,key:`zcdpyk`}],[`path`,{d:`M3 7h1a17 17 0 0 0 8-2 17 17 0 0 0 8 2h1`,key:`1yorad`}],[`path`,{d:`m5 8 3 8a5 5 0 0 1-6 0zV7`,key:`eua70x`}],[`path`,{d:`M7 21h10`,key:`1b0cd5`}]]};ld.node;var ud=W(ld),dd={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};dd.node;var fd=W(dd),pd={name:`server-cog`,size:24,node:[[`path`,{d:`m10.852 14.772-.383.923`,key:`11vil6`}],[`path`,{d:`M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923`,key:`1v3clb`}],[`path`,{d:`m13.148 9.228.383-.923`,key:`t2zzyc`}],[`path`,{d:`m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544`,key:`1bxfiv`}],[`path`,{d:`m14.772 10.852.923-.383`,key:`k9m8cz`}],[`path`,{d:`m14.772 13.148.923.383`,key:`1xvhww`}],[`path`,{d:`M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5`,key:`tn8das`}],[`path`,{d:`M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5`,key:`1g2pve`}],[`path`,{d:`M6 18h.01`,key:`uhywen`}],[`path`,{d:`M6 6h.01`,key:`1utrut`}],[`path`,{d:`m9.228 10.852-.923-.383`,key:`1wtb30`}],[`path`,{d:`m9.228 13.148-.923.383`,key:`1a830x`}]]};pd.node;var md=W(pd),hd={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};hd.node;var gd=W(hd),_d={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};_d.node;var vd=W(_d),yd={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};yd.node;var bd=W(yd),xd={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};xd.node;var Sd=W(xd),Cd={name:`shield-question-mark`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3`,key:`mhlwft`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`shield-question`]};Cd.node;var wd=W(Cd),Td={name:`shield`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}]]};Td.node;var Ed=W(Td),Dd={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};Dd.node;var Od=W(Dd),kd={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};kd.node;var Ad=W(kd),jd={name:`split`,size:24,node:[[`path`,{d:`M16 3h5v5`,key:`1806ms`}],[`path`,{d:`M8 3H3v5`,key:`15dfkv`}],[`path`,{d:`M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3`,key:`1qrqzj`}],[`path`,{d:`m15 9 6-6`,key:`ko1vev`}]]};jd.node;var Md=W(jd),Nd={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};Nd.node;var Pd=W(Nd),Fd={name:`star`,size:24,node:[[`path`,{d:`M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z`,key:`r04s7s`}]]};Fd.node;var Id=W(Fd),Ld={name:`sun`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]};Ld.node;var Rd=W(Ld),zd={name:`terminal`,size:24,node:[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]};zd.node;var Bd=W(zd),Vd={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};Vd.node;var Hd=W(Vd),Ud={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};Ud.node;var Wd=W(Ud),Gd={name:`undo-2`,size:24,node:[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]};Gd.node;var Kd=W(Gd),qd={name:`unplug`,size:24,node:[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]};qd.node;var Jd=W(qd),Yd={name:`upload`,size:24,node:[[`path`,{d:`M12 3v12`,key:`1x0j5s`}],[`path`,{d:`m17 8-5-5-5 5`,key:`7q97r8`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}]]};Yd.node;var Xd=W(Yd),Zd={name:`waypoints`,size:24,node:[[`path`,{d:`m10.586 5.414-5.172 5.172`,key:`4mc350`}],[`path`,{d:`m18.586 13.414-5.172 5.172`,key:`8c96vv`}],[`path`,{d:`M6 12h12`,key:`8npq4p`}],[`circle`,{cx:`12`,cy:`20`,r:`2`,key:`144qzu`}],[`circle`,{cx:`12`,cy:`4`,r:`2`,key:`muu5ef`}],[`circle`,{cx:`20`,cy:`12`,r:`2`,key:`1xzzfp`}],[`circle`,{cx:`4`,cy:`12`,r:`2`,key:`1hvhnz`}]]};Zd.node;var Qd=W(Zd),$d={name:`wifi-off`,size:24,node:[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]};$d.node;var ef=W($d),tf={name:`wifi`,size:24,node:[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M2 8.82a15 15 0 0 1 20 0`,key:`dnpr2z`}],[`path`,{d:`M5 12.859a10 10 0 0 1 14 0`,key:`1x1e6c`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}]]};tf.node;var nf=W(tf),rf={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};rf.node;var af=W(rf),of=Object.defineProperty,sf=(e,t)=>of(e,`name`,{value:t,configurable:!0});function cf(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}sf(cf,`setRef`);function lf(...e){return t=>{let n=!1,r=e.map(e=>{let r=cf(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():cf(e[t],null)}}}}sf(lf,`composeRefs`);function uf(...e){return v.useCallback(lf(...e),e)}sf(uf,`useComposedRefs`);var df=Object.defineProperty,ff=(e,t)=>df(e,`name`,{value:t,configurable:!0});function pf(e){let t=v.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Sf(r)&&typeof Ef==`function`&&(r=Ef(r._payload)),v.Children.forEach(r,e=>{if(bf(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Sf(n)&&typeof Ef==`function`&&(n=Ef(n._payload)),a=_f(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=v.cloneElement(a,void 0,s):!o&&v.Children.count(r)===1&&v.isValidElement(r)&&(a=r);let c=a?yf(a):void 0,l=uf(n,c);if(!a){if(r||r===0)throw Error(o?Tf(e):wf(e));return r}let u=vf(i,a.props??{});return a.type!==v.Fragment&&(u.ref=n?l:c),v.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}ff(pf,`createSlot`);var mf=pf(`Slot`),hf=Symbol.for(`radix.slottable`);function gf(e){let t=ff(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=hf,t}ff(gf,`createSlottable`);var _f=ff((e,t)=>{if(`child`in e.props){let t=e.props.child;return v.isValidElement(t)?v.cloneElement(t,void 0,e.props.children(t.props.children)):null}return v.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function vf(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}}ff(vf,`mergeProps`);function yf(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)}ff(yf,`getElementRef`);function bf(e){return v.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===hf}ff(bf,`isSlottable`);var xf=Symbol.for(`react.lazy`);function Sf(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===xf&&`_payload`in e&&Cf(e._payload)}ff(Sf,`isLazyComponent`);function Cf(e){return typeof e==`object`&&!!e&&`then`in e}ff(Cf,`isPromiseLike`);var wf=ff(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Tf=ff(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ef=v.use,Df=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})),Of=o(((e,t)=>{t.exports=Df()})),kf=l(h(),1),G=Of(),Af=Object.defineProperty,jf=(e,t)=>Af(e,`name`,{value:t,configurable:!0}),Mf=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pf(`Primitive.${t}`),r=v.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,G.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nf(e,t){e&&kf.flushSync(()=>e.dispatchEvent(t))}jf(Nf,`dispatchDiscreteCustomEvent`);var Pf=Object.defineProperty,Ff=(e,t)=>Pf(e,`name`,{value:t,configurable:!0});function If(e,t){let n=v.createContext(t);n.displayName=e+`Context`;let r=Ff(e=>{let{children:t,...r}=e,i=v.useMemo(()=>r,Object.values(r));return(0,G.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=v.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Ff(i,`useContext`),[r,i]}Ff(If,`createContext`);function Lf(e,t=[]){let n=[];function r(t,r){let i=v.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Ff(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=v.useMemo(()=>o,Object.values(o));return(0,G.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=v.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Ff(s,`useContext`),[o,s]}Ff(r,`createContext`);let i=Ff(()=>{let t=n.map(e=>v.createContext(e));return Ff(function(n){let r=n?.[e]||t;return v.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Rf(i,...t)]}Ff(Lf,`createContextScope`);function Rf(...e){let t=e[0];if(e.length===1)return t;let n=Ff(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Ff(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Ff(Rf,`composeContextScopes`);var zf=Object.defineProperty,Bf=(e,t)=>zf(e,`name`,{value:t,configurable:!0}),Vf=!!(typeof window<`u`&&window.document&&window.document.createElement);function Hf(e,t,{checkForDefaultPrevented:n=!0}={}){return Bf(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}Bf(Hf,`composeEventHandlers`);function Uf(e){if(!Vf)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}Bf(Uf,`getOwnerWindow`);function Wf(e){if(!Vf)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}Bf(Wf,`getOwnerDocument`);function Gf(e,t=!1){let{activeElement:n}=Wf(e);if(!n?.nodeName)return null;if(Kf(n)&&n.contentDocument)return Gf(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=Wf(n).getElementById(e);if(t)return t}}return n}Bf(Gf,`getActiveElement`);function Kf(e){return e.tagName===`IFRAME`}Bf(Kf,`isFrame`);var qf=globalThis?.document?v.useLayoutEffect:()=>{},Jf=Object.defineProperty,Yf=(e,t)=>Jf(e,`name`,{value:t,configurable:!0}),Xf=v.useEffectEvent,Zf=v.useInsertionEffect;function Qf(e){if(typeof Xf==`function`)return Xf(e);let t=v.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Zf==`function`?Zf(()=>{t.current=e}):qf(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Yf(Qf,`useEffectEvent`);var $f=Object.defineProperty,ep=(e,t)=>$f(e,`name`,{value:t,configurable:!0}),tp=v.useInsertionEffect||qf;function np({prop:e,defaultProp:t,onChange:n=ep(()=>{},`onChange`),caller:r}){let[i,a,o]=rp({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,v.useCallback(t=>{if(s){let n=ip(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ep(np,`useControllableState`);function rp({defaultProp:e,onChange:t}){let[n,r]=v.useState(e),i=v.useRef(n),a=v.useRef(t);return tp(()=>{a.current=t},[t]),v.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ep(rp,`useUncontrolledState`);function ip(e){return typeof e==`function`}ep(ip,`isFunction`);var ap=Symbol(`RADIX:SYNC_STATE`);function op(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Qf(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=v.useReducer((t,n)=>{if(n.type===ap)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=v.useRef(p);v.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=v.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return v.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:ap,state:i})},[i,d.state,c]),[h,f]}ep(op,`useControllableStateReducer`);var sp=Object.defineProperty,cp=(e,t)=>sp(e,`name`,{value:t,configurable:!0});function lp(e,t){return v.useReducer((e,n)=>t[e][n]??e,e)}cp(lp,`useStateMachine`);var up=cp(e=>{let{present:t,children:n}=e,r=dp(t),i=typeof n==`function`?n({present:r.isPresent}):v.Children.only(n),a=pp(r.ref,hp(i));return typeof n==`function`||r.isPresent?v.cloneElement(i,{ref:a}):null},`Presence`);function dp(e){let[t,n]=v.useState(),r=v.useRef(null),i=v.useRef(e),a=v.useRef(`none`),o=v.useRef(void 0),[s,c]=lp(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return v.useEffect(()=>{s===`mounted`?(a.current=o.current??mp(r.current),o.current=void 0):a.current=`none`},[s]),qf(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=mp(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]),qf(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=cp(a=>{let o=mp(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=cp(e=>{e.target===t&&(a.current=mp(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:v.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=mp(t)}else r.current=null;n(e)},[])}}cp(dp,`usePresence`);function fp(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}cp(fp,`setRef`);function pp(...e){let t=v.useRef(e);return t.current=e,v.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=fp(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():fp(n[e],null)}}},[])}cp(pp,`useStableComposedRefs`);function mp(e){return e?.animationName||`none`}cp(mp,`getAnimationName`);function hp(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)}cp(hp,`getElementRef`);var gp=Object.defineProperty,_p=(e,t)=>gp(e,`name`,{value:t,configurable:!0}),vp=v.useId||(()=>void 0),yp=0;function bp(e){let[t,n]=v.useState(vp());return qf(()=>{e||n(e=>e??String(yp++))},[e]),e||(t?`radix-${t}`:``)}_p(bp,`useId`);var xp=Object.defineProperty,Sp=(e,t)=>xp(e,`name`,{value:t,configurable:!0});function Cp(e){let t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...e)=>t.current?.(...e)),[])}Sp(Cp,`useCallbackRef`);var wp=Object.defineProperty,Tp=(e,t)=>wp(e,`name`,{value:t,configurable:!0}),Ep=`dismissableLayer.update`,Dp=`dismissableLayer.pointerDownOutside`,Op=`dismissableLayer.focusOutside`,kp,Ap=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),jp=v.forwardRef(Tp(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=v.useContext(Ap),[d,f]=v.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=v.useState({}),h=uf(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=_?g.indexOf(_):-1,b=d?g.indexOf(d):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,C=v.useRef(!1),w=Pp(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return S&&!t},[u.branches,S])}),T=Fp(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?b===g.length-1:!1,D=Cp(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return v.useEffect(()=>{if(E)return p.addEventListener(`keydown`,D,{capture:!0}),()=>p.removeEventListener(`keydown`,D,{capture:!0})},[p,E,D]),v.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(kp=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Ip(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=kp))}},[d,p,n,u]),v.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Ip())},[d,u]),v.useEffect(()=>{let e=Tp(()=>m({}),`handleUpdate`);return document.addEventListener(Ep,e),()=>document.removeEventListener(Ep,e)},[]),(0,G.jsx)(Mf.div,{...l,ref:h,style:{pointerEvents:x?S?`auto`:`none`:void 0,...e.style},onFocusCapture:Hf(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Hf(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Hf(e.onPointerDownCapture,w.onPointerDownCapture)})},`DismissableLayer`));function Mp(){let e=v.useContext(Ap),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Tp(Mp,`useDismissableLayerSurface`);var Np=Tp(()=>!0,`IS_TRUE`);function Pp(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Np}=t,s=Cp(e),c=v.useRef(!1),l=v.useRef(!1),u=v.useRef(new Map),d=v.useRef(()=>{});return v.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Tp(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Tp(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)}Tp(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Tp(p,`handleInteractionBubble`);let m=Tp(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||Lp(Dp,s,p,{discrete:!0})};if(Tp(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:Tp(()=>c.current=!0,`onPointerDownCapture`)}}Tp(Pp,`usePointerDownOutside`);function Fp(e,t=globalThis?.document){let n=Cp(e),r=v.useRef(!1);return v.useEffect(()=>{let e=Tp(e=>{e.target&&!r.current&&Lp(Op,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Tp(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Tp(()=>r.current=!1,`onBlurCapture`)}}Tp(Fp,`useFocusOutside`);function Ip(){let e=new CustomEvent(Ep);document.dispatchEvent(e)}Tp(Ip,`dispatchUpdate`);function Lp(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?Nf(i,a):i.dispatchEvent(a)}Tp(Lp,`handleAndDispatchCustomEvent`);var Rp=Object.defineProperty,zp=(e,t)=>Rp(e,`name`,{value:t,configurable:!0}),Bp=`focusScope.autoFocusOnMount`,Vp=`focusScope.autoFocusOnUnmount`,Hp={bubbles:!1,cancelable:!0},Up=v.forwardRef(zp(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=v.useState(null),l=Cp(i),u=Cp(a),d=v.useRef(null),f=uf(t,c),p=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:Xp(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||Xp(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Xp(s)};zp(e,`handleFocusIn`),zp(t,`handleFocusOut`),zp(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]),v.useEffect(()=>{if(s){Zp.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(Bp,Hp);s.addEventListener(Bp,l),s.dispatchEvent(t),t.defaultPrevented||(Wp(em(Kp(s)),{select:!0}),document.activeElement===e&&Xp(s))}return()=>{s.removeEventListener(Bp,l),setTimeout(()=>{let t=new CustomEvent(Vp,Hp);s.addEventListener(Vp,u),s.dispatchEvent(t),t.defaultPrevented||Xp(e??document.body,{select:!0}),s.removeEventListener(Vp,u),Zp.remove(p)},0)}}},[s,l,u,p]);let m=v.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]=Gp(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&Xp(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&Xp(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,G.jsx)(Mf.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Wp(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(Xp(r,{select:t}),document.activeElement!==n)return}zp(Wp,`focusFirst`);function Gp(e){let t=Kp(e);return[qp(t,e),qp(t.reverse(),e)]}zp(Gp,`getTabbableEdges`);function Kp(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:zp(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}zp(Kp,`getTabbableCandidates`);function qp(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Jp(r,{upTo:t})))return r}zp(qp,`findVisible`);function Jp(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}zp(Jp,`isHidden`);function Yp(e){return e instanceof HTMLInputElement&&`select`in e}zp(Yp,`isSelectableInput`);function Xp(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Yp(e)&&t&&e.select()}}zp(Xp,`focus`);var Zp=Qp();function Qp(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=$p(e,t),e.unshift(t)},remove(t){e=$p(e,t),e[0]?.resume()}}}zp(Qp,`createFocusScopesStack`);function $p(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}zp($p,`arrayRemove`);function em(e){return e.filter(e=>e.tagName!==`A`)}zp(em,`removeLinks`);var tm=Object.defineProperty,nm=v.forwardRef(((e,t)=>tm(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=v.useState(!1);qf(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?kf.createPortal((0,G.jsx)(Mf.div,{...r,ref:t}),o):null},`Portal`)),rm=Object.defineProperty,im=(e,t)=>rm(e,`name`,{value:t,configurable:!0}),am=0,om=null;function sm(e){return cm(),e.children}im(sm,`FocusGuards`);function cm(){v.useEffect(()=>{om||={start:lm(),end:lm()};let{start:e,end:t}=om;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),am++,()=>{am===1&&(om?.start.remove(),om?.end.remove(),om=null),am=Math.max(0,am-1)}},[])}im(cm,`useFocusGuards`);function lm(){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}im(lm,`createFocusGuard`);var um=function(){return um=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},um.apply(this,arguments)};function dm(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 fm(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 pm=`right-scroll-bar-position`,mm=`width-before-scroll-bar`,hm=`with-scroll-bars-hidden`,gm=`--removed-body-scroll-bar-size`;function _m(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function vm(e,t){var n=(0,v.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 ym=typeof window<`u`?v.useLayoutEffect:v.useEffect,bm=new WeakMap;function xm(e,t){var n=vm(t||null,function(t){return e.forEach(function(e){return _m(e,t)})});return ym(function(){var t=bm.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||_m(e,null)}),i.forEach(function(e){r.has(e)||_m(e,a)})}bm.set(n,e)},[e]),n}function Sm(e){return e}function Cm(e,t){t===void 0&&(t=Sm);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 wm(e){e===void 0&&(e={});var t=Cm(null);return t.options=um({async:!0,ssr:!1},e),t}var Tm=function(e){var t=e.sideCar,n=dm(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 v.createElement(r,um({},n))};Tm.isSideCarExport=!0;function Em(e,t){return e.useMedium(t),Tm}var Dm=wm(),Om=function(){},km=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Om,onWheelCapture:Om,onTouchMoveCapture:Om}),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,y=_===void 0?`div`:_,b=e.gapMode,x=dm(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=xm([n,t]),w=um(um({},x),i);return v.createElement(v.Fragment,null,u&&v.createElement(S,{sideCar:Dm,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:b}),o?v.cloneElement(v.Children.only(s),um(um({},w),{ref:C})):v.createElement(y,um({},w,{className:c,ref:C}),s))});km.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},km.classNames={fullWidth:mm,zeroRight:pm};var Am=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function jm(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Am();return t&&e.setAttribute(`nonce`,t),e}function Mm(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nm(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Pm=function(){var e=0,t=null;return{add:function(n){e==0&&(t=jm())&&(Mm(t,n),Nm(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Fm=function(){var e=Pm();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Im=function(){var e=Fm();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Lm={left:0,top:0,right:0,gap:0},Rm=function(e){return parseInt(e||``,10)||0},zm=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[Rm(n),Rm(r),Rm(i)]},Bm=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Lm;var t=zm(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])}},Vm=Im(),Hm=`data-scroll-locked`,Um=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
62
62
|
.${hm} {
|
|
63
63
|
overflow: hidden ${r};
|
|
64
64
|
padding-right: ${s}px ${r};
|
|
@@ -174,7 +174,7 @@ html[data-beui-vt="blinds"]::view-transition-new(root) {
|
|
|
174
174
|
from { --beui-vt-slat: -20px; }
|
|
175
175
|
to { --beui-vt-slat: 72px; }
|
|
176
176
|
}
|
|
177
|
-
`,sre={"top-left":`inset(0 100% 100% 0)`,"top-right":`inset(0 0 100% 100%)`,"bottom-left":`inset(100% 100% 0 0)`,"bottom-right":`inset(100% 0 0 100%)`,center:`inset(50% 50% 50% 50%)`,"bottom-up":`inset(100% 0 0 0)`},cre={"top-left":`0% 0%`,"top-right":`100% 0%`,"bottom-left":`0% 100%`,"bottom-right":`100% 100%`,center:`50% 50%`,"bottom-up":`50% 100%`};function lre({variant:e=`rectangle`,start:t=`bottom-up`}={}){let[n,r]=UO(),i=jD()??!1,[a,o]=(0,v.useState)(!1);(0,v.useEffect)(()=>o(!0),[]),(0,v.useEffect)(()=>{if(document.getElementById(BO))return;let e=document.createElement(`style`);e.id=BO,e.textContent=VO,document.head.appendChild(e)},[]);let s=a&&n===`dark`;return{isDark:s,mounted:a,toggle:()=>{let n=s?`light`:`dark`;if(i||!(`startViewTransition`in document)){r(n);return}let a=document.documentElement;e===`rectangle`?(a.style.setProperty(`--beui-vt-from`,sre[t]),a.dataset.beuiVt=`rect`):e===`blinds`?a.dataset.beuiVt=`blinds`:(a.style.setProperty(`--beui-vt-origin`,cre[t]),a.dataset.beuiVt=e),document.startViewTransition(()=>r(n)).finished.finally(()=>{delete a.dataset.beuiVt})}}}function ure({variant:e=`rectangle`,start:t=`bottom-up`,className:n,iconClassName:r,...i}){let{isDark:a,mounted:o,toggle:s}=lre({variant:e,start:t});return(0,G.jsx)(`button`,{type:`button`,"aria-label":o&&a?`Switch to light mode`:`Switch to dark mode`,onClick:s,className:J(`flex items-center justify-center`,n),...i,children:o?(0,G.jsx)(zO,{value:a?`dark`:`light`,animation:`blur`,className:r,children:a?(0,G.jsx)(Rd,{className:r}):(0,G.jsx)(Pu,{className:r})}):(0,G.jsx)(`span`,{className:r,"aria-hidden":`true`})})}var HO=`mt-theme`;function dre(){try{return localStorage.getItem(HO)===`light`?`light`:`dark`}catch{return`dark`}}function UO(){let[e,t]=(0,v.useState)(dre);return(0,v.useEffect)(()=>{document.documentElement.classList.toggle(`dark`,e===`dark`)},[e]),[e,(0,v.useCallback)(e=>{t(e);try{localStorage.setItem(HO,e)}catch{}},[])]}function fre(){return(0,G.jsx)(ure,{variant:`circle`,className:`size-9 rounded-md hover:bg-muted focus-visible:outline-2 focus-visible:outline-ring`,iconClassName:`size-4`})}function pre(e){let[t]=UO();return(0,G.jsx)(MO,{theme:t,className:`toaster group`,position:`bottom-right`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`,error:`group-[.toast]:text-destructive`,success:`group-[.toast]:text-foreground`}},...e})}function WO({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,G.jsx)(`table`,{"data-slot":`table`,className:K(`w-full caption-bottom text-sm`,e),...t})})}function GO({className:e,...t}){return(0,G.jsx)(`thead`,{"data-slot":`table-header`,className:K(`[&_tr]:border-b`,e),...t})}function KO({className:e,...t}){return(0,G.jsx)(`tbody`,{"data-slot":`table-body`,className:K(`[&_tr:last-child]:border-0`,e),...t})}function qO({className:e,...t}){return(0,G.jsx)(`tr`,{"data-slot":`table-row`,className:K(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function JO({className:e,...t}){return(0,G.jsx)(`th`,{"data-slot":`table-head`,className:K(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}function YO({className:e,...t}){return(0,G.jsx)(`td`,{"data-slot":`table-cell`,className:K(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}function XO({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card`,className:K(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function mre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-header`,className:K(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function hre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-title`,className:K(`leading-none font-semibold`,e),...t})}function gre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-content`,className:K(`px-6`,e),...t})}function X({title:e,extra:t,children:n,className:r}){return(0,G.jsxs)(XO,{className:K(`dashboard-panel gap-0 py-5`,r),children:[e!=null&&(0,G.jsxs)(mre,{className:`flex flex-row flex-wrap items-center gap-3 px-5 pb-3`,children:[(0,G.jsx)(hre,{className:`text-base font-semibold`,children:e}),t!=null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`flex-1`}),t]})]}),(0,G.jsx)(gre,{className:`px-5`,children:n})]})}function ZO({k:e,v:t,sub:n,cls:r}){return(0,G.jsxs)(XO,{className:`dashboard-stat gap-2 px-4 py-4`,children:[(0,G.jsx)(`p`,{className:`text-muted-foreground text-xs tracking-wide uppercase`,children:e}),(0,G.jsxs)(`div`,{className:K(`text-2xl font-semibold tabular-nums`,r),children:[t,n!=null&&(0,G.jsxs)(`small`,{className:`text-muted-foreground ml-1 text-sm`,children:[` `,n]})]})]})}function QO({rows:e}){let t=Math.max(1,...e.map(e=>e.value));return(0,G.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map(e=>(0,G.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,7rem)_1fr_auto] items-center gap-3`,children:[(0,G.jsx)(`span`,{className:`text-muted-foreground truncate text-xs`,title:e.label,children:e.label}),(0,G.jsx)(`div`,{className:`bg-muted h-2 overflow-hidden rounded-full`,children:(0,G.jsx)(`div`,{className:K(`h-full rounded-full`,!e.color&&`bg-brand`),style:{width:`${e.value/t*100}%`,background:e.color}})}),(0,G.jsx)(`span`,{className:`text-xs tabular-nums`,children:e.sub??String(e.value)})]},e.label))})}function $O({text:e,label:t=`Copy`,className:n,icon:r=!1,title:i}){let[a,o]=(0,v.useState)(!1),s=(0,v.useRef)(null);return(0,v.useEffect)(()=>()=>void(s.current&&clearTimeout(s.current)),[]),(0,G.jsxs)(YD,{type:`button`,variant:`outline`,size:r?`icon-sm`:`sm`,className:n,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{o(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>o(!1),1400)},()=>{})},title:i??`Copy to clipboard`,"aria-label":i??`Copy to clipboard`,children:[a?(0,G.jsx)(cl,{className:`text-success`}):r?(0,G.jsx)(Pl,{}):t,a&&(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:`Copied!`})]})}var _re=[50,100,200,500,1e3,2e3],ek={initial:{opacity:0,filter:`blur(6px)`},animate:{opacity:1,filter:`blur(0px)`},exit:e=>e?{}:{opacity:0,filter:`blur(6px)`}},tk={initial:{opacity:0},animate:{opacity:1},exit:e=>e?{}:{opacity:0}},nk=(0,v.forwardRef)(({children:e,as:t=`div`,className:n,onMouseLeave:r,pillClassName:i,pillContainerClassName:a,inset:o=20,...s},c)=>{let[l,u]=(0,v.useState)(null),d=(0,v.useId)(),f=jD(),p=v.Children.toArray(e).filter(v.isValidElement).map((e,t)=>{let n=e,r=n.key?String(n.key):`item-${t}`;return(0,v.cloneElement)(n,{key:r,className:J(`relative`,n.props.className),onMouseEnter:()=>{n.props.onMouseEnter?.(),u(r)}},(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(FE,{custom:l!==null,children:l===null?null:(0,G.jsx)(q.div,{variants:f?tk:ek,initial:`initial`,animate:`animate`,exit:`exit`,custom:l!==null,className:J(`pointer-events-none absolute inset-y-0`,a),style:{left:-o,right:-o},children:l===r?(0,G.jsx)(q.div,{layoutId:`shared-bg-${d}`,transition:f?{duration:0}:WD,className:J(`pointer-events-none h-full w-full rounded-2xl bg-primary/[0.06]`,i)}):null})}),(0,G.jsx)(`div`,{className:`relative z-10`,children:n.props.children})]}))}),m=e=>{u(null),r?.(e)};return t===`ul`?(0,G.jsx)(q.ul,{...s,ref:c,layoutRoot:!0,onMouseLeave:m,className:J(`flex w-full flex-col`,n),children:p}):(0,G.jsx)(q.div,{...s,ref:c,layoutRoot:!0,onMouseLeave:m,className:J(`flex w-full flex-col`,n),children:p})}),rk=`(max-width: 899px)`,ik=`b`,ak={duration:.36,ease:qne},ok={type:`spring`,stiffness:380,damping:35,mass:.75},sk={duration:.2,delay:.08,ease:BD},ck={duration:.12,ease:BD},lk={duration:.18,ease:BD},uk={closed:{opacity:0,clipPath:`inset(0 0 100% 0 round 8px)`,transition:{duration:.14,ease:BD,staggerChildren:.025,staggerDirection:-1}},open:{opacity:1,clipPath:`inset(0 0 0% 0 round 8px)`,transition:{duration:.2,delayChildren:.035,ease:BD,staggerChildren:.045}}},dk={closed:{opacity:0,y:-6,filter:`blur(3px)`},open:{opacity:1,y:0,filter:`blur(0px)`,transition:lk}},fk={duration:.16,ease:BD},pk=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex='-1'])`].join(`,`);function mk(e){let t=window.matchMedia(rk);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function hk(){return window.matchMedia(rk).matches}function gk(){return!1}function _k(){return(0,v.useSyncExternalStore)(mk,hk,gk)}var vk=(0,v.createContext)(null),yk=(0,v.createContext)(null);function bk(){let e=(0,v.useContext)(vk);if(!e)throw Error(`useAnimatedSidebar must be used inside AnimatedSidebarProvider.`);return e}function xk(){let e=(0,v.useContext)(yk);if(!e)throw Error(`Animated Sidebar parts must be used inside AnimatedSidebar.`);return e}function Sk({children:e,open:t,defaultOpen:n=!0,onOpenChange:r,openMobile:i,defaultOpenMobile:a=!1,onOpenMobileChange:o,className:s,style:c,...l}){let[u,d]=(0,v.useState)(n),[f,p]=(0,v.useState)(a),m=_k(),h=jD()??!1,g=(0,v.useId)(),_=(0,v.useRef)(null),y=t??u,b=i??f,x=(0,v.useCallback)(e=>{t===void 0&&d(e),r?.(e)},[r,t]),S=(0,v.useCallback)(e=>{i===void 0&&p(e),o?.(e)},[o,i]),C=(0,v.useCallback)(()=>{m?S(!b):x(!y)},[y,m,b,x,S]);return(0,v.useEffect)(()=>{let e=e=>{e.key.toLowerCase()===ik&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),C())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[C]),(0,G.jsx)(vk.Provider,{value:{isMobile:m,layoutId:`${g}-active`,open:y,openMobile:b,reduce:h,setOpen:x,setOpenMobile:S,state:y?`expanded`:`collapsed`,toggleSidebar:C,triggerRef:_},children:(0,G.jsx)(`div`,{...l,"data-slot":`sidebar-wrapper`,"data-state":y?`expanded`:`collapsed`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`4.25rem`,"--sidebar-width-mobile":`18rem`,...c},className:J(`group/sidebar-wrapper flex min-h-svh w-full min-w-0`,s),children:e})})}function Ck({ariaLabel:e,children:t,className:n,side:r}){let i=bk(),a=(0,v.useRef)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!i.openMobile),u=(0,v.useRef)(i.openMobile),d=(0,v.useCallback)(()=>{let e=a.current;e&&!e.contains(document.activeElement)&&([...e.querySelectorAll(pk)].find(e=>e.getClientRects().length>0&&!e.closest(`[inert], [hidden]`))??e).focus({preventScroll:!0})},[]);return(0,v.useEffect)(()=>s(!0),[]),(0,v.useEffect)(()=>{u.current=i.openMobile,i.openMobile&&l(!1)},[i.openMobile]),(0,v.useEffect)(()=>{if(!i.openMobile)return;let e=document.body,t=window.scrollY,n={left:e.style.left,overflow:e.style.overflow,position:e.style.position,right:e.style.right,top:e.style.top};e.style.position=`fixed`,e.style.top=`-${t}px`,e.style.left=`0`,e.style.right=`0`,e.style.overflow=`hidden`;let r=requestAnimationFrame(d);return()=>{cancelAnimationFrame(r),e.style.position=n.position,e.style.top=n.top,e.style.left=n.left,e.style.right=n.right,e.style.overflow=n.overflow,window.scrollTo(0,t),i.triggerRef.current?.focus({preventScroll:!0})}},[i.openMobile,i.triggerRef,d]),o?(0,kf.createPortal)((0,G.jsxs)(`div`,{className:J(`pointer-events-none fixed left-0 top-0 z-[45] size-0 min-[900px]:hidden`,c&&!i.openMobile?`invisible`:`visible`),children:[(0,G.jsx)(q.button,{type:`button`,"aria-label":`Close sidebar`,tabIndex:i.openMobile?0:-1,initial:!1,animate:{opacity:+!!i.openMobile},transition:i.reduce?fk:ak,onClick:()=>i.setOpenMobile(!1),className:J(`fixed inset-0 bg-black/40`,i.openMobile?`pointer-events-auto`:`pointer-events-none`)}),(0,G.jsx)(q.div,{ref:a,role:`dialog`,"aria-modal":`true`,"aria-label":e,"aria-hidden":!i.openMobile,inert:!i.openMobile,tabIndex:-1,"data-mobile":`true`,"data-state":i.openMobile?`expanded`:`collapsed`,"data-side":r,initial:!1,animate:{opacity:i.reduce?+!!i.openMobile:1,x:i.reduce?0:i.openMobile?`0%`:r===`left`?`-100%`:`100%`},transition:i.reduce?fk:ak,onAnimationComplete:()=>{u.current?d():l(!0)},onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),i.setOpenMobile(!1);return}if(e.key!==`Tab`)return;let t=a.current?Array.from(a.current.querySelectorAll(pk)).filter(e=>e.getClientRects().length>0&&!e.closest(`[inert], [hidden]`)):[];if(t.length===0){e.preventDefault(),a.current?.focus();return}let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())},className:J(`pointer-events-auto fixed inset-y-0 flex h-dvh w-(--sidebar-width-mobile) max-w-[88vw] flex-col overflow-hidden`,`border-border bg-background shadow-2xl will-change-transform`,r===`left`?`left-0 border-r`:`right-0 border-l`,!i.openMobile&&`pointer-events-none`,n),children:(0,G.jsx)(yk.Provider,{value:{collapsed:!1,collapsible:`none`,side:r},children:t})})]}),document.body):null}var wk=(0,v.forwardRef)(({side:e=`left`,variant:t=`sidebar`,collapsible:n=`icon`,ariaLabel:r=`Sidebar`,children:i,className:a,panelClassName:o,style:s,...c},l)=>{let u=bk(),d=n!==`none`&&!u.open,f=d&&n===`offcanvas`,p=f?`0px`:d?`var(--sidebar-width-icon)`:`var(--sidebar-width)`;return u.isMobile?(0,G.jsx)(Ck,{ariaLabel:r,className:a,side:e,children:i}):(0,G.jsx)(q.aside,{...c,ref:l,initial:!1,"aria-label":r,"data-slot":`sidebar`,"data-state":d?`collapsed`:`expanded`,"data-collapsible":n,"data-variant":t,"data-side":e,animate:{width:p},transition:u.reduce?{duration:0}:ok,style:s,className:J(`group/sidebar relative hidden h-auto shrink-0 min-[900px]:block will-change-[width]`,`peer`,e===`right`&&`order-last`,a),children:(0,G.jsx)(q.div,{initial:!1,animate:{opacity:+!f,x:f?e===`left`?`-100%`:`100%`:`0%`},transition:u.reduce?fk:ak,className:J(`sticky top-0 flex h-svh w-full flex-col overflow-hidden bg-background`,n===`offcanvas`&&`w-[var(--sidebar-width)]`,t===`sidebar`&&(e===`left`?`border-border border-r`:`border-border border-l`),t===`floating`&&`m-2 h-[calc(100svh-1rem)] rounded-2xl border border-border shadow-sm`,t===`inset`&&`m-2 h-[calc(100svh-1rem)] rounded-2xl`,o),children:(0,G.jsx)(yk.Provider,{value:{collapsed:d,collapsible:n,side:e},children:i})})})}),Tk=(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk(),o=a.isMobile?a.openMobile:a.open;return(0,G.jsx)(`button`,{...r,ref:e=>{a.triggerRef.current=e,typeof i==`function`?i(e):i&&(i.current=e)},type:n,"aria-label":r[`aria-label`]??`Toggle sidebar`,"aria-expanded":o,"data-slot":`sidebar-trigger`,"data-state":o?`expanded`:`collapsed`,onClick:e=>{t?.(e),e.defaultPrevented||a.toggleSidebar()},className:J(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,e)})});(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk();return(0,G.jsx)(`button`,{...r,ref:i,type:n,"aria-label":r[`aria-label`]??`Close sidebar`,onClick:e=>{t?.(e),!e.defaultPrevented&&(a.isMobile?a.setOpenMobile(!1):a.setOpen(!1))},className:J(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none`,`focus-visible:ring-2 focus-visible:ring-ring`,e)})}),(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk(),o=xk();return(0,G.jsx)(`button`,{...r,ref:i,type:n,"data-side":o.side,"aria-label":r[`aria-label`]??`Toggle sidebar`,title:`Toggle sidebar`,tabIndex:-1,onClick:e=>{t?.(e),e.defaultPrevented||a.toggleSidebar()},className:J(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 outline-none md:block`,`after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent after:transition-colors hover:after:bg-border`,`data-[side=right]:right-0 data-[side=right]:translate-x-1/2 data-[side=left]:left-full`,e)})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.main,{...t,ref:n,"data-slot":`sidebar-inset`,className:J(`relative flex min-h-svh min-w-0 flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-2xl md:peer-data-[variant=inset]:shadow-sm`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-header`,className:J(`flex shrink-0 flex-col gap-2 p-3`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-content`,className:J(`flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden overscroll-contain px-2 py-2`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-footer`,className:J(`flex shrink-0 flex-col gap-2 border-border border-t p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-group`,className:J(`flex w-full min-w-0 flex-col px-1 py-1.5`,e)})),(0,v.forwardRef)(({children:e,className:t,...n},r)=>{let{collapsed:i}=xk();return(0,G.jsx)(`div`,{...n,ref:r,"aria-hidden":i,"data-slot":`sidebar-group-label`,className:J(`mb-1 h-7 overflow-hidden px-2 text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground transition-opacity`,i?`opacity-0`:`opacity-100`,t),children:e})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-group-content`,className:J(`w-full min-w-0`,e)})),(0,v.forwardRef)(({children:e,className:t,...n},r)=>(0,G.jsx)(nk,{...n,ref:r,as:`ul`,inset:0,pillClassName:`rounded-xl bg-muted/70`,pillContainerClassName:`inset-y-auto top-0 h-9`,"data-slot":`sidebar-menu`,className:J(`flex w-full min-w-0 list-none flex-col gap-0.5`,t),children:e})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.li,{...t,ref:n,layout:`position`,transition:WD,"data-slot":`sidebar-menu-item`,className:J(`relative`,e)})),(0,v.forwardRef)(({open:e,children:t,className:n,...r},i)=>{let a=bk(),o=xk();return(0,G.jsx)(FE,{initial:!1,mode:`popLayout`,children:e&&!o.collapsed?(0,v.createElement)(q.ul,{...r,ref:i,key:`sidebar-submenu`,variants:a.reduce?void 0:uk,initial:!a.reduce&&`closed`,animate:a.reduce?{opacity:1}:`open`,exit:a.reduce?{opacity:0}:`closed`,transition:a.reduce?{duration:.12}:void 0,"data-slot":`sidebar-menu-sub`,className:J(`relative mt-1 ml-5 flex min-w-0 flex-col gap-0.5 border-border border-l pl-3`,n)},t):null})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.li,{...t,ref:n,variants:dk,"data-slot":`sidebar-menu-sub-item`,className:J(`relative min-w-0`,e)}));function Ek({children:e,icon:t,badge:n,href:r,isActive:i=!1,ariaExpanded:a,disabled:o=!1,closeOnSelect:s,target:c,rel:l,onSelect:u,className:d,activeLayoutId:f}){let p=bk(),m=xk(),h=typeof e==`string`?e:void 0,g=e=>{if(o){e.preventDefault();return}if(r&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))return;r&&u&&e.preventDefault(),u?.();let t=s??a===void 0;p.isMobile&&t&&p.setOpenMobile(!1),a!==void 0&&m.collapsed&&!p.isMobile&&p.setOpen(!0)},_=(0,G.jsxs)(G.Fragment,{children:[i?(0,G.jsx)(q.span,{layoutId:f?`${p.layoutId}-${f}`:p.layoutId,transition:p.reduce?{duration:0}:WD,className:`absolute inset-0 rounded-xl bg-muted`}):null,t?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`relative z-10 grid size-5 shrink-0 place-items-center`,children:t}):null,(0,G.jsx)(q.span,{initial:!1,animate:{opacity:+!m.collapsed,x:m.collapsed?-4:0},transition:p.reduce?fk:m.collapsed?ck:sk,"aria-hidden":m.collapsed,"data-slot":`sidebar-menu-label`,className:J(`relative z-10 min-w-0 flex-1 truncate`,m.collapsed&&`pointer-events-none`),children:e}),n&&!m.collapsed?(0,G.jsx)(`span`,{className:`relative z-10 shrink-0 text-xs text-muted-foreground`,children:n}):null,a===void 0?null:(0,G.jsx)(q.span,{"aria-hidden":`true`,initial:!1,animate:{opacity:+!m.collapsed,rotate:a?90:0,x:m.collapsed?4:0},transition:p.reduce?{duration:0}:WD,className:`relative z-10 grid size-4 shrink-0 place-items-center text-muted-foreground`,children:(0,G.jsx)(fl,{className:`size-3.5`})})]}),v=J(`relative flex min-h-9 w-full min-w-0 items-center gap-2.5 overflow-hidden rounded-xl px-3 text-left text-sm font-medium outline-none`,`text-muted-foreground transition-colors hover:text-foreground`,`focus-visible:bg-muted/70 focus-visible:ring-2 focus-visible:ring-ring`,i&&`text-foreground`,o&&`cursor-not-allowed opacity-40`,d);return r?(0,G.jsx)(q.a,{href:r,target:c,rel:l??(c===`_blank`?`noreferrer noopener`:void 0),"aria-current":i?`page`:void 0,"aria-expanded":a,"aria-disabled":o||void 0,"aria-label":m.collapsed?h:void 0,title:m.collapsed?h:void 0,tabIndex:o?-1:void 0,onClick:g,whileTap:p.reduce||o?void 0:{scale:.98},transition:HD,className:v,children:_}):(0,G.jsx)(q.button,{type:`button`,disabled:o,"aria-current":i?`page`:void 0,"aria-expanded":a,"aria-label":m.collapsed?h:void 0,title:m.collapsed?h:void 0,onClick:g,whileTap:p.reduce||o?void 0:{scale:.98},transition:HD,className:v,children:_})}var Dk=(0,v.forwardRef)(({label:e,value:t,defaultValue:n,onChange:r,onInputChange:i,onFocus:a,onBlur:o,error:s,reserveErrorLine:c=!1,success:l,leftIcon:u,rightIcon:d,className:f,classNames:p,disabled:m,id:h,type:g,..._},y)=>{let b=(0,v.useId)(),x=h??b,S=jD(),C=t!==void 0,[w,T]=(0,v.useState)(n??``),E=C?t??``:w,[D,O]=(0,v.useState)(!1),k=(0,v.useRef)(null),A=!!s,j=typeof s==`string`?s:null,M=l?null:d;(0,v.useEffect)(()=>{k.current&&!S&&A&&zD(k.current,{x:[0,-6,6,-4,4,-2,0]},{duration:.45})},[A,S]);let N=e=>{C||T(e),r?.(e)};return(0,G.jsxs)(`div`,{className:J(`flex flex-col gap-1.5`,f,p?.root),children:[e?(0,G.jsx)(`label`,{htmlFor:x,className:J(`px-1 text-sm font-medium text-foreground`,p?.label),children:e}):null,(0,G.jsxs)(`div`,{ref:k,"data-state":A?`error`:l?`success`:D?`focused`:`idle`,className:J(`relative h-11 overflow-hidden rounded-full border transition-colors duration-200`,`border-border`,D&&!A&&`border-foreground/40 ring-2 ring-ring/40`,A&&`border-destructive ring-2 ring-destructive/25`,m&&`opacity-60`,p?.field),children:[u?(0,G.jsx)(`span`,{className:J(`pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:h-4 [&_svg]:w-4`,p?.leftIcon),children:u}):null,(0,G.jsx)(`input`,{ref:y,id:x,type:g,value:g===`file`?void 0:E,disabled:m,"aria-invalid":A||void 0,"aria-describedby":j?`${x}-error`:void 0,..._,onChange:e=>{g!==`file`&&N(e.target.value),i?.(e)},onFocus:e=>{O(!0),a?.(e)},onBlur:e=>{O(!1),o?.(e)},className:J(`peer h-full w-full bg-transparent text-base leading-6 text-foreground caret-foreground outline-none`,`placeholder:text-muted-foreground/60`,u?`pl-10`:`pl-3.5`,M||l?`pr-10`:`pr-3.5`,m&&`cursor-not-allowed`,p?.input)}),l?(0,G.jsx)(q.svg,{viewBox:`0 0 24 24`,fill:`none`,className:J(`absolute right-3.5 top-1/2 h-5 w-5 -translate-y-1/2 text-(--color-success)`,p?.successIcon),children:(0,G.jsx)(q.path,{d:`M5 12.5l4.5 4.5L19 7.5`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,initial:S?{pathLength:1}:{pathLength:0},animate:{pathLength:1},transition:{duration:.35,ease:`easeOut`}})}):M?(0,G.jsx)(`span`,{className:J(`absolute right-0 top-0 flex h-full items-center text-muted-foreground [&_button]:grid [&_button]:size-11 [&_button]:place-items-center [&_svg]:h-4 [&_svg]:w-4`,p?.rightIcon),children:M}):null]}),(0,G.jsx)(`div`,{className:c?`min-h-4`:`contents`,children:(0,G.jsx)(FE,{initial:!1,children:j?(0,G.jsx)(q.p,{id:`${x}-error`,role:`alert`,initial:S?{opacity:0}:{opacity:0,y:-4,filter:`blur(4px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:S?{opacity:0}:{opacity:0,y:-4,filter:`blur(4px)`},transition:{duration:.2},className:J(`px-1 text-xs text-destructive`,p?.errorMessage),children:j}):null})})]})});function Ok({className:e,value:t,defaultValue:n,onChange:r,...i}){return(0,G.jsx)(Dk,{...i,"data-slot":`input`,value:t==null?void 0:String(t),defaultValue:n==null?void 0:String(n),onInputChange:r,className:`min-w-0`,classNames:{field:`h-9 rounded-xl`,input:K(`text-[13px] leading-5`,e)}})}var kk=[{id:`overview`,label:`Overview`,sub:`Calls, latency & risk at a glance`},{id:`devices`,label:`Devices`,sub:`Connectivity radar & system health`},{id:`clients`,label:`Clients`,sub:`Connected LAN devices — usage, block/allow, pin IP`},{id:`investigations`,label:`Investigations`,sub:`Client and service evidence across routers`},{id:`service-contracts`,label:`Service Health`,sub:`Approved endpoint checks, contracts and evidence`},{id:`aaa`,label:`RADIUS & UM`,sub:`RADIUS client & User Manager RADIUS server`},{id:`topology`,label:`Topology`,sub:`Layer-2 neighbours via MNDP / CDP / LLDP`},{id:`round-trip`,label:`Round-trip Lab`,sub:`Forward and return paths across snapshots`},{id:`fabric`,label:`L2 Fabric`,sub:`Which host sits on which physical bridge port`},{id:`vulns`,label:`Vulnerabilities`,sub:`Published CVEs matched to this version, ranked by real exposure`},{id:`access`,label:`Access Scope`,sub:`What this session may call — and what it blocked`},{id:`packets`,label:`Packets`,sub:`Live TZSP capture & decode`},{id:`flows`,label:`Flows`,sub:`NetFlow/IPFIX top talkers, conversations & anomalies`},{id:`snapshots`,label:`Snapshots`,sub:`Config history & time-travel diff`},{id:`drift`,label:`Drift Guard`,sub:`Golden config baselines & live drift detection`},{id:`attacks`,label:`Attacks`,sub:`Live attack incidents, evidence and guarded blocking`},{id:`policies`,label:`Policies`,sub:`Your own compliance rules, linted against config`},{id:`explain`,label:`Explain`,sub:`Config → architecture document, diagram and consequence diffs`},{id:`simulator`,label:`Simulator`,sub:`Trace a hypothetical packet — no device touched`},{id:`schedules`,label:`Schedules`,sub:`Auditors on a cron — alerting only on what changed`},{id:`txn`,label:`Transactions`,sub:`Cross-device two-phase commit — prepare, verify, commit everywhere`},{id:`plan`,label:`Change Plan`,sub:`Dry-run intended RouterOS commands`},{id:`s3`,label:`S3 Backups`,sub:`List, download & delete S3 backup objects`},{id:`backups`,label:`Backups`,sub:`Local config vault — create, restore, manage`},{id:`modules`,label:`Modules`,sub:`Enable/disable tool modules — curate the surface`},{id:`config`,label:`Config`,sub:`Effective configuration & safe editor`},{id:`memory`,label:`Memory`,sub:`Knowledge graph — entities, relations & observations`},{id:`alerts`,label:`Alerts`,sub:`Rules that reach out — Slack, Discord, ntfy, webhook, MCP`},{id:`releases`,label:`Releases`,sub:`Update, downgrade & read every version's notes`},{id:`capsman`,label:`CAPsMAN`,sub:`Wi-Fi fabric: coverage, weak signal, load, FT & HA`},{id:`feed`,label:`Live Feed`,sub:`Every tool call, in real time`}],Ak=[{id:`observe`,label:`Observe`,views:[`overview`,`devices`,`clients`,`feed`]},{id:`investigate`,label:`Investigate`,views:[`investigations`,`service-contracts`,`round-trip`,`topology`,`fabric`,`flows`,`packets`]},{id:`protect`,label:`Protect`,views:[`attacks`,`vulns`,`policies`,`access`,`aaa`,`capsman`]},{id:`operate`,label:`Operate`,views:[`plan`,`simulator`,`txn`,`snapshots`,`drift`,`backups`,`s3`,`schedules`,`explain`]},{id:`workspace`,label:`Workspace`,views:[`modules`,`config`,`memory`,`alerts`,`releases`]}];function jk(e){return Ak.find(t=>t.views.includes(e))??Ak[0]}function Mk(e){let t=e.replace(/^#\/?/,``);return kk.find(e=>e.id===t)?.id??null}function Nk(e){let t=e.trim().toLowerCase().split(/\s+/).filter(Boolean);return Ak.map(e=>({...e,items:e.views.map(e=>kk.find(t=>t.id===e)).filter(n=>t.every(t=>`${n.label} ${n.sub} ${e.label}`.toLowerCase().includes(t)))})).filter(e=>e.items.length>0)}var Pk=`mt-pinned-pages`,Fk=new Set(kk.map(e=>e.id));function Ik(e){try{let t=JSON.parse(e??`[]`);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`string`&&Fk.has(e)))]:[]}catch{return[]}}function Lk(e){try{return Ik((e??window.localStorage).getItem(Pk))}catch{return[]}}function Rk(e,t){try{return(t??window.localStorage).setItem(Pk,JSON.stringify(e)),!0}catch{return!1}}function zk(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}var Bk=e=>e<1?`<1ms`:e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(2)}s`;function Vk(e){let t=[`B`,`KiB`,`MiB`,`GiB`],n=0,r=e;for(;r>=1024&&n<t.length-1;)r/=1024,n++;return`${r.toFixed(+!!n)} ${t[n]}`}var Hk=e=>new Date(e).toLocaleTimeString(void 0,{hour12:!1}),Uk=e=>e.toLocaleString(),Wk=e=>e==null?`?`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e),Gk={cpu:`var(--chart-1)`,mem:`var(--chart-5)`,disk:`var(--chart-2)`,latency:`var(--chart-4)`},Kk={READ:`var(--chart-3)`,WRITE:`var(--chart-1)`,WRITE_IDEMPOTENT:`var(--chart-2)`,DESTRUCTIVE:`var(--chart-4)`,DANGEROUS:`var(--destructive)`},qk={READ:`border-chart-3/40 text-chart-3`,WRITE:`border-chart-1/40 text-chart-1`,WRITE_IDEMPOTENT:`border-chart-2/40 text-chart-2`,DESTRUCTIVE:`border-chart-4/40 text-chart-4`,DANGEROUS:`border-destructive/40 text-destructive`},Jk=[[`5m`,3e5],[`15m`,9e5],[`1h`,36e5],[`6h`,216e5],[`24h`,864e5]],Yk=1e4;function Xk({mode:e}){return(0,G.jsxs)(`span`,{className:`shell-stream`,"data-connected":e!==`off`,title:`Dashboard event stream, not router health`,children:[(0,G.jsx)(`span`,{className:`shell-stream-dot`,"aria-hidden":`true`}),e===`off`?`Stream offline`:`Live stream`,e!==`off`&&(0,G.jsx)(`span`,{className:`shell-stream-protocol`,children:e.toUpperCase()})]})}function Zk({view:e,onNavigate:t,renderIcon:n,onMobileOpenChange:r,liveMode:i,version:a,transport:o,eventCount:s,feedCount:c,firingCount:l,releaseAvailable:u,onReleaseNotes:d,controls:f}){let p=bk(),m=!p.open&&!p.isMobile,[h,g]=(0,v.useState)(``),[_,y]=(0,v.useState)(()=>Lk()),[b,x]=(0,v.useState)(``);(0,v.useEffect)(()=>{let e=e=>{e.storageArea===window.localStorage&&(e.key===`mt-pinned-pages`||e.key===null)&&(y(Ik(e.newValue)),x(``))};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]);let S=jk(e).id,[C,w]=(0,v.useState)(()=>({view:e,expanded:new Set([S])})),T=C.view===e?C.expanded:new Set([S]);(0,v.useEffect)(()=>{let e=window.matchMedia(`(min-width: 900px)`),t=()=>{e.matches&&r(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[r]);let E=Nk(h),D=e=>{t(e),r(!1),g(``)},O=e=>{let t=zk(_,e);y(t);let n=Rk(t),r=kk.find(t=>t.id===e).label;x(`${r} ${t.includes(e)?`pinned`:`unpinned`}.${n?``:` Browser storage unavailable; kept for this session only.`}`)},k=(t,r,i=!1)=>{let a=_.includes(t.id);return(0,G.jsxs)(`div`,{className:`shell-nav-row`,children:[(0,G.jsx)(Ek,{href:`#${t.id}`,isActive:e===t.id,activeLayoutId:i?`pinned`:`categories`,className:`shell-nav-link`,onSelect:()=>D(t.id),icon:n(t.id),badge:(0,G.jsxs)(G.Fragment,{children:[t.id===`alerts`&&l>0&&(0,G.jsx)(`span`,{className:`shell-nav-count shell-nav-count-alert`,children:l}),t.id===`feed`&&c>0&&(0,G.jsx)(`span`,{className:`shell-nav-count`,children:c>999?`999+`:c})]}),children:t.label}),(0,G.jsx)(YD,{variant:`ghost`,size:`icon-xs`,type:`button`,className:`shell-pin-toggle`,"aria-label":`${a?`Unpin`:`Pin`} ${t.label}`,"aria-pressed":a,title:`${a?`Unpin`:`Pin`} ${t.label}`,onClick:()=>{O(t.id),i&&document.getElementById(`${r}-search`)?.focus()},children:a?(0,G.jsx)(Wu,{size:13,"aria-hidden":`true`}):(0,G.jsx)(Hu,{size:13,"aria-hidden":`true`})})]},t.id)};return(0,G.jsxs)(wk,{ariaLabel:`Dashboard navigation`,collapsible:`icon`,className:p.isMobile?`shell-mobile-nav`:`shell-animated-sidebar`,panelClassName:`shell-sidebar`,children:[p.isMobile&&(0,G.jsxs)(YD,{variant:`ghost`,size:`sm`,onClick:()=>p.setOpenMobile(!1),className:`self-end`,children:[(0,G.jsx)(af,{size:14}),`Close navigation`]}),(t=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`a`,{href:`#overview`,className:`shell-brand`,onClick:e=>{e.preventDefault(),D(`overview`)},"aria-label":`MikroTik MCP overview`,children:[(0,G.jsx)(`span`,{className:`shell-brand-mark`,"aria-hidden":`true`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 40 40`,fill:`none`,children:[(0,G.jsx)(`path`,{d:`M10 11 20 21 30 11M20 21v10`,stroke:`currentColor`,strokeWidth:`2`}),(0,G.jsx)(`circle`,{cx:`10`,cy:`11`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`30`,cy:`11`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`31`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`21`,r:`4`,fill:`currentColor`})]})}),(0,G.jsxs)(`span`,{children:[(0,G.jsxs)(`strong`,{children:[`MikroTik `,(0,G.jsx)(`span`,{children:`MCP`})]}),(0,G.jsx)(`small`,{children:`Network operations`})]})]}),(0,G.jsxs)(`div`,{className:`shell-workspace`,children:[(0,G.jsx)(`span`,{className:`shell-workspace-icon`,children:(0,G.jsx)(Pc,{size:17,"aria-hidden":`true`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:`Observability`}),(0,G.jsx)(`span`,{children:o?`${o.toUpperCase()} workspace`:`Dashboard workspace`})]}),(0,G.jsx)(`span`,{className:`shell-workspace-indicator`,"aria-hidden":`true`})]}),(0,G.jsxs)(`div`,{className:`shell-nav-search`,children:[(0,G.jsx)(fd,{size:15,"aria-hidden":`true`}),(0,G.jsx)(Ok,{id:`${t}-search`,"aria-label":`Find a page`,placeholder:`Find a page…`,value:h,onChange:e=>g(e.target.value)}),h&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Clear page search`,onClick:()=>{g(``),document.getElementById(`${t}-search`)?.focus()},children:(0,G.jsx)(af,{size:14})})]}),(0,G.jsxs)(`nav`,{className:`shell-nav`,"aria-label":`Dashboard navigation`,children:[!h.trim()&&(0,G.jsxs)(`section`,{className:`shell-pinned`,"aria-label":`Pinned pages`,children:[(0,G.jsxs)(`div`,{className:`shell-pinned-heading`,children:[(0,G.jsx)(Hu,{size:12,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:`Pinned`}),(0,G.jsx)(`span`,{children:_.length})]}),_.length>0?(0,G.jsx)(`div`,{className:`shell-nav-track`,children:_.map(e=>k(kk.find(t=>t.id===e),t,!0))}):(0,G.jsx)(`p`,{className:`shell-pin-hint`,children:`Pin your go-to pages for quick access.`})]}),(0,G.jsx)(`p`,{className:b.includes(`unavailable`)?`shell-pin-hint`:`sr-only`,role:`status`,children:b}),E.map(n=>{let r=m||!!h.trim()||T.has(n.id);return(0,G.jsxs)(`section`,{className:`shell-nav-group`,children:[(0,G.jsxs)(`button`,{type:`button`,className:`shell-group-heading`,"aria-expanded":r,"aria-controls":`${t}-${n.id}`,onClick:()=>w(()=>{let t=new Set(T);return t.has(n.id)?t.delete(n.id):t.add(n.id),{view:e,expanded:t}}),children:[(0,G.jsx)(`span`,{children:n.label}),(0,G.jsxs)(`span`,{className:`shell-group-meta`,children:[n.views.includes(`alerts`)&&l>0&&(0,G.jsx)(`span`,{className:`shell-alert-dot`,"aria-label":`${l} alerts firing`}),r?(0,G.jsx)(ul,{size:13}):(0,G.jsx)(fl,{size:13})]})]}),(0,G.jsx)(`div`,{id:`${t}-${n.id}`,className:`shell-nav-track`,hidden:!r,children:n.items.map(e=>k(e,t))})]},n.id)}),E.length===0&&(0,G.jsxs)(`div`,{className:`shell-nav-empty`,role:`status`,children:[(0,G.jsx)(fd,{size:20}),(0,G.jsx)(`strong`,{children:`No matching pages`}),(0,G.jsx)(`span`,{children:`Try “flows”, “backup” or “router”.`})]})]}),(0,G.jsxs)(`footer`,{className:`shell-sidebar-footer`,children:[(0,G.jsxs)(`div`,{className:`shell-instance`,children:[(0,G.jsx)(Xk,{mode:i}),(0,G.jsx)(`span`,{children:s==null?`Waiting for server`:`${Uk(s)} recorded events`})]}),(0,G.jsx)(`div`,{className:`shell-server-controls`,children:f}),(0,G.jsxs)(`button`,{type:`button`,className:`shell-version`,disabled:!d,onClick:d,children:[(0,G.jsxs)(`span`,{children:[`MikroTik MCP `,(0,G.jsx)(`b`,{children:a?`v${a}`:`—`})]}),u?(0,G.jsx)(`span`,{className:`shell-release-dot`,"aria-label":`New release available`}):(0,G.jsx)(Wc,{size:13,"aria-hidden":`true`})]})]})]}))(p.isMobile?`mobile-nav`:`desktop-nav`)]})}var Qk=(0,v.createContext)(null),$k={type:`spring`,duration:.8,bounce:.2},eA={type:`spring`,duration:.8,bounce:.35},tA=32,nA=126,rA=37;function iA(){let e=(0,v.useRef)(null),[t,n]=(0,v.useState)(null);return(0,v.useLayoutEffect)(()=>{let t=e.current;t&&n({width:t.offsetWidth,height:t.offsetHeight})},[]),(0,v.useEffect)(()=>{let t=e.current;if(!t||typeof ResizeObserver>`u`)return;let r=new ResizeObserver(()=>{n({width:t.offsetWidth,height:t.offsetHeight})});return r.observe(t),()=>r.disconnect()},[]),[e,t]}function aA({keyId:e,children:t,className:n,ref:r}){let i=jD(),a=(0,v.useContext)(Qk)?.anchor===`bottom`;return(0,G.jsx)(q.div,{ref:r,initial:i?{opacity:0,filter:`blur(0px)`}:{opacity:0,scale:a?1:.9,y:a?0:-8,filter:`blur(5px)`},animate:i?{opacity:1,filter:`blur(0px)`}:{opacity:1,scale:1,y:0,filter:`blur(0px)`},exit:i?{opacity:0,filter:`blur(0px)`,transition:{duration:.1}}:{opacity:0,scale:a?1:.9,y:a?0:-6,filter:`blur(0px)`,transition:{duration:.08,ease:BD}},transition:i?{duration:.1}:a?{duration:.16,ease:BD}:eA,style:{transformOrigin:a?`bottom center`:`top center`},className:J(`flex items-center justify-center`,n),children:t},e)}function oA({view:e,compact:t,children:n,className:r,announce:i=!0,anchor:a=`top`}){let o=jD(),s=e!==null,[c,l]=iA(),u=(0,v.useMemo)(()=>({view:e,anchor:a}),[e,a]);return(0,G.jsx)(Qk.Provider,{value:u,children:(0,G.jsx)(q.div,{"data-anchor":a,role:i?`status`:void 0,"aria-live":i?`polite`:void 0,initial:!1,animate:l?{width:l.width,height:l.height}:{width:nA,height:rA},transition:o?{duration:0}:a===`bottom`?{duration:.26,ease:BD}:$k,style:{borderRadius:tA},className:J(`relative inline-flex justify-center overflow-hidden`,a===`bottom`?`items-end`:`items-start`,`bg-foreground text-background shadow-2xl`,r),children:(0,G.jsxs)(`div`,{ref:c,className:`relative w-max shrink-0`,children:[(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:!s&&t?(0,G.jsx)(aA,{keyId:`compact`,className:`min-h-[37px] min-w-[126px] gap-2 px-4 py-1.5 text-xs font-medium`,children:t},`compact`):null}),n]})})})}function sA({id:e,children:t,className:n}){let r=(0,v.useContext)(Qk);if(!r)throw Error(`DynamicIslandView must be used inside <DynamicIsland>`);let i=r.view===e;return(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:i?(0,G.jsx)(aA,{keyId:e,className:J(`px-6 py-4`,n),children:t}):null})}var cA=[.16,1,.3,1],lA={enter:({direction:e,reduceMotion:t})=>({opacity:0,transform:t?`none`:`translateY(${e===`up`?`45%`:`-45%`})`}),visible:{opacity:1,transform:`translateY(0%)`},exit:({direction:e,reduceMotion:t})=>({opacity:0,transform:t?`none`:`translateY(${e===`up`?`-45%`:`45%`})`})};function uA({value:e,animationKey:t,direction:n=`up`,duration:r=.18,stagger:i=.006,suffixLength:a=0,className:o,glyphClassName:s,suffixClassName:c}){let l=jD()??!1,u=String(e),d=Math.max(0,u.length-Math.max(0,a)),f={direction:n,reduceMotion:l},p=Array.from(u,(e,t)=>({character:e,id:`glyph-${t}`,position:t}));return(0,G.jsxs)(`span`,{"data-slot":`digit-swap`,"data-direction":n,className:K(`inline-flex items-center whitespace-nowrap`,o),children:[(0,G.jsx)(`span`,{className:`sr-only`,children:u}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`inline-flex items-center`,children:p.map(({character:e,id:n,position:a})=>{if(e===` `)return(0,G.jsx)(`span`,{className:`inline-block w-[0.7ch]`},n);let o=t===void 0?`${n}-${e}`:`${n}-${e}-${t}`;return(0,G.jsx)(`span`,{"data-slot":`digit-swap-glyph`,className:`relative inline-block h-[1.1em] w-[1ch] shrink-0 overflow-hidden align-bottom`,children:(0,G.jsx)(FE,{initial:!1,custom:f,children:(0,G.jsx)(q.span,{custom:f,variants:lA,initial:`enter`,animate:`visible`,exit:`exit`,transition:{duration:l?Math.min(r,.12):r,delay:l?0:a*i,ease:cA},className:K(`absolute inset-0 flex items-center justify-center leading-none`,s,a>=d?c:void 0),children:e},o)})},n)})})]})}var dA=(0,v.createContext)(null);function fA(){let e=(0,v.useContext)(dA);if(!e)throw Error(`Tabs.* must be used inside <Tabs>`);return e}var pA={type:`spring`,stiffness:170,damping:30,mass:1.2};function mA({defaultValue:e,value:t,onValueChange:n,variant:r=`pill`,children:i,className:a}){let[o,s]=(0,v.useState)(e??``),c=(0,v.useId)(),l=jD(),u=t!==void 0,d=u?t:o,f=(0,v.useCallback)(e=>{u||s(e),n?.(e)},[u,n]),p=(0,v.useMemo)(()=>({value:d,setValue:f,layoutId:c,variant:r}),[d,c,f,r]);return(0,G.jsx)(WE,{transition:l?{duration:0}:pA,children:(0,G.jsx)(dA.Provider,{value:p,children:(0,G.jsx)(q.div,{layoutRoot:!0,className:a,children:i})})})}var hA={pill:`inline-flex items-center gap-1 rounded-full bg-card p-1`,underline:`inline-flex items-center gap-1 border-b border-border`,segment:`inline-flex items-center gap-0 rounded-lg bg-card p-0.5`};function gA({children:e,className:t,onKeyDown:n,...r}){let{variant:i}=fA();return(0,G.jsx)(`div`,{...r,role:`tablist`,className:J(hA[i],t),onKeyDown:e=>{if(n?.(e),e.defaultPrevented)return;let t=Array.from(e.currentTarget.querySelectorAll(`[role="tab"]:not(:disabled)`)),r=t.indexOf(document.activeElement),i=e.key===`Home`?t[0]:e.key===`End`?t.at(-1):e.key===`ArrowRight`?t[(r+1)%t.length]:e.key===`ArrowLeft`?t[(r-1+t.length)%t.length]:null;i&&(e.preventDefault(),i.focus(),i.click())},children:e})}function _A({value:e,children:t,className:n,indicatorClassName:r,disabled:i,onClick:a,...o}){let{value:s,setValue:c,layoutId:l,variant:u}=fA(),d=s===e,f={...o,id:`${l}-tab-${e}`,"aria-controls":`${l}-panel-${e}`,"data-state":d?`active`:`inactive`,tabIndex:d?0:-1,disabled:i,onClick:t=>{a?.(t),!t.defaultPrevented&&!i&&c(e)}};if(u===`underline`)return(0,G.jsxs)(`button`,{...f,type:`button`,role:`tab`,"aria-selected":d,className:J(`relative isolate px-3 pb-2.5 pt-1 -mb-px text-sm font-medium transition-colors min-h-[44px] inline-flex items-center`,d?`text-foreground`:`text-muted-foreground hover:text-foreground`,n),children:[t,d?(0,G.jsx)(q.span,{layoutId:l,layout:`position`,className:J(`absolute -bottom-px left-0 right-0 h-px bg-primary`,r)}):null]});let p=u===`pill`?`rounded-full`:`rounded-md`;return(0,G.jsxs)(`div`,{className:`relative`,children:[d?(0,G.jsx)(q.span,{layoutId:l,layout:`position`,style:{borderRadius:u===`pill`?9999:8},className:J(`absolute inset-0 bg-primary`,p,r)}):null,(0,G.jsx)(`button`,{...f,type:`button`,role:`tab`,"aria-selected":d,className:J(`relative z-10 inline-flex items-center justify-center whitespace-nowrap bg-transparent px-3.5 py-1.5 text-sm font-medium outline-none`,`transition-colors`,d?`text-primary-foreground`:`text-muted-foreground hover:text-foreground`,p,n),children:t})]})}function vA({value:e,children:t,className:n,forceMount:r}){let{value:i,layoutId:a}=fA(),o=jD(),s=i===e;return!s&&!r?null:(0,G.jsx)(q.div,{role:`tabpanel`,hidden:!s,id:`${a}-panel-${e}`,"aria-labelledby":`${a}-tab-${e}`,tabIndex:0,initial:{opacity:0,y:o?0:4},animate:{opacity:1,y:0},transition:{duration:.18,ease:BD},className:J(`mt-4`,n),children:t},e)}function yA({className:e,...t}){return(0,G.jsx)(mA,{...t,variant:`segment`,className:K(`flex min-w-0 flex-col gap-2`,e)})}function bA({className:e,...t}){return(0,G.jsx)(gA,{...t,className:K(`w-fit max-w-full gap-1 rounded-xl border p-1`,e)})}function xA({className:e,...t}){return(0,G.jsx)(_A,{...t,className:K(`gap-1.5 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50`,e)})}function SA({className:e,...t}){return(0,G.jsx)(vA,{...t,className:K(`flex-1 outline-none`,e)})}var CA=3e4;function wA(e,t,n=CA){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t>=e&&t-e<=n}function TA(e,t,n){return e.disabled?`disabled`:!n||!wA(e.status.checkedAt,t,12e4)?`unknown`:e.status.reachable===!0?`reachable`:e.status.reachable===!1?`unreachable`:`unknown`}function EA({mode:e,paused:t,now:n,liveEvent:r,liveEventAt:i,pool:a,poolAt:o,alerts:s,alertsAt:c}){if(e===`off`)return{kind:`offline`,label:`Stream offline`,detail:`Reconnecting automatically`};if(t)return{kind:`paused`,label:`Dashboard paused`,detail:`Displayed activity is frozen`};let l=r&&wA(i,n,1e4);return l&&r.isError?{kind:`error`,label:`Tool call failed`,detail:r.tool}:s!=null&&s>0&&wA(c,n,45e3)?{kind:`alerts`,label:`Alerts need attention`,detail:`Active alert rules`,count:s}:a?.enabled&&wA(o,n)&&Number.isFinite(a.aggregate.totalInflight)&&a.aggregate.totalInflight>0?{kind:`busy`,label:`SSH channels busy`,detail:`Observed in the connection pool`,count:a.aggregate.totalInflight}:l?{kind:`completed`,label:`Tool call completed`,detail:r.tool}:{kind:`listening`,label:`Listening for activity`,detail:e===`sse`?`SSE fallback connected`:`WebSocket connected`}}function DA(e){return Number.isFinite(e.durationMs)&&e.durationMs>=0?e.ts+e.durationMs:NaN}function OA(e,t){let n=new Set;return e.filter(e=>{let r=DA(e);return!e.id||n.has(e.id)||!Number.isFinite(r)||r>t?!1:(n.add(e.id),!0)}).sort((e,t)=>DA(t)-DA(e)).slice(0,4)}function kA(e,t){if(e==null||!Number.isFinite(e)||e<=0||e>t)return`Not observed`;let n=Math.floor((t-e)/1e3);return n<5?`Just now`:n<60?`${n}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}var AA={offline:Jd,paused:Ru,error:vl,alerts:Qc,busy:Pc,completed:cl,listening:Qu};function jA(e){let[t,n]=(0,v.useState)(!1),[r,i]=(0,v.useState)(`pulse`),[a,o]=(0,v.useState)(Date.now),s=Math.max(a,e.statsAt??0,e.poolAt??0,e.alertsAt??0,e.liveEventAt??0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(null),d=(0,v.useRef)(!1);(0,v.useEffect)(()=>{let e=setInterval(()=>{document.visibilityState===`visible`&&o(Date.now())},1e3),t=()=>o(Date.now());return document.addEventListener(`visibilitychange`,t),()=>{clearInterval(e),document.removeEventListener(`visibilitychange`,t)}},[]),(0,v.useEffect)(()=>{if(!t){d.current&&l.current?.focus({preventScroll:!0}),d.current=!1;return}u.current?.focus({preventScroll:!0});let e=e=>{c.current?.contains(e.target)||n(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[t]);let f=EA({...e,now:s}),p=AA[f.kind],m=e.mode!==`off`&&!e.paused,h=m&&wA(e.statsAt,s),g=m&&wA(e.poolAt,s),_=m&&wA(e.alertsAt,s,45e3),y=(0,v.useMemo)(()=>OA(e.events,s),[e.events,s]),b=e.devices?.devices??[],x=b.filter(e=>TA(e,s,m)===`reachable`).length,S=e.stats?.series.filter(e=>Number.isFinite(e.ok)&&Number.isFinite(e.error)&&e.ok>=0&&e.error>=0).slice(-18)??[],C=Math.max(1,...S.map(e=>e.ok+e.error)),w=()=>{d.current=!0,n(!1)},T=t=>{n(!1),e.onNavigate(t)},E=e.stats?`${Math.round(e.stats.windowMs/6e4)} min window`:`Waiting for analytics`,D=(e,t=Uk)=>e!=null&&Number.isFinite(e)?t(e):`—`;return(0,G.jsxs)(`aside`,{ref:c,className:`operations-island-anchor`,"aria-label":`Operations Island`,onKeyDown:e=>{e.key===`Escape`&&t&&(e.preventDefault(),e.stopPropagation(),w())},"data-signal":f.kind,children:[(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:f.label}),(0,G.jsx)(oA,{announce:!1,anchor:`bottom`,view:t?`operations`:null,className:`operations-island`,compact:(0,G.jsxs)(YD,{ref:l,variant:`ghost`,className:`island-compact`,"aria-label":`Open Operations Island: ${f.label}`,"aria-expanded":t,"aria-controls":`operations-island-panel`,onClick:()=>n(!0),children:[(0,G.jsx)(`span`,{className:`island-signal-icon`,children:(0,G.jsx)(p,{size:17})}),(0,G.jsxs)(`span`,{className:`island-compact-copy`,children:[(0,G.jsx)(`strong`,{children:f.label}),(0,G.jsx)(`span`,{children:f.detail})]}),f.count==null?(0,G.jsxs)(`span`,{className:`island-equalizer`,"data-moving":f.kind===`busy`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}):(0,G.jsx)(`span`,{className:`island-count`,children:(0,G.jsx)(uA,{value:f.count})}),(0,G.jsx)(ml,{size:14,className:`island-chevron`})]}),children:(0,G.jsx)(sA,{id:`operations`,className:`island-expanded-slot`,children:(0,G.jsxs)(`section`,{id:`operations-island-panel`,className:`island-panel`,"aria-label":`Operations summary`,children:[(0,G.jsxs)(`header`,{className:`island-header`,children:[(0,G.jsx)(`span`,{className:`island-signal-icon`,children:(0,G.jsx)(p,{size:20})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{children:`OPERATIONS PULSE`}),(0,G.jsx)(`h2`,{children:f.label})]}),(0,G.jsx)(YD,{ref:u,size:`icon-sm`,variant:`ghost`,className:`island-close`,"aria-label":`Collapse Operations Island`,onClick:w,children:(0,G.jsx)(af,{size:16})})]}),(0,G.jsxs)(`div`,{className:`island-connection`,children:[(0,G.jsx)(`span`,{className:m?`island-dot is-connected`:`island-dot`}),(0,G.jsx)(`span`,{children:e.mode===`off`?`Disconnected · last-known data only`:e.paused?`Stream connected · dashboard updates paused`:`${e.mode.toUpperCase()} connected · no extra router probes`})]}),(0,G.jsxs)(yA,{value:r,onValueChange:i,className:`island-tabs`,children:[(0,G.jsxs)(bA,{"aria-label":`Operations views`,className:`island-tab-list`,children:[(0,G.jsxs)(xA,{value:`pulse`,children:[(0,G.jsx)(Pc,{size:13}),`Pulse`]}),(0,G.jsxs)(xA,{value:`fleet`,children:[(0,G.jsx)(cd,{size:13}),`Routers`]}),(0,G.jsxs)(xA,{value:`activity`,children:[(0,G.jsx)(El,{size:13}),`Activity`]})]}),(0,G.jsxs)(SA,{value:`pulse`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`TOOL CALL VOLUME`}),(0,G.jsx)(`span`,{children:E})]}),(0,G.jsx)(`div`,{className:`island-volume`,"aria-hidden":`true`,"data-stale":!h,children:S.some(e=>e.ok+e.error>0)?S.map(e=>(0,G.jsxs)(`div`,{className:`island-bar-track`,children:[(0,G.jsx)(`span`,{className:`island-bar-ok`,style:{height:`${e.ok/C*100}%`}}),(0,G.jsx)(`span`,{className:`island-bar-error`,style:{height:`${e.error/C*100}%`}})]},e.t)):(0,G.jsx)(`span`,{className:`island-empty-chart`,children:e.stats?`No calls in this window`:`Waiting for recorded activity`})}),(0,G.jsxs)(`div`,{className:`island-chart-caption`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`i`,{}),`Successful `,(0,G.jsx)(`i`,{className:`is-error`}),`Failed`]}),(0,G.jsxs)(`span`,{children:[h?`Updated`:`Snapshot`,` · `,kA(e.statsAt,s)]})]}),(0,G.jsxs)(`div`,{className:`island-metrics`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Calls / min`}),(0,G.jsx)(`strong`,{children:D(e.stats?.callsPerMin,e=>e.toFixed(1))})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Tool p95`}),(0,G.jsx)(`strong`,{children:D(e.stats&&e.stats.total>0?e.stats.latency.p95:void 0,Bk)})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Failed calls`}),(0,G.jsx)(`strong`,{className:e.stats?.errors?`island-error-text`:``,children:D(e.stats?.errors)})]})]}),(0,G.jsxs)(`div`,{className:`island-insights`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(ou,{size:13}),g&&e.pool?e.pool.enabled?`${e.pool.aggregate.totalInflight} SSH channels in flight`:`SSH pooling disabled`:`SSH pool status unavailable`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(Qc,{size:13}),_&&e.alerts!=null?`${e.alerts} active alert rules`:`Alert status unavailable`]})]}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`overview`),children:[`Open analytics`,(0,G.jsx)(Wc,{size:14})]})]}),(0,G.jsxs)(SA,{value:`fleet`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`LAST ROUTER CHECKS`}),(0,G.jsx)(`span`,{children:e.devices?`${x} / ${b.filter(e=>!e.disabled).length} reachable`:`Not loaded`})]}),(0,G.jsx)(`div`,{className:`island-scroll-list`,children:b.length?b.map(e=>{let t=TA(e,s,m);return(0,G.jsxs)(`div`,{className:`island-device`,"data-state":t,children:[(0,G.jsx)(`span`,{className:`island-router-icon`,children:(0,G.jsx)(cd,{size:18})}),(0,G.jsxs)(`div`,{className:`island-row-copy`,children:[(0,G.jsx)(`strong`,{children:e.name}),(0,G.jsxs)(`span`,{children:[t===`unknown`?`Unknown / stale`:t,` ·`,` `,kA(e.status.checkedAt,s)]})]}),(0,G.jsx)(`span`,{className:`island-device-latency`,children:t===`reachable`&&e.status.latencyMs!=null?Bk(e.status.latencyMs):`—`})]},e.name)}):(0,G.jsx)(`p`,{className:`island-empty`,children:`Router status has not loaded. No healthy state is assumed.`})}),(0,G.jsx)(`p`,{className:`island-footnote`,children:`Management reachability is not proof of client or VPN health.`}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`devices`),children:[`Open devices`,(0,G.jsx)(Wc,{size:14})]})]}),(0,G.jsxs)(SA,{value:`activity`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`RECORDED COMPLETIONS`}),(0,G.jsxs)(`span`,{children:[`Latest `,y.length]})]}),(0,G.jsx)(`div`,{className:`island-scroll-list`,children:y.length?y.map(t=>(0,G.jsxs)(YD,{variant:`ghost`,className:`island-event`,onClick:()=>{n(!1),e.onEvent(t)},children:[(0,G.jsx)(`span`,{className:t.isError?`island-error-text`:`island-success-text`,children:t.isError?(0,G.jsx)(vl,{size:16}):(0,G.jsx)(cl,{size:16})}),(0,G.jsxs)(`span`,{className:`island-row-copy`,children:[(0,G.jsx)(`strong`,{children:t.tool}),(0,G.jsxs)(`span`,{children:[t.device??`Server`,` · `,kA(DA(t),s)]})]}),(0,G.jsxs)(`span`,{className:`island-event-duration`,children:[Bk(t.durationMs),(0,G.jsx)(Wc,{size:12})]})]},t.id)):(0,G.jsx)(`p`,{className:`island-empty`,children:`No recorded calls yet. Activity appears when MCP tools complete.`})}),(0,G.jsx)(`p`,{className:`island-footnote`,children:`Completed tool calls, not a live packet trace. Open a call for its evidence.`}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`feed`),children:[`Open Live Feed`,(0,G.jsx)(Wc,{size:14})]})]})]}),(0,G.jsxs)(`footer`,{className:`island-footer`,children:[(0,G.jsx)(Qu,{size:11}),(0,G.jsx)(`span`,{children:`OBSERVE ONLY`}),(0,G.jsx)(`span`,{children:`No configuration changes`})]})]})})})]})}function MA(e,t){try{e.setPointerCapture(t)}catch{}}var NA=e=>e.pointerType!==`touch`&&e.buttons===0,PA={active:!1,startX:0,startY:0,pointerId:null},FA={duration:.9,ease:VD,repeat:1/0},IA={duration:1.2,ease:VD,repeat:1/0},LA={duration:.16,ease:BD};function RA(e,t){return t*(1-Math.exp(-Math.max(0,e)/t))}function zA({progress:e,status:t,reduce:n}){let r=kD(e,[0,1],[-7,0]),i=kD(e,[0,1],[-10,0]),a=kD(e,[0,.55,1],[.68,1.1,.92]),o=t===`ready`,s=t===`refreshing`;return(0,G.jsx)(q.span,{style:n?void 0:{y:r,rotate:i,scaleY:a},className:`block h-9 w-9 origin-bottom`,children:(0,G.jsxs)(q.svg,{"aria-hidden":`true`,viewBox:`0 0 36 36`,style:{opacity:1},className:`h-full w-full overflow-visible`,animate:s?n?{opacity:[.55,1,.55]}:{y:[0,-2,0],rotate:[-3,3,-3]}:n?{opacity:1}:{y:0,rotate:0,scale:o?1.08:1},transition:s?n?IA:FA:UD,children:[(0,G.jsxs)(q.g,{style:{transformOrigin:`18px 18px`},animate:s&&!n?{rotate:[0,360]}:n?void 0:{rotate:o?0:-35},transition:s?n?IA:FA:UD,className:J(`transition-opacity duration-150`,o||s?`opacity-100`:`opacity-0`),children:[(0,G.jsx)(`path`,{d:`M18 2.5a15.5 15.5 0 0 1 12.7 6.6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:`text-muted-foreground`}),(0,G.jsx)(`circle`,{cx:`31.3`,cy:`10.2`,r:`2.2`,className:`fill-foreground`})]}),(0,G.jsx)(`rect`,{x:`7`,y:`7`,width:`22`,height:`22`,rx:`9`,className:`fill-foreground`}),(0,G.jsxs)(q.g,{style:{opacity:1,transformOrigin:`18px 16px`},animate:s&&!n?{scaleY:[1,1,.15,1,1]}:n?{opacity:1}:{scaleY:o?1.18:1},transition:s&&!n?FA:UD,children:[(0,G.jsx)(`circle`,{cx:`14.2`,cy:`16`,r:`1.45`,className:`fill-background`}),(0,G.jsx)(`circle`,{cx:`21.8`,cy:`16`,r:`1.45`,className:`fill-background`})]}),(0,G.jsx)(`path`,{d:`M14.5 21h7`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:J(`text-background transition-opacity duration-150`,o||s?`opacity-0`:`opacity-100`)}),(0,G.jsx)(`path`,{d:`M14 20.5c1 2.4 7 2.4 8 0`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:J(`text-background transition-opacity duration-150`,o?`opacity-100`:`opacity-0`)}),(0,G.jsx)(`circle`,{cx:`18`,cy:`21`,r:`1.6`,className:J(`fill-background transition-opacity duration-150`,s?`opacity-100`:`opacity-0`)})]})})}function BA({onRefresh:e,children:t,refreshing:n=!1,disabled:r=!1,threshold:i=76,maxPull:a=132,holdDistance:o=68,pullingLabel:s=`Pull to refresh`,releaseLabel:c=`Release to refresh`,refreshingLabel:l=`Refreshing`,ariaLabel:u=`Refreshable content`,className:d,contentClassName:f,indicatorClassName:p,handleOnly:m=!1,onRefreshError:h}){let g=(0,v.useRef)(null),_=(0,v.useRef)({...PA}),y=(0,v.useRef)(null),b=(0,v.useRef)(`idle`),x=(0,v.useRef)(r),S=(0,v.useRef)(n),C=(0,v.useRef)(n),[w,T]=(0,v.useState)(`idle`),[E,D]=(0,v.useState)(!1),O=jD(),k=Math.max(24,i),A=Math.max(a,k+24),j=Math.min(Math.max(0,o),k),M=DD(0),N=kD(M,[0,k],[0,1]),P=kD(M,[0,10,k],[0,.45,1]),F=kD(M,[0,k],[.86,1]),I=n||E;x.current=r,S.current=n,C.current=I;let L=(0,v.useCallback)(e=>{b.current!==e&&(b.current=e,T(e))},[]),ee=(0,v.useCallback)(e=>{if(y.current?.stop(),O){M.set(e);return}y.current=zD(M,e,Yne)},[O,M]),R=(0,v.useCallback)(e=>{if(x.current||C.current)return;y.current?.stop();let t=RA(e,A);M.set(t),L(t>=k?`ready`:`pulling`)},[A,k,L,M]),te=(0,v.useCallback)(async()=>{if(!(x.current||C.current)){C.current=!0,D(!0),L(`refreshing`),ee(j);try{await e()}catch(e){h?.(e)}finally{D(!1),S.current||(C.current=!1,L(`idle`),ee(0))}}},[e,h,j,L,ee]),z=(0,v.useCallback)(e=>!(e instanceof Element)||e.closest(`button, a, input, textarea, select, [contenteditable="true"], [role="button"]`)?!1:!m||!!e.closest(`[data-refresh-handle]`),[m]),ne=(0,v.useCallback)(()=>{_.current={...PA},C.current||(L(`idle`),ee(0))},[L,ee]),re=(0,v.useCallback)(()=>{let e=M.get()>=k&&!x.current&&!C.current;if(_.current={...PA},e){te();return}L(`idle`),ee(0)},[k,te,L,ee,M]);(0,v.useEffect)(()=>{if(I){L(`refreshing`),ee(j);return}b.current===`refreshing`&&(L(`idle`),ee(0))},[I,j,L,ee]),(0,v.useEffect)(()=>{let e=g.current;if(!e)return;let t=t=>{if(t.touches.length!==1||!z(t.target)||e.scrollTop>0||x.current||C.current)return;let n=t.touches[0];_.current={active:!0,startX:n.clientX,startY:n.clientY,pointerId:null}},n=t=>{let n=_.current,r=t.touches[0];if(!n.active||!r)return;let i=r.clientX-n.startX,a=r.clientY-n.startY;if(e.scrollTop>0||a<0){_.current={...PA};return}Math.abs(i)>a||(t.preventDefault(),R(a))},r=()=>{_.current.active&&re()};return e.addEventListener(`touchstart`,t,{passive:!0}),e.addEventListener(`touchmove`,n,{passive:!1}),e.addEventListener(`touchend`,r),e.addEventListener(`touchcancel`,ne),()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchmove`,n),e.removeEventListener(`touchend`,r),e.removeEventListener(`touchcancel`,ne)}},[re,R,z,ne]),(0,v.useEffect)(()=>()=>y.current?.stop(),[]);let ie=e=>{e.pointerType===`touch`||!z(e.target)||e.button!==0||e.currentTarget.scrollTop>0||r||I||(MA(e.currentTarget,e.pointerId),_.current={active:!0,startX:e.clientX,startY:e.clientY,pointerId:e.pointerId})},ae=e=>{let t=_.current;if(!t.active||t.pointerId!==e.pointerId)return;let n=e.clientX-t.startX,r=e.clientY-t.startY;r<0||Math.abs(n)>r||(e.preventDefault(),R(r))},oe=w===`refreshing`?l:w===`ready`?c:s;return(0,G.jsxs)(`section`,{ref:g,"aria-label":u,"aria-busy":I,"data-state":w,"data-disabled":r||void 0,onPointerDown:ie,onPointerMove:ae,onPointerUp:e=>{_.current.pointerId===e.pointerId&&re()},onPointerCancel:e=>{_.current.pointerId===e.pointerId&&ne()},className:J(`relative w-full overflow-y-auto overscroll-contain bg-background`,!m&&`[-webkit-touch-callout:none] pointer-coarse:select-none`,w===`pulling`||w===`ready`?`cursor-grabbing select-none`:`cursor-grab`,(r||I)&&`cursor-default`,d),children:[(0,G.jsxs)(q.div,{"aria-live":`polite`,"aria-atomic":`true`,style:O?{opacity:P}:{opacity:P,scale:F},className:J(`pointer-events-none absolute inset-x-0 top-0 z-20 flex h-[4.25rem] flex-col items-center justify-center gap-0.5 bg-gradient-to-b from-background via-background/95 to-transparent text-[11px] font-medium text-muted-foreground`,p),children:[(0,G.jsx)(zA,{progress:N,status:w,reduce:!!O}),(0,G.jsx)(`span`,{className:`relative h-4 min-w-24 text-center`,children:(0,G.jsx)(FE,{initial:!1,mode:`wait`,children:(0,G.jsx)(q.span,{initial:O?{opacity:0}:{opacity:0,y:3},animate:O?{opacity:1}:{opacity:1,y:0},exit:O?{opacity:0}:{opacity:0,y:-3},transition:LA,className:`absolute inset-x-0 whitespace-nowrap`,children:oe},w)})})]}),(0,G.jsx)(q.div,{style:O?void 0:{y:M},className:J(`relative z-10 min-h-full bg-inherit will-change-transform`,f),children:t})]})}function VA({enabled:e,disabled:t=!1,onRefresh:n,children:r}){let i=(0,v.useRef)(!1),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(!1),d=async()=>{if(!(i.current||t)){i.current=!0,o(!0),c(``),u(!1);try{await n(),c(`Dashboard data refreshed`)}catch{u(!0),c(`Refresh failed. Previous data kept; try again.`)}finally{i.current=!1,o(!1)}}};return e?(0,G.jsxs)(BA,{handleOnly:!0,onRefresh:d,refreshing:a,disabled:t,ariaLabel:`Refresh dashboard data`,className:`overflow-visible bg-transparent cursor-default`,contentClassName:`min-h-0`,pullingLabel:`Pull to reload dashboard data`,refreshingLabel:`Reading dashboard data…`,children:[(0,G.jsxs)(`div`,{"data-refresh-handle":!0,className:`mb-4 flex flex-wrap items-center gap-2 rounded-xl border border-dashed border-border px-3 py-2 text-xs text-muted-foreground cursor-grab active:cursor-grabbing`,children:[(0,G.jsx)(uu,{className:`size-4 text-primary`}),(0,G.jsx)(`span`,{className:`flex-1`,children:t?`Resume the feed to refresh`:`Pull down here to refresh · read-only`}),(0,G.jsxs)(YD,{size:`sm`,variant:`ghost`,disabled:a||t,onClick:()=>void d(),children:[(0,G.jsx)(ed,{className:a?`animate-spin motion-reduce:animate-none`:``}),a?`Refreshing…`:`Refresh data`]})]}),s&&(0,G.jsx)(`p`,{role:l?`alert`:`status`,className:`mb-3 text-xs ${l?`text-destructive`:`text-muted-foreground`}`,children:s}),r]}):r}var HA=new Set;function UA(e,t){for(let n of HA)if(n!==e&&n(t))return!0;return!1}function WA(e){let t=e=>{e.preventDefault(),e.stopPropagation(),r()},n=t=>{t!==e&&r()};function r(){window.removeEventListener(`click`,t,!0),window.removeEventListener(`pointerdown`,n,!0),window.removeEventListener(`pointercancel`,n,!0),window.removeEventListener(`keydown`,r,!0)}window.addEventListener(`click`,t,!0),window.addEventListener(`pointerdown`,n,!0),window.addEventListener(`pointercancel`,n,!0),window.addEventListener(`keydown`,r,!0)}function GA(e,t,n,{behavior:r=`pass-through`,escape:i=!0,ignore:a}={}){(0,v.useEffect)(()=>{if(!e)return;let o=e=>!!n?.current?.contains(e)||!!a?.(e),s=e=>{i&&e.key===`Escape`&&t()},c=e=>{let n=e.target;n&&!o(n)&&(r===`consume`&&!UA(o,n)&&WA(e),t())};return HA.add(o),window.addEventListener(`keydown`,s),window.addEventListener(`pointerdown`,c,!0),()=>{HA.delete(o),window.removeEventListener(`keydown`,s),window.removeEventListener(`pointerdown`,c,!0)}},[e,t,n,r,i,a])}function KA(){let e=(0,v.useRef)(new Set);return(0,v.useMemo)(()=>({enter:t=>NA(t)?(e.current.delete(t.pointerId),!0):(e.current.add(t.pointerId),!1),leave:t=>!e.current.delete(t.pointerId)&&t.pointerType!==`touch`}),[])}function qA(){let e=(0,v.useRef)(null);return(0,v.useMemo)(()=>({start:(t,n)=>{e.current={pointerType:t.pointerType,state:n}},take:()=>{let t=e.current;return e.current=null,t},drop:()=>{e.current=null}}),[])}var JA={type:`spring`,stiffness:460,damping:34,mass:.62},YA={type:`spring`,stiffness:380,damping:32,mass:.7},XA={sm:`min-h-9 gap-1 p-1 text-xs`,md:`min-h-11 gap-1.5 p-1.5 text-sm`},ZA={sm:`h-7 min-w-7 px-1.5`,md:`h-8 min-w-8 px-2`},QA={sm:`h-3.5 w-3.5`,md:`h-4 w-4`};function $A({expanded:e,defaultExpanded:t,onExpandedChange:n}){let[r,i]=(0,v.useState)(t??!1),a=e!==void 0;return[e??r,(0,v.useCallback)(e=>{a||i(e),n?.(e)},[a,n])]}function ej({items:e,expanded:t,defaultExpanded:n=!1,onExpandedChange:r,activeId:i,onAction:a,size:o=`md`,expandOnHover:s=!0,expandOnFocus:c=!0,collapseDelay:l=90,className:u,classNames:d,renderItem:f}){let p=jD(),m=(0,v.useId)(),[h,g]=$A({expanded:t,defaultExpanded:n,onExpandedChange:r}),[_,y]=(0,v.useState)(null),[b,x]=(0,v.useState)(!1),S=(0,v.useRef)(null),C=(0,v.useRef)(null),w=qA(),T=KA(),E=(0,v.useCallback)(()=>{S.current&&window.clearTimeout(S.current),S.current=null},[]),D=(0,v.useCallback)(()=>{E(),g(!0)},[E,g]),O=(0,v.useCallback)(()=>{E();let e=window.setTimeout(()=>{g(!1),y(null),x(!1)},l);S.current=e},[E,l,g]);(0,v.useEffect)(()=>E,[E]);let k=(0,v.useRef)(h);(0,v.useEffect)(()=>{k.current&&!h&&x(!1),k.current=h},[h]),GA(b&&h,O,C,{behavior:`consume`});let A=e=>{T.enter(e)&&s&&D()},j=e=>{T.leave(e)&&(y(null),s&&O())},M=()=>{c&&D()},N=e=>{!e.currentTarget.contains(e.relatedTarget)&&c&&O()},P=i??e.find(e=>e.active)?.id,F=_??P;return(0,G.jsx)(Cte,{id:m,children:(0,G.jsx)(q.div,{layout:`size`,onPointerEnter:A,onPointerLeave:j,onFocus:M,onBlur:N,transition:JA,className:J(`inline-flex max-w-full`,d?.root,u),children:(0,G.jsx)(q.div,{ref:C,layout:`size`,className:J(`scrollbar-hide relative inline-flex max-w-full items-center overflow-x-auto overflow-y-hidden rounded-full border border-border bg-card/90 shadow-2xl backdrop-blur-xl`,XA[o],d?.track),transition:JA,children:e.map(e=>{let t=e.active||i===e.id,n=F===e.id;return(0,G.jsxs)(q.button,{layout:`position`,type:`button`,disabled:e.disabled,title:typeof e.label==`string`?e.label:void 0,"aria-label":typeof e.label==`string`?e.label:void 0,onPointerEnter:t=>{T.enter(t)&&(E(),y(e.id))},onPointerDown:e=>{w.start(e,h)},onPointerCancel:w.drop,onKeyDown:w.drop,onClick:t=>{t.detail>0&&t.currentTarget.blur();let n=w.take();if(n!==null&&n.pointerType!==`mouse`&&!n.state&&!b&&s){x(!0),D(),y(e.id);return}e.onClick?.(),a?.(e)},whileTap:p||e.disabled?void 0:{scale:.96},transition:JA,className:J(`relative isolate inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full font-medium text-muted-foreground outline-none transition-[color,background-color] duration-150 ease-out`,`focus-visible:text-foreground disabled:pointer-events-none disabled:opacity-40`,n&&`text-foreground`,ZA[o],d?.item,t&&d?.activeItem),children:[n?(0,G.jsx)(q.span,{layoutId:`action-bar-highlight`,className:`absolute inset-0 -z-10 rounded-full bg-primary/[0.07]`,transition:JA}):null,f?f(e,{expanded:h,active:t}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:J(`inline-flex shrink-0 items-center justify-center`,QA[o],d?.icon),children:e.icon}),(0,G.jsx)(q.span,{"aria-hidden":!h,animate:p?{width:h?`auto`:0,opacity:+!!h,marginLeft:h?8:0,x:0,filter:`blur(0px)`}:{width:h?`auto`:0,opacity:+!!h,x:h?0:-4,marginLeft:h?8:0,filter:h?`blur(0px)`:`blur(3px)`},transition:p?{duration:0}:YA,className:J(`inline-block overflow-hidden whitespace-nowrap`,d?.label),children:e.label}),e.shortcut?(0,G.jsx)(q.span,{"aria-hidden":!h,animate:{width:h?`auto`:0,opacity:+!!h,marginLeft:h?4:0},transition:YA,className:J(`hidden overflow-hidden whitespace-nowrap text-[10px] text-muted-foreground sm:inline-block`,d?.shortcut),children:e.shortcut}):null,e.badge?(0,G.jsx)(`span`,{className:J(`ml-0.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] leading-none text-primary-foreground`,!h&&`absolute right-0.5 top-0.5`,d?.badge),children:e.badge}):null]})]},e.id)})})})})}function tj({paused:e,count:t,onPause:n,onExport:r,onClear:i,onDelete:a}){return(0,G.jsx)(`div`,{role:`group`,"aria-label":`Live Feed actions`,className:`max-w-full`,children:(0,G.jsx)(ej,{size:`sm`,classNames:{track:`rounded-xl shadow-none`,item:`rounded-lg focus-visible:ring-2 focus-visible:ring-ring`},items:[{id:`pause`,label:e?`Resume`:`Pause`,icon:e?(0,G.jsx)(Ku,{}):(0,G.jsx)(Ru,{}),active:e,onClick:n},{id:`csv`,label:`Export CSV`,icon:(0,G.jsx)(eu,{}),badge:t||void 0,onClick:()=>r(`csv`)},{id:`json`,label:`Export JSON`,icon:(0,G.jsx)(Ql,{}),badge:t||void 0,onClick:()=>r(`json`)},{id:`clear`,label:`Clear filters`,icon:(0,G.jsx)(bu,{}),onClick:i},{id:`delete`,label:`Delete selected`,icon:(0,G.jsx)(Hd,{}),badge:t||void 0,disabled:t===0,onClick:a}]})})}var nj={neutral:`border-border bg-card text-muted-foreground`,info:`border-primary/30 bg-primary/10 text-primary`,success:`border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400`,warning:`border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400`,danger:`border-destructive/30 bg-destructive/10 text-destructive`,loading:`border-primary/30 bg-primary/10 text-primary`},rj={sm:`h-6 gap-1.5 px-2 text-[11px]`,md:`h-8 gap-2 px-3 text-xs`},ij={sm:`h-3 w-3`,md:`h-3.5 w-3.5`},aj={neutral:wl,info:mu,success:cl,warning:Wd,danger:af,loading:Su},oj={initial:{opacity:.72,y:`80%`,scale:.92,rotate:-8,filter:`blur(6px)`},animate:{opacity:1,y:`0%`,scale:1,rotate:0,filter:`blur(0px)`,transition:{y:{type:`spring`,stiffness:210,damping:24,mass:.85},scale:{type:`spring`,stiffness:250,damping:24,mass:.75},rotate:{duration:.28,ease:BD},opacity:{duration:.28,ease:BD},filter:{duration:.42,ease:BD}}},exit:{opacity:.5,y:`-80%`,scale:.96,rotate:8,filter:`blur(6px)`,transition:{duration:.22,ease:BD}}},sj={initial:{opacity:.76,y:`85%`,filter:`blur(6px)`},animate:{opacity:1,y:`0%`,filter:`blur(0px)`,transition:{y:{type:`spring`,stiffness:210,damping:24,mass:.85},opacity:{duration:.3,ease:BD},filter:{duration:.42,ease:BD}}},exit:{opacity:.5,y:`-85%`,filter:`blur(6px)`,transition:{duration:.2,ease:BD}}};function cj({status:e=`neutral`,size:t=`md`,children:n,icon:r,showIcon:i=!0,pulse:a=e===`loading`,contentKey:o,className:s,...c}){let l=jD(),u=aj[e],d=o??(typeof n==`string`||typeof n==`number`?n:e);return(0,G.jsxs)(q.span,{layout:!l,transition:l?{duration:0}:{type:`spring`,stiffness:420,damping:30,mass:.7},className:J(`relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums`,`transition-colors duration-300`,nj[e],rj[t],s),...c,children:[a&&!l?(0,G.jsx)(q.span,{"aria-hidden":!0,className:`absolute inset-0 rounded-full bg-current opacity-10`,animate:{scale:[.94,1.08,.94],opacity:[.08,.16,.08]},transition:{duration:1.6,repeat:1/0,ease:`easeInOut`}}):null,i?(0,G.jsx)(`span`,{className:`relative z-10 inline-flex items-center justify-center overflow-hidden`,children:(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:(0,G.jsx)(q.span,{"aria-hidden":!0,"data-badge-icon":!0,variants:oj,initial:!l&&`initial`,animate:l?{opacity:1}:`animate`,exit:l?void 0:`exit`,className:`inline-flex will-change-transform`,children:e===`loading`&&!l&&!r?(0,G.jsx)(q.span,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:`linear`},className:`inline-flex`,children:(0,G.jsx)(u,{className:ij[t]})}):r??(0,G.jsx)(u,{className:ij[t]})},e)})}):null,n==null?null:(0,G.jsx)(`span`,{className:`relative z-10 inline-flex overflow-hidden`,children:(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:(0,G.jsx)(q.span,{"data-badge-label":!0,variants:sj,initial:!l&&`initial`,animate:l?{opacity:1}:`animate`,exit:l?void 0:`exit`,className:`inline-block will-change-transform`,children:n},d)})})]})}var lj={ascii:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`],"ascii-line":[`|`,`/`,`-`,`\\`],"ascii-braille":[`⣾`,`⣽`,`⣻`,`⢿`,`⡿`,`⣟`,`⣯`,`⣷`],"ascii-blocks":[`▁`,`▂`,`▃`,`▄`,`▅`,`▆`,`▇`,`█`,`▇`,`▆`,`▅`,`▄`,`▃`,`▂`],"ascii-bounce":[`⠁`,`⠂`,`⠄`,`⡀`,`⢀`,`⠠`,`⠐`,`⠈`]},uj={animate:{opacity:[1,.4,1]},transition:{duration:1.4,ease:VD,repeat:1/0}};function dj({variant:e=`spinner`,size:t=32,speed:n=1,label:r=`Loading`,className:i}){let a=jD()??!1;return(0,G.jsxs)(`span`,{role:`status`,"aria-label":r,className:J(`inline-flex items-center justify-center text-foreground`,i),children:[e===`spinner`&&(0,G.jsx)(fj,{size:t,speed:n,reduce:a}),e===`dots`&&(0,G.jsx)(pj,{size:t,speed:n,reduce:a}),e===`bars`&&(0,G.jsx)(Nj,{size:t,speed:n,reduce:a}),e===`dot-matrix`&&(0,G.jsx)(Pj,{size:t,speed:n,reduce:a}),e===`dither`&&(0,G.jsx)(vre,{size:t,speed:n,reduce:a}),lj[e]&&(0,G.jsx)(mj,{frames:lj[e],size:t,speed:n,reduce:a}),e===`morph`&&(0,G.jsx)(Sj,{size:t,speed:n,reduce:a}),e===`comet`&&(0,G.jsx)(wj,{size:t,speed:n,reduce:a}),e===`scramble`&&(0,G.jsx)(Dj,{size:t,speed:n,reduce:a}),e===`metaballs`&&(0,G.jsx)(Oj,{size:t,speed:n,reduce:a}),e===`newton`&&(0,G.jsx)(Aj,{size:t,speed:n,reduce:a}),e===`helix`&&(0,G.jsx)(jj,{size:t,speed:n,reduce:a}),e===`percent`&&(0,G.jsx)(Mj,{size:t,speed:n,reduce:a}),(0,G.jsx)(`span`,{className:`sr-only`,children:r})]})}function fj({size:e,speed:t,reduce:n}){let r=Math.max(2,e*.09),i=(e-r)/2;return(0,G.jsxs)(q.svg,{width:e,height:e,viewBox:`0 0 ${e} ${e}`,animate:n?uj.animate:{rotate:360},transition:n?uj.transition:{duration:t,ease:`linear`,repeat:1/0},children:[(0,G.jsx)(`circle`,{cx:e/2,cy:e/2,r:i,fill:`none`,stroke:`currentColor`,strokeOpacity:.2,strokeWidth:r}),(0,G.jsx)(`path`,{d:`M ${e/2} ${e/2-i} A ${i} ${i} 0 0 1 ${e/2+i} ${e/2}`,fill:`none`,stroke:`currentColor`,strokeWidth:r,strokeLinecap:`round`})]})}function pj({size:e,speed:t,reduce:n}){let r=e*.24;return(0,G.jsx)(`span`,{className:`flex items-center`,style:{gap:e*.14},children:[0,1,2].map(i=>(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:r},animate:n?{opacity:[.4,1,.4]}:{y:[0,-e*.3,0],opacity:[.5,1,.5]},transition:{duration:t,ease:VD,repeat:1/0,delay:i*t*.16}},i))})}function mj({frames:e,size:t,speed:n,reduce:r}){let[i,a]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let t=(r?n*2.5:n)/e.length*1e3,i=setInterval(()=>a(t=>(t+1)%e.length),t);return()=>clearInterval(i)},[e.length,n,r]),(0,G.jsx)(`span`,{className:`font-mono leading-none tabular-nums`,style:{fontSize:t,lineHeight:1},children:e[i%e.length]})}var hj=24;function gj(e,t,n=0){let r=2*Math.PI/t,i=((e-n)%r+r)%r-r/2;return Math.cos(Math.PI/t)/Math.cos(i)}function _j(e){let t=[];for(let n=0;n<hj;n++){let r=n/hj*2*Math.PI-Math.PI/2,i=Math.min(1.05,e(r)),a=(50+Math.cos(r)*46*i).toFixed(2),o=(50+Math.sin(r)*46*i).toFixed(2);t.push(`${n===0?`M`:`L`}${a} ${o}`)}return`${t.join(` `)} Z`}var vj=[_j(()=>1),_j(e=>gj(e,4,Math.PI/4)),_j(e=>gj(e,3)),_j(e=>gj(e,6)),_j(e=>gj(e,4))],yj=[...vj.flatMap(e=>[e,e]),vj[0]],bj=[0,0,72,72,144,144,216,216,288,288,360],xj=[1,1,.88,.88,1,1,.88,.88,1,1,1];function Sj({size:e,speed:t,reduce:n}){return(0,G.jsxs)(q.svg,{width:e,height:e,viewBox:`0 0 100 100`,role:`img`,animate:n?{opacity:[1,.4,1]}:{rotate:bj,scale:xj},transition:n?{duration:1.4,ease:VD,repeat:1/0}:{duration:t*5,ease:VD,repeat:1/0},children:[(0,G.jsx)(`title`,{children:`Loading`}),(0,G.jsx)(q.path,{fill:`currentColor`,d:vj[0],animate:n?void 0:{d:yj},transition:n?void 0:{duration:t*5,ease:VD,repeat:1/0}})]})}var Cj=[0,1,2,3,4,5];function wj({size:e,speed:t,reduce:n}){let r=e*.2,i=e/2-r/2;return(0,G.jsx)(`span`,{className:`relative`,style:{width:e,height:e},children:(0,G.jsx)(q.span,{className:`absolute inset-0`,animate:n?uj.animate:{rotate:360},transition:n?uj.transition:{duration:t,ease:`linear`,repeat:1/0},children:Cj.map(e=>{let t=1-e*.13,n=r*t;return(0,G.jsx)(`span`,{className:`absolute top-1/2 left-1/2 rounded-full bg-current`,style:{width:n,height:n,marginLeft:-n/2,marginTop:-n/2,opacity:1-e*.16,transform:`rotate(${-e*15}deg) translateY(${-i}px)`}},e)})})})}var Tj=`LOADING`,Ej=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<>/*#@`;function Dj({size:e,speed:t,reduce:n}){let[r,i]=(0,v.useState)(Tj);return(0,v.useEffect)(()=>{if(n){i(Tj);return}let e=0,r=setInterval(()=>{let t=e%11,n=``;for(let e=0;e<7;e++)n+=e<t?Tj[e]:Ej[Math.floor(Math.random()*42)];i(n),e++},t/7*1e3*.55);return()=>clearInterval(r)},[t,n]),(0,G.jsx)(`span`,{className:`font-mono font-medium tracking-[0.2em] tabular-nums`,style:{fontSize:e*.42},children:r})}function Oj({size:e,speed:t,reduce:n}){let r=(0,v.useId)().replace(/:/g,``);return(0,G.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 100 100`,role:`img`,children:[(0,G.jsx)(`title`,{children:`Loading`}),(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:r,children:[(0,G.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`5`,result:`b`}),(0,G.jsx)(`feColorMatrix`,{in:`b`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8`})]})}),(0,G.jsxs)(`g`,{filter:`url(#${r})`,fill:`currentColor`,children:[(0,G.jsx)(q.circle,{cy:`50`,r:`15`,animate:n?{opacity:[.4,1,.4]}:{cx:[30,70,30]},transition:{duration:t*1.6,ease:VD,repeat:1/0},cx:n?40:30}),(0,G.jsx)(q.circle,{cy:`50`,r:`15`,animate:n?{opacity:[.4,1,.4]}:{cx:[70,30,70]},transition:{duration:t*1.6,ease:VD,repeat:1/0},cx:n?60:70})]})]})}var kj=[0,1,2,3,4];function Aj({size:e,speed:t,reduce:n}){let r=e*.2,i=r*1.1,a={0:{x:[0,-i,0,0],times:[0,.28,.5,1]},4:{x:[0,0,i,0],times:[0,.5,.78,1]}};return(0,G.jsx)(`span`,{className:`flex items-center justify-center`,style:{height:r},children:kj.map(e=>{let i=a[e];return(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:r},animate:n||!i?void 0:{x:i.x},transition:n||!i?void 0:{duration:t*1.5,ease:VD,repeat:1/0,times:i.times}},e)})})}function jj({size:e,speed:t,reduce:n}){let r=e*.14,i=e*.32;return(0,G.jsx)(`span`,{className:`relative`,style:{width:e,height:e},children:Array.from({length:7},(a,o)=>{let s=o/6*(e-r),c=o/7*t;return(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q.span,{className:`absolute rounded-full bg-current`,style:{width:r,height:r,left:e/2-r/2,top:s},animate:n?{opacity:[.4,1,.4]}:{x:[i,-i,i],scale:[1,.5,1],opacity:[1,.45,1]},transition:{duration:t,ease:VD,repeat:1/0,delay:c}}),(0,G.jsx)(q.span,{className:`absolute rounded-full bg-current`,style:{width:r,height:r,left:e/2-r/2,top:s},animate:n?{opacity:[.4,1,.4]}:{x:[-i,i,-i],scale:[.5,1,.5],opacity:[.45,1,.45]},transition:{duration:t,ease:VD,repeat:1/0,delay:c}})]},`row-${s}`)})})}function Mj({size:e,speed:t,reduce:n}){let[r,i]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let e=(n?t*2:t)*1e3,r={t:0},a=setInterval(()=>{r.t+=40;let t=Math.min(100,Math.round(r.t/e*100));i(t),t>=100&&(r.t=0)},40);return()=>clearInterval(a)},[t,n]),(0,G.jsxs)(`span`,{className:`flex flex-col items-center`,style:{gap:e*.14,width:e*1.4},children:[(0,G.jsxs)(`span`,{className:`font-mono font-medium tabular-nums`,style:{fontSize:e*.42,lineHeight:1},children:[r,`%`]}),(0,G.jsx)(`span`,{className:`w-full overflow-hidden rounded-full bg-current/15`,style:{height:Math.max(3,e*.1)},children:(0,G.jsx)(`span`,{className:`block h-full rounded-full bg-current`,style:{width:`${r}%`}})})]})}function Nj({size:e,speed:t,reduce:n}){let r=e*.16;return(0,G.jsx)(`span`,{className:`flex items-center`,style:{gap:e*.1,height:e},children:[0,1,2,3].map(i=>(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:e,originY:1},animate:n?{opacity:[.4,1,.4]}:{scaleY:[.3,1,.3]},transition:{duration:t,ease:VD,repeat:1/0,delay:i*t*.12}},i))})}function Pj({size:e,speed:t,reduce:n}){let r=e*.14,i=(e-r*2)/3,a=Array.from({length:9},(e,t)=>t);return(0,G.jsx)(`span`,{className:`grid`,style:{gap:r,gridTemplateColumns:`repeat(3, ${i}px)`},children:a.map(e=>{let r=(e%3+Math.floor(e/3))/4*t;return(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:i,height:i},animate:n?{opacity:[.3,1,.3]}:{opacity:[.2,1,.2],scale:[.7,1,.7]},transition:{duration:t,ease:VD,repeat:1/0,delay:r}},e)})})}var Fj=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];function vre({size:e,speed:t,reduce:n}){let r=Math.max(1,e*.05),i=(e-r*3)/4;return(0,G.jsx)(`span`,{className:`grid`,style:{gap:r,gridTemplateColumns:`repeat(4, ${i}px)`},children:Fj.map((e,r)=>(0,G.jsx)(q.span,{className:`bg-current`,style:{width:i,height:i},animate:n?{opacity:[.3,1,.3]}:{opacity:[.1,1,.1]},transition:{duration:t,ease:VD,repeat:1/0,delay:e/Fj.length*t}},r))})}var yre=q_(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function bre({className:e,variant:t,...n}){return(0,G.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:K(yre({variant:t}),e),...n})}function xre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`alert-description`,className:K(`col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed`,e),...t})}var Ij=q_(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] 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 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function Lj({className:e,variant:t=`default`,asChild:n=!1,...r}){return n?(0,G.jsx)(mf,{className:K(Ij({variant:t}),e),...r}):(0,G.jsx)(cj,{status:t===`destructive`?`danger`:t==="default"?`info`:`neutral`,size:`sm`,showIcon:!1,"data-slot":`badge`,"data-variant":t,className:K(Ij({variant:t}),e),...r})}var Rj={duration:0},Sre={type:`spring`,duration:.4,bounce:.3},Cre={hidden:{},show:{transition:{staggerChildren:.035,delayChildren:.05}}},wre={hidden:{opacity:0,y:-6,filter:`blur(3px)`},show:{opacity:1,y:0,filter:`blur(0px)`}},zj=(0,v.createContext)(null);function Bj(e){let t=(0,v.useContext)(zj);if(!t)throw Error(`${e} must be used within <Select>`);return t}function Tre({value:e,defaultValue:t,onValueChange:n,open:r,defaultOpen:i=!1,onOpenChange:a,disabled:o=!1,className:s,children:c}){let l=jD()??!1,u=(0,v.useId)(),d=(0,v.useRef)(null),f=(0,v.useRef)(null),p=(0,v.useRef)(null),[m,h]=(0,v.useState)(`${u}-trigger`),[g,_]=(0,v.useState)(i),[y,b]=(0,v.useState)(t),[x,S]=(0,v.useState)(new Map),[C,w]=(0,v.useState)(`bottom`),T=e!==void 0,E=T?e:y,D=r!==void 0,O=!o&&(D?r:g),k=(0,v.useCallback)(e=>{D||_(e),a?.(e)},[a,D]),A=(0,v.useCallback)(e=>{T||b(e),n?.(e),k(!1),f.current?.focus({preventScroll:!0})},[T,n,k]),j=(0,v.useCallback)((e,t)=>{S(n=>n.get(e)===t?n:new Map(n).set(e,t))},[]),M=(0,v.useCallback)(e=>{S(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]);(0,v.useEffect)(()=>{if(!O)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),k(!1),f.current?.focus())},t=e=>{d.current&&!d.current.contains(e.target)&&!p.current?.contains(e.target)&&k(!1)};return window.addEventListener(`keydown`,e,!0),window.addEventListener(`pointerdown`,t),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`pointerdown`,t)}},[O,k]);let N=(0,v.useMemo)(()=>({value:E,open:O,setOpen:k,select:A,register:j,unregister:M,labelFor:e=>e===void 0?void 0:x.get(e),reduce:l,triggerId:m,setTriggerId:h,triggerRef:f,contentRef:p,listId:`${u}-list`,disabled:o,placement:C,setPlacement:w}),[E,O,k,A,j,M,x,l,u,m,o,C]);return(0,G.jsx)(zj.Provider,{value:N,children:(0,G.jsx)(`div`,{ref:d,className:J(`relative`,s),children:c})})}function Ere({className:e,children:t,id:n,onClick:r,onKeyDown:i,ref:a,...o}){let s=Bj(`SelectTrigger`);(0,v.useLayoutEffect)(()=>{n&&s.setTriggerId(n)},[n,s.setTriggerId]);let c=s.placement===`top`,l=s.open?[0,0,12]:[12,0,12],u=s.reduce?{duration:0}:s.open?{duration:.6,times:[0,.4,1],ease:BD}:{duration:.42,times:[0,.5,1],ease:BD};return(0,G.jsxs)(q.button,{...o,ref:e=>{s.triggerRef.current=e,typeof a==`function`?a(e):a&&(a.current=e)},role:`combobox`,type:`button`,id:s.triggerId,disabled:s.disabled,"aria-haspopup":`listbox`,"aria-expanded":s.open,"aria-controls":s.listId,onClick:e=>{r?.(e),e.defaultPrevented||s.setOpen(!s.open)},onKeyDown:e=>{i?.(e),!e.defaultPrevented&&[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),s.setOpen(!0))},initial:!1,animate:{borderTopLeftRadius:c?l:12,borderTopRightRadius:c?l:12,borderBottomLeftRadius:c?12:l,borderBottomRightRadius:c?12:l},transition:{borderTopLeftRadius:c?u:Rj,borderTopRightRadius:c?u:Rj,borderBottomLeftRadius:c?Rj:u,borderBottomRightRadius:c?Rj:u},className:J(`relative z-10 flex w-full items-center justify-between gap-2 rounded-xl border border-border bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors`,`hover:border-(--color-border-strong) focus-visible:ring-2 focus-visible:ring-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`,e),children:[t,(0,G.jsx)(q.span,{"aria-hidden":!0,animate:{rotate:s.open?180:0},transition:s.reduce?{duration:0}:Sre,className:`text-muted-foreground`,children:(0,G.jsx)(ul,{className:`h-4 w-4`})})]})}function Vj({placeholder:e,className:t,children:n}){let r=Bj(`SelectValue`),i=r.labelFor(r.value);return(0,G.jsx)(`span`,{className:J(i?`text-foreground`:`text-muted-foreground`,t),children:n??i??e??`Select`})}function Dre({className:e,children:t}){let n=Bj(`SelectContent`),r=(0,v.useRef)(null),[i,a]=(0,v.useState)(0),o=n.open,{setPlacement:s}=n,[c,l]=(0,v.useState)({left:0,top:0,width:0,maxHeight:300}),u=(0,v.useRef)({text:``,at:0}),[d,f]=(0,v.useState)(null);(0,v.useLayoutEffect)(()=>{f(n.triggerRef.current?.closest(`[role="dialog"], [role="alertdialog"]`)??document.body)},[n.triggerRef]),(0,v.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>a(e.offsetHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[d]),(0,v.useLayoutEffect)(()=>{if(!o)return;let e=n.triggerRef.current,t=r.current;if(!e||!t)return;let i=()=>{let n=e.getBoundingClientRect(),r=d===document.body?null:d,i=r?.getBoundingClientRect(),a=Math.min(window.innerHeight,i?.bottom??window.innerHeight)-n.bottom,o=n.top-Math.max(0,i?.top??0),c=Math.max(8,(i?.left??0)+8),u=Math.min(window.innerWidth-8,(i?.right??window.innerWidth)-8),f=Math.max(0,u-c);t.style.maxWidth=`${f}px`,t.style.minWidth=`${Math.min(n.width,f)}px`;let p=Math.min(f,Math.max(n.width,t.offsetWidth+2)),m=a<Math.min(t.offsetHeight,300)+16&&o>a;s(m?`top`:`bottom`),l({left:Math.max(c,Math.min(n.left,u-p))-(i?.left??0)+(r?.scrollLeft??0),top:r?(m?n.top:n.bottom)-(i?.top??0)+r.scrollTop:m?window.innerHeight-n.top:n.bottom,width:p,maxHeight:Math.max(60,Math.min(300,(m?o:a)-24))})};i(),(t.querySelector(`[role="option"][aria-selected="true"]:not(:disabled)`)??t.querySelector(`[role="option"]:not(:disabled)`))?.focus({preventScroll:!0});let a=new ResizeObserver(i);return a.observe(t),window.addEventListener(`resize`,i),window.addEventListener(`scroll`,i,!0),()=>{a.disconnect(),window.removeEventListener(`resize`,i),window.removeEventListener(`scroll`,i,!0)}},[o,n.triggerRef,s,d]);let p=n.placement===`top`,m=o?8:0,h=o?12:0,g=o?{type:`spring`,duration:.6,bounce:.5,delay:.12}:{type:`spring`,duration:.3,bounce:.1},_=o?{duration:.3,ease:BD,delay:.14}:{duration:.16,ease:BD};if(!d)return null;let y=d!==document.body;return(0,kf.createPortal)((0,G.jsx)(q.div,{ref:n.contentRef,id:n.listId,role:`listbox`,"aria-labelledby":n.triggerId,"aria-hidden":!o,inert:!o,onKeyDown:e=>{let t=Array.from(e.currentTarget.querySelectorAll(`[role="option"]:not(:disabled)`)),r=t.indexOf(document.activeElement);if(e.key===`Tab`){n.setOpen(!1),n.triggerRef.current?.focus();return}let i;if(e.key===`ArrowDown`)i=t[(r+1)%t.length];else if(e.key===`ArrowUp`)i=t[(r-1+t.length)%t.length];else if(e.key===`Home`)i=t[0];else if(e.key===`End`)i=t.at(-1);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&e.key!==` `){let n=Date.now();u.current={text:(n-u.current.at<700?u.current.text:``)+e.key.toLowerCase(),at:n},i=t.find(e=>e.textContent?.trim().toLowerCase().startsWith(u.current.text))}i&&(e.preventDefault(),i.focus())},initial:!1,animate:n.reduce?{opacity:+!!o,height:o?i:0}:{opacity:+!!o,height:o?i:0,marginTop:p?0:m,marginBottom:p?m:0,borderTopLeftRadius:p?12:h,borderTopRightRadius:p?12:h,borderBottomLeftRadius:p?h:12,borderBottomRightRadius:p?h:12},transition:n.reduce?{duration:.12}:{opacity:o?{duration:.18}:{duration:.16,delay:.12},height:o?{type:`spring`,duration:.42,bounce:.14}:{duration:.26,ease:BD,delay:.14},marginTop:p?Rj:g,marginBottom:p?g:Rj,borderTopLeftRadius:p?Rj:_,borderTopRightRadius:p?Rj:_,borderBottomLeftRadius:p?_:Rj,borderBottomRightRadius:p?_:Rj},style:{position:y?`absolute`:`fixed`,left:c.left,width:c.width,zIndex:80,top:y||!p?c.top:`auto`,bottom:!y&&p?c.top:`auto`,translate:y&&p?`0 -100%`:void 0,transformOrigin:p?`bottom`:`top`,overflow:`hidden`,pointerEvents:o?`auto`:`none`},className:J(`rounded-xl border border-border bg-popover text-popover-foreground shadow-xl`,e),children:(0,G.jsx)(q.div,{ref:r,variants:n.reduce?void 0:Cre,initial:!1,animate:o?`show`:`hidden`,className:`grid w-max gap-1.5 overflow-y-auto overscroll-contain p-1.5`,style:{maxHeight:c.maxHeight},children:t})}),d)}function Hj({value:e,disabled:t=!1,className:n,children:r,textValue:i}){let a=Bj(`SelectItem`),o=a.value===e,s=i??r;return(0,v.useLayoutEffect)(()=>(a.register(e,s),()=>a.unregister(e)),[a.register,a.unregister,e,s]),(0,G.jsx)(q.div,{role:`presentation`,variants:a.reduce?void 0:wre,children:(0,G.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":o,disabled:t,onClick:()=>a.select(e),className:J(`flex min-h-9 w-full items-center justify-between gap-3 rounded-lg border px-3 py-2 text-left text-[13px] leading-5 outline-none transition-colors duration-150`,o?`border-primary/25 bg-primary/12 text-foreground`:`border-transparent text-foreground/80`,`hover:border-primary/45 hover:bg-primary/25 hover:text-foreground focus-visible:border-primary/60 focus-visible:bg-primary/25 focus-visible:text-foreground`,`disabled:pointer-events-none disabled:opacity-50`,n),children:[(0,G.jsx)(`span`,{className:`min-w-0 whitespace-normal [overflow-wrap:anywhere]`,children:r}),(0,G.jsx)(cl,{"aria-hidden":`true`,className:J(`h-3.5 w-3.5 shrink-0`,!o&&`invisible`)})]})})}function Uj(e){return(0,G.jsx)(Tre,{...e})}function Wj({className:e,size:t=`default`,...n}){return(0,G.jsx)(Ere,{...n,"data-slot":`select-trigger`,"data-size":t,className:K(`min-w-0 shadow-xs`,t===`sm`?`h-8`:`h-9`,e)})}function Gj({position:e,align:t,...n}){return(0,G.jsx)(Dre,{...n})}var Ore={default:`default`,secondary:`secondary`,error:`destructive`,success:`ghost`,warning:`ghost`,accent:`ghost`},kre={default:``,secondary:``,error:``,success:`bg-success text-white hover:bg-success/90`,warning:`bg-warning text-white hover:bg-warning/90`,accent:`bg-brand text-brand-foreground hover:bg-brand/90`},Are={default:`border bg-transparent text-foreground hover:bg-accent`,secondary:`border bg-transparent text-muted-foreground hover:bg-accent`,error:`border border-destructive/40 bg-transparent text-destructive hover:bg-destructive/10`,success:`border border-success/40 bg-transparent text-success hover:bg-success/10`,warning:`border border-warning/40 bg-transparent text-warning hover:bg-warning/10`,accent:`border border-brand/40 bg-transparent text-brand hover:bg-brand/10`};function Z({type:e=`default`,size:t=`md`,ghost:n=!1,loading:r=!1,icon:i,className:a,children:o,disabled:s,...c}){return(0,G.jsxs)(YD,{type:`button`,variant:n?`ghost`:Ore[e],size:t===`sm`?`sm`:`default`,className:K(n?Are[e]:kre[e],a),disabled:s||r,...c,children:[r?(0,G.jsx)(Yj,{small:!0}):i,o!=null&&(0,G.jsx)(`span`,{className:`inline-flex items-center gap-1.5`,children:o})]})}var jre={default:``,secondary:`text-muted-foreground`,success:`border-success/40 text-success`,warning:`border-warning/40 text-warning`,error:`border-destructive/40 text-destructive`,accent:`border-brand/40 text-brand`};function Kj({type:e=`default`,label:t,children:n,className:r}){let i=t===!1?null:t??e;return(0,G.jsx)(bre,{role:`note`,className:K(jre[e],r),children:(0,G.jsxs)(xre,{className:`text-current`,children:[i!=null&&(0,G.jsxs)(`b`,{className:`font-semibold`,children:[i,`:`]}),` `,n]})})}var Mre={default:`default`,secondary:`secondary`,error:`destructive`,success:`outline`,warning:`outline`,accent:`outline`},Nre={default:``,secondary:``,error:``,success:`border-success/40 text-success`,warning:`border-warning/40 text-warning`,accent:`border-brand/40 text-brand`};function qj({type:e=`default`,children:t,className:n}){return(0,G.jsx)(Lj,{variant:Mre[e],className:K(`font-mono`,Nre[e],n),children:t})}var Pre={default:`bg-muted-foreground`,secondary:`bg-muted-foreground/60`,success:`bg-success`,warning:`bg-warning`,error:`bg-destructive`,accent:`bg-brand`};function Jj({type:e=`default`,pulse:t=!1,color:n,className:r}){return(0,G.jsx)(`span`,{className:K(`inline-block size-2 shrink-0 rounded-full`,!n&&Pre[e],t&&`animate-pulse`,r),style:n?{background:n}:void 0})}function Yj({small:e=!1}){return(0,G.jsx)(dj,{variant:`spinner`,size:e?12:16,label:`Loading`,className:`text-current`})}function Xj({className:e,...t}){return(0,G.jsx)(Ok,{className:K(`font-mono`,e),...t})}var Zj=`\0empty`,Qj=e=>e===``?Zj:e,Fre=e=>e===Zj?``:e;function $j({value:e,onValueChange:t,options:n,placeholder:r,className:i,disabled:a,size:o=`md`,"aria-label":s}){return(0,G.jsxs)(Uj,{value:Qj(e),onValueChange:e=>t(Fre(e)),disabled:a,children:[(0,G.jsx)(Wj,{size:o===`sm`?`sm`:`default`,"aria-label":s,className:K(`font-mono`,i),children:(0,G.jsx)(Vj,{placeholder:r})}),(0,G.jsx)(Gj,{children:n.map(e=>(0,G.jsx)(Hj,{value:Qj(e.value),className:`font-mono`,children:e.label},e.value))})]})}function eM({children:e,className:t,hoverable:n=!1}){return(0,G.jsx)(XO,{className:K(`gap-0 py-0`,n&&`transition-colors hover:border-brand/40`,t),children:e})}function Ire(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(null),[y,b]=(0,v.useState)(``),[x,S]=(0,v.useState)({show_sensitive:!1,verbose:!1,compact:!1,terse:!1}),C=(0,v.useRef)(null),w=(0,v.useCallback)(()=>{U(`/api/backups`).then(e=>{t(e),p(t=>t||e.devices[0]||``)}).catch(()=>t({dir:``,devices:[],backups:[]}))},[]);(0,v.useEffect)(()=>w(),[w]);let T=(e,t)=>_c(e,t).catch(()=>({error:`request failed`})),E=async()=>{a(!0),r(`Capturing /export…`);let e=await _c(`/api/backups/create`,{device:f||void 0,label:y.trim()||void 0,show_sensitive:x.show_sensitive,verbose:x.verbose,compact:!x.verbose&&x.compact,terse:x.terse}).catch(()=>({error:`request failed`}));a(!1),r(e.ok?`Created ${e.name} (${e.bytes} bytes)`:`Create failed: ${e.error}`),e.ok?(Y.success(`Backup created`),w()):Y.error(`Create failed: ${e.error}`)},D=e=>S(t=>({...t,[e]:!t[e]})),O=async e=>{let t=await e.text(),n=await T(`/api/backups/upload`,{name:e.name,content:t});r(n.ok?`Uploaded ${n.name}`:`Upload failed: ${n.error}`),n.ok?(Y.success(`Backup uploaded`),w()):Y.error(`Upload failed: ${n.error}`)},k=async e=>{s(null);let t=await T(`/api/backups/delete`,{name:e});r(t.ok?`Deleted ${e}`:`Delete failed: ${t.error}`),t.ok?(Y.success(`Backup deleted`),w()):Y.error(`Delete failed: ${t.error}`)},A=async()=>{if(!u)return;let{name:e,value:t}=u;if(d(null),!t||t===e)return;let n=await T(`/api/backups/rename`,{name:e,new_name:t});r(n.ok?`Renamed to ${n.name}`:`Rename failed: ${n.error}`),n.ok?(Y.success(`Backup renamed`),w()):Y.error(`Rename failed: ${n.error}`)},j=async e=>{if(!c)return;a(!0),r(e?`Restoring in Safe Mode…`:`Dry-run restore in Safe Mode…`);let t=await _c(`/api/backups/restore`,{name:c,device:f||void 0,confirm:e}).catch(()=>({ok:!1,message:`request failed`}));a(!1),r(t.ok?t.committed?`Restored ${c} → ${f}: ${t.message}`:`Dry-run OK (${t.applied} cmds, rolled back). Click “Restore (commit)” to apply for real.`:`Restore failed: ${t.message}`),t.ok?Y.success(t.committed?`Backup restored`:`Dry-run restore OK`):Y.error(`Restore failed: ${t.message}`),t.ok&&e&&l(null)},M=e=>{U(`/api/backups/get?name=${encodeURIComponent(e)}`).then(h).catch(()=>{})},N=async()=>{if(g===null)return;let t=g.trim();if(!t||t===e?.dir){_(null);return}a(!0);let n=await _c(`/api/backups/dir`,{dir:t}).catch(()=>({error:`request failed`}));a(!1),_(null),n.ok?(r(n.persisted?`Backup path saved → ${n.dir}`:n.warning??`Path applied → ${n.dir}`),Y.success(`Backup directory updated`)):(r(`Path change failed: ${n.error}`),Y.error(`Path change failed: ${n.error}`)),n.ok&&w()};if(!e)return(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading backups…`});let P=e.devices.length===0?[{value:``,label:`no devices`}]:e.devices.map(e=>({value:e,label:e}));return(0,G.jsxs)(`section`,{className:`grid content-start gap-[18px]`,children:[(0,G.jsxs)(X,{title:`Local backup vault`,className:`reveal`,extra:g===null?(0,G.jsxs)(`span`,{className:`inline-flex max-w-[min(60vw,520px)] items-center gap-2 text-muted-foreground text-[11px]`,children:[(0,G.jsx)(`span`,{className:`truncate`,title:e.dir,children:e.dir}),(0,G.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 whitespace-nowrap text-brand hover:underline`,title:`Change backup directory`,onClick:()=>_(e.dir),children:[(0,G.jsx)(Bu,{className:`size-3`}),` edit path`]})]}):(0,G.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,G.jsx)(Xj,{className:`w-[min(48vw,380px)] text-xs`,value:g,autoFocus:!0,spellCheck:!1,placeholder:`~/.mikrotik-mcp/backups`,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&N(),e.key===`Escape`&&_(null)}}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>void N(),disabled:i,children:`Save path`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>_(null),children:`Cancel`})]}),children:[n&&(0,G.jsx)(`div`,{className:`mb-3 font-mono text-xs text-muted-foreground`,children:n}),(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2`,children:[(0,G.jsx)($j,{value:f,onValueChange:p,"aria-label":`Device`,options:P}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,icon:(0,G.jsx)(Ju,{}),onClick:()=>void E(),disabled:i||!f,children:`Create backup`}),(0,G.jsx)(Z,{size:`sm`,icon:(0,G.jsx)(Xd,{}),onClick:()=>C.current?.click(),children:`Upload .rsc`}),(0,G.jsx)(`input`,{ref:C,type:`file`,accept:`.rsc,text/plain`,className:`hidden`,onChange:e=>{let t=e.target.files?.[0];t&&O(t),e.currentTarget.value=``}}),(0,G.jsx)(Z,{size:`sm`,icon:(0,G.jsx)(ed,{}),onClick:w,children:`Refresh`})]}),(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`max-w-[200px] text-xs`,value:y,spellCheck:!1,placeholder:`label (optional), e.g. pre-upgrade`,onChange:e=>b(e.target.value)}),[[`show_sensitive`,`show-sensitive`,`Include secrets (keys/passwords)`],[`verbose`,`verbose`,`Include every parameter, even defaults`],[`compact`,`compact`,`Only non-default values (ignored if verbose)`],[`terse`,`terse`,`One machine-readable line per item`]].map(([e,t,n])=>{let r=e===`compact`&&x.verbose;return(0,G.jsxs)(`label`,{className:K(`inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-2.5 py-1.5 font-mono text-[11px] select-none`,x[e]?`border-brand/55 bg-brand/10 text-foreground`:`border-border bg-muted/40 text-muted-foreground`,r&&`cursor-not-allowed opacity-45`),title:n,children:[(0,G.jsx)(`input`,{type:`checkbox`,className:`accent-brand`,checked:x[e],disabled:r,onChange:()=>D(e)}),t]},e)})]}),c&&(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-md border border-warning/45 bg-warning/10 px-3 py-2.5 text-xs`,children:[(0,G.jsxs)(`strong`,{children:[`Restore `,c]}),` onto`,` `,(0,G.jsx)($j,{value:f,onValueChange:p,size:`sm`,"aria-label":`Restore target device`,options:e.devices.map(e=>({value:e,label:e}))}),` `,`via Safe Mode (auto-reverts on lock-out).`,(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>void j(!1),disabled:i,children:`Dry-run`}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>void j(!0),disabled:i,children:`Restore (commit)`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>l(null),children:`Cancel`})]}),e.backups.length===0?(0,G.jsx)(`div`,{className:`p-3 text-muted-foreground text-[11px]`,children:"No backups yet. Click “Create backup” to capture this device’s config, or upload a `.rsc`."}):(0,G.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-lg border border-border`,children:(0,G.jsxs)(WO,{className:`min-w-[980px] table-fixed`,children:[(0,G.jsx)(GO,{className:`bg-card sticky top-0 z-10`,children:(0,G.jsxs)(qO,{children:[(0,G.jsx)(JO,{children:`name`}),(0,G.jsx)(JO,{className:`w-[130px]`,children:`device`}),(0,G.jsx)(JO,{className:`w-[90px] text-right`,children:`size`}),(0,G.jsx)(JO,{className:`w-[170px]`,children:`captured`}),(0,G.jsx)(JO,{className:`w-[380px]`,children:`actions`})]})}),(0,G.jsx)(KO,{children:e.backups.map(e=>(0,G.jsxs)(qO,{"data-state":m?.name===e.name?`selected`:void 0,children:[(0,G.jsx)(YO,{className:`truncate font-mono`,title:e.name,children:e.name}),(0,G.jsx)(YO,{className:`truncate`,children:e.device??`—`}),(0,G.jsx)(YO,{className:`text-right tabular-nums`,children:Vk(e.bytes)}),(0,G.jsx)(YO,{className:`tabular-nums whitespace-nowrap`,children:new Date(e.modified).toLocaleString(void 0,{hour12:!1})}),(0,G.jsx)(YO,{onClick:e=>e.stopPropagation(),children:(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(Z,{size:`sm`,onClick:()=>M(e.name),children:`view`}),(0,G.jsx)(`a`,{className:`inline-flex items-center rounded-md border border-border px-2 py-1 text-xs hover:bg-accent`,href:gc(`/api/backups/raw?name=${encodeURIComponent(e.name)}`),download:e.name,title:`Download`,children:(0,G.jsx)(Hl,{className:`size-3.5`})}),u?.name===e.name?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Xj,{className:`inline-block w-[120px] text-xs`,value:u.value,autoFocus:!0,onChange:t=>d({name:e.name,value:t.target.value}),onKeyDown:e=>e.key===`Enter`&&void A()}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,icon:(0,G.jsx)(cl,{}),onClick:()=>void A()}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,icon:(0,G.jsx)(af,{}),onClick:()=>d(null)})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{size:`sm`,onClick:()=>d({name:e.name,value:e.name}),children:`rename`}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>l(e.name),children:`restore`})]}),o===e.name?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{type:`error`,size:`sm`,ghost:!0,icon:(0,G.jsx)(cl,{}),onClick:()=>void k(e.name)}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,icon:(0,G.jsx)(af,{}),onClick:()=>s(null)})]}):(0,G.jsx)(Z,{type:`error`,size:`sm`,ghost:!0,icon:(0,G.jsx)(Hd,{}),onClick:()=>s(e.name)})]})})]},e.name))})]})})]}),m&&(0,G.jsx)(X,{title:`Backup · ${m.name}`,className:`reveal`,extra:(0,G.jsx)(Z,{type:`secondary`,size:`sm`,icon:(0,G.jsx)(af,{}),onClick:()=>h(null),children:`Close`}),children:(0,G.jsx)(`pre`,{className:`m-0 overflow-auto rounded border border-border bg-background p-3 font-mono text-xs break-words whitespace-pre-wrap`,style:{maxHeight:460},children:m.content||`(empty)`})})]})}var tM=`http://www.w3.org/2000/svg`,nM=864e5,rM=e=>new Date(e).toISOString().slice(0,10);function iM(){let e=new Date;return Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}function Lre(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`})}function aM({endpoint:e,days:t=90}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!0);(0,v.useEffect)(()=>{let t=!0;return a(!0),U(e).then(e=>{t&&r(e)}).catch(()=>{t&&r(null)}).finally(()=>{t&&a(!1)}),()=>{t=!1}},[e]);let o=(0,v.useMemo)(()=>{let e=new Map((n?.series??[]).map(e=>[e.day,e])),r=iM(),i=[];for(let n=t-1;n>=0;n--){let t=rM(r-n*nM),a=e.get(t);i.push(a??{day:t,rx:0,tx:0})}return i},[n,t]);if(i)return(0,G.jsx)(`div`,{className:`px-1 py-4 text-[12.5px] text-muted-foreground`,children:`loading usage…`});if(!((n?.totalRx??0)+(n?.totalTx??0)>0))return(0,G.jsx)(`div`,{className:`px-1 py-4 text-[12.5px] text-muted-foreground`,children:`No usage recorded yet. The dashboard samples on a configurable interval (1 minute by default — see the RADIUS & UM Settings tab); history fills in over time (kept ~3 months).`});let s=Math.max(1,...o.flatMap(e=>[e.rx,e.tx])),c=e=>8+e*624/Math.max(1,o.length-1),l=e=>142-e/s*134,u=e=>o.map((t,n)=>`${c(n).toFixed(1)},${l(e(t)).toFixed(1)}`).join(` `),d=e=>{let t=c(0).toFixed(1),n=c(o.length-1).toFixed(1);return`${t},${142 .toFixed(1)} ${u(e)} ${n},${142 .toFixed(1)}`};return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-1.5 flex items-baseline gap-3.5 text-xs tabular-nums`,children:[(0,G.jsxs)(`span`,{className:`font-semibold text-chart-3`,children:[`↓ `,Vk(n?.totalRx??0),` down`]}),(0,G.jsxs)(`span`,{className:`font-semibold text-chart-4`,children:[`↑ `,Vk(n?.totalTx??0),` up`]}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`· peak/day `,Vk(s),` · last `,t,` days`]})]}),(0,G.jsxs)(`svg`,{className:`block h-40 w-full rounded-md border border-border bg-card`,viewBox:`0 0 640 150`,preserveAspectRatio:`none`,xmlns:tM,role:`img`,children:[(0,G.jsx)(`polygon`,{className:`fill-chart-3/20`,points:d(e=>e.rx)}),(0,G.jsx)(`polygon`,{className:`fill-chart-4/15`,points:d(e=>e.tx)}),(0,G.jsx)(`polyline`,{className:`fill-none stroke-chart-3 stroke-2 [vector-effect:non-scaling-stroke]`,points:u(e=>e.rx)}),(0,G.jsx)(`polyline`,{className:`fill-none stroke-chart-4 stroke-2 [vector-effect:non-scaling-stroke]`,points:u(e=>e.tx)})]})]})}var oM=12,Rre=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],sM=[`var(--muted)`,`color-mix(in srgb, var(--chart-3) 30%, var(--muted))`,`color-mix(in srgb, var(--chart-3) 50%, var(--muted))`,`color-mix(in srgb, var(--chart-3) 72%, transparent)`,`var(--chart-3)`];function cM({endpoint:e,label:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),o=(0,v.useRef)(null);(0,v.useEffect)(()=>{let t=!0;return U(e).then(e=>{t&&r(e)}).catch(()=>{t&&r({days:[],total:0,max:0})}),()=>{t=!1}},[e]);let{cells:s,monthLabels:c}=(0,v.useMemo)(()=>{let e=new Map((n?.days??[]).map(e=>[e.day,e.count])),t=iM(),r=t-(new Date(t).getUTCDay()+364)*nM,i=[],a=[],o=-1;for(let n=0;n<371;n++){let s=r+n*nM;if(s>t)break;let c=Math.floor(n/7),l=new Date(s).getUTCDay(),u=rM(s);if(i.push({day:u,count:e.get(u)??0,col:c,row:l,ms:s}),l===0){let e=new Date(s).getUTCMonth();e!==o&&(a.push({col:c,text:Rre[e]}),o=e)}}return{cells:i,monthLabels:a}},[n]),l=Math.max(1,n?.max??1),u=e=>e<=0?0:Math.min(4,Math.ceil(e/l*4)),d=(e,t)=>{let n=o.current;if(!n)return;let r=e.currentTarget.getBoundingClientRect(),i=n.getBoundingClientRect();a({left:r.left-i.left+r.width/2,top:r.top-i.top,day:t.day,count:t.count,lvl:u(t.count)})};return(0,G.jsxs)(`div`,{className:`relative`,ref:o,children:[(0,G.jsxs)(`div`,{className:`mb-1.5 flex items-baseline gap-2.5`,children:[(0,G.jsx)(`span`,{className:`text-[12.5px] font-semibold`,children:t??`Connections`}),(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:n?`${n.total} total`:`…`})]}),(0,G.jsx)(`div`,{className:`overflow-x-auto pb-1`,onMouseLeave:()=>a(null),children:(0,G.jsxs)(`svg`,{className:`block`,viewBox:`0 0 823 121`,width:823,height:121,xmlns:tM,role:`img`,children:[c.map(e=>(0,G.jsx)(`text`,{className:`fill-muted-foreground text-[9px]`,x:28+e.col*15,y:11,children:e.text},`${e.col}-${e.text}`)),[`Mon`,`Wed`,`Fri`].map((e,t)=>(0,G.jsx)(`text`,{className:`fill-muted-foreground text-[9px]`,x:0,y:16+(t*2+1)*15+oM-2,children:e},e)),s.map(e=>(0,G.jsx)(`rect`,{className:`cursor-pointer stroke-1 [transition:stroke_0.1s_ease] ${i?.day===e.day?`stroke-foreground stroke-[1.5px]`:`stroke-border/60`}`,style:{fill:sM[u(e.count)]},x:28+e.col*15,y:16+e.row*15,width:oM,height:oM,rx:2,onMouseEnter:t=>d(t,e)},e.day))]})}),i&&(0,G.jsxs)(`div`,{className:`pointer-events-none absolute z-30 min-w-[150px] -translate-x-1/2 translate-y-[calc(-100%-9px)] rounded-[10px] border border-chart-3/35 bg-popover px-2.5 py-2 shadow-xl`,style:{left:i.left,top:i.top},role:`tooltip`,children:[(0,G.jsx)(`span`,{className:`absolute -bottom-1.5 left-1/2 size-[11px] -translate-x-1/2 rotate-45 border-r border-b border-chart-3/35 bg-popover`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[13px]`,children:[(0,G.jsx)(`span`,{className:`inline-block size-[12px] rounded-[2px]`,style:{background:sM[i.lvl]}}),(0,G.jsx)(`b`,{className:`font-semibold`,children:i.count===0?`No connections`:`${i.count} connection${i.count===1?``:`s`}`})]}),(0,G.jsx)(`div`,{className:`mt-[3px] text-[11.5px] text-muted-foreground tabular-nums`,children:Lre(i.day)})]}),(0,G.jsxs)(`div`,{className:`mt-2 flex items-center gap-1 text-[11px] text-muted-foreground`,children:[`Less`,[0,1,2,3,4].map(e=>(0,G.jsx)(`span`,{className:`inline-block size-[11px] rounded-[2px]`,style:{background:sM[e]}},e)),`More`]})]})}var lM=e=>(e.flags??``).includes(`X`)||e.disabled===`yes`;function zre(e,t){return e[t.idKey]||e.name||e.address||e.user||`(row)`}var uM=`mb-3.5 rounded-md border border-border bg-card p-3.5`,dM=`mb-2.5 text-[13px] font-semibold`,fM=`grid grid-cols-[repeat(auto-fill,minmax(220px,1fr))] gap-x-3.5 gap-y-2.5`,pM=`mt-3.5 flex items-center gap-2.5`,mM=`flex flex-col gap-1`,hM=`text-[11.5px] text-muted-foreground`;function gM({config:e,device:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)({}),m=(0,v.useCallback)(async()=>{try{let n=t?`?device=${encodeURIComponent(t)}`:``;r(await U(`/api/aaa/list/${e.slug}${n}`)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}},[e.slug,t]);(0,v.useEffect)(()=>{r(null),d(null),m()},[m]);let h=(0,v.useCallback)(async(n,r)=>{s(!0),a(null);try{let i=await _c(`/api/aaa/${n}`,{device:t,slug:e.slug,...r}),o=n===`add`?`Entry added`:n===`update`?`Entry saved`:n===`remove`?`Entry removed`:n===`toggle`?r.enable?`Entry enabled`:`Entry disabled`:`Done`;return i.ok?(await m(),Y.success(o),!0):(a(i.message),Y.error(i.message||`${o} failed`),!1)}catch(e){return a(e instanceof Error?e.message:String(e)),Y.error(e instanceof Error?e.message:`Action failed`),!1}finally{s(!1)}},[t,e.slug,m]),g=()=>{d(`new`),p({})},_=t=>{d(t[e.idKey]);let n={};for(let r of e.fields)r.type!==`password`&&(r.key===`disabled`?n.disabled=lM(t)?`yes`:`no`:t[r.key]!=null&&(n[r.key]=t[r.key]));p(n)},y=async()=>{(u===`new`?await h(`add`,{fields:f}):await h(`update`,{id:u,fields:f}))&&d(null)},b=(0,v.useMemo)(()=>{let t=n?.rows??[],r=c.trim().toLowerCase();return r?t.filter(t=>e.columns.some(e=>(t[e.key]??``).toLowerCase().includes(r))):t},[n,c,e.columns]);return n&&!n.available?(0,G.jsxs)(Kj,{type:`warning`,label:`User Manager not installed`,children:[`This device doesn't have the `,(0,G.jsx)(`code`,{children:`user-manager`}),` package. Install it (System → Packages) and reboot to manage the built-in RADIUS server here.`]}):(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`w-[200px]`,placeholder:`Filter…`,value:c,onChange:e=>l(e.target.value)}),(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[b.length,` rows`]}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(ed,{}),onClick:()=>void m(),children:`Refresh`}),(0,G.jsx)(Z,{size:`sm`,type:`accent`,icon:(0,G.jsx)(Ju,{}),onClick:g,children:`Add`})]}),i&&(0,G.jsx)(Kj,{type:`error`,className:`mb-2.5`,children:i}),u&&(0,G.jsxs)(`div`,{className:uM,children:[(0,G.jsx)(`div`,{className:dM,children:u===`new`?`New ${e.slug}`:`Edit ${u}`}),(0,G.jsx)(`div`,{className:fM,children:e.fields.map(e=>(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsxs)(`span`,{className:hM,children:[e.label,e.required&&u===`new`?` *`:``]}),e.type===`bool`?(0,G.jsx)($j,{value:f[e.key]??``,onValueChange:t=>p({...f,[e.key]:t}),options:[{value:``,label:`—`},{value:`no`,label:`no`},{value:`yes`,label:`yes`}]}):e.type===`select`?(0,G.jsx)($j,{value:f[e.key]??``,onValueChange:t=>p({...f,[e.key]:t}),options:[{value:``,label:`—`},...(e.options??[]).map(e=>({value:e,label:e}))]}):(0,G.jsx)(Xj,{type:e.type===`password`?`password`:e.type===`number`?`number`:`text`,placeholder:e.placeholder??(e.type===`password`?`(unchanged)`:``),value:f[e.key]??``,onChange:t=>p({...f,[e.key]:t.target.value})})]},e.key))}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:o,onClick:()=>void y(),children:u===`new`?`Create`:`Save`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>d(null),children:`Cancel`})]})]}),n?b.length===0?(0,G.jsx)(`div`,{className:`px-1 py-5 text-muted-foreground text-[11px]`,children:e.empty??`Nothing here yet.`}):(0,G.jsxs)(WO,{className:`text-[13px]`,children:[(0,G.jsx)(GO,{children:(0,G.jsxs)(qO,{children:[e.columns.map(e=>(0,G.jsx)(JO,{children:e.label},e.key)),(0,G.jsx)(JO,{className:`text-right`,children:`Actions`})]})}),(0,G.jsx)(KO,{children:b.map(t=>{let n=t[e.idKey],r=lM(t);return(0,G.jsxs)(qO,{children:[e.columns.map(e=>(0,G.jsx)(YO,{className:K(r&&`text-muted-foreground`),title:t[e.key]??``,children:e.key===`_status`?(0,G.jsx)(qj,{type:r?`secondary`:`success`,children:r?`disabled`:`enabled`}):t[e.key]??``},e.key)),(0,G.jsx)(YO,{className:`text-right`,children:(0,G.jsxs)(`span`,{className:`flex justify-end gap-1.5`,children:[e.toggle&&(0,G.jsx)(Z,{size:`sm`,ghost:!0,disabled:o,onClick:()=>void h(`toggle`,{id:n,enable:r}),children:r?`Enable`:`Disable`}),!e.addOnly&&(0,G.jsx)(Z,{size:`sm`,ghost:!0,disabled:o,onClick:()=>_(t),children:`Edit`}),(0,G.jsx)(Z,{size:`sm`,type:`error`,ghost:!0,disabled:o,onClick:()=>void h(`remove`,{id:n}),children:`Remove`})]})})]},n||zre(t,e))})})]}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading…`})]})}var _M=[`user`,`calling-station-id`,`nas-ip-address`,`started`,`ended`,`uptime`,`download`,`upload`,`status`];function Bre({device:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(``),s=(0,v.useCallback)(async()=>{try{let t=e?`?device=${encodeURIComponent(e)}`:``;n(await U(`/api/aaa/list/um-sessions${t}`)),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}},[e]);if((0,v.useEffect)(()=>{n(null),s();let e=setInterval(()=>void s(),1e4);return()=>clearInterval(e)},[s]),t&&!t.available)return(0,G.jsxs)(Kj,{type:`warning`,label:`User Manager not installed`,children:[`The `,(0,G.jsx)(`code`,{children:`user-manager`}),` package isn't installed on this device.`]});let c=(t?.rows??[]).filter(e=>!a.trim()||(e.user??``).toLowerCase().includes(a.trim().toLowerCase()));return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`w-[200px]`,placeholder:`Filter by user…`,value:a,onChange:e=>o(e.target.value)}),(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[c.length,` sessions`]}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(ed,{}),onClick:()=>void s(),children:`Refresh`})]}),r&&(0,G.jsx)(Kj,{type:`error`,children:r}),t?c.length===0?(0,G.jsx)(`div`,{className:`px-1 py-5 text-muted-foreground text-[11px]`,children:`No accounting sessions recorded.`}):(0,G.jsxs)(WO,{className:`text-[13px]`,children:[(0,G.jsx)(GO,{children:(0,G.jsx)(qO,{children:_M.map(e=>(0,G.jsx)(JO,{children:e.replace(/-/g,` `)},e))})}),(0,G.jsx)(KO,{children:c.map((e,t)=>(0,G.jsx)(qO,{children:_M.map(t=>(0,G.jsx)(YO,{title:e[t]??``,children:e[t]??``},t))},e[`.id`]||t))})]}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading…`})]})}function vM({device:e,getPath:t,setPath:n,fields:r,title:i,unwrap:a,extra:o}){let[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!0),[d,f]=(0,v.useState)({}),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(!1),_=(0,v.useCallback)(async()=>{let{available:n,row:r}=a(await U(`${t}${e?`?device=${encodeURIComponent(e)}`:``}`).catch(()=>null));u(n),c(r),f({})},[e,t,a]);(0,v.useEffect)(()=>{_()},[_]);let y=async()=>{g(!0),m(null);try{let t=await _c(n,{device:e,fields:d});m(t.message),t.ok?(await _(),Y.success(`Settings saved`)):Y.error(t.message||`Save failed`)}catch(e){Y.error(e instanceof Error?e.message:`Save failed`)}finally{g(!1)}};return l?(0,G.jsxs)(`div`,{className:uM,children:[(0,G.jsx)(`div`,{className:dM,children:i}),s&&(0,G.jsx)(`div`,{className:`mb-3 text-muted-foreground text-xs`,children:r.map(e=>`${e.label}: ${s[e.key]??`—`}`).join(` · `)}),(0,G.jsx)(`div`,{className:fM,children:r.map(e=>(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsx)(`span`,{className:hM,children:e.label}),e.type===`bool`?(0,G.jsx)($j,{value:d[e.key]??``,onValueChange:t=>f({...d,[e.key]:t}),options:[{value:``,label:`(unchanged)`},{value:`no`,label:`no`},{value:`yes`,label:`yes`}]}):(0,G.jsx)(Xj,{type:e.type===`number`?`number`:`text`,placeholder:e.placeholder??s?.[e.key]??``,value:d[e.key]??``,onChange:t=>f({...d,[e.key]:t.target.value})})]},e.key))}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:h,onClick:()=>void y(),children:`Save`}),o,p&&(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:p})]})]}):(0,G.jsxs)(Kj,{type:`warning`,label:`Not available`,children:[i,` is not available on this device.`]})}var Vre={slug:`radius`,idKey:`.id`,toggle:!0,columns:[{key:`address`,label:`Address`},{key:`service`,label:`Service`},{key:`authentication-port`,label:`Auth`},{key:`accounting-port`,label:`Acct`},{key:`protocol`,label:`Proto`},{key:`_status`,label:`Status`}],empty:`No RADIUS servers configured.`,fields:[{key:`address`,label:`Address`,required:!0,placeholder:`1.2.3.4 or host`},{key:`secret`,label:`Secret`,type:`password`,required:!0},{key:`service`,label:`Service`,required:!0,placeholder:`login,ppp,hotspot,wireless,dhcp,ipsec,dot1x`},{key:`authentication-port`,label:`Auth port`,type:`number`,placeholder:`1812`},{key:`accounting-port`,label:`Acct port`,type:`number`,placeholder:`1813`},{key:`timeout`,label:`Timeout`,placeholder:`300ms`},{key:`src-address`,label:`Src address`},{key:`realm`,label:`Realm`},{key:`called-id`,label:`Called ID`},{key:`domain`,label:`Domain`},{key:`protocol`,label:`Protocol`,type:`select`,options:[`udp`,`radsec`]},{key:`certificate`,label:`Certificate`},{key:`accounting-backup`,label:`Acct backup`,type:`bool`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Hre={slug:`um-users`,idKey:`name`,toggle:!0,columns:[{key:`name`,label:`Name`},{key:`group`,label:`Group`},{key:`shared-users`,label:`Shared`},{key:`caller-id`,label:`Caller ID`},{key:`comment`,label:`Comment`},{key:`_status`,label:`Status`}],empty:`No RADIUS users.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`password`,label:`Password`,type:`password`,required:!0},{key:`group`,label:`Group`},{key:`shared-users`,label:`Shared users`,type:`number`,placeholder:`1`},{key:`attributes`,label:`RADIUS attributes`},{key:`caller-id`,label:`Caller ID (MAC)`},{key:`otp-secret`,label:`OTP secret`,type:`password`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Ure={slug:`um-profiles`,idKey:`name`,columns:[{key:`name`,label:`Name`},{key:`name-for-users`,label:`Display`},{key:`validity`,label:`Validity`},{key:`price`,label:`Price`},{key:`starts-when`,label:`Starts`}],empty:`No service profiles.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`name-for-users`,label:`Display name`},{key:`validity`,label:`Validity`,placeholder:`30d`},{key:`price`,label:`Price`,type:`number`},{key:`starts-when`,label:`Starts when`,type:`select`,options:[`assigned`,`first-auth`]},{key:`override-shared-users`,label:`Override shared-users`},{key:`comment`,label:`Comment`}]},Wre={slug:`um-limitations`,idKey:`name`,columns:[{key:`name`,label:`Name`},{key:`rate-limit-rx`,label:`Rate ↓`},{key:`rate-limit-tx`,label:`Rate ↑`},{key:`transfer-limit`,label:`Transfer`},{key:`uptime-limit`,label:`Uptime`}],empty:`No limitation templates.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`rate-limit-rx`,label:`Download rate`,placeholder:`10M`},{key:`rate-limit-tx`,label:`Upload rate`,placeholder:`10M`},{key:`rate-limit-min-rx`,label:`Min download (CIR)`,placeholder:`2M`},{key:`rate-limit-min-tx`,label:`Min upload (CIR)`,placeholder:`2M`},{key:`rate-limit-burst-rx`,label:`Burst download`,placeholder:`20M`},{key:`rate-limit-burst-tx`,label:`Burst upload`,placeholder:`20M`},{key:`rate-limit-burst-threshold-rx`,label:`Burst thr. ↓`},{key:`rate-limit-burst-threshold-tx`,label:`Burst thr. ↑`},{key:`rate-limit-burst-time-rx`,label:`Burst time ↓`,placeholder:`10s`},{key:`rate-limit-burst-time-tx`,label:`Burst time ↑`,placeholder:`10s`},{key:`rate-limit-priority`,label:`Priority (1-8)`,type:`number`},{key:`download-limit`,label:`Download cap`,placeholder:`5G`},{key:`upload-limit`,label:`Upload cap`,placeholder:`5G`},{key:`transfer-limit`,label:`Total transfer cap`,placeholder:`10G`},{key:`uptime-limit`,label:`Uptime cap`,placeholder:`1d`},{key:`reset-counters-interval`,label:`Reset interval`},{key:`reset-counters-start-time`,label:`Reset start time`},{key:`comment`,label:`Comment`}]},Gre={slug:`um-routers`,idKey:`name`,toggle:!0,columns:[{key:`name`,label:`Name`},{key:`address`,label:`Address`},{key:`coa-port`,label:`CoA port`},{key:`protocol`,label:`Proto`},{key:`comment`,label:`Comment`},{key:`_status`,label:`Status`}],empty:`No NAS clients registered.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`address`,label:`Address`,required:!0,placeholder:`192.168.88.1`},{key:`shared-secret`,label:`Shared secret`,type:`password`,required:!0},{key:`coa-port`,label:`CoA port`,type:`number`},{key:`protocol`,label:`Protocol`,placeholder:`radius`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Kre={slug:`um-user-profiles`,idKey:`.id`,addOnly:!0,columns:[{key:`user`,label:`User`},{key:`profile`,label:`Profile`},{key:`state`,label:`State`},{key:`end-time`,label:`Ends`}],empty:`No profile assignments.`,fields:[{key:`user`,label:`User`,required:!0},{key:`profile`,label:`Profile`,required:!0}]},qre=[{id:`radius`,label:`RADIUS Servers`},{id:`users`,label:`Users`},{id:`profiles`,label:`Profiles`},{id:`limitations`,label:`Limitations`},{id:`nas`,label:`NAS Clients`},{id:`assignments`,label:`Assignments`},{id:`sessions`,label:`Sessions`},{id:`usage`,label:`Usage & Heatmap`},{id:`settings`,label:`Settings`}],Jre=[{key:`accept`,label:`Accept CoA`,type:`bool`},{key:`port`,label:`CoA port`,type:`number`,placeholder:`3799`}],Yre=[{key:`enabled`,label:`Enabled`,type:`bool`},{key:`use-profiles`,label:`Use profiles`,type:`bool`},{key:`certificate`,label:`Certificate`},{key:`authentication-port`,label:`Auth port`,type:`number`},{key:`accounting-port`,label:`Acct port`,type:`number`}];function Xre({device:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(``);(0,v.useEffect)(()=>{U(`/api/usage/um-users${e?`?device=${encodeURIComponent(e)}`:``}`).then(e=>{n(e.users),i(t=>t||e.users[0]||``)}).catch(()=>n([]))},[e]);let a=e?`&device=${encodeURIComponent(e)}`:``;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`User`}),(0,G.jsx)($j,{value:r,onValueChange:i,"aria-label":`User`,options:t&&t.length>0?t.map(e=>({value:e,label:e})):[{value:``,label:`— no sessions recorded yet —`}]})]}),t&&t.length===0?(0,G.jsx)(Kj,{type:`secondary`,label:`No data yet`,children:`No User Manager sessions have been recorded yet. The dashboard ingests sessions on a configurable interval (1 minute by default — change it under the Settings tab) and keeps them forever, so usage and the heatmap fill in over time.`}):r&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:`Download / upload · last 3 months`}),(0,G.jsx)(aM,{endpoint:`/api/usage/um-user?user=${encodeURIComponent(r)}${a}&days=90`,days:90})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsxs)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:[`Connection heatmap · `,r]}),(0,G.jsx)(cM,{endpoint:`/api/usage/heatmap?user=${encodeURIComponent(r)}${a}&days=371`,label:`${r} — connections`})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:`All users · connections`}),(0,G.jsx)(cM,{endpoint:`/api/usage/heatmap?days=371${a}`,label:`All users`})]})]})]})}function Zre(){let[e,t]=(0,v.useState)(``),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),c=(0,v.useCallback)(async()=>{try{let e=await U(`/api/usage/sampler`);r(e.intervalMs)}catch{r(null)}},[]);(0,v.useEffect)(()=>{c()},[c]);let l=async()=>{let n=Number(e);if(!Number.isFinite(n)||n<=0){s(`Enter a positive number of minutes.`),Y.error(`Enter a positive number of minutes`);return}a(!0),s(null);try{let e=await _c(`/api/usage/sampler`,{intervalMs:Math.round(n*6e4)});r(e.intervalMs),t(``),s(`Now sampling every ${yM(e.intervalMs)}.`),Y.success(`Now sampling every ${yM(e.intervalMs)}`)}catch(e){s(e instanceof Error?e.message:String(e)),Y.error(e instanceof Error?e.message:`Save failed`)}finally{a(!1)}};return(0,G.jsxs)(`div`,{className:`rounded-md border border-border bg-card p-3.5`,children:[(0,G.jsx)(`div`,{className:dM,children:`Usage sampling`}),(0,G.jsxs)(`div`,{className:`mb-3 text-muted-foreground text-xs`,children:[`How often client traffic + User Manager sessions are recorded into the usage history. Current: `,n==null?`…`:yM(n),` · default 1 minute · range 30s–6h.`]}),(0,G.jsx)(`div`,{className:fM,children:(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsx)(`span`,{className:hM,children:`Interval (minutes)`}),(0,G.jsx)(Xj,{type:`number`,step:`0.5`,min:`0.5`,placeholder:n?String(n/6e4):`1`,value:e,onChange:e=>t(e.target.value)})]})}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:i,onClick:()=>void l(),children:`Save`}),[1,5,10,30].map(e=>(0,G.jsxs)(Z,{size:`sm`,ghost:!0,onClick:()=>{t(String(e))},children:[e,`m`]},e)),o&&(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:o})]})]})}function yM(e){if(e<6e4)return`${Math.round(e/1e3)}s`;let t=e/6e4;return`${Number.isInteger(t)?t:t.toFixed(1)} min`}function Qre(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(`radius`);(0,v.useEffect)(()=>{U(`/api/devices`).then(e=>{t(e),r(t=>t||e.defaultDevice||e.devices[0]?.name||``)}).catch(()=>t({server:``,defaultDevice:``,devices:[]}))},[]);let o=e?.devices??[];return(0,G.jsx)(`section`,{className:`grid content-start gap-[18px]`,children:(0,G.jsx)(X,{title:`RADIUS & User Manager`,className:`reveal`,extra:o.length>1?(0,G.jsx)($j,{value:n,onValueChange:r,"aria-label":`Router`,options:o.map(e=>({value:e.name,label:`${e.name}${e.isDefault?` (default)`:``}`}))}):void 0,children:(0,G.jsxs)(yA,{value:i,onValueChange:e=>a(e),children:[(0,G.jsx)(bA,{className:`mb-3.5 h-auto w-full flex-wrap justify-start border-b border-border`,children:qre.map(e=>(0,G.jsx)(xA,{value:e.id,children:e.label},e.id))}),(0,G.jsx)(SA,{value:`radius`,children:(0,G.jsx)(gM,{config:Vre,device:n})}),(0,G.jsx)(SA,{value:`users`,children:(0,G.jsx)(gM,{config:Hre,device:n})}),(0,G.jsx)(SA,{value:`profiles`,children:(0,G.jsx)(gM,{config:Ure,device:n})}),(0,G.jsx)(SA,{value:`limitations`,children:(0,G.jsx)(gM,{config:Wre,device:n})}),(0,G.jsx)(SA,{value:`nas`,children:(0,G.jsx)(gM,{config:Gre,device:n})}),(0,G.jsx)(SA,{value:`assignments`,children:(0,G.jsx)(gM,{config:Kre,device:n})}),(0,G.jsx)(SA,{value:`sessions`,children:(0,G.jsx)(Bre,{device:n})}),(0,G.jsx)(SA,{value:`usage`,children:(0,G.jsx)(Xre,{device:n})}),(0,G.jsx)(SA,{value:`settings`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(vM,{device:n,getPath:`/api/aaa/radius-incoming`,setPath:`/api/aaa/radius-incoming`,title:`RADIUS Incoming (CoA listener)`,fields:Jre,unwrap:e=>({available:!0,row:e??{}}),extra:(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>void _c(`/api/aaa/radius-reset-counters`,{device:n}).then(()=>Y.success(`Counters reset`)).catch(()=>Y.error(`Reset counters failed`)),children:`Reset RADIUS counters`})}),(0,G.jsx)(vM,{device:n,getPath:`/api/aaa/um-settings`,setPath:`/api/aaa/um-settings`,title:`User Manager (built-in RADIUS server)`,fields:Yre,unwrap:e=>{let t=e??{};return{available:t.available!==!1,row:t.settings??{}}}}),(0,G.jsx)(Zre,{})]})})]})})})}var bM=new Set;function xM(e){return bM.add(e),()=>bM.delete(e)}function $re(e){for(let t of bM)t(e)}var SM=new Set;function CM(e){return SM.add(e),()=>SM.delete(e)}function wM(e){for(let t of SM)t(e)}function TM(e,t){let n=(0,v.useRef)(e),r=(0,v.useRef)(t);n.current=e,r.current=t,(0,v.useEffect)(()=>{let e=!1,t=null,i=null,a=()=>{t&&=(t.onopen=t.onerror=t.onmessage=t.onclose=null,t.close(),null),i&&=(i.close(),null)},o=()=>{e||(i=new EventSource(gc(`/api/sse`)),i.addEventListener(`hello`,()=>r.current(`sse`)),i.addEventListener(`tool`,e=>{try{n.current(JSON.parse(e.data))}catch{}}),i.onerror=()=>{i&&i.readyState===EventSource.CONNECTING&&r.current(`off`)})},s=()=>{if(e)return;let i=location.protocol===`https:`?`wss`:`ws`;t=new WebSocket(gc(`${i}://${location.host}/api/stream`));let a=!1;t.onopen=()=>{a=!0,r.current(`ws`)},t.onerror=()=>t?.close(),t.onmessage=e=>{try{let t=JSON.parse(e.data);t.type===`event`&&t.event&&n.current(t.event),t.type===`txn`&&t.update&&$re(t.update),t.type===`rollout`&&t.update&&wM(t.update)}catch{}},t.onclose=()=>{e||(r.current(`off`),a?setTimeout(s,2e3):o())}},c=()=>t?.readyState===WebSocket.OPEN||i?.readyState===EventSource.OPEN,l=()=>{e||c()||(a(),s())},u=()=>{document.visibilityState===`visible`&&l()};return s(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`online`,l),()=>{e=!0,document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`online`,l),a()}},[])}function EM(e){(0,v.useLayoutEffect)(()=>{let t=e.current;if(!t||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;document.documentElement.classList.add(`js-motion`);let n=new WeakSet,r=e=>{n.has(e)||(n.add(e),zi.set(e,{opacity:0,y:26}),ac.create({trigger:e,start:`top 90%`,once:!0,onEnter:()=>zi.to(e,{opacity:1,y:0,duration:.7,ease:`power3.out`})}))},i=e=>{for(let t of e.querySelectorAll(`.reveal`))r(t)};i(t);let a=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&(e.matches(`.reveal`)&&r(e),i(e))});a.observe(t,{childList:!0,subtree:!0});let o=setInterval(()=>ac.refresh(),1200),s=setTimeout(()=>clearInterval(o),7e3);return()=>{a.disconnect(),clearInterval(o),clearTimeout(s);for(let e of ac.getAll())e.kill();document.documentElement.classList.remove(`js-motion`)}},[e])}var DM={completed:`success`,"completed-with-failures":`warning`,halted:`warning`,reverted:`secondary`,"needs-attention":`error`,aborted:`secondary`},OM={completed:`Every device applied the change.`,"completed-with-failures":`The rollout finished, but a gate failed along the way.`,halted:`Stopped at a failed gate. The devices already changed are still changed.`,reverted:`Stopped and put back — the fleet is where it started.`,"needs-attention":`A revert itself failed. Restore the flagged device(s) by hand from the snapshot named below.`,aborted:`A human stopped it; whatever had been applied was reverted.`},kM={pending:`bg-muted/30 text-muted-foreground`,applied:`bg-emerald-500/15 text-emerald-600 dark:text-emerald-400`,failed:`bg-red-500/15 text-red-600 dark:text-red-400`,reverted:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,"revert-failed":`bg-red-500/25 text-red-600 dark:text-red-400 font-semibold`,skipped:`bg-muted/20 text-muted-foreground line-through`};function AM(e){let t=Date.now()-e;return t<6e4?`just now`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}function jM({rollout:e}){let t=t=>e.gates.find(e=>e.wave===t);return(0,G.jsx)(`div`,{className:`space-y-3`,children:e.waves.map(n=>{let r=t(n.index),i=n.devices.map(t=>e.devices.find(e=>e.device===t)).filter(e=>e!==void 0),a=e.outcome===void 0&&i.some(e=>e.stage===`pending`);return(0,G.jsxs)(`div`,{className:`rounded-md border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm`,children:[(0,G.jsxs)(`span`,{className:`font-medium`,children:[`Wave `,n.index+1,n.isCanary&&(0,G.jsx)(`span`,{className:`ml-2 rounded-sm bg-amber-500/15 px-1.5 py-0.5 text-xs text-amber-600 dark:text-amber-400`,children:`canary`})]}),(0,G.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[i.length,` device(s)`]}),a&&(0,G.jsx)(Jj,{type:`warning`,pulse:!0}),r&&(0,G.jsxs)(qj,{type:r.ok?`success`:`error`,className:`ml-auto`,children:[`gate `,r.ok?`pass`:`fail`]})]}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:i.map(e=>(0,G.jsx)(`span`,{title:e.error??e.stage,className:K(`rounded-md px-2 py-1 font-mono text-xs`,kM[e.stage]??kM.pending),children:e.device},e.device))}),r&&!r.ok&&(0,G.jsxs)(`ul`,{className:`mt-2 space-y-1 text-xs text-red-600 dark:text-red-400`,children:[r.collateral&&(0,G.jsx)(`li`,{className:`font-medium`,children:`An UNTOUCHED device went dark — the change affected the wider fleet.`}),r.failures.map(e=>(0,G.jsxs)(`li`,{children:[e.device,`: `,e.reason]},e.device))]})]},n.index)})})}function MM({id:e,onClose:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)(!1),c=(0,v.useCallback)(async()=>{try{let t=await U(`/api/rollout/${encodeURIComponent(e)}`);r(t.rollout),a(t.events)}catch(e){Y.error(`Failed to load rollout: ${e instanceof Error?e.message:String(e)}`)}},[e]);(0,v.useEffect)(()=>(c(),CM(t=>{t.rolloutId===e&&c()})),[e,c]);let l=async t=>{s(!0);try{let n=await _c(`/api/rollout/${encodeURIComponent(e)}/${t}`,{});n.error?Y.error(n.error):Y.success(n.outcome??(t===`hold`?`Held`:`Done`)),await c()}finally{s(!1)}};if(!n)return(0,G.jsx)(X,{title:`Rollout`,children:`Loading…`});let u=n.outcome===void 0,d=n.devices.filter(e=>e.stage===`failed`||e.stage===`revert-failed`);return(0,G.jsxs)(X,{title:n.label?`${n.label} — ${n.id}`:n.id,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[u&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{size:`sm`,type:`secondary`,disabled:o,onClick:()=>void l(`hold`),children:`Hold`}),(0,G.jsx)(Z,{size:`sm`,type:`secondary`,disabled:o,onClick:()=>void l(`resume`),children:`Resume`}),(0,G.jsx)(Z,{size:`sm`,type:`error`,disabled:o,onClick:()=>void l(`abort`),children:`Abort`})]}),(0,G.jsx)(Z,{size:`sm`,type:`secondary`,onClick:t,children:`Close`})]}),children:[(0,G.jsxs)(`div`,{className:K(`mb-4 rounded-md border p-3 text-sm`,n.outcome===`needs-attention`&&`border-red-500/40 bg-red-500/10`,n.outcome===`completed`&&`border-emerald-500/40 bg-emerald-500/10`,u&&`border-amber-500/40 bg-amber-500/10`),children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 font-medium`,children:[(0,G.jsx)(Jj,{type:n.outcome?DM[n.outcome]:`warning`,pulse:u}),n.outcome??`IN FLIGHT — wave ${n.phase}`]}),(0,G.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:n.outcome?OM[n.outcome]:`Applying wave by wave; each wave is gated and soaked before the next.`})]}),(0,G.jsx)(jM,{rollout:n}),d.length>0&&(0,G.jsxs)(`div`,{className:`mt-4 rounded-md border border-red-500/40 p-3 text-sm`,children:[(0,G.jsx)(`div`,{className:`font-medium`,children:`Failures`}),(0,G.jsx)(`ul`,{className:`mt-1 space-y-1 font-mono text-xs text-muted-foreground`,children:d.map(e=>(0,G.jsxs)(`li`,{children:[e.device,` · `,e.stage,e.error?` — ${e.error}`:``,e.stage===`revert-failed`&&e.snapshotId?` · restore with diff_config_snapshots ${e.snapshotId} live`:``]},e.device))})]}),n.notes.length>0&&(0,G.jsx)(`ul`,{className:`mt-4 space-y-1 text-sm text-amber-600 dark:text-amber-400`,children:n.notes.map(e=>(0,G.jsxs)(`li`,{children:[`• `,e]},e))}),(0,G.jsx)(`h4`,{className:`mt-6 mb-2 text-sm font-medium`,children:`Commands`}),(0,G.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted/30 p-2 font-mono text-xs`,children:n.commands.join(`
|
|
177
|
+
`,sre={"top-left":`inset(0 100% 100% 0)`,"top-right":`inset(0 0 100% 100%)`,"bottom-left":`inset(100% 100% 0 0)`,"bottom-right":`inset(100% 0 0 100%)`,center:`inset(50% 50% 50% 50%)`,"bottom-up":`inset(100% 0 0 0)`},cre={"top-left":`0% 0%`,"top-right":`100% 0%`,"bottom-left":`0% 100%`,"bottom-right":`100% 100%`,center:`50% 50%`,"bottom-up":`50% 100%`};function lre({variant:e=`rectangle`,start:t=`bottom-up`}={}){let[n,r]=UO(),i=jD()??!1,[a,o]=(0,v.useState)(!1);(0,v.useEffect)(()=>o(!0),[]),(0,v.useEffect)(()=>{if(document.getElementById(BO))return;let e=document.createElement(`style`);e.id=BO,e.textContent=VO,document.head.appendChild(e)},[]);let s=a&&n===`dark`;return{isDark:s,mounted:a,toggle:()=>{let n=s?`light`:`dark`;if(i||!(`startViewTransition`in document)){r(n);return}let a=document.documentElement;e===`rectangle`?(a.style.setProperty(`--beui-vt-from`,sre[t]),a.dataset.beuiVt=`rect`):e===`blinds`?a.dataset.beuiVt=`blinds`:(a.style.setProperty(`--beui-vt-origin`,cre[t]),a.dataset.beuiVt=e),document.startViewTransition(()=>r(n)).finished.finally(()=>{delete a.dataset.beuiVt})}}}function ure({variant:e=`rectangle`,start:t=`bottom-up`,className:n,iconClassName:r,...i}){let{isDark:a,mounted:o,toggle:s}=lre({variant:e,start:t});return(0,G.jsx)(`button`,{type:`button`,"aria-label":o&&a?`Switch to light mode`:`Switch to dark mode`,onClick:s,className:J(`flex items-center justify-center`,n),...i,children:o?(0,G.jsx)(zO,{value:a?`dark`:`light`,animation:`blur`,className:r,children:a?(0,G.jsx)(Rd,{className:r}):(0,G.jsx)(Pu,{className:r})}):(0,G.jsx)(`span`,{className:r,"aria-hidden":`true`})})}var HO=`mt-theme`;function dre(){try{return localStorage.getItem(HO)===`light`?`light`:`dark`}catch{return`dark`}}function UO(){let[e,t]=(0,v.useState)(dre);return(0,v.useEffect)(()=>{document.documentElement.classList.toggle(`dark`,e===`dark`)},[e]),[e,(0,v.useCallback)(e=>{t(e);try{localStorage.setItem(HO,e)}catch{}},[])]}function fre(){return(0,G.jsx)(ure,{variant:`circle`,className:`size-9 rounded-md hover:bg-muted focus-visible:outline-2 focus-visible:outline-ring`,iconClassName:`size-4`})}function pre(e){let[t]=UO();return(0,G.jsx)(MO,{theme:t,className:`toaster group`,position:`bottom-right`,toastOptions:{classNames:{toast:`group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border group-[.toaster]:shadow-lg`,description:`group-[.toast]:text-muted-foreground`,actionButton:`group-[.toast]:bg-primary group-[.toast]:text-primary-foreground`,cancelButton:`group-[.toast]:bg-muted group-[.toast]:text-muted-foreground`,error:`group-[.toast]:text-destructive`,success:`group-[.toast]:text-foreground`}},...e})}function WO({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,G.jsx)(`table`,{"data-slot":`table`,className:K(`w-full caption-bottom text-sm`,e),...t})})}function GO({className:e,...t}){return(0,G.jsx)(`thead`,{"data-slot":`table-header`,className:K(`[&_tr]:border-b`,e),...t})}function KO({className:e,...t}){return(0,G.jsx)(`tbody`,{"data-slot":`table-body`,className:K(`[&_tr:last-child]:border-0`,e),...t})}function qO({className:e,...t}){return(0,G.jsx)(`tr`,{"data-slot":`table-row`,className:K(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function JO({className:e,...t}){return(0,G.jsx)(`th`,{"data-slot":`table-head`,className:K(`h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}function YO({className:e,...t}){return(0,G.jsx)(`td`,{"data-slot":`table-cell`,className:K(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t})}function XO({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card`,className:K(`flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm`,e),...t})}function mre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-header`,className:K(`@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6`,e),...t})}function hre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-title`,className:K(`leading-none font-semibold`,e),...t})}function gre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`card-content`,className:K(`px-6`,e),...t})}function X({title:e,extra:t,children:n,className:r}){return(0,G.jsxs)(XO,{className:K(`dashboard-panel gap-0 py-5`,r),children:[e!=null&&(0,G.jsxs)(mre,{className:`flex flex-row flex-wrap items-center gap-3 px-5 pb-3`,children:[(0,G.jsx)(hre,{className:`text-base font-semibold`,children:e}),t!=null&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:`flex-1`}),t]})]}),(0,G.jsx)(gre,{className:`px-5`,children:n})]})}function ZO({k:e,v:t,sub:n,cls:r}){return(0,G.jsxs)(XO,{className:`dashboard-stat gap-2 px-4 py-4`,children:[(0,G.jsx)(`p`,{className:`text-muted-foreground text-xs tracking-wide uppercase`,children:e}),(0,G.jsxs)(`div`,{className:K(`text-2xl font-semibold tabular-nums`,r),children:[t,n!=null&&(0,G.jsxs)(`small`,{className:`text-muted-foreground ml-1 text-sm`,children:[` `,n]})]})]})}function QO({rows:e}){let t=Math.max(1,...e.map(e=>e.value));return(0,G.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map(e=>(0,G.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,7rem)_1fr_auto] items-center gap-3`,children:[(0,G.jsx)(`span`,{className:`text-muted-foreground truncate text-xs`,title:e.label,children:e.label}),(0,G.jsx)(`div`,{className:`bg-muted h-2 overflow-hidden rounded-full`,children:(0,G.jsx)(`div`,{className:K(`h-full rounded-full`,!e.color&&`bg-brand`),style:{width:`${e.value/t*100}%`,background:e.color}})}),(0,G.jsx)(`span`,{className:`text-xs tabular-nums`,children:e.sub??String(e.value)})]},e.label))})}function $O({text:e,label:t=`Copy`,className:n,icon:r=!1,title:i}){let[a,o]=(0,v.useState)(!1),s=(0,v.useRef)(null);return(0,v.useEffect)(()=>()=>void(s.current&&clearTimeout(s.current)),[]),(0,G.jsxs)(YD,{type:`button`,variant:`outline`,size:r?`icon-sm`:`sm`,className:n,onClick:()=>{navigator.clipboard?.writeText(e).then(()=>{o(!0),s.current&&clearTimeout(s.current),s.current=setTimeout(()=>o(!1),1400)},()=>{})},title:i??`Copy to clipboard`,"aria-label":i??`Copy to clipboard`,children:[a?(0,G.jsx)(cl,{className:`text-success`}):r?(0,G.jsx)(Pl,{}):t,a&&(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:`Copied!`})]})}var _re=[50,100,200,500,1e3,2e3],ek={initial:{opacity:0,filter:`blur(6px)`},animate:{opacity:1,filter:`blur(0px)`},exit:e=>e?{}:{opacity:0,filter:`blur(6px)`}},tk={initial:{opacity:0},animate:{opacity:1},exit:e=>e?{}:{opacity:0}},nk=(0,v.forwardRef)(({children:e,as:t=`div`,className:n,onMouseLeave:r,pillClassName:i,pillContainerClassName:a,inset:o=20,...s},c)=>{let[l,u]=(0,v.useState)(null),d=(0,v.useId)(),f=jD(),p=v.Children.toArray(e).filter(v.isValidElement).map((e,t)=>{let n=e,r=n.key?String(n.key):`item-${t}`;return(0,v.cloneElement)(n,{key:r,className:J(`relative`,n.props.className),onMouseEnter:()=>{n.props.onMouseEnter?.(),u(r)}},(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(FE,{custom:l!==null,children:l===null?null:(0,G.jsx)(q.div,{variants:f?tk:ek,initial:`initial`,animate:`animate`,exit:`exit`,custom:l!==null,className:J(`pointer-events-none absolute inset-y-0`,a),style:{left:-o,right:-o},children:l===r?(0,G.jsx)(q.div,{layoutId:`shared-bg-${d}`,transition:f?{duration:0}:WD,className:J(`pointer-events-none h-full w-full rounded-2xl bg-primary/[0.06]`,i)}):null})}),(0,G.jsx)(`div`,{className:`relative z-10`,children:n.props.children})]}))}),m=e=>{u(null),r?.(e)};return t===`ul`?(0,G.jsx)(q.ul,{...s,ref:c,layoutRoot:!0,onMouseLeave:m,className:J(`flex w-full flex-col`,n),children:p}):(0,G.jsx)(q.div,{...s,ref:c,layoutRoot:!0,onMouseLeave:m,className:J(`flex w-full flex-col`,n),children:p})}),rk=`(max-width: 899px)`,ik=`b`,ak={duration:.36,ease:qne},ok={type:`spring`,stiffness:380,damping:35,mass:.75},sk={duration:.2,delay:.08,ease:BD},ck={duration:.12,ease:BD},lk={duration:.18,ease:BD},uk={closed:{opacity:0,clipPath:`inset(0 0 100% 0 round 8px)`,transition:{duration:.14,ease:BD,staggerChildren:.025,staggerDirection:-1}},open:{opacity:1,clipPath:`inset(0 0 0% 0 round 8px)`,transition:{duration:.2,delayChildren:.035,ease:BD,staggerChildren:.045}}},dk={closed:{opacity:0,y:-6,filter:`blur(3px)`},open:{opacity:1,y:0,filter:`blur(0px)`,transition:lk}},fk={duration:.16,ease:BD},pk=[`a[href]`,`button:not([disabled])`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`,`[tabindex]:not([tabindex='-1'])`].join(`,`);function mk(e){let t=window.matchMedia(rk);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)}function hk(){return window.matchMedia(rk).matches}function gk(){return!1}function _k(){return(0,v.useSyncExternalStore)(mk,hk,gk)}var vk=(0,v.createContext)(null),yk=(0,v.createContext)(null);function bk(){let e=(0,v.useContext)(vk);if(!e)throw Error(`useAnimatedSidebar must be used inside AnimatedSidebarProvider.`);return e}function xk(){let e=(0,v.useContext)(yk);if(!e)throw Error(`Animated Sidebar parts must be used inside AnimatedSidebar.`);return e}function Sk({children:e,open:t,defaultOpen:n=!0,onOpenChange:r,openMobile:i,defaultOpenMobile:a=!1,onOpenMobileChange:o,className:s,style:c,...l}){let[u,d]=(0,v.useState)(n),[f,p]=(0,v.useState)(a),m=_k(),h=jD()??!1,g=(0,v.useId)(),_=(0,v.useRef)(null),y=t??u,b=i??f,x=(0,v.useCallback)(e=>{t===void 0&&d(e),r?.(e)},[r,t]),S=(0,v.useCallback)(e=>{i===void 0&&p(e),o?.(e)},[o,i]),C=(0,v.useCallback)(()=>{m?S(!b):x(!y)},[y,m,b,x,S]);return(0,v.useEffect)(()=>{let e=e=>{e.key.toLowerCase()===ik&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),C())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[C]),(0,G.jsx)(vk.Provider,{value:{isMobile:m,layoutId:`${g}-active`,open:y,openMobile:b,reduce:h,setOpen:x,setOpenMobile:S,state:y?`expanded`:`collapsed`,toggleSidebar:C,triggerRef:_},children:(0,G.jsx)(`div`,{...l,"data-slot":`sidebar-wrapper`,"data-state":y?`expanded`:`collapsed`,style:{"--sidebar-width":`16rem`,"--sidebar-width-icon":`4.25rem`,"--sidebar-width-mobile":`18rem`,...c},className:J(`group/sidebar-wrapper flex min-h-svh w-full min-w-0`,s),children:e})})}function Ck({ariaLabel:e,children:t,className:n,side:r}){let i=bk(),a=(0,v.useRef)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!i.openMobile),u=(0,v.useRef)(i.openMobile),d=(0,v.useCallback)(()=>{let e=a.current;e&&!e.contains(document.activeElement)&&([...e.querySelectorAll(pk)].find(e=>e.getClientRects().length>0&&!e.closest(`[inert], [hidden]`))??e).focus({preventScroll:!0})},[]);return(0,v.useEffect)(()=>s(!0),[]),(0,v.useEffect)(()=>{u.current=i.openMobile,i.openMobile&&l(!1)},[i.openMobile]),(0,v.useEffect)(()=>{if(!i.openMobile)return;let e=document.body,t=window.scrollY,n={left:e.style.left,overflow:e.style.overflow,position:e.style.position,right:e.style.right,top:e.style.top};e.style.position=`fixed`,e.style.top=`-${t}px`,e.style.left=`0`,e.style.right=`0`,e.style.overflow=`hidden`;let r=requestAnimationFrame(d);return()=>{cancelAnimationFrame(r),e.style.position=n.position,e.style.top=n.top,e.style.left=n.left,e.style.right=n.right,e.style.overflow=n.overflow,window.scrollTo(0,t),i.triggerRef.current?.focus({preventScroll:!0})}},[i.openMobile,i.triggerRef,d]),o?(0,kf.createPortal)((0,G.jsxs)(`div`,{className:J(`pointer-events-none fixed left-0 top-0 z-[45] size-0 min-[900px]:hidden`,c&&!i.openMobile?`invisible`:`visible`),children:[(0,G.jsx)(q.button,{type:`button`,"aria-label":`Close sidebar`,tabIndex:i.openMobile?0:-1,initial:!1,animate:{opacity:+!!i.openMobile},transition:i.reduce?fk:ak,onClick:()=>i.setOpenMobile(!1),className:J(`fixed inset-0 bg-black/40`,i.openMobile?`pointer-events-auto`:`pointer-events-none`)}),(0,G.jsx)(q.div,{ref:a,role:`dialog`,"aria-modal":`true`,"aria-label":e,"aria-hidden":!i.openMobile,inert:!i.openMobile,tabIndex:-1,"data-mobile":`true`,"data-state":i.openMobile?`expanded`:`collapsed`,"data-side":r,initial:!1,animate:{opacity:i.reduce?+!!i.openMobile:1,x:i.reduce?0:i.openMobile?`0%`:r===`left`?`-100%`:`100%`},transition:i.reduce?fk:ak,onAnimationComplete:()=>{u.current?d():l(!0)},onKeyDown:e=>{if(e.key===`Escape`){e.preventDefault(),i.setOpenMobile(!1);return}if(e.key!==`Tab`)return;let t=a.current?Array.from(a.current.querySelectorAll(pk)).filter(e=>e.getClientRects().length>0&&!e.closest(`[inert], [hidden]`)):[];if(t.length===0){e.preventDefault(),a.current?.focus();return}let n=t[0],r=t[t.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),r.focus()):!e.shiftKey&&document.activeElement===r&&(e.preventDefault(),n.focus())},className:J(`pointer-events-auto fixed inset-y-0 flex h-dvh w-(--sidebar-width-mobile) max-w-[88vw] flex-col overflow-hidden`,`border-border bg-background shadow-2xl will-change-transform`,r===`left`?`left-0 border-r`:`right-0 border-l`,!i.openMobile&&`pointer-events-none`,n),children:(0,G.jsx)(yk.Provider,{value:{collapsed:!1,collapsible:`none`,side:r},children:t})})]}),document.body):null}var wk=(0,v.forwardRef)(({side:e=`left`,variant:t=`sidebar`,collapsible:n=`icon`,ariaLabel:r=`Sidebar`,children:i,className:a,panelClassName:o,style:s,...c},l)=>{let u=bk(),d=n!==`none`&&!u.open,f=d&&n===`offcanvas`,p=f?`0px`:d?`var(--sidebar-width-icon)`:`var(--sidebar-width)`;return u.isMobile?(0,G.jsx)(Ck,{ariaLabel:r,className:a,side:e,children:i}):(0,G.jsx)(q.aside,{...c,ref:l,initial:!1,"aria-label":r,"data-slot":`sidebar`,"data-state":d?`collapsed`:`expanded`,"data-collapsible":n,"data-variant":t,"data-side":e,animate:{width:p},transition:u.reduce?{duration:0}:ok,style:s,className:J(`group/sidebar relative hidden h-auto shrink-0 min-[900px]:block will-change-[width]`,`peer`,e===`right`&&`order-last`,a),children:(0,G.jsx)(q.div,{initial:!1,animate:{opacity:+!f,x:f?e===`left`?`-100%`:`100%`:`0%`},transition:u.reduce?fk:ak,className:J(`sticky top-0 flex h-svh w-full flex-col overflow-hidden bg-background`,n===`offcanvas`&&`w-[var(--sidebar-width)]`,t===`sidebar`&&(e===`left`?`border-border border-r`:`border-border border-l`),t===`floating`&&`m-2 h-[calc(100svh-1rem)] rounded-2xl border border-border shadow-sm`,t===`inset`&&`m-2 h-[calc(100svh-1rem)] rounded-2xl`,o),children:(0,G.jsx)(yk.Provider,{value:{collapsed:d,collapsible:n,side:e},children:i})})})}),Tk=(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk(),o=a.isMobile?a.openMobile:a.open;return(0,G.jsx)(`button`,{...r,ref:e=>{a.triggerRef.current=e,typeof i==`function`?i(e):i&&(i.current=e)},type:n,"aria-label":r[`aria-label`]??`Toggle sidebar`,"aria-expanded":o,"data-slot":`sidebar-trigger`,"data-state":o?`expanded`:`collapsed`,onClick:e=>{t?.(e),e.defaultPrevented||a.toggleSidebar()},className:J(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none`,`focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background`,e)})});(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk();return(0,G.jsx)(`button`,{...r,ref:i,type:n,"aria-label":r[`aria-label`]??`Close sidebar`,onClick:e=>{t?.(e),!e.defaultPrevented&&(a.isMobile?a.setOpenMobile(!1):a.setOpen(!1))},className:J(`inline-flex size-10 shrink-0 items-center justify-center rounded-xl outline-none`,`focus-visible:ring-2 focus-visible:ring-ring`,e)})}),(0,v.forwardRef)(({className:e,onClick:t,type:n=`button`,...r},i)=>{let a=bk(),o=xk();return(0,G.jsx)(`button`,{...r,ref:i,type:n,"data-side":o.side,"aria-label":r[`aria-label`]??`Toggle sidebar`,title:`Toggle sidebar`,tabIndex:-1,onClick:e=>{t?.(e),e.defaultPrevented||a.toggleSidebar()},className:J(`absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 outline-none md:block`,`after:absolute after:inset-y-0 after:left-1/2 after:w-px after:bg-transparent after:transition-colors hover:after:bg-border`,`data-[side=right]:right-0 data-[side=right]:translate-x-1/2 data-[side=left]:left-full`,e)})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.main,{...t,ref:n,"data-slot":`sidebar-inset`,className:J(`relative flex min-h-svh min-w-0 flex-1 flex-col bg-background`,`md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-2xl md:peer-data-[variant=inset]:shadow-sm`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-header`,className:J(`flex shrink-0 flex-col gap-2 p-3`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-content`,className:J(`flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overflow-x-hidden overscroll-contain px-2 py-2`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-footer`,className:J(`flex shrink-0 flex-col gap-2 border-border border-t p-3 pb-[max(0.75rem,env(safe-area-inset-bottom))]`,e)})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-group`,className:J(`flex w-full min-w-0 flex-col px-1 py-1.5`,e)})),(0,v.forwardRef)(({children:e,className:t,...n},r)=>{let{collapsed:i}=xk();return(0,G.jsx)(`div`,{...n,ref:r,"aria-hidden":i,"data-slot":`sidebar-group-label`,className:J(`mb-1 h-7 overflow-hidden px-2 text-[10px] font-medium uppercase tracking-[0.14em] text-muted-foreground transition-opacity`,i?`opacity-0`:`opacity-100`,t),children:e})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(`div`,{...t,ref:n,"data-slot":`sidebar-group-content`,className:J(`w-full min-w-0`,e)})),(0,v.forwardRef)(({children:e,className:t,...n},r)=>(0,G.jsx)(nk,{...n,ref:r,as:`ul`,inset:0,pillClassName:`rounded-xl bg-muted/70`,pillContainerClassName:`inset-y-auto top-0 h-9`,"data-slot":`sidebar-menu`,className:J(`flex w-full min-w-0 list-none flex-col gap-0.5`,t),children:e})),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.li,{...t,ref:n,layout:`position`,transition:WD,"data-slot":`sidebar-menu-item`,className:J(`relative`,e)})),(0,v.forwardRef)(({open:e,children:t,className:n,...r},i)=>{let a=bk(),o=xk();return(0,G.jsx)(FE,{initial:!1,mode:`popLayout`,children:e&&!o.collapsed?(0,v.createElement)(q.ul,{...r,ref:i,key:`sidebar-submenu`,variants:a.reduce?void 0:uk,initial:!a.reduce&&`closed`,animate:a.reduce?{opacity:1}:`open`,exit:a.reduce?{opacity:0}:`closed`,transition:a.reduce?{duration:.12}:void 0,"data-slot":`sidebar-menu-sub`,className:J(`relative mt-1 ml-5 flex min-w-0 flex-col gap-0.5 border-border border-l pl-3`,n)},t):null})}),(0,v.forwardRef)(({className:e,...t},n)=>(0,G.jsx)(q.li,{...t,ref:n,variants:dk,"data-slot":`sidebar-menu-sub-item`,className:J(`relative min-w-0`,e)}));function Ek({children:e,icon:t,badge:n,href:r,isActive:i=!1,ariaExpanded:a,disabled:o=!1,closeOnSelect:s,target:c,rel:l,onSelect:u,className:d,activeLayoutId:f}){let p=bk(),m=xk(),h=typeof e==`string`?e:void 0,g=e=>{if(o){e.preventDefault();return}if(r&&(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey))return;r&&u&&e.preventDefault(),u?.();let t=s??a===void 0;p.isMobile&&t&&p.setOpenMobile(!1),a!==void 0&&m.collapsed&&!p.isMobile&&p.setOpen(!0)},_=(0,G.jsxs)(G.Fragment,{children:[i?(0,G.jsx)(q.span,{layoutId:f?`${p.layoutId}-${f}`:p.layoutId,transition:p.reduce?{duration:0}:WD,className:`absolute inset-0 rounded-xl bg-muted`}):null,t?(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`relative z-10 grid size-5 shrink-0 place-items-center`,children:t}):null,(0,G.jsx)(q.span,{initial:!1,animate:{opacity:+!m.collapsed,x:m.collapsed?-4:0},transition:p.reduce?fk:m.collapsed?ck:sk,"aria-hidden":m.collapsed,"data-slot":`sidebar-menu-label`,className:J(`relative z-10 min-w-0 flex-1 truncate`,m.collapsed&&`pointer-events-none`),children:e}),n&&!m.collapsed?(0,G.jsx)(`span`,{className:`relative z-10 shrink-0 text-xs text-muted-foreground`,children:n}):null,a===void 0?null:(0,G.jsx)(q.span,{"aria-hidden":`true`,initial:!1,animate:{opacity:+!m.collapsed,rotate:a?90:0,x:m.collapsed?4:0},transition:p.reduce?{duration:0}:WD,className:`relative z-10 grid size-4 shrink-0 place-items-center text-muted-foreground`,children:(0,G.jsx)(fl,{className:`size-3.5`})})]}),v=J(`relative flex min-h-9 w-full min-w-0 items-center gap-2.5 overflow-hidden rounded-xl px-3 text-left text-sm font-medium outline-none`,`text-muted-foreground transition-colors hover:text-foreground`,`focus-visible:bg-muted/70 focus-visible:ring-2 focus-visible:ring-ring`,i&&`text-foreground`,o&&`cursor-not-allowed opacity-40`,d);return r?(0,G.jsx)(q.a,{href:r,target:c,rel:l??(c===`_blank`?`noreferrer noopener`:void 0),"aria-current":i?`page`:void 0,"aria-expanded":a,"aria-disabled":o||void 0,"aria-label":m.collapsed?h:void 0,title:m.collapsed?h:void 0,tabIndex:o?-1:void 0,onClick:g,whileTap:p.reduce||o?void 0:{scale:.98},transition:HD,className:v,children:_}):(0,G.jsx)(q.button,{type:`button`,disabled:o,"aria-current":i?`page`:void 0,"aria-expanded":a,"aria-label":m.collapsed?h:void 0,title:m.collapsed?h:void 0,onClick:g,whileTap:p.reduce||o?void 0:{scale:.98},transition:HD,className:v,children:_})}var Dk=(0,v.forwardRef)(({label:e,value:t,defaultValue:n,onChange:r,onInputChange:i,onFocus:a,onBlur:o,error:s,reserveErrorLine:c=!1,success:l,leftIcon:u,rightIcon:d,className:f,classNames:p,disabled:m,id:h,type:g,..._},y)=>{let b=(0,v.useId)(),x=h??b,S=jD(),C=t!==void 0,[w,T]=(0,v.useState)(n??``),E=C?t??``:w,[D,O]=(0,v.useState)(!1),k=(0,v.useRef)(null),A=!!s,j=typeof s==`string`?s:null,M=l?null:d;(0,v.useEffect)(()=>{k.current&&!S&&A&&zD(k.current,{x:[0,-6,6,-4,4,-2,0]},{duration:.45})},[A,S]);let N=e=>{C||T(e),r?.(e)};return(0,G.jsxs)(`div`,{className:J(`flex flex-col gap-1.5`,f,p?.root),children:[e?(0,G.jsx)(`label`,{htmlFor:x,className:J(`px-1 text-sm font-medium text-foreground`,p?.label),children:e}):null,(0,G.jsxs)(`div`,{ref:k,"data-state":A?`error`:l?`success`:D?`focused`:`idle`,className:J(`relative h-11 overflow-hidden rounded-full border transition-colors duration-200`,`border-border`,D&&!A&&`border-foreground/40 ring-2 ring-ring/40`,A&&`border-destructive ring-2 ring-destructive/25`,m&&`opacity-60`,p?.field),children:[u?(0,G.jsx)(`span`,{className:J(`pointer-events-none absolute left-3 top-1/2 flex -translate-y-1/2 items-center text-muted-foreground [&_svg]:h-4 [&_svg]:w-4`,p?.leftIcon),children:u}):null,(0,G.jsx)(`input`,{ref:y,id:x,type:g,value:g===`file`?void 0:E,disabled:m,"aria-invalid":A||void 0,"aria-describedby":j?`${x}-error`:void 0,..._,onChange:e=>{g!==`file`&&N(e.target.value),i?.(e)},onFocus:e=>{O(!0),a?.(e)},onBlur:e=>{O(!1),o?.(e)},className:J(`peer h-full w-full bg-transparent text-base leading-6 text-foreground caret-foreground outline-none`,`placeholder:text-muted-foreground/60`,u?`pl-10`:`pl-3.5`,M||l?`pr-10`:`pr-3.5`,m&&`cursor-not-allowed`,p?.input)}),l?(0,G.jsx)(q.svg,{viewBox:`0 0 24 24`,fill:`none`,className:J(`absolute right-3.5 top-1/2 h-5 w-5 -translate-y-1/2 text-(--color-success)`,p?.successIcon),children:(0,G.jsx)(q.path,{d:`M5 12.5l4.5 4.5L19 7.5`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,initial:S?{pathLength:1}:{pathLength:0},animate:{pathLength:1},transition:{duration:.35,ease:`easeOut`}})}):M?(0,G.jsx)(`span`,{className:J(`absolute right-0 top-0 flex h-full items-center text-muted-foreground [&_button]:grid [&_button]:size-11 [&_button]:place-items-center [&_svg]:h-4 [&_svg]:w-4`,p?.rightIcon),children:M}):null]}),(0,G.jsx)(`div`,{className:c?`min-h-4`:`contents`,children:(0,G.jsx)(FE,{initial:!1,children:j?(0,G.jsx)(q.p,{id:`${x}-error`,role:`alert`,initial:S?{opacity:0}:{opacity:0,y:-4,filter:`blur(4px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:S?{opacity:0}:{opacity:0,y:-4,filter:`blur(4px)`},transition:{duration:.2},className:J(`px-1 text-xs text-destructive`,p?.errorMessage),children:j}):null})})]})});function Ok({className:e,value:t,defaultValue:n,onChange:r,...i}){return(0,G.jsx)(Dk,{...i,"data-slot":`input`,value:t==null?void 0:String(t),defaultValue:n==null?void 0:String(n),onInputChange:r,className:`min-w-0`,classNames:{field:`h-9 rounded-xl`,input:K(`text-[13px] leading-5`,e)}})}var kk=[{id:`overview`,label:`Overview`,sub:`Calls, latency & risk at a glance`},{id:`devices`,label:`Devices`,sub:`Connectivity radar & system health`},{id:`clients`,label:`Clients`,sub:`Connected LAN devices — usage, block/allow, pin IP`},{id:`investigations`,label:`Investigations`,sub:`Client and service evidence across routers`},{id:`service-contracts`,label:`Service Health`,sub:`Approved endpoint checks, contracts and evidence`},{id:`aaa`,label:`RADIUS & UM`,sub:`RADIUS client & User Manager RADIUS server`},{id:`topology`,label:`Topology`,sub:`Layer-2 neighbours via MNDP / CDP / LLDP`},{id:`round-trip`,label:`Round-trip Lab`,sub:`Forward and return paths across snapshots`},{id:`fabric`,label:`L2 Fabric`,sub:`Which host sits on which physical bridge port`},{id:`vulns`,label:`Vulnerabilities`,sub:`Published CVEs matched to this version, ranked by real exposure`},{id:`access`,label:`Access Scope`,sub:`What this session may call — and what it blocked`},{id:`packets`,label:`Packets`,sub:`Live TZSP capture & decode`},{id:`flows`,label:`Flows`,sub:`NetFlow/IPFIX top talkers, conversations & anomalies`},{id:`snapshots`,label:`Snapshots`,sub:`Config history & time-travel diff`},{id:`drift`,label:`Drift Guard`,sub:`Golden config baselines & live drift detection`},{id:`attacks`,label:`Attacks`,sub:`Live attack incidents, evidence and guarded blocking`},{id:`policies`,label:`Policies`,sub:`Your own compliance rules, linted against config`},{id:`explain`,label:`Explain`,sub:`Config → architecture document, diagram and consequence diffs`},{id:`simulator`,label:`Simulator`,sub:`Trace a hypothetical packet — no device touched`},{id:`schedules`,label:`Schedules`,sub:`Auditors on a cron — alerting only on what changed`},{id:`txn`,label:`Transactions`,sub:`Cross-device two-phase commit — prepare, verify, commit everywhere`},{id:`plan`,label:`Change Plan`,sub:`Dry-run intended RouterOS commands`},{id:`s3`,label:`S3 Backups`,sub:`List, download & delete S3 backup objects`},{id:`backups`,label:`Backups`,sub:`Local config vault — create, restore, manage`},{id:`modules`,label:`Modules`,sub:`Enable/disable tool modules — curate the surface`},{id:`config`,label:`Config`,sub:`Effective configuration & safe editor`},{id:`memory`,label:`Memory`,sub:`Knowledge graph — entities, relations & observations`},{id:`alerts`,label:`Alerts`,sub:`Rules that reach out — Slack, Discord, ntfy, webhook, MCP`},{id:`releases`,label:`Releases`,sub:`Update, downgrade & read every version's notes`},{id:`capsman`,label:`CAPsMAN`,sub:`Wi-Fi fabric: coverage, weak signal, load, FT & HA`},{id:`feed`,label:`Live Feed`,sub:`Every tool call, in real time`}],Ak=[{id:`observe`,label:`Observe`,views:[`overview`,`devices`,`clients`,`feed`]},{id:`investigate`,label:`Investigate`,views:[`investigations`,`service-contracts`,`round-trip`,`topology`,`fabric`,`flows`,`packets`]},{id:`protect`,label:`Protect`,views:[`attacks`,`vulns`,`policies`,`access`,`aaa`,`capsman`]},{id:`operate`,label:`Operate`,views:[`plan`,`simulator`,`txn`,`snapshots`,`drift`,`backups`,`s3`,`schedules`,`explain`]},{id:`workspace`,label:`Workspace`,views:[`modules`,`config`,`memory`,`alerts`,`releases`]}];function jk(e){return Ak.find(t=>t.views.includes(e))??Ak[0]}function Mk(e){let t=e.replace(/^#\/?/,``);return kk.find(e=>e.id===t)?.id??null}function Nk(e){let t=e.trim().toLowerCase().split(/\s+/).filter(Boolean);return Ak.map(e=>({...e,items:e.views.map(e=>kk.find(t=>t.id===e)).filter(n=>t.every(t=>`${n.label} ${n.sub} ${e.label}`.toLowerCase().includes(t)))})).filter(e=>e.items.length>0)}var Pk=`mt-pinned-pages`,Fk=new Set(kk.map(e=>e.id));function Ik(e){try{let t=JSON.parse(e??`[]`);return Array.isArray(t)?[...new Set(t.filter(e=>typeof e==`string`&&Fk.has(e)))]:[]}catch{return[]}}function Lk(e){try{return Ik((e??window.localStorage).getItem(Pk))}catch{return[]}}function Rk(e,t){try{return(t??window.localStorage).setItem(Pk,JSON.stringify(e)),!0}catch{return!1}}function zk(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}var Bk=e=>e<1?`<1ms`:e<1e3?`${Math.round(e)}ms`:`${(e/1e3).toFixed(2)}s`;function Vk(e){let t=[`B`,`KiB`,`MiB`,`GiB`],n=0,r=e;for(;r>=1024&&n<t.length-1;)r/=1024,n++;return`${r.toFixed(+!!n)} ${t[n]}`}var Hk=e=>new Date(e).toLocaleTimeString(void 0,{hour12:!1}),Uk=e=>e.toLocaleString(),Wk=e=>e==null?`?`:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e),Gk={cpu:`var(--chart-1)`,mem:`var(--chart-5)`,disk:`var(--chart-2)`,latency:`var(--chart-4)`},Kk={READ:`var(--chart-3)`,WRITE:`var(--chart-1)`,WRITE_IDEMPOTENT:`var(--chart-2)`,DESTRUCTIVE:`var(--chart-4)`,DANGEROUS:`var(--destructive)`},qk={READ:`border-chart-3/40 text-chart-3`,WRITE:`border-chart-1/40 text-chart-1`,WRITE_IDEMPOTENT:`border-chart-2/40 text-chart-2`,DESTRUCTIVE:`border-chart-4/40 text-chart-4`,DANGEROUS:`border-destructive/40 text-destructive`},Jk=[[`5m`,3e5],[`15m`,9e5],[`1h`,36e5],[`6h`,216e5],[`24h`,864e5]],Yk=1e4;function Xk({mode:e}){return(0,G.jsxs)(`span`,{className:`shell-stream`,"data-connected":e!==`off`,title:`Dashboard event stream, not router health`,children:[(0,G.jsx)(`span`,{className:`shell-stream-dot`,"aria-hidden":`true`}),e===`off`?`Stream offline`:`Live stream`,e!==`off`&&(0,G.jsx)(`span`,{className:`shell-stream-protocol`,children:e.toUpperCase()})]})}function Zk({view:e,onNavigate:t,renderIcon:n,onMobileOpenChange:r,liveMode:i,version:a,transport:o,eventCount:s,feedCount:c,firingCount:l,releaseAvailable:u,onReleaseNotes:d,controls:f}){let p=bk(),m=!p.open&&!p.isMobile,[h,g]=(0,v.useState)(``),[_,y]=(0,v.useState)(()=>Lk()),[b,x]=(0,v.useState)(``);(0,v.useEffect)(()=>{let e=e=>{e.storageArea===window.localStorage&&(e.key===`mt-pinned-pages`||e.key===null)&&(y(Ik(e.newValue)),x(``))};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]);let S=jk(e).id,[C,w]=(0,v.useState)(()=>({view:e,expanded:new Set([S])})),T=C.view===e?C.expanded:new Set([S]);(0,v.useEffect)(()=>{let e=window.matchMedia(`(min-width: 900px)`),t=()=>{e.matches&&r(!1)};return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[r]);let E=Nk(h),D=e=>{t(e),r(!1),g(``)},O=e=>{let t=zk(_,e);y(t);let n=Rk(t),r=kk.find(t=>t.id===e).label;x(`${r} ${t.includes(e)?`pinned`:`unpinned`}.${n?``:` Browser storage unavailable; kept for this session only.`}`)},k=(t,r,i=!1)=>{let a=_.includes(t.id);return(0,G.jsxs)(`div`,{className:`shell-nav-row`,children:[(0,G.jsx)(Ek,{href:`#${t.id}`,isActive:e===t.id,activeLayoutId:i?`pinned`:`categories`,className:`shell-nav-link`,onSelect:()=>D(t.id),icon:n(t.id),badge:(0,G.jsxs)(G.Fragment,{children:[t.id===`alerts`&&l>0&&(0,G.jsx)(`span`,{className:`shell-nav-count shell-nav-count-alert`,children:l}),t.id===`feed`&&c>0&&(0,G.jsx)(`span`,{className:`shell-nav-count`,children:c>999?`999+`:c})]}),children:t.label}),(0,G.jsx)(YD,{variant:`ghost`,size:`icon-xs`,type:`button`,className:`shell-pin-toggle`,"aria-label":`${a?`Unpin`:`Pin`} ${t.label}`,"aria-pressed":a,title:`${a?`Unpin`:`Pin`} ${t.label}`,onClick:()=>{O(t.id),i&&document.getElementById(`${r}-search`)?.focus()},children:a?(0,G.jsx)(Hu,{size:13,"aria-hidden":`true`}):(0,G.jsx)(Wu,{size:13,"aria-hidden":`true`})})]},t.id)};return(0,G.jsxs)(wk,{ariaLabel:`Dashboard navigation`,collapsible:`icon`,className:p.isMobile?`shell-mobile-nav`:`shell-animated-sidebar`,panelClassName:`shell-sidebar`,children:[p.isMobile&&(0,G.jsxs)(YD,{variant:`ghost`,size:`sm`,onClick:()=>p.setOpenMobile(!1),className:`self-end`,children:[(0,G.jsx)(af,{size:14}),`Close navigation`]}),(t=>(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`a`,{href:`#overview`,className:`shell-brand`,onClick:e=>{e.preventDefault(),D(`overview`)},"aria-label":`MikroTik MCP overview`,children:[(0,G.jsx)(`span`,{className:`shell-brand-mark`,"aria-hidden":`true`,children:(0,G.jsxs)(`svg`,{viewBox:`0 0 40 40`,fill:`none`,children:[(0,G.jsx)(`path`,{d:`M10 11 20 21 30 11M20 21v10`,stroke:`currentColor`,strokeWidth:`2`}),(0,G.jsx)(`circle`,{cx:`10`,cy:`11`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`30`,cy:`11`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`31`,r:`3`,fill:`currentColor`}),(0,G.jsx)(`circle`,{cx:`20`,cy:`21`,r:`4`,fill:`currentColor`})]})}),(0,G.jsxs)(`span`,{children:[(0,G.jsxs)(`strong`,{children:[`MikroTik `,(0,G.jsx)(`span`,{children:`MCP`})]}),(0,G.jsx)(`small`,{children:`Network operations`})]})]}),(0,G.jsxs)(`div`,{className:`shell-workspace`,children:[(0,G.jsx)(`span`,{className:`shell-workspace-icon`,children:(0,G.jsx)(Pc,{size:17,"aria-hidden":`true`})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:`Observability`}),(0,G.jsx)(`span`,{children:o?`${o.toUpperCase()} workspace`:`Dashboard workspace`})]}),(0,G.jsx)(`span`,{className:`shell-workspace-indicator`,"aria-hidden":`true`})]}),(0,G.jsxs)(`div`,{className:`shell-nav-search`,children:[(0,G.jsx)(fd,{size:15,"aria-hidden":`true`}),(0,G.jsx)(Ok,{id:`${t}-search`,"aria-label":`Find a page`,placeholder:`Find a page…`,value:h,onChange:e=>g(e.target.value)}),h&&(0,G.jsx)(`button`,{type:`button`,"aria-label":`Clear page search`,onClick:()=>{g(``),document.getElementById(`${t}-search`)?.focus()},children:(0,G.jsx)(af,{size:14})})]}),(0,G.jsxs)(`nav`,{className:`shell-nav`,"aria-label":`Dashboard navigation`,children:[!h.trim()&&(0,G.jsxs)(`section`,{className:`shell-pinned`,"aria-label":`Pinned pages`,children:[(0,G.jsxs)(`div`,{className:`shell-pinned-heading`,children:[(0,G.jsx)(Wu,{size:12,"aria-hidden":`true`}),(0,G.jsx)(`span`,{children:`Pinned`}),(0,G.jsx)(`span`,{children:_.length})]}),_.length>0?(0,G.jsx)(`div`,{className:`shell-nav-track`,children:_.map(e=>k(kk.find(t=>t.id===e),t,!0))}):(0,G.jsx)(`p`,{className:`shell-pin-hint`,children:`Pin your go-to pages for quick access.`})]}),(0,G.jsx)(`p`,{className:b.includes(`unavailable`)?`shell-pin-hint`:`sr-only`,role:`status`,children:b}),E.map(n=>{let r=m||!!h.trim()||T.has(n.id);return(0,G.jsxs)(`section`,{className:`shell-nav-group`,children:[(0,G.jsxs)(`button`,{type:`button`,className:`shell-group-heading`,"aria-expanded":r,"aria-controls":`${t}-${n.id}`,onClick:()=>w(()=>{let t=new Set(T);return t.has(n.id)?t.delete(n.id):t.add(n.id),{view:e,expanded:t}}),children:[(0,G.jsx)(`span`,{children:n.label}),(0,G.jsxs)(`span`,{className:`shell-group-meta`,children:[n.views.includes(`alerts`)&&l>0&&(0,G.jsx)(`span`,{className:`shell-alert-dot`,"aria-label":`${l} alerts firing`}),r?(0,G.jsx)(ul,{size:13}):(0,G.jsx)(fl,{size:13})]})]}),(0,G.jsx)(`div`,{id:`${t}-${n.id}`,className:`shell-nav-track`,hidden:!r,children:n.items.map(e=>k(e,t))})]},n.id)}),E.length===0&&(0,G.jsxs)(`div`,{className:`shell-nav-empty`,role:`status`,children:[(0,G.jsx)(fd,{size:20}),(0,G.jsx)(`strong`,{children:`No matching pages`}),(0,G.jsx)(`span`,{children:`Try “flows”, “backup” or “router”.`})]})]}),(0,G.jsxs)(`footer`,{className:`shell-sidebar-footer`,children:[(0,G.jsxs)(`div`,{className:`shell-instance`,children:[(0,G.jsx)(Xk,{mode:i}),(0,G.jsx)(`span`,{children:s==null?`Waiting for server`:`${Uk(s)} recorded events`})]}),(0,G.jsx)(`div`,{className:`shell-server-controls`,children:f}),(0,G.jsxs)(`button`,{type:`button`,className:`shell-version`,disabled:!d,onClick:d,children:[(0,G.jsxs)(`span`,{children:[`MikroTik MCP `,(0,G.jsx)(`b`,{children:a?`v${a}`:`—`})]}),u?(0,G.jsx)(`span`,{className:`shell-release-dot`,"aria-label":`New release available`}):(0,G.jsx)(Wc,{size:13,"aria-hidden":`true`})]})]})]}))(p.isMobile?`mobile-nav`:`desktop-nav`)]})}var Qk=(0,v.createContext)(null),$k={type:`spring`,duration:.8,bounce:.2},eA={type:`spring`,duration:.8,bounce:.35},tA=32,nA=126,rA=37;function iA(){let e=(0,v.useRef)(null),[t,n]=(0,v.useState)(null);return(0,v.useLayoutEffect)(()=>{let t=e.current;t&&n({width:t.offsetWidth,height:t.offsetHeight})},[]),(0,v.useEffect)(()=>{let t=e.current;if(!t||typeof ResizeObserver>`u`)return;let r=new ResizeObserver(()=>{n({width:t.offsetWidth,height:t.offsetHeight})});return r.observe(t),()=>r.disconnect()},[]),[e,t]}function aA({keyId:e,children:t,className:n,ref:r}){let i=jD(),a=(0,v.useContext)(Qk)?.anchor===`bottom`;return(0,G.jsx)(q.div,{ref:r,initial:i?{opacity:0,filter:`blur(0px)`}:{opacity:0,scale:a?1:.9,y:a?0:-8,filter:`blur(5px)`},animate:i?{opacity:1,filter:`blur(0px)`}:{opacity:1,scale:1,y:0,filter:`blur(0px)`},exit:i?{opacity:0,filter:`blur(0px)`,transition:{duration:.1}}:{opacity:0,scale:a?1:.9,y:a?0:-6,filter:`blur(0px)`,transition:{duration:.08,ease:BD}},transition:i?{duration:.1}:a?{duration:.16,ease:BD}:eA,style:{transformOrigin:a?`bottom center`:`top center`},className:J(`flex items-center justify-center`,n),children:t},e)}function oA({view:e,compact:t,children:n,className:r,announce:i=!0,anchor:a=`top`}){let o=jD(),s=e!==null,[c,l]=iA(),u=(0,v.useMemo)(()=>({view:e,anchor:a}),[e,a]);return(0,G.jsx)(Qk.Provider,{value:u,children:(0,G.jsx)(q.div,{"data-anchor":a,role:i?`status`:void 0,"aria-live":i?`polite`:void 0,initial:!1,animate:l?{width:l.width,height:l.height}:{width:nA,height:rA},transition:o?{duration:0}:a===`bottom`?{duration:.26,ease:BD}:$k,style:{borderRadius:tA},className:J(`relative inline-flex justify-center overflow-hidden`,a===`bottom`?`items-end`:`items-start`,`bg-foreground text-background shadow-2xl`,r),children:(0,G.jsxs)(`div`,{ref:c,className:`relative w-max shrink-0`,children:[(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:!s&&t?(0,G.jsx)(aA,{keyId:`compact`,className:`min-h-[37px] min-w-[126px] gap-2 px-4 py-1.5 text-xs font-medium`,children:t},`compact`):null}),n]})})})}function sA({id:e,children:t,className:n}){let r=(0,v.useContext)(Qk);if(!r)throw Error(`DynamicIslandView must be used inside <DynamicIsland>`);let i=r.view===e;return(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:i?(0,G.jsx)(aA,{keyId:e,className:J(`px-6 py-4`,n),children:t}):null})}var cA=[.16,1,.3,1],lA={enter:({direction:e,reduceMotion:t})=>({opacity:0,transform:t?`none`:`translateY(${e===`up`?`45%`:`-45%`})`}),visible:{opacity:1,transform:`translateY(0%)`},exit:({direction:e,reduceMotion:t})=>({opacity:0,transform:t?`none`:`translateY(${e===`up`?`-45%`:`45%`})`})};function uA({value:e,animationKey:t,direction:n=`up`,duration:r=.18,stagger:i=.006,suffixLength:a=0,className:o,glyphClassName:s,suffixClassName:c}){let l=jD()??!1,u=String(e),d=Math.max(0,u.length-Math.max(0,a)),f={direction:n,reduceMotion:l},p=Array.from(u,(e,t)=>({character:e,id:`glyph-${t}`,position:t}));return(0,G.jsxs)(`span`,{"data-slot":`digit-swap`,"data-direction":n,className:K(`inline-flex items-center whitespace-nowrap`,o),children:[(0,G.jsx)(`span`,{className:`sr-only`,children:u}),(0,G.jsx)(`span`,{"aria-hidden":`true`,className:`inline-flex items-center`,children:p.map(({character:e,id:n,position:a})=>{if(e===` `)return(0,G.jsx)(`span`,{className:`inline-block w-[0.7ch]`},n);let o=t===void 0?`${n}-${e}`:`${n}-${e}-${t}`;return(0,G.jsx)(`span`,{"data-slot":`digit-swap-glyph`,className:`relative inline-block h-[1.1em] w-[1ch] shrink-0 overflow-hidden align-bottom`,children:(0,G.jsx)(FE,{initial:!1,custom:f,children:(0,G.jsx)(q.span,{custom:f,variants:lA,initial:`enter`,animate:`visible`,exit:`exit`,transition:{duration:l?Math.min(r,.12):r,delay:l?0:a*i,ease:cA},className:K(`absolute inset-0 flex items-center justify-center leading-none`,s,a>=d?c:void 0),children:e},o)})},n)})})]})}var dA=(0,v.createContext)(null);function fA(){let e=(0,v.useContext)(dA);if(!e)throw Error(`Tabs.* must be used inside <Tabs>`);return e}var pA={type:`spring`,stiffness:170,damping:30,mass:1.2};function mA({defaultValue:e,value:t,onValueChange:n,variant:r=`pill`,children:i,className:a}){let[o,s]=(0,v.useState)(e??``),c=(0,v.useId)(),l=jD(),u=t!==void 0,d=u?t:o,f=(0,v.useCallback)(e=>{u||s(e),n?.(e)},[u,n]),p=(0,v.useMemo)(()=>({value:d,setValue:f,layoutId:c,variant:r}),[d,c,f,r]);return(0,G.jsx)(WE,{transition:l?{duration:0}:pA,children:(0,G.jsx)(dA.Provider,{value:p,children:(0,G.jsx)(q.div,{layoutRoot:!0,className:a,children:i})})})}var hA={pill:`inline-flex items-center gap-1 rounded-full bg-card p-1`,underline:`inline-flex items-center gap-1 border-b border-border`,segment:`inline-flex items-center gap-0 rounded-lg bg-card p-0.5`};function gA({children:e,className:t,onKeyDown:n,...r}){let{variant:i}=fA();return(0,G.jsx)(`div`,{...r,role:`tablist`,className:J(hA[i],t),onKeyDown:e=>{if(n?.(e),e.defaultPrevented)return;let t=Array.from(e.currentTarget.querySelectorAll(`[role="tab"]:not(:disabled)`)),r=t.indexOf(document.activeElement),i=e.key===`Home`?t[0]:e.key===`End`?t.at(-1):e.key===`ArrowRight`?t[(r+1)%t.length]:e.key===`ArrowLeft`?t[(r-1+t.length)%t.length]:null;i&&(e.preventDefault(),i.focus(),i.click())},children:e})}function _A({value:e,children:t,className:n,indicatorClassName:r,disabled:i,onClick:a,...o}){let{value:s,setValue:c,layoutId:l,variant:u}=fA(),d=s===e,f={...o,id:`${l}-tab-${e}`,"aria-controls":`${l}-panel-${e}`,"data-state":d?`active`:`inactive`,tabIndex:d?0:-1,disabled:i,onClick:t=>{a?.(t),!t.defaultPrevented&&!i&&c(e)}};if(u===`underline`)return(0,G.jsxs)(`button`,{...f,type:`button`,role:`tab`,"aria-selected":d,className:J(`relative isolate px-3 pb-2.5 pt-1 -mb-px text-sm font-medium transition-colors min-h-[44px] inline-flex items-center`,d?`text-foreground`:`text-muted-foreground hover:text-foreground`,n),children:[t,d?(0,G.jsx)(q.span,{layoutId:l,layout:`position`,className:J(`absolute -bottom-px left-0 right-0 h-px bg-primary`,r)}):null]});let p=u===`pill`?`rounded-full`:`rounded-md`;return(0,G.jsxs)(`div`,{className:`relative`,children:[d?(0,G.jsx)(q.span,{layoutId:l,layout:`position`,style:{borderRadius:u===`pill`?9999:8},className:J(`absolute inset-0 bg-primary`,p,r)}):null,(0,G.jsx)(`button`,{...f,type:`button`,role:`tab`,"aria-selected":d,className:J(`relative z-10 inline-flex items-center justify-center whitespace-nowrap bg-transparent px-3.5 py-1.5 text-sm font-medium outline-none`,`transition-colors`,d?`text-primary-foreground`:`text-muted-foreground hover:text-foreground`,p,n),children:t})]})}function vA({value:e,children:t,className:n,forceMount:r}){let{value:i,layoutId:a}=fA(),o=jD(),s=i===e;return!s&&!r?null:(0,G.jsx)(q.div,{role:`tabpanel`,hidden:!s,id:`${a}-panel-${e}`,"aria-labelledby":`${a}-tab-${e}`,tabIndex:0,initial:{opacity:0,y:o?0:4},animate:{opacity:1,y:0},transition:{duration:.18,ease:BD},className:J(`mt-4`,n),children:t},e)}function yA({className:e,...t}){return(0,G.jsx)(mA,{...t,variant:`segment`,className:K(`flex min-w-0 flex-col gap-2`,e)})}function bA({className:e,...t}){return(0,G.jsx)(gA,{...t,className:K(`w-fit max-w-full gap-1 rounded-xl border p-1`,e)})}function xA({className:e,...t}){return(0,G.jsx)(_A,{...t,className:K(`gap-1.5 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50`,e)})}function SA({className:e,...t}){return(0,G.jsx)(vA,{...t,className:K(`flex-1 outline-none`,e)})}var CA=3e4;function wA(e,t,n=CA){return typeof e==`number`&&Number.isFinite(e)&&e>0&&t>=e&&t-e<=n}function TA(e,t,n){return e.disabled?`disabled`:!n||!wA(e.status.checkedAt,t,12e4)?`unknown`:e.status.reachable===!0?`reachable`:e.status.reachable===!1?`unreachable`:`unknown`}function EA({mode:e,paused:t,now:n,liveEvent:r,liveEventAt:i,pool:a,poolAt:o,alerts:s,alertsAt:c}){if(e===`off`)return{kind:`offline`,label:`Stream offline`,detail:`Reconnecting automatically`};if(t)return{kind:`paused`,label:`Dashboard paused`,detail:`Displayed activity is frozen`};let l=r&&wA(i,n,1e4);return l&&r.isError?{kind:`error`,label:`Tool call failed`,detail:r.tool}:s!=null&&s>0&&wA(c,n,45e3)?{kind:`alerts`,label:`Alerts need attention`,detail:`Active alert rules`,count:s}:a?.enabled&&wA(o,n)&&Number.isFinite(a.aggregate.totalInflight)&&a.aggregate.totalInflight>0?{kind:`busy`,label:`SSH channels busy`,detail:`Observed in the connection pool`,count:a.aggregate.totalInflight}:l?{kind:`completed`,label:`Tool call completed`,detail:r.tool}:{kind:`listening`,label:`Listening for activity`,detail:e===`sse`?`SSE fallback connected`:`WebSocket connected`}}function DA(e){return Number.isFinite(e.durationMs)&&e.durationMs>=0?e.ts+e.durationMs:NaN}function OA(e,t){let n=new Set;return e.filter(e=>{let r=DA(e);return!e.id||n.has(e.id)||!Number.isFinite(r)||r>t?!1:(n.add(e.id),!0)}).sort((e,t)=>DA(t)-DA(e)).slice(0,4)}function kA(e,t){if(e==null||!Number.isFinite(e)||e<=0||e>t)return`Not observed`;let n=Math.floor((t-e)/1e3);return n<5?`Just now`:n<60?`${n}s ago`:n<3600?`${Math.floor(n/60)}m ago`:n<86400?`${Math.floor(n/3600)}h ago`:`${Math.floor(n/86400)}d ago`}var AA={offline:Jd,paused:Ru,error:vl,alerts:Qc,busy:Pc,completed:cl,listening:Qu};function jA(e){let[t,n]=(0,v.useState)(!1),[r,i]=(0,v.useState)(`pulse`),[a,o]=(0,v.useState)(Date.now),s=Math.max(a,e.statsAt??0,e.poolAt??0,e.alertsAt??0,e.liveEventAt??0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(null),d=(0,v.useRef)(!1);(0,v.useEffect)(()=>{let e=setInterval(()=>{document.visibilityState===`visible`&&o(Date.now())},1e3),t=()=>o(Date.now());return document.addEventListener(`visibilitychange`,t),()=>{clearInterval(e),document.removeEventListener(`visibilitychange`,t)}},[]),(0,v.useEffect)(()=>{if(!t){d.current&&l.current?.focus({preventScroll:!0}),d.current=!1;return}u.current?.focus({preventScroll:!0});let e=e=>{c.current?.contains(e.target)||n(!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[t]);let f=EA({...e,now:s}),p=AA[f.kind],m=e.mode!==`off`&&!e.paused,h=m&&wA(e.statsAt,s),g=m&&wA(e.poolAt,s),_=m&&wA(e.alertsAt,s,45e3),y=(0,v.useMemo)(()=>OA(e.events,s),[e.events,s]),b=e.devices?.devices??[],x=b.filter(e=>TA(e,s,m)===`reachable`).length,S=e.stats?.series.filter(e=>Number.isFinite(e.ok)&&Number.isFinite(e.error)&&e.ok>=0&&e.error>=0).slice(-18)??[],C=Math.max(1,...S.map(e=>e.ok+e.error)),w=()=>{d.current=!0,n(!1)},T=t=>{n(!1),e.onNavigate(t)},E=e.stats?`${Math.round(e.stats.windowMs/6e4)} min window`:`Waiting for analytics`,D=(e,t=Uk)=>e!=null&&Number.isFinite(e)?t(e):`—`;return(0,G.jsxs)(`aside`,{ref:c,className:`operations-island-anchor`,"aria-label":`Operations Island`,onKeyDown:e=>{e.key===`Escape`&&t&&(e.preventDefault(),e.stopPropagation(),w())},"data-signal":f.kind,children:[(0,G.jsx)(`span`,{className:`sr-only`,role:`status`,"aria-live":`polite`,children:f.label}),(0,G.jsx)(oA,{announce:!1,anchor:`bottom`,view:t?`operations`:null,className:`operations-island`,compact:(0,G.jsxs)(YD,{ref:l,variant:`ghost`,className:`island-compact`,"aria-label":`Open Operations Island: ${f.label}`,"aria-expanded":t,"aria-controls":`operations-island-panel`,onClick:()=>n(!0),children:[(0,G.jsx)(`span`,{className:`island-signal-icon`,children:(0,G.jsx)(p,{size:17})}),(0,G.jsxs)(`span`,{className:`island-compact-copy`,children:[(0,G.jsx)(`strong`,{children:f.label}),(0,G.jsx)(`span`,{children:f.detail})]}),f.count==null?(0,G.jsxs)(`span`,{className:`island-equalizer`,"data-moving":f.kind===`busy`,"aria-hidden":`true`,children:[(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{}),(0,G.jsx)(`i`,{})]}):(0,G.jsx)(`span`,{className:`island-count`,children:(0,G.jsx)(uA,{value:f.count})}),(0,G.jsx)(ml,{size:14,className:`island-chevron`})]}),children:(0,G.jsx)(sA,{id:`operations`,className:`island-expanded-slot`,children:(0,G.jsxs)(`section`,{id:`operations-island-panel`,className:`island-panel`,"aria-label":`Operations summary`,children:[(0,G.jsxs)(`header`,{className:`island-header`,children:[(0,G.jsx)(`span`,{className:`island-signal-icon`,children:(0,G.jsx)(p,{size:20})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`p`,{children:`OPERATIONS PULSE`}),(0,G.jsx)(`h2`,{children:f.label})]}),(0,G.jsx)(YD,{ref:u,size:`icon-sm`,variant:`ghost`,className:`island-close`,"aria-label":`Collapse Operations Island`,onClick:w,children:(0,G.jsx)(af,{size:16})})]}),(0,G.jsxs)(`div`,{className:`island-connection`,children:[(0,G.jsx)(`span`,{className:m?`island-dot is-connected`:`island-dot`}),(0,G.jsx)(`span`,{children:e.mode===`off`?`Disconnected · last-known data only`:e.paused?`Stream connected · dashboard updates paused`:`${e.mode.toUpperCase()} connected · no extra router probes`})]}),(0,G.jsxs)(yA,{value:r,onValueChange:i,className:`island-tabs`,children:[(0,G.jsxs)(bA,{"aria-label":`Operations views`,className:`island-tab-list`,children:[(0,G.jsxs)(xA,{value:`pulse`,children:[(0,G.jsx)(Pc,{size:13}),`Pulse`]}),(0,G.jsxs)(xA,{value:`fleet`,children:[(0,G.jsx)(cd,{size:13}),`Routers`]}),(0,G.jsxs)(xA,{value:`activity`,children:[(0,G.jsx)(El,{size:13}),`Activity`]})]}),(0,G.jsxs)(SA,{value:`pulse`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`TOOL CALL VOLUME`}),(0,G.jsx)(`span`,{children:E})]}),(0,G.jsx)(`div`,{className:`island-volume`,"aria-hidden":`true`,"data-stale":!h,children:S.some(e=>e.ok+e.error>0)?S.map(e=>(0,G.jsxs)(`div`,{className:`island-bar-track`,children:[(0,G.jsx)(`span`,{className:`island-bar-ok`,style:{height:`${e.ok/C*100}%`}}),(0,G.jsx)(`span`,{className:`island-bar-error`,style:{height:`${e.error/C*100}%`}})]},e.t)):(0,G.jsx)(`span`,{className:`island-empty-chart`,children:e.stats?`No calls in this window`:`Waiting for recorded activity`})}),(0,G.jsxs)(`div`,{className:`island-chart-caption`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`i`,{}),`Successful `,(0,G.jsx)(`i`,{className:`is-error`}),`Failed`]}),(0,G.jsxs)(`span`,{children:[h?`Updated`:`Snapshot`,` · `,kA(e.statsAt,s)]})]}),(0,G.jsxs)(`div`,{className:`island-metrics`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Calls / min`}),(0,G.jsx)(`strong`,{children:D(e.stats?.callsPerMin,e=>e.toFixed(1))})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Tool p95`}),(0,G.jsx)(`strong`,{children:D(e.stats&&e.stats.total>0?e.stats.latency.p95:void 0,Bk)})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{children:`Failed calls`}),(0,G.jsx)(`strong`,{className:e.stats?.errors?`island-error-text`:``,children:D(e.stats?.errors)})]})]}),(0,G.jsxs)(`div`,{className:`island-insights`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(ou,{size:13}),g&&e.pool?e.pool.enabled?`${e.pool.aggregate.totalInflight} SSH channels in flight`:`SSH pooling disabled`:`SSH pool status unavailable`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(Qc,{size:13}),_&&e.alerts!=null?`${e.alerts} active alert rules`:`Alert status unavailable`]})]}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`overview`),children:[`Open analytics`,(0,G.jsx)(Wc,{size:14})]})]}),(0,G.jsxs)(SA,{value:`fleet`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`LAST ROUTER CHECKS`}),(0,G.jsx)(`span`,{children:e.devices?`${x} / ${b.filter(e=>!e.disabled).length} reachable`:`Not loaded`})]}),(0,G.jsx)(`div`,{className:`island-scroll-list`,children:b.length?b.map(e=>{let t=TA(e,s,m);return(0,G.jsxs)(`div`,{className:`island-device`,"data-state":t,children:[(0,G.jsx)(`span`,{className:`island-router-icon`,children:(0,G.jsx)(cd,{size:18})}),(0,G.jsxs)(`div`,{className:`island-row-copy`,children:[(0,G.jsx)(`strong`,{children:e.name}),(0,G.jsxs)(`span`,{children:[t===`unknown`?`Unknown / stale`:t,` ·`,` `,kA(e.status.checkedAt,s)]})]}),(0,G.jsx)(`span`,{className:`island-device-latency`,children:t===`reachable`&&e.status.latencyMs!=null?Bk(e.status.latencyMs):`—`})]},e.name)}):(0,G.jsx)(`p`,{className:`island-empty`,children:`Router status has not loaded. No healthy state is assumed.`})}),(0,G.jsx)(`p`,{className:`island-footnote`,children:`Management reachability is not proof of client or VPN health.`}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`devices`),children:[`Open devices`,(0,G.jsx)(Wc,{size:14})]})]}),(0,G.jsxs)(SA,{value:`activity`,className:`island-tab-panel`,children:[(0,G.jsxs)(`div`,{className:`island-chart-heading`,children:[(0,G.jsx)(`span`,{children:`RECORDED COMPLETIONS`}),(0,G.jsxs)(`span`,{children:[`Latest `,y.length]})]}),(0,G.jsx)(`div`,{className:`island-scroll-list`,children:y.length?y.map(t=>(0,G.jsxs)(YD,{variant:`ghost`,className:`island-event`,onClick:()=>{n(!1),e.onEvent(t)},children:[(0,G.jsx)(`span`,{className:t.isError?`island-error-text`:`island-success-text`,children:t.isError?(0,G.jsx)(vl,{size:16}):(0,G.jsx)(cl,{size:16})}),(0,G.jsxs)(`span`,{className:`island-row-copy`,children:[(0,G.jsx)(`strong`,{children:t.tool}),(0,G.jsxs)(`span`,{children:[t.device??`Server`,` · `,kA(DA(t),s)]})]}),(0,G.jsxs)(`span`,{className:`island-event-duration`,children:[Bk(t.durationMs),(0,G.jsx)(Wc,{size:12})]})]},t.id)):(0,G.jsx)(`p`,{className:`island-empty`,children:`No recorded calls yet. Activity appears when MCP tools complete.`})}),(0,G.jsx)(`p`,{className:`island-footnote`,children:`Completed tool calls, not a live packet trace. Open a call for its evidence.`}),(0,G.jsxs)(YD,{variant:`ghost`,className:`island-link`,onClick:()=>T(`feed`),children:[`Open Live Feed`,(0,G.jsx)(Wc,{size:14})]})]})]}),(0,G.jsxs)(`footer`,{className:`island-footer`,children:[(0,G.jsx)(Qu,{size:11}),(0,G.jsx)(`span`,{children:`OBSERVE ONLY`}),(0,G.jsx)(`span`,{children:`No configuration changes`})]})]})})})]})}function MA(e,t){try{e.setPointerCapture(t)}catch{}}var NA=e=>e.pointerType!==`touch`&&e.buttons===0,PA={active:!1,startX:0,startY:0,pointerId:null},FA={duration:.9,ease:VD,repeat:1/0},IA={duration:1.2,ease:VD,repeat:1/0},LA={duration:.16,ease:BD};function RA(e,t){return t*(1-Math.exp(-Math.max(0,e)/t))}function zA({progress:e,status:t,reduce:n}){let r=kD(e,[0,1],[-7,0]),i=kD(e,[0,1],[-10,0]),a=kD(e,[0,.55,1],[.68,1.1,.92]),o=t===`ready`,s=t===`refreshing`;return(0,G.jsx)(q.span,{style:n?void 0:{y:r,rotate:i,scaleY:a},className:`block h-9 w-9 origin-bottom`,children:(0,G.jsxs)(q.svg,{"aria-hidden":`true`,viewBox:`0 0 36 36`,style:{opacity:1},className:`h-full w-full overflow-visible`,animate:s?n?{opacity:[.55,1,.55]}:{y:[0,-2,0],rotate:[-3,3,-3]}:n?{opacity:1}:{y:0,rotate:0,scale:o?1.08:1},transition:s?n?IA:FA:UD,children:[(0,G.jsxs)(q.g,{style:{transformOrigin:`18px 18px`},animate:s&&!n?{rotate:[0,360]}:n?void 0:{rotate:o?0:-35},transition:s?n?IA:FA:UD,className:J(`transition-opacity duration-150`,o||s?`opacity-100`:`opacity-0`),children:[(0,G.jsx)(`path`,{d:`M18 2.5a15.5 15.5 0 0 1 12.7 6.6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:`text-muted-foreground`}),(0,G.jsx)(`circle`,{cx:`31.3`,cy:`10.2`,r:`2.2`,className:`fill-foreground`})]}),(0,G.jsx)(`rect`,{x:`7`,y:`7`,width:`22`,height:`22`,rx:`9`,className:`fill-foreground`}),(0,G.jsxs)(q.g,{style:{opacity:1,transformOrigin:`18px 16px`},animate:s&&!n?{scaleY:[1,1,.15,1,1]}:n?{opacity:1}:{scaleY:o?1.18:1},transition:s&&!n?FA:UD,children:[(0,G.jsx)(`circle`,{cx:`14.2`,cy:`16`,r:`1.45`,className:`fill-background`}),(0,G.jsx)(`circle`,{cx:`21.8`,cy:`16`,r:`1.45`,className:`fill-background`})]}),(0,G.jsx)(`path`,{d:`M14.5 21h7`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:J(`text-background transition-opacity duration-150`,o||s?`opacity-0`:`opacity-100`)}),(0,G.jsx)(`path`,{d:`M14 20.5c1 2.4 7 2.4 8 0`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,className:J(`text-background transition-opacity duration-150`,o?`opacity-100`:`opacity-0`)}),(0,G.jsx)(`circle`,{cx:`18`,cy:`21`,r:`1.6`,className:J(`fill-background transition-opacity duration-150`,s?`opacity-100`:`opacity-0`)})]})})}function BA({onRefresh:e,children:t,refreshing:n=!1,disabled:r=!1,threshold:i=76,maxPull:a=132,holdDistance:o=68,pullingLabel:s=`Pull to refresh`,releaseLabel:c=`Release to refresh`,refreshingLabel:l=`Refreshing`,ariaLabel:u=`Refreshable content`,className:d,contentClassName:f,indicatorClassName:p,handleOnly:m=!1,onRefreshError:h}){let g=(0,v.useRef)(null),_=(0,v.useRef)({...PA}),y=(0,v.useRef)(null),b=(0,v.useRef)(`idle`),x=(0,v.useRef)(r),S=(0,v.useRef)(n),C=(0,v.useRef)(n),[w,T]=(0,v.useState)(`idle`),[E,D]=(0,v.useState)(!1),O=jD(),k=Math.max(24,i),A=Math.max(a,k+24),j=Math.min(Math.max(0,o),k),M=DD(0),N=kD(M,[0,k],[0,1]),P=kD(M,[0,10,k],[0,.45,1]),F=kD(M,[0,k],[.86,1]),I=n||E;x.current=r,S.current=n,C.current=I;let L=(0,v.useCallback)(e=>{b.current!==e&&(b.current=e,T(e))},[]),ee=(0,v.useCallback)(e=>{if(y.current?.stop(),O){M.set(e);return}y.current=zD(M,e,Yne)},[O,M]),R=(0,v.useCallback)(e=>{if(x.current||C.current)return;y.current?.stop();let t=RA(e,A);M.set(t),L(t>=k?`ready`:`pulling`)},[A,k,L,M]),te=(0,v.useCallback)(async()=>{if(!(x.current||C.current)){C.current=!0,D(!0),L(`refreshing`),ee(j);try{await e()}catch(e){h?.(e)}finally{D(!1),S.current||(C.current=!1,L(`idle`),ee(0))}}},[e,h,j,L,ee]),z=(0,v.useCallback)(e=>!(e instanceof Element)||e.closest(`button, a, input, textarea, select, [contenteditable="true"], [role="button"]`)?!1:!m||!!e.closest(`[data-refresh-handle]`),[m]),ne=(0,v.useCallback)(()=>{_.current={...PA},C.current||(L(`idle`),ee(0))},[L,ee]),re=(0,v.useCallback)(()=>{let e=M.get()>=k&&!x.current&&!C.current;if(_.current={...PA},e){te();return}L(`idle`),ee(0)},[k,te,L,ee,M]);(0,v.useEffect)(()=>{if(I){L(`refreshing`),ee(j);return}b.current===`refreshing`&&(L(`idle`),ee(0))},[I,j,L,ee]),(0,v.useEffect)(()=>{let e=g.current;if(!e)return;let t=t=>{if(t.touches.length!==1||!z(t.target)||e.scrollTop>0||x.current||C.current)return;let n=t.touches[0];_.current={active:!0,startX:n.clientX,startY:n.clientY,pointerId:null}},n=t=>{let n=_.current,r=t.touches[0];if(!n.active||!r)return;let i=r.clientX-n.startX,a=r.clientY-n.startY;if(e.scrollTop>0||a<0){_.current={...PA};return}Math.abs(i)>a||(t.preventDefault(),R(a))},r=()=>{_.current.active&&re()};return e.addEventListener(`touchstart`,t,{passive:!0}),e.addEventListener(`touchmove`,n,{passive:!1}),e.addEventListener(`touchend`,r),e.addEventListener(`touchcancel`,ne),()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchmove`,n),e.removeEventListener(`touchend`,r),e.removeEventListener(`touchcancel`,ne)}},[re,R,z,ne]),(0,v.useEffect)(()=>()=>y.current?.stop(),[]);let ie=e=>{e.pointerType===`touch`||!z(e.target)||e.button!==0||e.currentTarget.scrollTop>0||r||I||(MA(e.currentTarget,e.pointerId),_.current={active:!0,startX:e.clientX,startY:e.clientY,pointerId:e.pointerId})},ae=e=>{let t=_.current;if(!t.active||t.pointerId!==e.pointerId)return;let n=e.clientX-t.startX,r=e.clientY-t.startY;r<0||Math.abs(n)>r||(e.preventDefault(),R(r))},oe=w===`refreshing`?l:w===`ready`?c:s;return(0,G.jsxs)(`section`,{ref:g,"aria-label":u,"aria-busy":I,"data-state":w,"data-disabled":r||void 0,onPointerDown:ie,onPointerMove:ae,onPointerUp:e=>{_.current.pointerId===e.pointerId&&re()},onPointerCancel:e=>{_.current.pointerId===e.pointerId&&ne()},className:J(`relative w-full overflow-y-auto overscroll-contain bg-background`,!m&&`[-webkit-touch-callout:none] pointer-coarse:select-none`,w===`pulling`||w===`ready`?`cursor-grabbing select-none`:`cursor-grab`,(r||I)&&`cursor-default`,d),children:[(0,G.jsxs)(q.div,{"aria-live":`polite`,"aria-atomic":`true`,style:O?{opacity:P}:{opacity:P,scale:F},className:J(`pointer-events-none absolute inset-x-0 top-0 z-20 flex h-[4.25rem] flex-col items-center justify-center gap-0.5 bg-gradient-to-b from-background via-background/95 to-transparent text-[11px] font-medium text-muted-foreground`,p),children:[(0,G.jsx)(zA,{progress:N,status:w,reduce:!!O}),(0,G.jsx)(`span`,{className:`relative h-4 min-w-24 text-center`,children:(0,G.jsx)(FE,{initial:!1,mode:`wait`,children:(0,G.jsx)(q.span,{initial:O?{opacity:0}:{opacity:0,y:3},animate:O?{opacity:1}:{opacity:1,y:0},exit:O?{opacity:0}:{opacity:0,y:-3},transition:LA,className:`absolute inset-x-0 whitespace-nowrap`,children:oe},w)})})]}),(0,G.jsx)(q.div,{style:O?void 0:{y:M},className:J(`relative z-10 min-h-full bg-inherit will-change-transform`,f),children:t})]})}function VA({enabled:e,disabled:t=!1,onRefresh:n,children:r}){let i=(0,v.useRef)(!1),[a,o]=(0,v.useState)(!1),[s,c]=(0,v.useState)(``),[l,u]=(0,v.useState)(!1),d=async()=>{if(!(i.current||t)){i.current=!0,o(!0),c(``),u(!1);try{await n(),c(`Dashboard data refreshed`)}catch{u(!0),c(`Refresh failed. Previous data kept; try again.`)}finally{i.current=!1,o(!1)}}};return e?(0,G.jsxs)(BA,{handleOnly:!0,onRefresh:d,refreshing:a,disabled:t,ariaLabel:`Refresh dashboard data`,className:`overflow-visible bg-transparent cursor-default`,contentClassName:`min-h-0`,pullingLabel:`Pull to reload dashboard data`,refreshingLabel:`Reading dashboard data…`,children:[(0,G.jsxs)(`div`,{"data-refresh-handle":!0,className:`mb-4 flex flex-wrap items-center gap-2 rounded-xl border border-dashed border-border px-3 py-2 text-xs text-muted-foreground cursor-grab active:cursor-grabbing`,children:[(0,G.jsx)(uu,{className:`size-4 text-primary`}),(0,G.jsx)(`span`,{className:`flex-1`,children:t?`Resume the feed to refresh`:`Pull down here to refresh · read-only`}),(0,G.jsxs)(YD,{size:`sm`,variant:`ghost`,disabled:a||t,onClick:()=>void d(),children:[(0,G.jsx)(ed,{className:a?`animate-spin motion-reduce:animate-none`:``}),a?`Refreshing…`:`Refresh data`]})]}),s&&(0,G.jsx)(`p`,{role:l?`alert`:`status`,className:`mb-3 text-xs ${l?`text-destructive`:`text-muted-foreground`}`,children:s}),r]}):r}var HA=new Set;function UA(e,t){for(let n of HA)if(n!==e&&n(t))return!0;return!1}function WA(e){let t=e=>{e.preventDefault(),e.stopPropagation(),r()},n=t=>{t!==e&&r()};function r(){window.removeEventListener(`click`,t,!0),window.removeEventListener(`pointerdown`,n,!0),window.removeEventListener(`pointercancel`,n,!0),window.removeEventListener(`keydown`,r,!0)}window.addEventListener(`click`,t,!0),window.addEventListener(`pointerdown`,n,!0),window.addEventListener(`pointercancel`,n,!0),window.addEventListener(`keydown`,r,!0)}function GA(e,t,n,{behavior:r=`pass-through`,escape:i=!0,ignore:a}={}){(0,v.useEffect)(()=>{if(!e)return;let o=e=>!!n?.current?.contains(e)||!!a?.(e),s=e=>{i&&e.key===`Escape`&&t()},c=e=>{let n=e.target;n&&!o(n)&&(r===`consume`&&!UA(o,n)&&WA(e),t())};return HA.add(o),window.addEventListener(`keydown`,s),window.addEventListener(`pointerdown`,c,!0),()=>{HA.delete(o),window.removeEventListener(`keydown`,s),window.removeEventListener(`pointerdown`,c,!0)}},[e,t,n,r,i,a])}function KA(){let e=(0,v.useRef)(new Set);return(0,v.useMemo)(()=>({enter:t=>NA(t)?(e.current.delete(t.pointerId),!0):(e.current.add(t.pointerId),!1),leave:t=>!e.current.delete(t.pointerId)&&t.pointerType!==`touch`}),[])}function qA(){let e=(0,v.useRef)(null);return(0,v.useMemo)(()=>({start:(t,n)=>{e.current={pointerType:t.pointerType,state:n}},take:()=>{let t=e.current;return e.current=null,t},drop:()=>{e.current=null}}),[])}var JA={type:`spring`,stiffness:460,damping:34,mass:.62},YA={type:`spring`,stiffness:380,damping:32,mass:.7},XA={sm:`min-h-9 gap-1 p-1 text-xs`,md:`min-h-11 gap-1.5 p-1.5 text-sm`},ZA={sm:`h-7 min-w-7 px-1.5`,md:`h-8 min-w-8 px-2`},QA={sm:`h-3.5 w-3.5`,md:`h-4 w-4`};function $A({expanded:e,defaultExpanded:t,onExpandedChange:n}){let[r,i]=(0,v.useState)(t??!1),a=e!==void 0;return[e??r,(0,v.useCallback)(e=>{a||i(e),n?.(e)},[a,n])]}function ej({items:e,expanded:t,defaultExpanded:n=!1,onExpandedChange:r,activeId:i,onAction:a,size:o=`md`,expandOnHover:s=!0,expandOnFocus:c=!0,collapseDelay:l=90,className:u,classNames:d,renderItem:f}){let p=jD(),m=(0,v.useId)(),[h,g]=$A({expanded:t,defaultExpanded:n,onExpandedChange:r}),[_,y]=(0,v.useState)(null),[b,x]=(0,v.useState)(!1),S=(0,v.useRef)(null),C=(0,v.useRef)(null),w=qA(),T=KA(),E=(0,v.useCallback)(()=>{S.current&&window.clearTimeout(S.current),S.current=null},[]),D=(0,v.useCallback)(()=>{E(),g(!0)},[E,g]),O=(0,v.useCallback)(()=>{E();let e=window.setTimeout(()=>{g(!1),y(null),x(!1)},l);S.current=e},[E,l,g]);(0,v.useEffect)(()=>E,[E]);let k=(0,v.useRef)(h);(0,v.useEffect)(()=>{k.current&&!h&&x(!1),k.current=h},[h]),GA(b&&h,O,C,{behavior:`consume`});let A=e=>{T.enter(e)&&s&&D()},j=e=>{T.leave(e)&&(y(null),s&&O())},M=()=>{c&&D()},N=e=>{!e.currentTarget.contains(e.relatedTarget)&&c&&O()},P=i??e.find(e=>e.active)?.id,F=_??P;return(0,G.jsx)(Cte,{id:m,children:(0,G.jsx)(q.div,{layout:`size`,onPointerEnter:A,onPointerLeave:j,onFocus:M,onBlur:N,transition:JA,className:J(`inline-flex max-w-full`,d?.root,u),children:(0,G.jsx)(q.div,{ref:C,layout:`size`,className:J(`scrollbar-hide relative inline-flex max-w-full items-center overflow-x-auto overflow-y-hidden rounded-full border border-border bg-card/90 shadow-2xl backdrop-blur-xl`,XA[o],d?.track),transition:JA,children:e.map(e=>{let t=e.active||i===e.id,n=F===e.id;return(0,G.jsxs)(q.button,{layout:`position`,type:`button`,disabled:e.disabled,title:typeof e.label==`string`?e.label:void 0,"aria-label":typeof e.label==`string`?e.label:void 0,onPointerEnter:t=>{T.enter(t)&&(E(),y(e.id))},onPointerDown:e=>{w.start(e,h)},onPointerCancel:w.drop,onKeyDown:w.drop,onClick:t=>{t.detail>0&&t.currentTarget.blur();let n=w.take();if(n!==null&&n.pointerType!==`mouse`&&!n.state&&!b&&s){x(!0),D(),y(e.id);return}e.onClick?.(),a?.(e)},whileTap:p||e.disabled?void 0:{scale:.96},transition:JA,className:J(`relative isolate inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full font-medium text-muted-foreground outline-none transition-[color,background-color] duration-150 ease-out`,`focus-visible:text-foreground disabled:pointer-events-none disabled:opacity-40`,n&&`text-foreground`,ZA[o],d?.item,t&&d?.activeItem),children:[n?(0,G.jsx)(q.span,{layoutId:`action-bar-highlight`,className:`absolute inset-0 -z-10 rounded-full bg-primary/[0.07]`,transition:JA}):null,f?f(e,{expanded:h,active:t}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{className:J(`inline-flex shrink-0 items-center justify-center`,QA[o],d?.icon),children:e.icon}),(0,G.jsx)(q.span,{"aria-hidden":!h,animate:p?{width:h?`auto`:0,opacity:+!!h,marginLeft:h?8:0,x:0,filter:`blur(0px)`}:{width:h?`auto`:0,opacity:+!!h,x:h?0:-4,marginLeft:h?8:0,filter:h?`blur(0px)`:`blur(3px)`},transition:p?{duration:0}:YA,className:J(`inline-block overflow-hidden whitespace-nowrap`,d?.label),children:e.label}),e.shortcut?(0,G.jsx)(q.span,{"aria-hidden":!h,animate:{width:h?`auto`:0,opacity:+!!h,marginLeft:h?4:0},transition:YA,className:J(`hidden overflow-hidden whitespace-nowrap text-[10px] text-muted-foreground sm:inline-block`,d?.shortcut),children:e.shortcut}):null,e.badge?(0,G.jsx)(`span`,{className:J(`ml-0.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-destructive px-1 text-[10px] leading-none text-primary-foreground`,!h&&`absolute right-0.5 top-0.5`,d?.badge),children:e.badge}):null]})]},e.id)})})})})}function tj({paused:e,count:t,onPause:n,onExport:r,onClear:i,onDelete:a}){return(0,G.jsx)(`div`,{role:`group`,"aria-label":`Live Feed actions`,className:`max-w-full`,children:(0,G.jsx)(ej,{size:`sm`,classNames:{track:`rounded-xl shadow-none`,item:`rounded-lg focus-visible:ring-2 focus-visible:ring-ring`},items:[{id:`pause`,label:e?`Resume`:`Pause`,icon:e?(0,G.jsx)(Ku,{}):(0,G.jsx)(Ru,{}),active:e,onClick:n},{id:`csv`,label:`Export CSV`,icon:(0,G.jsx)(eu,{}),badge:t||void 0,onClick:()=>r(`csv`)},{id:`json`,label:`Export JSON`,icon:(0,G.jsx)(Ql,{}),badge:t||void 0,onClick:()=>r(`json`)},{id:`clear`,label:`Clear filters`,icon:(0,G.jsx)(bu,{}),onClick:i},{id:`delete`,label:`Delete selected`,icon:(0,G.jsx)(Hd,{}),badge:t||void 0,disabled:t===0,onClick:a}]})})}var nj={neutral:`border-border bg-card text-muted-foreground`,info:`border-primary/30 bg-primary/10 text-primary`,success:`border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400`,warning:`border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400`,danger:`border-destructive/30 bg-destructive/10 text-destructive`,loading:`border-primary/30 bg-primary/10 text-primary`},rj={sm:`h-6 gap-1.5 px-2 text-[11px]`,md:`h-8 gap-2 px-3 text-xs`},ij={sm:`h-3 w-3`,md:`h-3.5 w-3.5`},aj={neutral:wl,info:mu,success:cl,warning:Wd,danger:af,loading:Su},oj={initial:{opacity:.72,y:`80%`,scale:.92,rotate:-8,filter:`blur(6px)`},animate:{opacity:1,y:`0%`,scale:1,rotate:0,filter:`blur(0px)`,transition:{y:{type:`spring`,stiffness:210,damping:24,mass:.85},scale:{type:`spring`,stiffness:250,damping:24,mass:.75},rotate:{duration:.28,ease:BD},opacity:{duration:.28,ease:BD},filter:{duration:.42,ease:BD}}},exit:{opacity:.5,y:`-80%`,scale:.96,rotate:8,filter:`blur(6px)`,transition:{duration:.22,ease:BD}}},sj={initial:{opacity:.76,y:`85%`,filter:`blur(6px)`},animate:{opacity:1,y:`0%`,filter:`blur(0px)`,transition:{y:{type:`spring`,stiffness:210,damping:24,mass:.85},opacity:{duration:.3,ease:BD},filter:{duration:.42,ease:BD}}},exit:{opacity:.5,y:`-85%`,filter:`blur(6px)`,transition:{duration:.2,ease:BD}}};function cj({status:e=`neutral`,size:t=`md`,children:n,icon:r,showIcon:i=!0,pulse:a=e===`loading`,contentKey:o,className:s,...c}){let l=jD(),u=aj[e],d=o??(typeof n==`string`||typeof n==`number`?n:e);return(0,G.jsxs)(q.span,{layout:!l,transition:l?{duration:0}:{type:`spring`,stiffness:420,damping:30,mass:.7},className:J(`relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums`,`transition-colors duration-300`,nj[e],rj[t],s),...c,children:[a&&!l?(0,G.jsx)(q.span,{"aria-hidden":!0,className:`absolute inset-0 rounded-full bg-current opacity-10`,animate:{scale:[.94,1.08,.94],opacity:[.08,.16,.08]},transition:{duration:1.6,repeat:1/0,ease:`easeInOut`}}):null,i?(0,G.jsx)(`span`,{className:`relative z-10 inline-flex items-center justify-center overflow-hidden`,children:(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:(0,G.jsx)(q.span,{"aria-hidden":!0,"data-badge-icon":!0,variants:oj,initial:!l&&`initial`,animate:l?{opacity:1}:`animate`,exit:l?void 0:`exit`,className:`inline-flex will-change-transform`,children:e===`loading`&&!l&&!r?(0,G.jsx)(q.span,{animate:{rotate:360},transition:{duration:1,repeat:1/0,ease:`linear`},className:`inline-flex`,children:(0,G.jsx)(u,{className:ij[t]})}):r??(0,G.jsx)(u,{className:ij[t]})},e)})}):null,n==null?null:(0,G.jsx)(`span`,{className:`relative z-10 inline-flex overflow-hidden`,children:(0,G.jsx)(FE,{mode:`popLayout`,initial:!1,children:(0,G.jsx)(q.span,{"data-badge-label":!0,variants:sj,initial:!l&&`initial`,animate:l?{opacity:1}:`animate`,exit:l?void 0:`exit`,className:`inline-block will-change-transform`,children:n},d)})})]})}var lj={ascii:[`⠋`,`⠙`,`⠹`,`⠸`,`⠼`,`⠴`,`⠦`,`⠧`,`⠇`,`⠏`],"ascii-line":[`|`,`/`,`-`,`\\`],"ascii-braille":[`⣾`,`⣽`,`⣻`,`⢿`,`⡿`,`⣟`,`⣯`,`⣷`],"ascii-blocks":[`▁`,`▂`,`▃`,`▄`,`▅`,`▆`,`▇`,`█`,`▇`,`▆`,`▅`,`▄`,`▃`,`▂`],"ascii-bounce":[`⠁`,`⠂`,`⠄`,`⡀`,`⢀`,`⠠`,`⠐`,`⠈`]},uj={animate:{opacity:[1,.4,1]},transition:{duration:1.4,ease:VD,repeat:1/0}};function dj({variant:e=`spinner`,size:t=32,speed:n=1,label:r=`Loading`,className:i}){let a=jD()??!1;return(0,G.jsxs)(`span`,{role:`status`,"aria-label":r,className:J(`inline-flex items-center justify-center text-foreground`,i),children:[e===`spinner`&&(0,G.jsx)(fj,{size:t,speed:n,reduce:a}),e===`dots`&&(0,G.jsx)(pj,{size:t,speed:n,reduce:a}),e===`bars`&&(0,G.jsx)(Nj,{size:t,speed:n,reduce:a}),e===`dot-matrix`&&(0,G.jsx)(Pj,{size:t,speed:n,reduce:a}),e===`dither`&&(0,G.jsx)(vre,{size:t,speed:n,reduce:a}),lj[e]&&(0,G.jsx)(mj,{frames:lj[e],size:t,speed:n,reduce:a}),e===`morph`&&(0,G.jsx)(Sj,{size:t,speed:n,reduce:a}),e===`comet`&&(0,G.jsx)(wj,{size:t,speed:n,reduce:a}),e===`scramble`&&(0,G.jsx)(Dj,{size:t,speed:n,reduce:a}),e===`metaballs`&&(0,G.jsx)(Oj,{size:t,speed:n,reduce:a}),e===`newton`&&(0,G.jsx)(Aj,{size:t,speed:n,reduce:a}),e===`helix`&&(0,G.jsx)(jj,{size:t,speed:n,reduce:a}),e===`percent`&&(0,G.jsx)(Mj,{size:t,speed:n,reduce:a}),(0,G.jsx)(`span`,{className:`sr-only`,children:r})]})}function fj({size:e,speed:t,reduce:n}){let r=Math.max(2,e*.09),i=(e-r)/2;return(0,G.jsxs)(q.svg,{width:e,height:e,viewBox:`0 0 ${e} ${e}`,animate:n?uj.animate:{rotate:360},transition:n?uj.transition:{duration:t,ease:`linear`,repeat:1/0},children:[(0,G.jsx)(`circle`,{cx:e/2,cy:e/2,r:i,fill:`none`,stroke:`currentColor`,strokeOpacity:.2,strokeWidth:r}),(0,G.jsx)(`path`,{d:`M ${e/2} ${e/2-i} A ${i} ${i} 0 0 1 ${e/2+i} ${e/2}`,fill:`none`,stroke:`currentColor`,strokeWidth:r,strokeLinecap:`round`})]})}function pj({size:e,speed:t,reduce:n}){let r=e*.24;return(0,G.jsx)(`span`,{className:`flex items-center`,style:{gap:e*.14},children:[0,1,2].map(i=>(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:r},animate:n?{opacity:[.4,1,.4]}:{y:[0,-e*.3,0],opacity:[.5,1,.5]},transition:{duration:t,ease:VD,repeat:1/0,delay:i*t*.16}},i))})}function mj({frames:e,size:t,speed:n,reduce:r}){let[i,a]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let t=(r?n*2.5:n)/e.length*1e3,i=setInterval(()=>a(t=>(t+1)%e.length),t);return()=>clearInterval(i)},[e.length,n,r]),(0,G.jsx)(`span`,{className:`font-mono leading-none tabular-nums`,style:{fontSize:t,lineHeight:1},children:e[i%e.length]})}var hj=24;function gj(e,t,n=0){let r=2*Math.PI/t,i=((e-n)%r+r)%r-r/2;return Math.cos(Math.PI/t)/Math.cos(i)}function _j(e){let t=[];for(let n=0;n<hj;n++){let r=n/hj*2*Math.PI-Math.PI/2,i=Math.min(1.05,e(r)),a=(50+Math.cos(r)*46*i).toFixed(2),o=(50+Math.sin(r)*46*i).toFixed(2);t.push(`${n===0?`M`:`L`}${a} ${o}`)}return`${t.join(` `)} Z`}var vj=[_j(()=>1),_j(e=>gj(e,4,Math.PI/4)),_j(e=>gj(e,3)),_j(e=>gj(e,6)),_j(e=>gj(e,4))],yj=[...vj.flatMap(e=>[e,e]),vj[0]],bj=[0,0,72,72,144,144,216,216,288,288,360],xj=[1,1,.88,.88,1,1,.88,.88,1,1,1];function Sj({size:e,speed:t,reduce:n}){return(0,G.jsxs)(q.svg,{width:e,height:e,viewBox:`0 0 100 100`,role:`img`,animate:n?{opacity:[1,.4,1]}:{rotate:bj,scale:xj},transition:n?{duration:1.4,ease:VD,repeat:1/0}:{duration:t*5,ease:VD,repeat:1/0},children:[(0,G.jsx)(`title`,{children:`Loading`}),(0,G.jsx)(q.path,{fill:`currentColor`,d:vj[0],animate:n?void 0:{d:yj},transition:n?void 0:{duration:t*5,ease:VD,repeat:1/0}})]})}var Cj=[0,1,2,3,4,5];function wj({size:e,speed:t,reduce:n}){let r=e*.2,i=e/2-r/2;return(0,G.jsx)(`span`,{className:`relative`,style:{width:e,height:e},children:(0,G.jsx)(q.span,{className:`absolute inset-0`,animate:n?uj.animate:{rotate:360},transition:n?uj.transition:{duration:t,ease:`linear`,repeat:1/0},children:Cj.map(e=>{let t=1-e*.13,n=r*t;return(0,G.jsx)(`span`,{className:`absolute top-1/2 left-1/2 rounded-full bg-current`,style:{width:n,height:n,marginLeft:-n/2,marginTop:-n/2,opacity:1-e*.16,transform:`rotate(${-e*15}deg) translateY(${-i}px)`}},e)})})})}var Tj=`LOADING`,Ej=`ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<>/*#@`;function Dj({size:e,speed:t,reduce:n}){let[r,i]=(0,v.useState)(Tj);return(0,v.useEffect)(()=>{if(n){i(Tj);return}let e=0,r=setInterval(()=>{let t=e%11,n=``;for(let e=0;e<7;e++)n+=e<t?Tj[e]:Ej[Math.floor(Math.random()*42)];i(n),e++},t/7*1e3*.55);return()=>clearInterval(r)},[t,n]),(0,G.jsx)(`span`,{className:`font-mono font-medium tracking-[0.2em] tabular-nums`,style:{fontSize:e*.42},children:r})}function Oj({size:e,speed:t,reduce:n}){let r=(0,v.useId)().replace(/:/g,``);return(0,G.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 100 100`,role:`img`,children:[(0,G.jsx)(`title`,{children:`Loading`}),(0,G.jsx)(`defs`,{children:(0,G.jsxs)(`filter`,{id:r,children:[(0,G.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`5`,result:`b`}),(0,G.jsx)(`feColorMatrix`,{in:`b`,values:`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8`})]})}),(0,G.jsxs)(`g`,{filter:`url(#${r})`,fill:`currentColor`,children:[(0,G.jsx)(q.circle,{cy:`50`,r:`15`,animate:n?{opacity:[.4,1,.4]}:{cx:[30,70,30]},transition:{duration:t*1.6,ease:VD,repeat:1/0},cx:n?40:30}),(0,G.jsx)(q.circle,{cy:`50`,r:`15`,animate:n?{opacity:[.4,1,.4]}:{cx:[70,30,70]},transition:{duration:t*1.6,ease:VD,repeat:1/0},cx:n?60:70})]})]})}var kj=[0,1,2,3,4];function Aj({size:e,speed:t,reduce:n}){let r=e*.2,i=r*1.1,a={0:{x:[0,-i,0,0],times:[0,.28,.5,1]},4:{x:[0,0,i,0],times:[0,.5,.78,1]}};return(0,G.jsx)(`span`,{className:`flex items-center justify-center`,style:{height:r},children:kj.map(e=>{let i=a[e];return(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:r},animate:n||!i?void 0:{x:i.x},transition:n||!i?void 0:{duration:t*1.5,ease:VD,repeat:1/0,times:i.times}},e)})})}function jj({size:e,speed:t,reduce:n}){let r=e*.14,i=e*.32;return(0,G.jsx)(`span`,{className:`relative`,style:{width:e,height:e},children:Array.from({length:7},(a,o)=>{let s=o/6*(e-r),c=o/7*t;return(0,G.jsxs)(`span`,{children:[(0,G.jsx)(q.span,{className:`absolute rounded-full bg-current`,style:{width:r,height:r,left:e/2-r/2,top:s},animate:n?{opacity:[.4,1,.4]}:{x:[i,-i,i],scale:[1,.5,1],opacity:[1,.45,1]},transition:{duration:t,ease:VD,repeat:1/0,delay:c}}),(0,G.jsx)(q.span,{className:`absolute rounded-full bg-current`,style:{width:r,height:r,left:e/2-r/2,top:s},animate:n?{opacity:[.4,1,.4]}:{x:[-i,i,-i],scale:[.5,1,.5],opacity:[.45,1,.45]},transition:{duration:t,ease:VD,repeat:1/0,delay:c}})]},`row-${s}`)})})}function Mj({size:e,speed:t,reduce:n}){let[r,i]=(0,v.useState)(0);return(0,v.useEffect)(()=>{let e=(n?t*2:t)*1e3,r={t:0},a=setInterval(()=>{r.t+=40;let t=Math.min(100,Math.round(r.t/e*100));i(t),t>=100&&(r.t=0)},40);return()=>clearInterval(a)},[t,n]),(0,G.jsxs)(`span`,{className:`flex flex-col items-center`,style:{gap:e*.14,width:e*1.4},children:[(0,G.jsxs)(`span`,{className:`font-mono font-medium tabular-nums`,style:{fontSize:e*.42,lineHeight:1},children:[r,`%`]}),(0,G.jsx)(`span`,{className:`w-full overflow-hidden rounded-full bg-current/15`,style:{height:Math.max(3,e*.1)},children:(0,G.jsx)(`span`,{className:`block h-full rounded-full bg-current`,style:{width:`${r}%`}})})]})}function Nj({size:e,speed:t,reduce:n}){let r=e*.16;return(0,G.jsx)(`span`,{className:`flex items-center`,style:{gap:e*.1,height:e},children:[0,1,2,3].map(i=>(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:r,height:e,originY:1},animate:n?{opacity:[.4,1,.4]}:{scaleY:[.3,1,.3]},transition:{duration:t,ease:VD,repeat:1/0,delay:i*t*.12}},i))})}function Pj({size:e,speed:t,reduce:n}){let r=e*.14,i=(e-r*2)/3,a=Array.from({length:9},(e,t)=>t);return(0,G.jsx)(`span`,{className:`grid`,style:{gap:r,gridTemplateColumns:`repeat(3, ${i}px)`},children:a.map(e=>{let r=(e%3+Math.floor(e/3))/4*t;return(0,G.jsx)(q.span,{className:`rounded-full bg-current`,style:{width:i,height:i},animate:n?{opacity:[.3,1,.3]}:{opacity:[.2,1,.2],scale:[.7,1,.7]},transition:{duration:t,ease:VD,repeat:1/0,delay:r}},e)})})}var Fj=[0,8,2,10,12,4,14,6,3,11,1,9,15,7,13,5];function vre({size:e,speed:t,reduce:n}){let r=Math.max(1,e*.05),i=(e-r*3)/4;return(0,G.jsx)(`span`,{className:`grid`,style:{gap:r,gridTemplateColumns:`repeat(4, ${i}px)`},children:Fj.map((e,r)=>(0,G.jsx)(q.span,{className:`bg-current`,style:{width:i,height:i},animate:n?{opacity:[.3,1,.3]}:{opacity:[.1,1,.1]},transition:{duration:t,ease:VD,repeat:1/0,delay:e/Fj.length*t}},r))})}var yre=q_(`relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current`}},defaultVariants:{variant:`default`}});function bre({className:e,variant:t,...n}){return(0,G.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:K(yre({variant:t}),e),...n})}function xre({className:e,...t}){return(0,G.jsx)(`div`,{"data-slot":`alert-description`,className:K(`col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed`,e),...t})}var Ij=q_(`inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] 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 [&>svg]:pointer-events-none [&>svg]:size-3`,{variants:{variant:{default:`bg-primary text-primary-foreground [a&]:hover:bg-primary/90`,secondary:`bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90`,destructive:`bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90`,outline:`border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,ghost:`[a&]:hover:bg-accent [a&]:hover:text-accent-foreground`,link:`text-primary underline-offset-4 [a&]:hover:underline`}},defaultVariants:{variant:`default`}});function Lj({className:e,variant:t=`default`,asChild:n=!1,...r}){return n?(0,G.jsx)(mf,{className:K(Ij({variant:t}),e),...r}):(0,G.jsx)(cj,{status:t===`destructive`?`danger`:t==="default"?`info`:`neutral`,size:`sm`,showIcon:!1,"data-slot":`badge`,"data-variant":t,className:K(Ij({variant:t}),e),...r})}var Rj={duration:0},Sre={type:`spring`,duration:.4,bounce:.3},Cre={hidden:{},show:{transition:{staggerChildren:.035,delayChildren:.05}}},wre={hidden:{opacity:0,y:-6,filter:`blur(3px)`},show:{opacity:1,y:0,filter:`blur(0px)`}},zj=(0,v.createContext)(null);function Bj(e){let t=(0,v.useContext)(zj);if(!t)throw Error(`${e} must be used within <Select>`);return t}function Tre({value:e,defaultValue:t,onValueChange:n,open:r,defaultOpen:i=!1,onOpenChange:a,disabled:o=!1,className:s,children:c}){let l=jD()??!1,u=(0,v.useId)(),d=(0,v.useRef)(null),f=(0,v.useRef)(null),p=(0,v.useRef)(null),[m,h]=(0,v.useState)(`${u}-trigger`),[g,_]=(0,v.useState)(i),[y,b]=(0,v.useState)(t),[x,S]=(0,v.useState)(new Map),[C,w]=(0,v.useState)(`bottom`),T=e!==void 0,E=T?e:y,D=r!==void 0,O=!o&&(D?r:g),k=(0,v.useCallback)(e=>{D||_(e),a?.(e)},[a,D]),A=(0,v.useCallback)(e=>{T||b(e),n?.(e),k(!1),f.current?.focus({preventScroll:!0})},[T,n,k]),j=(0,v.useCallback)((e,t)=>{S(n=>n.get(e)===t?n:new Map(n).set(e,t))},[]),M=(0,v.useCallback)(e=>{S(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]);(0,v.useEffect)(()=>{if(!O)return;let e=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),k(!1),f.current?.focus())},t=e=>{d.current&&!d.current.contains(e.target)&&!p.current?.contains(e.target)&&k(!1)};return window.addEventListener(`keydown`,e,!0),window.addEventListener(`pointerdown`,t),()=>{window.removeEventListener(`keydown`,e,!0),window.removeEventListener(`pointerdown`,t)}},[O,k]);let N=(0,v.useMemo)(()=>({value:E,open:O,setOpen:k,select:A,register:j,unregister:M,labelFor:e=>e===void 0?void 0:x.get(e),reduce:l,triggerId:m,setTriggerId:h,triggerRef:f,contentRef:p,listId:`${u}-list`,disabled:o,placement:C,setPlacement:w}),[E,O,k,A,j,M,x,l,u,m,o,C]);return(0,G.jsx)(zj.Provider,{value:N,children:(0,G.jsx)(`div`,{ref:d,className:J(`relative`,s),children:c})})}function Ere({className:e,children:t,id:n,onClick:r,onKeyDown:i,ref:a,...o}){let s=Bj(`SelectTrigger`);(0,v.useLayoutEffect)(()=>{n&&s.setTriggerId(n)},[n,s.setTriggerId]);let c=s.placement===`top`,l=s.open?[0,0,12]:[12,0,12],u=s.reduce?{duration:0}:s.open?{duration:.6,times:[0,.4,1],ease:BD}:{duration:.42,times:[0,.5,1],ease:BD};return(0,G.jsxs)(q.button,{...o,ref:e=>{s.triggerRef.current=e,typeof a==`function`?a(e):a&&(a.current=e)},role:`combobox`,type:`button`,id:s.triggerId,disabled:s.disabled,"aria-haspopup":`listbox`,"aria-expanded":s.open,"aria-controls":s.listId,onClick:e=>{r?.(e),e.defaultPrevented||s.setOpen(!s.open)},onKeyDown:e=>{i?.(e),!e.defaultPrevented&&[`ArrowDown`,`ArrowUp`,`Home`,`End`].includes(e.key)&&(e.preventDefault(),s.setOpen(!0))},initial:!1,animate:{borderTopLeftRadius:c?l:12,borderTopRightRadius:c?l:12,borderBottomLeftRadius:c?12:l,borderBottomRightRadius:c?12:l},transition:{borderTopLeftRadius:c?u:Rj,borderTopRightRadius:c?u:Rj,borderBottomLeftRadius:c?Rj:u,borderBottomRightRadius:c?Rj:u},className:J(`relative z-10 flex w-full items-center justify-between gap-2 rounded-xl border border-border bg-background px-3 py-2 text-sm text-foreground outline-none transition-colors`,`hover:border-(--color-border-strong) focus-visible:ring-2 focus-visible:ring-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`,e),children:[t,(0,G.jsx)(q.span,{"aria-hidden":!0,animate:{rotate:s.open?180:0},transition:s.reduce?{duration:0}:Sre,className:`text-muted-foreground`,children:(0,G.jsx)(ul,{className:`h-4 w-4`})})]})}function Vj({placeholder:e,className:t,children:n}){let r=Bj(`SelectValue`),i=r.labelFor(r.value);return(0,G.jsx)(`span`,{className:J(i?`text-foreground`:`text-muted-foreground`,t),children:n??i??e??`Select`})}function Dre({className:e,children:t}){let n=Bj(`SelectContent`),r=(0,v.useRef)(null),[i,a]=(0,v.useState)(0),o=n.open,{setPlacement:s}=n,[c,l]=(0,v.useState)({left:0,top:0,width:0,maxHeight:300}),u=(0,v.useRef)({text:``,at:0}),[d,f]=(0,v.useState)(null);(0,v.useLayoutEffect)(()=>{f(n.triggerRef.current?.closest(`[role="dialog"], [role="alertdialog"]`)??document.body)},[n.triggerRef]),(0,v.useLayoutEffect)(()=>{let e=r.current;if(!e)return;let t=()=>a(e.offsetHeight);t();let n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()},[d]),(0,v.useLayoutEffect)(()=>{if(!o)return;let e=n.triggerRef.current,t=r.current;if(!e||!t)return;let i=()=>{let n=e.getBoundingClientRect(),r=d===document.body?null:d,i=r?.getBoundingClientRect(),a=Math.min(window.innerHeight,i?.bottom??window.innerHeight)-n.bottom,o=n.top-Math.max(0,i?.top??0),c=Math.max(8,(i?.left??0)+8),u=Math.min(window.innerWidth-8,(i?.right??window.innerWidth)-8),f=Math.max(0,u-c);t.style.maxWidth=`${f}px`,t.style.minWidth=`${Math.min(n.width,f)}px`;let p=Math.min(f,Math.max(n.width,t.offsetWidth+2)),m=a<Math.min(t.offsetHeight,300)+16&&o>a;s(m?`top`:`bottom`),l({left:Math.max(c,Math.min(n.left,u-p))-(i?.left??0)+(r?.scrollLeft??0),top:r?(m?n.top:n.bottom)-(i?.top??0)+r.scrollTop:m?window.innerHeight-n.top:n.bottom,width:p,maxHeight:Math.max(60,Math.min(300,(m?o:a)-24))})};i(),(t.querySelector(`[role="option"][aria-selected="true"]:not(:disabled)`)??t.querySelector(`[role="option"]:not(:disabled)`))?.focus({preventScroll:!0});let a=new ResizeObserver(i);return a.observe(t),window.addEventListener(`resize`,i),window.addEventListener(`scroll`,i,!0),()=>{a.disconnect(),window.removeEventListener(`resize`,i),window.removeEventListener(`scroll`,i,!0)}},[o,n.triggerRef,s,d]);let p=n.placement===`top`,m=o?8:0,h=o?12:0,g=o?{type:`spring`,duration:.6,bounce:.5,delay:.12}:{type:`spring`,duration:.3,bounce:.1},_=o?{duration:.3,ease:BD,delay:.14}:{duration:.16,ease:BD};if(!d)return null;let y=d!==document.body;return(0,kf.createPortal)((0,G.jsx)(q.div,{ref:n.contentRef,id:n.listId,role:`listbox`,"aria-labelledby":n.triggerId,"aria-hidden":!o,inert:!o,onKeyDown:e=>{let t=Array.from(e.currentTarget.querySelectorAll(`[role="option"]:not(:disabled)`)),r=t.indexOf(document.activeElement);if(e.key===`Tab`){n.setOpen(!1),n.triggerRef.current?.focus();return}let i;if(e.key===`ArrowDown`)i=t[(r+1)%t.length];else if(e.key===`ArrowUp`)i=t[(r-1+t.length)%t.length];else if(e.key===`Home`)i=t[0];else if(e.key===`End`)i=t.at(-1);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&e.key!==` `){let n=Date.now();u.current={text:(n-u.current.at<700?u.current.text:``)+e.key.toLowerCase(),at:n},i=t.find(e=>e.textContent?.trim().toLowerCase().startsWith(u.current.text))}i&&(e.preventDefault(),i.focus())},initial:!1,animate:n.reduce?{opacity:+!!o,height:o?i:0}:{opacity:+!!o,height:o?i:0,marginTop:p?0:m,marginBottom:p?m:0,borderTopLeftRadius:p?12:h,borderTopRightRadius:p?12:h,borderBottomLeftRadius:p?h:12,borderBottomRightRadius:p?h:12},transition:n.reduce?{duration:.12}:{opacity:o?{duration:.18}:{duration:.16,delay:.12},height:o?{type:`spring`,duration:.42,bounce:.14}:{duration:.26,ease:BD,delay:.14},marginTop:p?Rj:g,marginBottom:p?g:Rj,borderTopLeftRadius:p?Rj:_,borderTopRightRadius:p?Rj:_,borderBottomLeftRadius:p?_:Rj,borderBottomRightRadius:p?_:Rj},style:{position:y?`absolute`:`fixed`,left:c.left,width:c.width,zIndex:80,top:y||!p?c.top:`auto`,bottom:!y&&p?c.top:`auto`,translate:y&&p?`0 -100%`:void 0,transformOrigin:p?`bottom`:`top`,overflow:`hidden`,pointerEvents:o?`auto`:`none`},className:J(`rounded-xl border border-border bg-popover text-popover-foreground shadow-xl`,e),children:(0,G.jsx)(q.div,{ref:r,variants:n.reduce?void 0:Cre,initial:!1,animate:o?`show`:`hidden`,className:`grid w-max gap-1.5 overflow-y-auto overscroll-contain p-1.5`,style:{maxHeight:c.maxHeight},children:t})}),d)}function Hj({value:e,disabled:t=!1,className:n,children:r,textValue:i}){let a=Bj(`SelectItem`),o=a.value===e,s=i??r;return(0,v.useLayoutEffect)(()=>(a.register(e,s),()=>a.unregister(e)),[a.register,a.unregister,e,s]),(0,G.jsx)(q.div,{role:`presentation`,variants:a.reduce?void 0:wre,children:(0,G.jsxs)(`button`,{type:`button`,role:`option`,"aria-selected":o,disabled:t,onClick:()=>a.select(e),className:J(`flex min-h-9 w-full items-center justify-between gap-3 rounded-lg border px-3 py-2 text-left text-[13px] leading-5 outline-none transition-colors duration-150`,o?`border-primary/25 bg-primary/12 text-foreground`:`border-transparent text-foreground/80`,`hover:border-primary/45 hover:bg-primary/25 hover:text-foreground focus-visible:border-primary/60 focus-visible:bg-primary/25 focus-visible:text-foreground`,`disabled:pointer-events-none disabled:opacity-50`,n),children:[(0,G.jsx)(`span`,{className:`min-w-0 whitespace-normal [overflow-wrap:anywhere]`,children:r}),(0,G.jsx)(cl,{"aria-hidden":`true`,className:J(`h-3.5 w-3.5 shrink-0`,!o&&`invisible`)})]})})}function Uj(e){return(0,G.jsx)(Tre,{...e})}function Wj({className:e,size:t=`default`,...n}){return(0,G.jsx)(Ere,{...n,"data-slot":`select-trigger`,"data-size":t,className:K(`min-w-0 shadow-xs`,t===`sm`?`h-8`:`h-9`,e)})}function Gj({position:e,align:t,...n}){return(0,G.jsx)(Dre,{...n})}var Ore={default:`default`,secondary:`secondary`,error:`destructive`,success:`ghost`,warning:`ghost`,accent:`ghost`},kre={default:``,secondary:``,error:``,success:`bg-success text-white hover:bg-success/90`,warning:`bg-warning text-white hover:bg-warning/90`,accent:`bg-brand text-brand-foreground hover:bg-brand/90`},Are={default:`border bg-transparent text-foreground hover:bg-accent`,secondary:`border bg-transparent text-muted-foreground hover:bg-accent`,error:`border border-destructive/40 bg-transparent text-destructive hover:bg-destructive/10`,success:`border border-success/40 bg-transparent text-success hover:bg-success/10`,warning:`border border-warning/40 bg-transparent text-warning hover:bg-warning/10`,accent:`border border-brand/40 bg-transparent text-brand hover:bg-brand/10`};function Z({type:e=`default`,size:t=`md`,ghost:n=!1,loading:r=!1,icon:i,className:a,children:o,disabled:s,...c}){return(0,G.jsxs)(YD,{type:`button`,variant:n?`ghost`:Ore[e],size:t===`sm`?`sm`:`default`,className:K(n?Are[e]:kre[e],a),disabled:s||r,...c,children:[r?(0,G.jsx)(Yj,{small:!0}):i,o!=null&&(0,G.jsx)(`span`,{className:`inline-flex items-center gap-1.5`,children:o})]})}var jre={default:``,secondary:`text-muted-foreground`,success:`border-success/40 text-success`,warning:`border-warning/40 text-warning`,error:`border-destructive/40 text-destructive`,accent:`border-brand/40 text-brand`};function Kj({type:e=`default`,label:t,children:n,className:r}){let i=t===!1?null:t??e;return(0,G.jsx)(bre,{role:`note`,className:K(jre[e],r),children:(0,G.jsxs)(xre,{className:`text-current`,children:[i!=null&&(0,G.jsxs)(`b`,{className:`font-semibold`,children:[i,`:`]}),` `,n]})})}var Mre={default:`default`,secondary:`secondary`,error:`destructive`,success:`outline`,warning:`outline`,accent:`outline`},Nre={default:``,secondary:``,error:``,success:`border-success/40 text-success`,warning:`border-warning/40 text-warning`,accent:`border-brand/40 text-brand`};function qj({type:e=`default`,children:t,className:n}){return(0,G.jsx)(Lj,{variant:Mre[e],className:K(`font-mono`,Nre[e],n),children:t})}var Pre={default:`bg-muted-foreground`,secondary:`bg-muted-foreground/60`,success:`bg-success`,warning:`bg-warning`,error:`bg-destructive`,accent:`bg-brand`};function Jj({type:e=`default`,pulse:t=!1,color:n,className:r}){return(0,G.jsx)(`span`,{className:K(`inline-block size-2 shrink-0 rounded-full`,!n&&Pre[e],t&&`animate-pulse`,r),style:n?{background:n}:void 0})}function Yj({small:e=!1}){return(0,G.jsx)(dj,{variant:`spinner`,size:e?12:16,label:`Loading`,className:`text-current`})}function Xj({className:e,...t}){return(0,G.jsx)(Ok,{className:K(`font-mono`,e),...t})}var Zj=`\0empty`,Qj=e=>e===``?Zj:e,Fre=e=>e===Zj?``:e;function $j({value:e,onValueChange:t,options:n,placeholder:r,className:i,disabled:a,size:o=`md`,"aria-label":s}){return(0,G.jsxs)(Uj,{value:Qj(e),onValueChange:e=>t(Fre(e)),disabled:a,children:[(0,G.jsx)(Wj,{size:o===`sm`?`sm`:`default`,"aria-label":s,className:K(`font-mono`,i),children:(0,G.jsx)(Vj,{placeholder:r})}),(0,G.jsx)(Gj,{children:n.map(e=>(0,G.jsx)(Hj,{value:Qj(e.value),className:`font-mono`,children:e.label},e.value))})]})}function eM({children:e,className:t,hoverable:n=!1}){return(0,G.jsx)(XO,{className:K(`gap-0 py-0`,n&&`transition-colors hover:border-brand/40`,t),children:e})}function Ire(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)(``),[m,h]=(0,v.useState)(null),[g,_]=(0,v.useState)(null),[y,b]=(0,v.useState)(``),[x,S]=(0,v.useState)({show_sensitive:!1,verbose:!1,compact:!1,terse:!1}),C=(0,v.useRef)(null),w=(0,v.useCallback)(()=>{U(`/api/backups`).then(e=>{t(e),p(t=>t||e.devices[0]||``)}).catch(()=>t({dir:``,devices:[],backups:[]}))},[]);(0,v.useEffect)(()=>w(),[w]);let T=(e,t)=>_c(e,t).catch(()=>({error:`request failed`})),E=async()=>{a(!0),r(`Capturing /export…`);let e=await _c(`/api/backups/create`,{device:f||void 0,label:y.trim()||void 0,show_sensitive:x.show_sensitive,verbose:x.verbose,compact:!x.verbose&&x.compact,terse:x.terse}).catch(()=>({error:`request failed`}));a(!1),r(e.ok?`Created ${e.name} (${e.bytes} bytes)`:`Create failed: ${e.error}`),e.ok?(Y.success(`Backup created`),w()):Y.error(`Create failed: ${e.error}`)},D=e=>S(t=>({...t,[e]:!t[e]})),O=async e=>{let t=await e.text(),n=await T(`/api/backups/upload`,{name:e.name,content:t});r(n.ok?`Uploaded ${n.name}`:`Upload failed: ${n.error}`),n.ok?(Y.success(`Backup uploaded`),w()):Y.error(`Upload failed: ${n.error}`)},k=async e=>{s(null);let t=await T(`/api/backups/delete`,{name:e});r(t.ok?`Deleted ${e}`:`Delete failed: ${t.error}`),t.ok?(Y.success(`Backup deleted`),w()):Y.error(`Delete failed: ${t.error}`)},A=async()=>{if(!u)return;let{name:e,value:t}=u;if(d(null),!t||t===e)return;let n=await T(`/api/backups/rename`,{name:e,new_name:t});r(n.ok?`Renamed to ${n.name}`:`Rename failed: ${n.error}`),n.ok?(Y.success(`Backup renamed`),w()):Y.error(`Rename failed: ${n.error}`)},j=async e=>{if(!c)return;a(!0),r(e?`Restoring in Safe Mode…`:`Dry-run restore in Safe Mode…`);let t=await _c(`/api/backups/restore`,{name:c,device:f||void 0,confirm:e}).catch(()=>({ok:!1,message:`request failed`}));a(!1),r(t.ok?t.committed?`Restored ${c} → ${f}: ${t.message}`:`Dry-run OK (${t.applied} cmds, rolled back). Click “Restore (commit)” to apply for real.`:`Restore failed: ${t.message}`),t.ok?Y.success(t.committed?`Backup restored`:`Dry-run restore OK`):Y.error(`Restore failed: ${t.message}`),t.ok&&e&&l(null)},M=e=>{U(`/api/backups/get?name=${encodeURIComponent(e)}`).then(h).catch(()=>{})},N=async()=>{if(g===null)return;let t=g.trim();if(!t||t===e?.dir){_(null);return}a(!0);let n=await _c(`/api/backups/dir`,{dir:t}).catch(()=>({error:`request failed`}));a(!1),_(null),n.ok?(r(n.persisted?`Backup path saved → ${n.dir}`:n.warning??`Path applied → ${n.dir}`),Y.success(`Backup directory updated`)):(r(`Path change failed: ${n.error}`),Y.error(`Path change failed: ${n.error}`)),n.ok&&w()};if(!e)return(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading backups…`});let P=e.devices.length===0?[{value:``,label:`no devices`}]:e.devices.map(e=>({value:e,label:e}));return(0,G.jsxs)(`section`,{className:`grid content-start gap-[18px]`,children:[(0,G.jsxs)(X,{title:`Local backup vault`,className:`reveal`,extra:g===null?(0,G.jsxs)(`span`,{className:`inline-flex max-w-[min(60vw,520px)] items-center gap-2 text-muted-foreground text-[11px]`,children:[(0,G.jsx)(`span`,{className:`truncate`,title:e.dir,children:e.dir}),(0,G.jsxs)(`button`,{type:`button`,className:`inline-flex items-center gap-1 whitespace-nowrap text-brand hover:underline`,title:`Change backup directory`,onClick:()=>_(e.dir),children:[(0,G.jsx)(Bu,{className:`size-3`}),` edit path`]})]}):(0,G.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,G.jsx)(Xj,{className:`w-[min(48vw,380px)] text-xs`,value:g,autoFocus:!0,spellCheck:!1,placeholder:`~/.mikrotik-mcp/backups`,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&N(),e.key===`Escape`&&_(null)}}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>void N(),disabled:i,children:`Save path`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>_(null),children:`Cancel`})]}),children:[n&&(0,G.jsx)(`div`,{className:`mb-3 font-mono text-xs text-muted-foreground`,children:n}),(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2`,children:[(0,G.jsx)($j,{value:f,onValueChange:p,"aria-label":`Device`,options:P}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,icon:(0,G.jsx)(Ju,{}),onClick:()=>void E(),disabled:i||!f,children:`Create backup`}),(0,G.jsx)(Z,{size:`sm`,icon:(0,G.jsx)(Xd,{}),onClick:()=>C.current?.click(),children:`Upload .rsc`}),(0,G.jsx)(`input`,{ref:C,type:`file`,accept:`.rsc,text/plain`,className:`hidden`,onChange:e=>{let t=e.target.files?.[0];t&&O(t),e.currentTarget.value=``}}),(0,G.jsx)(Z,{size:`sm`,icon:(0,G.jsx)(ed,{}),onClick:w,children:`Refresh`})]}),(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`max-w-[200px] text-xs`,value:y,spellCheck:!1,placeholder:`label (optional), e.g. pre-upgrade`,onChange:e=>b(e.target.value)}),[[`show_sensitive`,`show-sensitive`,`Include secrets (keys/passwords)`],[`verbose`,`verbose`,`Include every parameter, even defaults`],[`compact`,`compact`,`Only non-default values (ignored if verbose)`],[`terse`,`terse`,`One machine-readable line per item`]].map(([e,t,n])=>{let r=e===`compact`&&x.verbose;return(0,G.jsxs)(`label`,{className:K(`inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-2.5 py-1.5 font-mono text-[11px] select-none`,x[e]?`border-brand/55 bg-brand/10 text-foreground`:`border-border bg-muted/40 text-muted-foreground`,r&&`cursor-not-allowed opacity-45`),title:n,children:[(0,G.jsx)(`input`,{type:`checkbox`,className:`accent-brand`,checked:x[e],disabled:r,onChange:()=>D(e)}),t]},e)})]}),c&&(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-md border border-warning/45 bg-warning/10 px-3 py-2.5 text-xs`,children:[(0,G.jsxs)(`strong`,{children:[`Restore `,c]}),` onto`,` `,(0,G.jsx)($j,{value:f,onValueChange:p,size:`sm`,"aria-label":`Restore target device`,options:e.devices.map(e=>({value:e,label:e}))}),` `,`via Safe Mode (auto-reverts on lock-out).`,(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>void j(!1),disabled:i,children:`Dry-run`}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>void j(!0),disabled:i,children:`Restore (commit)`}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,onClick:()=>l(null),children:`Cancel`})]}),e.backups.length===0?(0,G.jsx)(`div`,{className:`p-3 text-muted-foreground text-[11px]`,children:"No backups yet. Click “Create backup” to capture this device’s config, or upload a `.rsc`."}):(0,G.jsx)(`div`,{className:`max-h-[60vh] overflow-auto rounded-lg border border-border`,children:(0,G.jsxs)(WO,{className:`min-w-[980px] table-fixed`,children:[(0,G.jsx)(GO,{className:`bg-card sticky top-0 z-10`,children:(0,G.jsxs)(qO,{children:[(0,G.jsx)(JO,{children:`name`}),(0,G.jsx)(JO,{className:`w-[130px]`,children:`device`}),(0,G.jsx)(JO,{className:`w-[90px] text-right`,children:`size`}),(0,G.jsx)(JO,{className:`w-[170px]`,children:`captured`}),(0,G.jsx)(JO,{className:`w-[380px]`,children:`actions`})]})}),(0,G.jsx)(KO,{children:e.backups.map(e=>(0,G.jsxs)(qO,{"data-state":m?.name===e.name?`selected`:void 0,children:[(0,G.jsx)(YO,{className:`truncate font-mono`,title:e.name,children:e.name}),(0,G.jsx)(YO,{className:`truncate`,children:e.device??`—`}),(0,G.jsx)(YO,{className:`text-right tabular-nums`,children:Vk(e.bytes)}),(0,G.jsx)(YO,{className:`tabular-nums whitespace-nowrap`,children:new Date(e.modified).toLocaleString(void 0,{hour12:!1})}),(0,G.jsx)(YO,{onClick:e=>e.stopPropagation(),children:(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(Z,{size:`sm`,onClick:()=>M(e.name),children:`view`}),(0,G.jsx)(`a`,{className:`inline-flex items-center rounded-md border border-border px-2 py-1 text-xs hover:bg-accent`,href:gc(`/api/backups/raw?name=${encodeURIComponent(e.name)}`),download:e.name,title:`Download`,children:(0,G.jsx)(Hl,{className:`size-3.5`})}),u?.name===e.name?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Xj,{className:`inline-block w-[120px] text-xs`,value:u.value,autoFocus:!0,onChange:t=>d({name:e.name,value:t.target.value}),onKeyDown:e=>e.key===`Enter`&&void A()}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,icon:(0,G.jsx)(cl,{}),onClick:()=>void A()}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,icon:(0,G.jsx)(af,{}),onClick:()=>d(null)})]}):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{size:`sm`,onClick:()=>d({name:e.name,value:e.name}),children:`rename`}),(0,G.jsx)(Z,{type:`accent`,size:`sm`,onClick:()=>l(e.name),children:`restore`})]}),o===e.name?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{type:`error`,size:`sm`,ghost:!0,icon:(0,G.jsx)(cl,{}),onClick:()=>void k(e.name)}),(0,G.jsx)(Z,{type:`secondary`,size:`sm`,ghost:!0,icon:(0,G.jsx)(af,{}),onClick:()=>s(null)})]}):(0,G.jsx)(Z,{type:`error`,size:`sm`,ghost:!0,icon:(0,G.jsx)(Hd,{}),onClick:()=>s(e.name)})]})})]},e.name))})]})})]}),m&&(0,G.jsx)(X,{title:`Backup · ${m.name}`,className:`reveal`,extra:(0,G.jsx)(Z,{type:`secondary`,size:`sm`,icon:(0,G.jsx)(af,{}),onClick:()=>h(null),children:`Close`}),children:(0,G.jsx)(`pre`,{className:`m-0 overflow-auto rounded border border-border bg-background p-3 font-mono text-xs break-words whitespace-pre-wrap`,style:{maxHeight:460},children:m.content||`(empty)`})})]})}var tM=`http://www.w3.org/2000/svg`,nM=864e5,rM=e=>new Date(e).toISOString().slice(0,10);function iM(){let e=new Date;return Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}function Lre(e){return new Date(`${e}T00:00:00Z`).toLocaleDateString(void 0,{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`})}function aM({endpoint:e,days:t=90}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!0);(0,v.useEffect)(()=>{let t=!0;return a(!0),U(e).then(e=>{t&&r(e)}).catch(()=>{t&&r(null)}).finally(()=>{t&&a(!1)}),()=>{t=!1}},[e]);let o=(0,v.useMemo)(()=>{let e=new Map((n?.series??[]).map(e=>[e.day,e])),r=iM(),i=[];for(let n=t-1;n>=0;n--){let t=rM(r-n*nM),a=e.get(t);i.push(a??{day:t,rx:0,tx:0})}return i},[n,t]);if(i)return(0,G.jsx)(`div`,{className:`px-1 py-4 text-[12.5px] text-muted-foreground`,children:`loading usage…`});if(!((n?.totalRx??0)+(n?.totalTx??0)>0))return(0,G.jsx)(`div`,{className:`px-1 py-4 text-[12.5px] text-muted-foreground`,children:`No usage recorded yet. The dashboard samples on a configurable interval (1 minute by default — see the RADIUS & UM Settings tab); history fills in over time (kept ~3 months).`});let s=Math.max(1,...o.flatMap(e=>[e.rx,e.tx])),c=e=>8+e*624/Math.max(1,o.length-1),l=e=>142-e/s*134,u=e=>o.map((t,n)=>`${c(n).toFixed(1)},${l(e(t)).toFixed(1)}`).join(` `),d=e=>{let t=c(0).toFixed(1),n=c(o.length-1).toFixed(1);return`${t},${142 .toFixed(1)} ${u(e)} ${n},${142 .toFixed(1)}`};return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-1.5 flex items-baseline gap-3.5 text-xs tabular-nums`,children:[(0,G.jsxs)(`span`,{className:`font-semibold text-chart-3`,children:[`↓ `,Vk(n?.totalRx??0),` down`]}),(0,G.jsxs)(`span`,{className:`font-semibold text-chart-4`,children:[`↑ `,Vk(n?.totalTx??0),` up`]}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`· peak/day `,Vk(s),` · last `,t,` days`]})]}),(0,G.jsxs)(`svg`,{className:`block h-40 w-full rounded-md border border-border bg-card`,viewBox:`0 0 640 150`,preserveAspectRatio:`none`,xmlns:tM,role:`img`,children:[(0,G.jsx)(`polygon`,{className:`fill-chart-3/20`,points:d(e=>e.rx)}),(0,G.jsx)(`polygon`,{className:`fill-chart-4/15`,points:d(e=>e.tx)}),(0,G.jsx)(`polyline`,{className:`fill-none stroke-chart-3 stroke-2 [vector-effect:non-scaling-stroke]`,points:u(e=>e.rx)}),(0,G.jsx)(`polyline`,{className:`fill-none stroke-chart-4 stroke-2 [vector-effect:non-scaling-stroke]`,points:u(e=>e.tx)})]})]})}var oM=12,Rre=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],sM=[`var(--muted)`,`color-mix(in srgb, var(--chart-3) 30%, var(--muted))`,`color-mix(in srgb, var(--chart-3) 50%, var(--muted))`,`color-mix(in srgb, var(--chart-3) 72%, transparent)`,`var(--chart-3)`];function cM({endpoint:e,label:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),o=(0,v.useRef)(null);(0,v.useEffect)(()=>{let t=!0;return U(e).then(e=>{t&&r(e)}).catch(()=>{t&&r({days:[],total:0,max:0})}),()=>{t=!1}},[e]);let{cells:s,monthLabels:c}=(0,v.useMemo)(()=>{let e=new Map((n?.days??[]).map(e=>[e.day,e.count])),t=iM(),r=t-(new Date(t).getUTCDay()+364)*nM,i=[],a=[],o=-1;for(let n=0;n<371;n++){let s=r+n*nM;if(s>t)break;let c=Math.floor(n/7),l=new Date(s).getUTCDay(),u=rM(s);if(i.push({day:u,count:e.get(u)??0,col:c,row:l,ms:s}),l===0){let e=new Date(s).getUTCMonth();e!==o&&(a.push({col:c,text:Rre[e]}),o=e)}}return{cells:i,monthLabels:a}},[n]),l=Math.max(1,n?.max??1),u=e=>e<=0?0:Math.min(4,Math.ceil(e/l*4)),d=(e,t)=>{let n=o.current;if(!n)return;let r=e.currentTarget.getBoundingClientRect(),i=n.getBoundingClientRect();a({left:r.left-i.left+r.width/2,top:r.top-i.top,day:t.day,count:t.count,lvl:u(t.count)})};return(0,G.jsxs)(`div`,{className:`relative`,ref:o,children:[(0,G.jsxs)(`div`,{className:`mb-1.5 flex items-baseline gap-2.5`,children:[(0,G.jsx)(`span`,{className:`text-[12.5px] font-semibold`,children:t??`Connections`}),(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:n?`${n.total} total`:`…`})]}),(0,G.jsx)(`div`,{className:`overflow-x-auto pb-1`,onMouseLeave:()=>a(null),children:(0,G.jsxs)(`svg`,{className:`block`,viewBox:`0 0 823 121`,width:823,height:121,xmlns:tM,role:`img`,children:[c.map(e=>(0,G.jsx)(`text`,{className:`fill-muted-foreground text-[9px]`,x:28+e.col*15,y:11,children:e.text},`${e.col}-${e.text}`)),[`Mon`,`Wed`,`Fri`].map((e,t)=>(0,G.jsx)(`text`,{className:`fill-muted-foreground text-[9px]`,x:0,y:16+(t*2+1)*15+oM-2,children:e},e)),s.map(e=>(0,G.jsx)(`rect`,{className:`cursor-pointer stroke-1 [transition:stroke_0.1s_ease] ${i?.day===e.day?`stroke-foreground stroke-[1.5px]`:`stroke-border/60`}`,style:{fill:sM[u(e.count)]},x:28+e.col*15,y:16+e.row*15,width:oM,height:oM,rx:2,onMouseEnter:t=>d(t,e)},e.day))]})}),i&&(0,G.jsxs)(`div`,{className:`pointer-events-none absolute z-30 min-w-[150px] -translate-x-1/2 translate-y-[calc(-100%-9px)] rounded-[10px] border border-chart-3/35 bg-popover px-2.5 py-2 shadow-xl`,style:{left:i.left,top:i.top},role:`tooltip`,children:[(0,G.jsx)(`span`,{className:`absolute -bottom-1.5 left-1/2 size-[11px] -translate-x-1/2 rotate-45 border-r border-b border-chart-3/35 bg-popover`}),(0,G.jsxs)(`div`,{className:`flex items-center gap-1.5 text-[13px]`,children:[(0,G.jsx)(`span`,{className:`inline-block size-[12px] rounded-[2px]`,style:{background:sM[i.lvl]}}),(0,G.jsx)(`b`,{className:`font-semibold`,children:i.count===0?`No connections`:`${i.count} connection${i.count===1?``:`s`}`})]}),(0,G.jsx)(`div`,{className:`mt-[3px] text-[11.5px] text-muted-foreground tabular-nums`,children:Lre(i.day)})]}),(0,G.jsxs)(`div`,{className:`mt-2 flex items-center gap-1 text-[11px] text-muted-foreground`,children:[`Less`,[0,1,2,3,4].map(e=>(0,G.jsx)(`span`,{className:`inline-block size-[11px] rounded-[2px]`,style:{background:sM[e]}},e)),`More`]})]})}var lM=e=>(e.flags??``).includes(`X`)||e.disabled===`yes`;function zre(e,t){return e[t.idKey]||e.name||e.address||e.user||`(row)`}var uM=`mb-3.5 rounded-md border border-border bg-card p-3.5`,dM=`mb-2.5 text-[13px] font-semibold`,fM=`grid grid-cols-[repeat(auto-fill,minmax(220px,1fr))] gap-x-3.5 gap-y-2.5`,pM=`mt-3.5 flex items-center gap-2.5`,mM=`flex flex-col gap-1`,hM=`text-[11.5px] text-muted-foreground`;function gM({config:e,device:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),[u,d]=(0,v.useState)(null),[f,p]=(0,v.useState)({}),m=(0,v.useCallback)(async()=>{try{let n=t?`?device=${encodeURIComponent(t)}`:``;r(await U(`/api/aaa/list/${e.slug}${n}`)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}},[e.slug,t]);(0,v.useEffect)(()=>{r(null),d(null),m()},[m]);let h=(0,v.useCallback)(async(n,r)=>{s(!0),a(null);try{let i=await _c(`/api/aaa/${n}`,{device:t,slug:e.slug,...r}),o=n===`add`?`Entry added`:n===`update`?`Entry saved`:n===`remove`?`Entry removed`:n===`toggle`?r.enable?`Entry enabled`:`Entry disabled`:`Done`;return i.ok?(await m(),Y.success(o),!0):(a(i.message),Y.error(i.message||`${o} failed`),!1)}catch(e){return a(e instanceof Error?e.message:String(e)),Y.error(e instanceof Error?e.message:`Action failed`),!1}finally{s(!1)}},[t,e.slug,m]),g=()=>{d(`new`),p({})},_=t=>{d(t[e.idKey]);let n={};for(let r of e.fields)r.type!==`password`&&(r.key===`disabled`?n.disabled=lM(t)?`yes`:`no`:t[r.key]!=null&&(n[r.key]=t[r.key]));p(n)},y=async()=>{(u===`new`?await h(`add`,{fields:f}):await h(`update`,{id:u,fields:f}))&&d(null)},b=(0,v.useMemo)(()=>{let t=n?.rows??[],r=c.trim().toLowerCase();return r?t.filter(t=>e.columns.some(e=>(t[e.key]??``).toLowerCase().includes(r))):t},[n,c,e.columns]);return n&&!n.available?(0,G.jsxs)(Kj,{type:`warning`,label:`User Manager not installed`,children:[`This device doesn't have the `,(0,G.jsx)(`code`,{children:`user-manager`}),` package. Install it (System → Packages) and reboot to manage the built-in RADIUS server here.`]}):(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`w-[200px]`,placeholder:`Filter…`,value:c,onChange:e=>l(e.target.value)}),(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[b.length,` rows`]}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(ed,{}),onClick:()=>void m(),children:`Refresh`}),(0,G.jsx)(Z,{size:`sm`,type:`accent`,icon:(0,G.jsx)(Ju,{}),onClick:g,children:`Add`})]}),i&&(0,G.jsx)(Kj,{type:`error`,className:`mb-2.5`,children:i}),u&&(0,G.jsxs)(`div`,{className:uM,children:[(0,G.jsx)(`div`,{className:dM,children:u===`new`?`New ${e.slug}`:`Edit ${u}`}),(0,G.jsx)(`div`,{className:fM,children:e.fields.map(e=>(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsxs)(`span`,{className:hM,children:[e.label,e.required&&u===`new`?` *`:``]}),e.type===`bool`?(0,G.jsx)($j,{value:f[e.key]??``,onValueChange:t=>p({...f,[e.key]:t}),options:[{value:``,label:`—`},{value:`no`,label:`no`},{value:`yes`,label:`yes`}]}):e.type===`select`?(0,G.jsx)($j,{value:f[e.key]??``,onValueChange:t=>p({...f,[e.key]:t}),options:[{value:``,label:`—`},...(e.options??[]).map(e=>({value:e,label:e}))]}):(0,G.jsx)(Xj,{type:e.type===`password`?`password`:e.type===`number`?`number`:`text`,placeholder:e.placeholder??(e.type===`password`?`(unchanged)`:``),value:f[e.key]??``,onChange:t=>p({...f,[e.key]:t.target.value})})]},e.key))}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:o,onClick:()=>void y(),children:u===`new`?`Create`:`Save`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>d(null),children:`Cancel`})]})]}),n?b.length===0?(0,G.jsx)(`div`,{className:`px-1 py-5 text-muted-foreground text-[11px]`,children:e.empty??`Nothing here yet.`}):(0,G.jsxs)(WO,{className:`text-[13px]`,children:[(0,G.jsx)(GO,{children:(0,G.jsxs)(qO,{children:[e.columns.map(e=>(0,G.jsx)(JO,{children:e.label},e.key)),(0,G.jsx)(JO,{className:`text-right`,children:`Actions`})]})}),(0,G.jsx)(KO,{children:b.map(t=>{let n=t[e.idKey],r=lM(t);return(0,G.jsxs)(qO,{children:[e.columns.map(e=>(0,G.jsx)(YO,{className:K(r&&`text-muted-foreground`),title:t[e.key]??``,children:e.key===`_status`?(0,G.jsx)(qj,{type:r?`secondary`:`success`,children:r?`disabled`:`enabled`}):t[e.key]??``},e.key)),(0,G.jsx)(YO,{className:`text-right`,children:(0,G.jsxs)(`span`,{className:`flex justify-end gap-1.5`,children:[e.toggle&&(0,G.jsx)(Z,{size:`sm`,ghost:!0,disabled:o,onClick:()=>void h(`toggle`,{id:n,enable:r}),children:r?`Enable`:`Disable`}),!e.addOnly&&(0,G.jsx)(Z,{size:`sm`,ghost:!0,disabled:o,onClick:()=>_(t),children:`Edit`}),(0,G.jsx)(Z,{size:`sm`,type:`error`,ghost:!0,disabled:o,onClick:()=>void h(`remove`,{id:n}),children:`Remove`})]})})]},n||zre(t,e))})})]}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading…`})]})}var _M=[`user`,`calling-station-id`,`nas-ip-address`,`started`,`ended`,`uptime`,`download`,`upload`,`status`];function Bre({device:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(null),[a,o]=(0,v.useState)(``),s=(0,v.useCallback)(async()=>{try{let t=e?`?device=${encodeURIComponent(e)}`:``;n(await U(`/api/aaa/list/um-sessions${t}`)),i(null)}catch(e){i(e instanceof Error?e.message:String(e))}},[e]);if((0,v.useEffect)(()=>{n(null),s();let e=setInterval(()=>void s(),1e4);return()=>clearInterval(e)},[s]),t&&!t.available)return(0,G.jsxs)(Kj,{type:`warning`,label:`User Manager not installed`,children:[`The `,(0,G.jsx)(`code`,{children:`user-manager`}),` package isn't installed on this device.`]});let c=(t?.rows??[]).filter(e=>!a.trim()||(e.user??``).toLowerCase().includes(a.trim().toLowerCase()));return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2.5`,children:[(0,G.jsx)(Xj,{className:`w-[200px]`,placeholder:`Filter by user…`,value:a,onChange:e=>o(e.target.value)}),(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[c.length,` sessions`]}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(ed,{}),onClick:()=>void s(),children:`Refresh`})]}),r&&(0,G.jsx)(Kj,{type:`error`,children:r}),t?c.length===0?(0,G.jsx)(`div`,{className:`px-1 py-5 text-muted-foreground text-[11px]`,children:`No accounting sessions recorded.`}):(0,G.jsxs)(WO,{className:`text-[13px]`,children:[(0,G.jsx)(GO,{children:(0,G.jsx)(qO,{children:_M.map(e=>(0,G.jsx)(JO,{children:e.replace(/-/g,` `)},e))})}),(0,G.jsx)(KO,{children:c.map((e,t)=>(0,G.jsx)(qO,{children:_M.map(t=>(0,G.jsx)(YO,{title:e[t]??``,children:e[t]??``},t))},e[`.id`]||t))})]}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`loading…`})]})}function vM({device:e,getPath:t,setPath:n,fields:r,title:i,unwrap:a,extra:o}){let[s,c]=(0,v.useState)(null),[l,u]=(0,v.useState)(!0),[d,f]=(0,v.useState)({}),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(!1),_=(0,v.useCallback)(async()=>{let{available:n,row:r}=a(await U(`${t}${e?`?device=${encodeURIComponent(e)}`:``}`).catch(()=>null));u(n),c(r),f({})},[e,t,a]);(0,v.useEffect)(()=>{_()},[_]);let y=async()=>{g(!0),m(null);try{let t=await _c(n,{device:e,fields:d});m(t.message),t.ok?(await _(),Y.success(`Settings saved`)):Y.error(t.message||`Save failed`)}catch(e){Y.error(e instanceof Error?e.message:`Save failed`)}finally{g(!1)}};return l?(0,G.jsxs)(`div`,{className:uM,children:[(0,G.jsx)(`div`,{className:dM,children:i}),s&&(0,G.jsx)(`div`,{className:`mb-3 text-muted-foreground text-xs`,children:r.map(e=>`${e.label}: ${s[e.key]??`—`}`).join(` · `)}),(0,G.jsx)(`div`,{className:fM,children:r.map(e=>(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsx)(`span`,{className:hM,children:e.label}),e.type===`bool`?(0,G.jsx)($j,{value:d[e.key]??``,onValueChange:t=>f({...d,[e.key]:t}),options:[{value:``,label:`(unchanged)`},{value:`no`,label:`no`},{value:`yes`,label:`yes`}]}):(0,G.jsx)(Xj,{type:e.type===`number`?`number`:`text`,placeholder:e.placeholder??s?.[e.key]??``,value:d[e.key]??``,onChange:t=>f({...d,[e.key]:t.target.value})})]},e.key))}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:h,onClick:()=>void y(),children:`Save`}),o,p&&(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:p})]})]}):(0,G.jsxs)(Kj,{type:`warning`,label:`Not available`,children:[i,` is not available on this device.`]})}var Vre={slug:`radius`,idKey:`.id`,toggle:!0,columns:[{key:`address`,label:`Address`},{key:`service`,label:`Service`},{key:`authentication-port`,label:`Auth`},{key:`accounting-port`,label:`Acct`},{key:`protocol`,label:`Proto`},{key:`_status`,label:`Status`}],empty:`No RADIUS servers configured.`,fields:[{key:`address`,label:`Address`,required:!0,placeholder:`1.2.3.4 or host`},{key:`secret`,label:`Secret`,type:`password`,required:!0},{key:`service`,label:`Service`,required:!0,placeholder:`login,ppp,hotspot,wireless,dhcp,ipsec,dot1x`},{key:`authentication-port`,label:`Auth port`,type:`number`,placeholder:`1812`},{key:`accounting-port`,label:`Acct port`,type:`number`,placeholder:`1813`},{key:`timeout`,label:`Timeout`,placeholder:`300ms`},{key:`src-address`,label:`Src address`},{key:`realm`,label:`Realm`},{key:`called-id`,label:`Called ID`},{key:`domain`,label:`Domain`},{key:`protocol`,label:`Protocol`,type:`select`,options:[`udp`,`radsec`]},{key:`certificate`,label:`Certificate`},{key:`accounting-backup`,label:`Acct backup`,type:`bool`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Hre={slug:`um-users`,idKey:`name`,toggle:!0,columns:[{key:`name`,label:`Name`},{key:`group`,label:`Group`},{key:`shared-users`,label:`Shared`},{key:`caller-id`,label:`Caller ID`},{key:`comment`,label:`Comment`},{key:`_status`,label:`Status`}],empty:`No RADIUS users.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`password`,label:`Password`,type:`password`,required:!0},{key:`group`,label:`Group`},{key:`shared-users`,label:`Shared users`,type:`number`,placeholder:`1`},{key:`attributes`,label:`RADIUS attributes`},{key:`caller-id`,label:`Caller ID (MAC)`},{key:`otp-secret`,label:`OTP secret`,type:`password`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Ure={slug:`um-profiles`,idKey:`name`,columns:[{key:`name`,label:`Name`},{key:`name-for-users`,label:`Display`},{key:`validity`,label:`Validity`},{key:`price`,label:`Price`},{key:`starts-when`,label:`Starts`}],empty:`No service profiles.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`name-for-users`,label:`Display name`},{key:`validity`,label:`Validity`,placeholder:`30d`},{key:`price`,label:`Price`,type:`number`},{key:`starts-when`,label:`Starts when`,type:`select`,options:[`assigned`,`first-auth`]},{key:`override-shared-users`,label:`Override shared-users`},{key:`comment`,label:`Comment`}]},Wre={slug:`um-limitations`,idKey:`name`,columns:[{key:`name`,label:`Name`},{key:`rate-limit-rx`,label:`Rate ↓`},{key:`rate-limit-tx`,label:`Rate ↑`},{key:`transfer-limit`,label:`Transfer`},{key:`uptime-limit`,label:`Uptime`}],empty:`No limitation templates.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`rate-limit-rx`,label:`Download rate`,placeholder:`10M`},{key:`rate-limit-tx`,label:`Upload rate`,placeholder:`10M`},{key:`rate-limit-min-rx`,label:`Min download (CIR)`,placeholder:`2M`},{key:`rate-limit-min-tx`,label:`Min upload (CIR)`,placeholder:`2M`},{key:`rate-limit-burst-rx`,label:`Burst download`,placeholder:`20M`},{key:`rate-limit-burst-tx`,label:`Burst upload`,placeholder:`20M`},{key:`rate-limit-burst-threshold-rx`,label:`Burst thr. ↓`},{key:`rate-limit-burst-threshold-tx`,label:`Burst thr. ↑`},{key:`rate-limit-burst-time-rx`,label:`Burst time ↓`,placeholder:`10s`},{key:`rate-limit-burst-time-tx`,label:`Burst time ↑`,placeholder:`10s`},{key:`rate-limit-priority`,label:`Priority (1-8)`,type:`number`},{key:`download-limit`,label:`Download cap`,placeholder:`5G`},{key:`upload-limit`,label:`Upload cap`,placeholder:`5G`},{key:`transfer-limit`,label:`Total transfer cap`,placeholder:`10G`},{key:`uptime-limit`,label:`Uptime cap`,placeholder:`1d`},{key:`reset-counters-interval`,label:`Reset interval`},{key:`reset-counters-start-time`,label:`Reset start time`},{key:`comment`,label:`Comment`}]},Gre={slug:`um-routers`,idKey:`name`,toggle:!0,columns:[{key:`name`,label:`Name`},{key:`address`,label:`Address`},{key:`coa-port`,label:`CoA port`},{key:`protocol`,label:`Proto`},{key:`comment`,label:`Comment`},{key:`_status`,label:`Status`}],empty:`No NAS clients registered.`,fields:[{key:`name`,label:`Name`,required:!0},{key:`address`,label:`Address`,required:!0,placeholder:`192.168.88.1`},{key:`shared-secret`,label:`Shared secret`,type:`password`,required:!0},{key:`coa-port`,label:`CoA port`,type:`number`},{key:`protocol`,label:`Protocol`,placeholder:`radius`},{key:`comment`,label:`Comment`},{key:`disabled`,label:`Disabled`,type:`bool`}]},Kre={slug:`um-user-profiles`,idKey:`.id`,addOnly:!0,columns:[{key:`user`,label:`User`},{key:`profile`,label:`Profile`},{key:`state`,label:`State`},{key:`end-time`,label:`Ends`}],empty:`No profile assignments.`,fields:[{key:`user`,label:`User`,required:!0},{key:`profile`,label:`Profile`,required:!0}]},qre=[{id:`radius`,label:`RADIUS Servers`},{id:`users`,label:`Users`},{id:`profiles`,label:`Profiles`},{id:`limitations`,label:`Limitations`},{id:`nas`,label:`NAS Clients`},{id:`assignments`,label:`Assignments`},{id:`sessions`,label:`Sessions`},{id:`usage`,label:`Usage & Heatmap`},{id:`settings`,label:`Settings`}],Jre=[{key:`accept`,label:`Accept CoA`,type:`bool`},{key:`port`,label:`CoA port`,type:`number`,placeholder:`3799`}],Yre=[{key:`enabled`,label:`Enabled`,type:`bool`},{key:`use-profiles`,label:`Use profiles`,type:`bool`},{key:`certificate`,label:`Certificate`},{key:`authentication-port`,label:`Auth port`,type:`number`},{key:`accounting-port`,label:`Acct port`,type:`number`}];function Xre({device:e}){let[t,n]=(0,v.useState)(null),[r,i]=(0,v.useState)(``);(0,v.useEffect)(()=>{U(`/api/usage/um-users${e?`?device=${encodeURIComponent(e)}`:``}`).then(e=>{n(e.users),i(t=>t||e.users[0]||``)}).catch(()=>n([]))},[e]);let a=e?`&device=${encodeURIComponent(e)}`:``;return(0,G.jsxs)(`div`,{children:[(0,G.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`User`}),(0,G.jsx)($j,{value:r,onValueChange:i,"aria-label":`User`,options:t&&t.length>0?t.map(e=>({value:e,label:e})):[{value:``,label:`— no sessions recorded yet —`}]})]}),t&&t.length===0?(0,G.jsx)(Kj,{type:`secondary`,label:`No data yet`,children:`No User Manager sessions have been recorded yet. The dashboard ingests sessions on a configurable interval (1 minute by default — change it under the Settings tab) and keeps them forever, so usage and the heatmap fill in over time.`}):r&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:`Download / upload · last 3 months`}),(0,G.jsx)(aM,{endpoint:`/api/usage/um-user?user=${encodeURIComponent(r)}${a}&days=90`,days:90})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsxs)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:[`Connection heatmap · `,r]}),(0,G.jsx)(cM,{endpoint:`/api/usage/heatmap?user=${encodeURIComponent(r)}${a}&days=371`,label:`${r} — connections`})]}),(0,G.jsxs)(`div`,{className:`mt-4`,children:[(0,G.jsx)(`div`,{className:`mb-2 text-xs font-semibold text-muted-foreground`,children:`All users · connections`}),(0,G.jsx)(cM,{endpoint:`/api/usage/heatmap?days=371${a}`,label:`All users`})]})]})]})}function Zre(){let[e,t]=(0,v.useState)(``),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(null),c=(0,v.useCallback)(async()=>{try{let e=await U(`/api/usage/sampler`);r(e.intervalMs)}catch{r(null)}},[]);(0,v.useEffect)(()=>{c()},[c]);let l=async()=>{let n=Number(e);if(!Number.isFinite(n)||n<=0){s(`Enter a positive number of minutes.`),Y.error(`Enter a positive number of minutes`);return}a(!0),s(null);try{let e=await _c(`/api/usage/sampler`,{intervalMs:Math.round(n*6e4)});r(e.intervalMs),t(``),s(`Now sampling every ${yM(e.intervalMs)}.`),Y.success(`Now sampling every ${yM(e.intervalMs)}`)}catch(e){s(e instanceof Error?e.message:String(e)),Y.error(e instanceof Error?e.message:`Save failed`)}finally{a(!1)}};return(0,G.jsxs)(`div`,{className:`rounded-md border border-border bg-card p-3.5`,children:[(0,G.jsx)(`div`,{className:dM,children:`Usage sampling`}),(0,G.jsxs)(`div`,{className:`mb-3 text-muted-foreground text-xs`,children:[`How often client traffic + User Manager sessions are recorded into the usage history. Current: `,n==null?`…`:yM(n),` · default 1 minute · range 30s–6h.`]}),(0,G.jsx)(`div`,{className:fM,children:(0,G.jsxs)(`label`,{className:mM,children:[(0,G.jsx)(`span`,{className:hM,children:`Interval (minutes)`}),(0,G.jsx)(Xj,{type:`number`,step:`0.5`,min:`0.5`,placeholder:n?String(n/6e4):`1`,value:e,onChange:e=>t(e.target.value)})]})}),(0,G.jsxs)(`div`,{className:pM,children:[(0,G.jsx)(Z,{size:`sm`,type:`accent`,loading:i,onClick:()=>void l(),children:`Save`}),[1,5,10,30].map(e=>(0,G.jsxs)(Z,{size:`sm`,ghost:!0,onClick:()=>{t(String(e))},children:[e,`m`]},e)),o&&(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:o})]})]})}function yM(e){if(e<6e4)return`${Math.round(e/1e3)}s`;let t=e/6e4;return`${Number.isInteger(t)?t:t.toFixed(1)} min`}function Qre(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(`radius`);(0,v.useEffect)(()=>{U(`/api/devices`).then(e=>{t(e),r(t=>t||e.defaultDevice||e.devices[0]?.name||``)}).catch(()=>t({server:``,defaultDevice:``,devices:[]}))},[]);let o=e?.devices??[];return(0,G.jsx)(`section`,{className:`grid content-start gap-[18px]`,children:(0,G.jsx)(X,{title:`RADIUS & User Manager`,className:`reveal`,extra:o.length>1?(0,G.jsx)($j,{value:n,onValueChange:r,"aria-label":`Router`,options:o.map(e=>({value:e.name,label:`${e.name}${e.isDefault?` (default)`:``}`}))}):void 0,children:(0,G.jsxs)(yA,{value:i,onValueChange:e=>a(e),children:[(0,G.jsx)(bA,{className:`mb-3.5 h-auto w-full flex-wrap justify-start border-b border-border`,children:qre.map(e=>(0,G.jsx)(xA,{value:e.id,children:e.label},e.id))}),(0,G.jsx)(SA,{value:`radius`,children:(0,G.jsx)(gM,{config:Vre,device:n})}),(0,G.jsx)(SA,{value:`users`,children:(0,G.jsx)(gM,{config:Hre,device:n})}),(0,G.jsx)(SA,{value:`profiles`,children:(0,G.jsx)(gM,{config:Ure,device:n})}),(0,G.jsx)(SA,{value:`limitations`,children:(0,G.jsx)(gM,{config:Wre,device:n})}),(0,G.jsx)(SA,{value:`nas`,children:(0,G.jsx)(gM,{config:Gre,device:n})}),(0,G.jsx)(SA,{value:`assignments`,children:(0,G.jsx)(gM,{config:Kre,device:n})}),(0,G.jsx)(SA,{value:`sessions`,children:(0,G.jsx)(Bre,{device:n})}),(0,G.jsx)(SA,{value:`usage`,children:(0,G.jsx)(Xre,{device:n})}),(0,G.jsx)(SA,{value:`settings`,children:(0,G.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,G.jsx)(vM,{device:n,getPath:`/api/aaa/radius-incoming`,setPath:`/api/aaa/radius-incoming`,title:`RADIUS Incoming (CoA listener)`,fields:Jre,unwrap:e=>({available:!0,row:e??{}}),extra:(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>void _c(`/api/aaa/radius-reset-counters`,{device:n}).then(()=>Y.success(`Counters reset`)).catch(()=>Y.error(`Reset counters failed`)),children:`Reset RADIUS counters`})}),(0,G.jsx)(vM,{device:n,getPath:`/api/aaa/um-settings`,setPath:`/api/aaa/um-settings`,title:`User Manager (built-in RADIUS server)`,fields:Yre,unwrap:e=>{let t=e??{};return{available:t.available!==!1,row:t.settings??{}}}}),(0,G.jsx)(Zre,{})]})})]})})})}var bM=new Set;function xM(e){return bM.add(e),()=>bM.delete(e)}function $re(e){for(let t of bM)t(e)}var SM=new Set;function CM(e){return SM.add(e),()=>SM.delete(e)}function wM(e){for(let t of SM)t(e)}function TM(e,t){let n=(0,v.useRef)(e),r=(0,v.useRef)(t);n.current=e,r.current=t,(0,v.useEffect)(()=>{let e=!1,t=null,i=null,a=()=>{t&&=(t.onopen=t.onerror=t.onmessage=t.onclose=null,t.close(),null),i&&=(i.close(),null)},o=()=>{e||(i=new EventSource(gc(`/api/sse`)),i.addEventListener(`hello`,()=>r.current(`sse`)),i.addEventListener(`tool`,e=>{try{n.current(JSON.parse(e.data))}catch{}}),i.onerror=()=>{i&&i.readyState===EventSource.CONNECTING&&r.current(`off`)})},s=()=>{if(e)return;let i=location.protocol===`https:`?`wss`:`ws`;t=new WebSocket(gc(`${i}://${location.host}/api/stream`));let a=!1;t.onopen=()=>{a=!0,r.current(`ws`)},t.onerror=()=>t?.close(),t.onmessage=e=>{try{let t=JSON.parse(e.data);t.type===`event`&&t.event&&n.current(t.event),t.type===`txn`&&t.update&&$re(t.update),t.type===`rollout`&&t.update&&wM(t.update)}catch{}},t.onclose=()=>{e||(r.current(`off`),a?setTimeout(s,2e3):o())}},c=()=>t?.readyState===WebSocket.OPEN||i?.readyState===EventSource.OPEN,l=()=>{e||c()||(a(),s())},u=()=>{document.visibilityState===`visible`&&l()};return s(),document.addEventListener(`visibilitychange`,u),window.addEventListener(`online`,l),()=>{e=!0,document.removeEventListener(`visibilitychange`,u),window.removeEventListener(`online`,l),a()}},[])}function EM(e){(0,v.useLayoutEffect)(()=>{let t=e.current;if(!t||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches)return;document.documentElement.classList.add(`js-motion`);let n=new WeakSet,r=e=>{n.has(e)||(n.add(e),zi.set(e,{opacity:0,y:26}),ac.create({trigger:e,start:`top 90%`,once:!0,onEnter:()=>zi.to(e,{opacity:1,y:0,duration:.7,ease:`power3.out`})}))},i=e=>{for(let t of e.querySelectorAll(`.reveal`))r(t)};i(t);let a=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&(e.matches(`.reveal`)&&r(e),i(e))});a.observe(t,{childList:!0,subtree:!0});let o=setInterval(()=>ac.refresh(),1200),s=setTimeout(()=>clearInterval(o),7e3);return()=>{a.disconnect(),clearInterval(o),clearTimeout(s);for(let e of ac.getAll())e.kill();document.documentElement.classList.remove(`js-motion`)}},[e])}var DM={completed:`success`,"completed-with-failures":`warning`,halted:`warning`,reverted:`secondary`,"needs-attention":`error`,aborted:`secondary`},OM={completed:`Every device applied the change.`,"completed-with-failures":`The rollout finished, but a gate failed along the way.`,halted:`Stopped at a failed gate. The devices already changed are still changed.`,reverted:`Stopped and put back — the fleet is where it started.`,"needs-attention":`A revert itself failed. Restore the flagged device(s) by hand from the snapshot named below.`,aborted:`A human stopped it; whatever had been applied was reverted.`},kM={pending:`bg-muted/30 text-muted-foreground`,applied:`bg-emerald-500/15 text-emerald-600 dark:text-emerald-400`,failed:`bg-red-500/15 text-red-600 dark:text-red-400`,reverted:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,"revert-failed":`bg-red-500/25 text-red-600 dark:text-red-400 font-semibold`,skipped:`bg-muted/20 text-muted-foreground line-through`};function AM(e){let t=Date.now()-e;return t<6e4?`just now`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}function jM({rollout:e}){let t=t=>e.gates.find(e=>e.wave===t);return(0,G.jsx)(`div`,{className:`space-y-3`,children:e.waves.map(n=>{let r=t(n.index),i=n.devices.map(t=>e.devices.find(e=>e.device===t)).filter(e=>e!==void 0),a=e.outcome===void 0&&i.some(e=>e.stage===`pending`);return(0,G.jsxs)(`div`,{className:`rounded-md border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 text-sm`,children:[(0,G.jsxs)(`span`,{className:`font-medium`,children:[`Wave `,n.index+1,n.isCanary&&(0,G.jsx)(`span`,{className:`ml-2 rounded-sm bg-amber-500/15 px-1.5 py-0.5 text-xs text-amber-600 dark:text-amber-400`,children:`canary`})]}),(0,G.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[i.length,` device(s)`]}),a&&(0,G.jsx)(Jj,{type:`warning`,pulse:!0}),r&&(0,G.jsxs)(qj,{type:r.ok?`success`:`error`,className:`ml-auto`,children:[`gate `,r.ok?`pass`:`fail`]})]}),(0,G.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:i.map(e=>(0,G.jsx)(`span`,{title:e.error??e.stage,className:K(`rounded-md px-2 py-1 font-mono text-xs`,kM[e.stage]??kM.pending),children:e.device},e.device))}),r&&!r.ok&&(0,G.jsxs)(`ul`,{className:`mt-2 space-y-1 text-xs text-red-600 dark:text-red-400`,children:[r.collateral&&(0,G.jsx)(`li`,{className:`font-medium`,children:`An UNTOUCHED device went dark — the change affected the wider fleet.`}),r.failures.map(e=>(0,G.jsxs)(`li`,{children:[e.device,`: `,e.reason]},e.device))]})]},n.index)})})}function MM({id:e,onClose:t}){let[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)([]),[o,s]=(0,v.useState)(!1),c=(0,v.useCallback)(async()=>{try{let t=await U(`/api/rollout/${encodeURIComponent(e)}`);r(t.rollout),a(t.events)}catch(e){Y.error(`Failed to load rollout: ${e instanceof Error?e.message:String(e)}`)}},[e]);(0,v.useEffect)(()=>(c(),CM(t=>{t.rolloutId===e&&c()})),[e,c]);let l=async t=>{s(!0);try{let n=await _c(`/api/rollout/${encodeURIComponent(e)}/${t}`,{});n.error?Y.error(n.error):Y.success(n.outcome??(t===`hold`?`Held`:`Done`)),await c()}finally{s(!1)}};if(!n)return(0,G.jsx)(X,{title:`Rollout`,children:`Loading…`});let u=n.outcome===void 0,d=n.devices.filter(e=>e.stage===`failed`||e.stage===`revert-failed`);return(0,G.jsxs)(X,{title:n.label?`${n.label} — ${n.id}`:n.id,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[u&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(Z,{size:`sm`,type:`secondary`,disabled:o,onClick:()=>void l(`hold`),children:`Hold`}),(0,G.jsx)(Z,{size:`sm`,type:`secondary`,disabled:o,onClick:()=>void l(`resume`),children:`Resume`}),(0,G.jsx)(Z,{size:`sm`,type:`error`,disabled:o,onClick:()=>void l(`abort`),children:`Abort`})]}),(0,G.jsx)(Z,{size:`sm`,type:`secondary`,onClick:t,children:`Close`})]}),children:[(0,G.jsxs)(`div`,{className:K(`mb-4 rounded-md border p-3 text-sm`,n.outcome===`needs-attention`&&`border-red-500/40 bg-red-500/10`,n.outcome===`completed`&&`border-emerald-500/40 bg-emerald-500/10`,u&&`border-amber-500/40 bg-amber-500/10`),children:[(0,G.jsxs)(`div`,{className:`flex items-center gap-2 font-medium`,children:[(0,G.jsx)(Jj,{type:n.outcome?DM[n.outcome]:`warning`,pulse:u}),n.outcome??`IN FLIGHT — wave ${n.phase}`]}),(0,G.jsx)(`p`,{className:`mt-1 text-muted-foreground`,children:n.outcome?OM[n.outcome]:`Applying wave by wave; each wave is gated and soaked before the next.`})]}),(0,G.jsx)(jM,{rollout:n}),d.length>0&&(0,G.jsxs)(`div`,{className:`mt-4 rounded-md border border-red-500/40 p-3 text-sm`,children:[(0,G.jsx)(`div`,{className:`font-medium`,children:`Failures`}),(0,G.jsx)(`ul`,{className:`mt-1 space-y-1 font-mono text-xs text-muted-foreground`,children:d.map(e=>(0,G.jsxs)(`li`,{children:[e.device,` · `,e.stage,e.error?` — ${e.error}`:``,e.stage===`revert-failed`&&e.snapshotId?` · restore with diff_config_snapshots ${e.snapshotId} live`:``]},e.device))})]}),n.notes.length>0&&(0,G.jsx)(`ul`,{className:`mt-4 space-y-1 text-sm text-amber-600 dark:text-amber-400`,children:n.notes.map(e=>(0,G.jsxs)(`li`,{children:[`• `,e]},e))}),(0,G.jsx)(`h4`,{className:`mt-6 mb-2 text-sm font-medium`,children:`Commands`}),(0,G.jsx)(`pre`,{className:`overflow-x-auto rounded-md bg-muted/30 p-2 font-mono text-xs`,children:n.commands.join(`
|
|
178
178
|
`)}),(0,G.jsx)(`h4`,{className:`mt-6 mb-2 text-sm font-medium`,children:`Timeline`}),i.length===0?(0,G.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No steps recorded yet.`}):(0,G.jsx)(`ol`,{className:`space-y-1 font-mono text-xs`,children:i.map(e=>(0,G.jsxs)(`li`,{className:`flex gap-2`,children:[(0,G.jsx)(`span`,{className:`text-muted-foreground`,children:new Date(e.ts).toLocaleTimeString()}),(0,G.jsx)(`span`,{className:e.ok?`text-emerald-600 dark:text-emerald-400`:`text-red-500`,children:e.ok?`✓`:`✕`}),(0,G.jsxs)(`span`,{children:[e.kind,e.device?` ${e.device}`:``]})]},e.seq))})]})}function NM(){let[e,t]=(0,v.useState)([]),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),o=(0,v.useCallback)(async()=>{try{let e=await U(`/api/rollout`);t(e.rollouts),a(e.error??null)}catch(e){a(e instanceof Error?e.message:String(e))}},[]);(0,v.useEffect)(()=>(o(),CM(()=>void o())),[o]);let s=e.filter(e=>e.outcome===void 0);return(0,G.jsxs)(`div`,{className:`space-y-4`,children:[n&&(0,G.jsx)(MM,{id:n,onClose:()=>r(null)}),i&&(0,G.jsx)(X,{title:`Rollout history`,children:(0,G.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`The history could not be read (`,i,`); rollouts running right now are still shown.`]})}),(0,G.jsx)(X,{title:`Rollouts`,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s.length>0&&(0,G.jsxs)(qj,{type:`warning`,children:[s.length,` in flight`]}),(0,G.jsx)(Z,{size:`sm`,type:`secondary`,onClick:()=>void o(),children:`Refresh`})]}),children:e.length===0?(0,G.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[`No rollouts yet. Preview one with `,(0,G.jsx)(`span`,{className:`font-mono`,children:`plan_rollout`}),`, then run it with `,(0,G.jsx)(`span`,{className:`font-mono`,children:`start_rollout`}),` — canary first, with a health gate and soak between waves.`]}):(0,G.jsx)(`ul`,{className:`divide-y divide-border`,children:e.map(e=>(0,G.jsx)(`li`,{children:(0,G.jsxs)(`button`,{type:`button`,onClick:()=>r(e.id),className:`flex w-full items-center gap-3 py-2 text-left hover:bg-muted/40`,children:[(0,G.jsx)(qj,{type:e.outcome?DM[e.outcome]:`warning`,children:e.outcome??`LIVE`}),(0,G.jsxs)(`span`,{className:`flex-1 truncate`,children:[e.label??e.id,(0,G.jsxs)(`span`,{className:`ml-2 text-xs text-muted-foreground`,children:[e.devices.length,` device(s) · `,e.waves.length,` wave(s)`]})]}),(0,G.jsx)(`span`,{className:`whitespace-nowrap text-xs text-muted-foreground`,children:AM(e.ts)})]})},e.id))})})]})}function PM({className:e,...t}){return(0,G.jsx)(`textarea`,{"data-slot":`textarea`,className:K(`flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40`,e),...t})}var FM={add:`+`,set:`~`,remove:`−`,enable:`▲`,disable:`▽`,move:`⇅`},IM={high:`border-l-destructive`,medium:`border-l-warning`,low:`border-l-success`};function LM(){let[e,t]=(0,v.useState)(`plan`),[n,r]=(0,v.useState)(``),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(!1),u=async()=>{l(!0),s(null);let e=await _c(`/api/plan`,{script:n}).catch(()=>({error:`request failed`}));if(l(!1),e.error||!e.plan){s(e.error??`no plan produced`),a(null),Y.error(e.error??`no plan produced`);return}a({plan:e.plan,text:e.text??``}),Y.success(`Plan ready`)},d=i?.plan.grade??``,f=d===`critical`||d===`high`,p=(0,G.jsxs)(`div`,{className:`mb-4 flex items-center gap-1`,children:[(0,G.jsx)(Z,{size:`sm`,type:e===`plan`?`default`:`secondary`,onClick:()=>t(`plan`),children:`Dry-run`}),(0,G.jsx)(Z,{size:`sm`,type:e===`rollout`?`default`:`secondary`,onClick:()=>t(`rollout`),children:`Rollout`})]});return e===`rollout`?(0,G.jsxs)(`div`,{children:[p,(0,G.jsx)(NM,{})]}):(0,G.jsxs)(G.Fragment,{children:[p,(0,G.jsxs)(`section`,{className:`grid content-start gap-[18px]`,children:[(0,G.jsxs)(X,{title:`Change plan — dry-run`,className:`reveal`,extra:(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`terraform-style preview · pure analysis, never touches a device`}),children:[(0,G.jsx)(PM,{className:`min-h-40 resize-y font-mono text-xs leading-relaxed`,spellCheck:!1,placeholder:`Paste intended RouterOS commands, one per line, e.g.
|
|
179
179
|
/ip firewall filter add chain=input action=drop in-interface=WAN
|
|
180
180
|
/ip address add address=10.0.0.1/24 interface=ether1
|
|
@@ -264,7 +264,7 @@ add action=drop chain=forward dst-port=443 protocol=tcp`,className:`font-mono te
|
|
|
264
264
|
`)),s(e.configured.denyTools.join(`
|
|
265
265
|
`)),l(e.configured.devices.length?`selected`:`all`),p(t=>e.devices.some(e=>e.name===t)?t:e.devices.find(e=>!e.disabled)?.name??``),h(t=>e.tools.some(e=>e.name===t)?t:e.tools.find(e=>e.risk===`READ`)?.name??``),b(null),P(Date.now())},[]),ee=(0,v.useCallback)(async()=>{I.current?.abort();let e=new AbortController;I.current=e,O(!0),w(``);try{let t=await W9(``,void 0,e.signal);if(!Array.isArray(t.tools)||!t.configured)throw Error(`This server does not support access settings yet. Restart it with the updated build.`);F.current&&!e.signal.aborted&&L(t)}catch(t){F.current&&!e.signal.aborted&&w(t instanceof Error?t.message:`Access settings unavailable.`)}finally{F.current&&!e.signal.aborted&&O(!1)}},[L]);(0,v.useEffect)(()=>(F.current=!0,ee(),()=>{F.current=!1,I.current?.abort()}),[ee]);let R=(0,v.useMemo)(()=>n?{...n,devices:c===`all`?[]:n.devices,tools:U9(i),denyTools:U9(o)}:null,[n,c,i,o]),te=!!e&&!!R&&JSON.stringify(R)!==JSON.stringify(e.configured),z=c===`selected`&&!n?.devices.length?`Choose at least one allowed router, or explicitly select All configured routers.`:``,ne=e?.pending,re=k||D||!!ne;(0,v.useEffect)(()=>{if(!ne?.expiresAt)return;let e=setInterval(()=>P(Date.now()),1e3);return()=>clearInterval(e)},[ne?.expiresAt]);let ie=(0,v.useRef)(``);(0,v.useEffect)(()=>{ne?.expiresAt&&N>=ne.expiresAt&&ie.current!==ne.id&&(ie.current=ne.id,E(`Confirmation window ended. Reloading the server's current policy…`),ee())},[ne,N,ee]),(0,v.useEffect)(()=>{if(b(null),S(``),!e||!R||z||ne||D)return;let t=new AbortController,n=setTimeout(()=>{W9(`/preview`,{revision:e.revision,access:R,device:f||void 0,tool:m||void 0},t.signal).then(e=>{t.signal.aborted||b(e.preview)}).catch(e=>{t.signal.aborted||S(e instanceof Error?e.message:`Preview unavailable`)})},300);return()=>{t.abort(),clearTimeout(n)}},[e,R,z,ne,D,f,m]);let ae=e=>r(t=>t&&{...t,...e}),oe=(e,t,r)=>{n&&ae({[e]:r?[...new Set([...n[e],t])]:n[e].filter(e=>e!==t)})},se=async()=>{if(e&&R&&!z){A(!0),w(``);try{let t=await W9(`/apply`,{revision:e.revision,access:R});F.current&&(L(t.settings),M(!1),E(`Policy applied to subsequent calls. Keep it within 60 seconds or it will revert.`))}catch(e){F.current&&w(e instanceof Error?e.message:`Apply failed. Refresh to verify the current policy.`)}finally{F.current&&A(!1)}}},ce=async e=>{if(ne?.owned){A(!0),w(``);try{let t=await W9(`/${e}`,{pendingId:ne.id});F.current&&(L(t.settings),E(e===`keep`?`Access settings saved. Router configuration was not changed.`:`Previous access settings restored.`))}catch(e){F.current&&w(e instanceof Error?e.message:`Could not confirm the result. Refresh to verify.`)}finally{F.current&&A(!1)}}},le=e?.tools.filter(e=>e.name.toLowerCase().includes(g.toLowerCase()))??[],B=le.slice(0,80).map(e=>({value:e.name,label:e.name}));m&&!B.some(e=>e.value===m)&&B.unshift({value:m,label:m});let V=[...new Set([...e?.devices.map(e=>e.name)??[],...n?.devices??[],...n?.denyDevices??[]])],ue=e?.effective.scope,de=Math.max(0,Math.ceil(((ne?.expiresAt??N)-N)/1e3)),H=e=>Array.isArray(e)?e.join(`, `)||`All / no exclusions`:typeof e==`boolean`?e?`On`:`Off`:typeof e==`string`&&e?e:`Not set`,fe=e&&R?Object.keys(R).filter(t=>JSON.stringify(R[t])!==JSON.stringify(e.configured[t])):[];return(0,G.jsxs)(`div`,{className:`access-workspace`,children:[(0,G.jsxs)(`section`,{className:`access-intro`,children:[(0,G.jsxs)(`div`,{className:`access-intro-copy`,children:[(0,G.jsxs)(`span`,{className:`access-eyebrow`,children:[(0,G.jsx)(nu,{className:`size-3.5`}),` MCP permission boundary`]}),(0,G.jsxs)(`h2`,{children:[`Give your agent room.`,(0,G.jsx)(`br`,{}),(0,G.jsx)(`span`,{children:`Keep the boundaries yours.`})]}),(0,G.jsx)(`p`,{children:`Choose which routers and tools this server may use. Preview the decision, then safely apply your policy. No JSON required.`})]}),(0,G.jsxs)(`div`,{className:`access-current`,"aria-label":`Current enforcement`,children:[(0,G.jsx)(`span`,{className:K(`access-current-icon`,e?.effective.enabled&&`is-enforced`),children:e?.effective.enabled?(0,G.jsx)(bd,{}):(0,G.jsx)(Sd,{})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:`access-eyebrow`,children:`Applied right now`}),(0,G.jsx)(`strong`,{children:e?e.effective.enabled?`Access enforced`:`Access scope off`:D?`Connecting…`:`Status unavailable`}),(0,G.jsx)(`p`,{children:e?e.narrowed?`Includes runtime session restrictions`:`Operator-configured policy`:`Waiting for the server's policy`})]}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(ed,{}),loading:D,onClick:()=>void ee(),disabled:k||te&&!C,"aria-label":`Refresh access settings`})]})]}),C&&(0,G.jsxs)(`div`,{role:`alert`,className:`access-message is-error`,children:[(0,G.jsx)(Sd,{className:`size-4`}),(0,G.jsxs)(`div`,{children:[C,(0,G.jsx)(`p`,{children:`Unsaved edits are not applied. If a save request timed out, refresh to verify its outcome.`})]}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>{M(!1),ee()},children:`Reload saved policy`})]}),T&&(0,G.jsxs)(`div`,{role:`status`,className:`access-message`,children:[(0,G.jsx)(cl,{className:`size-4`}),(0,G.jsx)(`span`,{children:T})]}),!e&&!C&&(0,G.jsxs)(`div`,{className:`access-loading`,role:`status`,children:[(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{}),(0,G.jsx)(`span`,{}),`Loading permission settings…`]}),e&&R&&n&&(0,G.jsxs)(G.Fragment,{children:[ne&&(0,G.jsxs)(`section`,{className:`access-pending`,"aria-label":`Pending access change`,children:[(0,G.jsxs)(`div`,{className:`access-countdown`,children:[(0,G.jsx)(El,{}),ne.owned?`${de}s`:`!`]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h3`,{children:ne.owned?`Your policy is applied, but not yet permanent.`:`A Config Studio change is awaiting confirmation.`}),(0,G.jsx)(`p`,{children:ne.owned?`Keep these settings to finish, or restore the previous configuration. The server handles auto-revert even if this tab closes.`:`Keep or revert that change in Config Studio, then refresh this page.`})]}),ne.owned&&(0,G.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,G.jsx)(Z,{icon:(0,G.jsx)(ol,{}),loading:k,onClick:()=>void ce(`keep`),disabled:de===0,children:`Keep changes`}),(0,G.jsx)(Z,{ghost:!0,icon:(0,G.jsx)(Kd,{}),disabled:k||de===0,onClick:()=>void ce(`rollback`),children:`Revert now`})]})]}),(0,G.jsxs)(`div`,{className:`access-layout`,children:[(0,G.jsxs)(`div`,{className:`access-editor`,children:[(0,G.jsxs)(`fieldset`,{disabled:re,className:`access-card access-enforcement`,children:[(0,G.jsxs)(`div`,{className:`access-switch-row`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(Od,{}),title:`Enforcement`,detail:`The policy ceiling set by you, the operator.`}),(0,G.jsx)(a7,{"aria-label":`Enable access enforcement`,checked:n.enabled,onCheckedChange:e=>ae({enabled:e}),disabled:re})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:n.enabled?`Rules below will be checked before each MCP tool call.`:`Rules are saved but inactive until enabled. Session restrictions and server read-only mode still apply.`}),(0,G.jsxs)(`label`,{className:`access-field`,children:[(0,G.jsxs)(`span`,{children:[`Policy label `,(0,G.jsx)(`small`,{children:`optional`})]}),(0,G.jsx)(Ok,{"aria-label":`Policy label`,value:n.label??``,maxLength:200,placeholder:`e.g. Production maintenance`,onChange:e=>ae({label:e.target.value||void 0})})]}),(0,G.jsxs)(`label`,{className:`access-field`,children:[(0,G.jsx)(`span`,{children:`Maximum risk`}),(0,G.jsx)($j,{"aria-label":`Maximum risk`,value:n.maxRisk??``,options:a_e,onValueChange:e=>ae({maxRisk:e||void 0})})]}),(0,G.jsxs)(`div`,{className:`access-quick`,children:[(0,G.jsx)(`span`,{children:`Quick ceiling`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(Xl,{}),onClick:()=>ae({enabled:!0,maxRisk:`READ`}),children:`Read only`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,icon:(0,G.jsx)(Od,{}),onClick:()=>ae({enabled:!0,maxRisk:`WRITE`}),children:`Routine changes`})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:`Idempotent writes share the WRITE ceiling: safe to retry does not mean read-only. Quick ceilings preserve your device and tool rules.`})]}),(0,G.jsxs)(`fieldset`,{disabled:re,className:`access-card`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(cd,{}),title:`Router boundaries`,detail:`Allow a group, carve out exceptions. Explicit blocks always win.`}),(0,G.jsx)($j,{"aria-label":`Allowed router scope`,value:c,options:[{value:`all`,label:`All configured routers`},{value:`selected`,label:`Only selected routers`}],onValueChange:l}),(0,G.jsx)(`div`,{className:`mt-3`,children:(0,G.jsx)(Ok,{"aria-label":`Search routers`,placeholder:`Find a configured router…`,value:u,onChange:e=>d(e.target.value)})}),(0,G.jsxs)(`div`,{className:`access-router-list`,children:[V.filter(e=>e.toLowerCase().includes(u.toLowerCase())).map(t=>{let r=e.devices.find(e=>e.name===t),i=n.denyDevices.includes(t);return(0,G.jsxs)(`div`,{className:K(`access-router`,i&&`is-denied`),children:[(0,G.jsx)(`span`,{className:`access-router-icon`,children:(0,G.jsx)(cd,{})}),(0,G.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,G.jsx)(`strong`,{children:t}),(0,G.jsx)(`small`,{children:r?r.disabled?`Disabled in server config`:i?`Explicitly blocked`:c===`all`||n.devices.includes(t)?`Inside allowed group`:`Outside allowed group`:`No longer configured · remove from rules`})]}),(0,G.jsxs)(`div`,{className:`access-router-checks`,children:[c===`selected`&&(0,G.jsxs)(`label`,{children:[(0,G.jsx)(aO,{"aria-label":`Allow ${t}`,checked:n.devices.includes(t),onCheckedChange:e=>oe(`devices`,t,e===!0),disabled:re}),`Allow`]}),(0,G.jsxs)(`label`,{children:[(0,G.jsx)(aO,{"aria-label":`Block ${t}`,checked:i,onCheckedChange:e=>oe(`denyDevices`,t,e===!0),disabled:re}),`Block`]})]})]},t)}),!V.length&&(0,G.jsx)(`p`,{className:`access-hint py-4`,children:`No routers configured. Add devices in Config before defining router-specific rules.`}),!!V.length&&!V.some(e=>e.toLowerCase().includes(u.toLowerCase()))&&(0,G.jsx)(`p`,{className:`access-hint py-4`,children:`No routers match this search.`})]}),z&&(0,G.jsx)(`p`,{role:`alert`,className:`access-validation`,children:z}),(0,G.jsx)(`p`,{className:`access-hint`,children:`“All” includes future configured routers. Router state here comes from configuration, not a connectivity check.`})]}),(0,G.jsxs)(`fieldset`,{disabled:re,className:`access-card`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(Bd,{}),title:`Tool rules`,detail:`Pick tools from the catalog, or add a * pattern that includes future matches.`}),(0,G.jsxs)(`div`,{className:`access-rule-grid`,children:[(0,G.jsx)(H9,{kind:`allow`,values:R.tools,tools:e.tools,onChange:e=>a(e.join(`
|
|
266
266
|
`)),disabled:re}),(0,G.jsx)(H9,{kind:`block`,values:R.denyTools,tools:e.tools,onChange:e=>s(e.join(`
|
|
267
|
-
`)),disabled:re})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:`Patterns match tool names, not commands or arguments. All matching is case-insensitive. A risk ceiling also applies to tools on the allow-list.`})]})]}),(0,G.jsxs)(`aside`,{className:`access-inspector`,children:[(0,G.jsxs)(`section`,{className:`access-card access-preview`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(nu,{}),title:`Permission lens`,detail:`A decision preview, not a tool execution.`}),(0,G.jsxs)(`div`,{className:`access-lens-label`,children:[(0,G.jsx)(qj,{type:te?`warning`:`secondary`,children:te?`Unsaved draft`:`Saved configuration`}),(0,G.jsx)(`span`,{children:`+ session restrictions`})]}),(0,G.jsxs)(`label`,{className:`access-field`,children:[(0,G.jsx)(`span`,{children:`Preview target`}),(0,G.jsx)($j,{"aria-label":`Preview router`,value:f,onValueChange:p,options:[{value:``,label:`Default router`},...e.devices.map(e=>({value:e.name,label:`${e.name}${e.disabled?` · disabled`:``}`}))],disabled:k})]}),(0,G.jsxs)(`div`,{className:`access-gates`,"aria-label":`Draft permission boundaries`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(cd,{}),(0,G.jsxs)(`span`,{children:[`Router boundary`,(0,G.jsx)(`strong`,{children:R.devices.length?`${R.devices.length} selected`:`All configured`})]}),(0,G.jsxs)(`small`,{children:[R.denyDevices.length,` blocked`]})]}),(0,G.jsx)(Rc,{className:`access-gate-link`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(Bd,{}),(0,G.jsxs)(`span`,{children:[`Tool boundary`,(0,G.jsx)(`strong`,{children:R.tools.length?`${R.tools.length} allow patterns`:`All tool names`})]}),(0,G.jsxs)(`small`,{children:[R.denyTools.length,` exclusions`]})]}),(0,G.jsx)(Rc,{className:`access-gate-link`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(bd,{}),(0,G.jsxs)(`span`,{children:[`Risk ceiling`,(0,G.jsx)(`strong`,{children:R.maxRisk??`No ceiling`})]}),(0,G.jsx)(`small`,{children:R.enabled?`Enabled`:`Inactive`})]})]}),(0,G.jsxs)(`div`,{className:`access-impact`,"aria-live":`polite`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y?.allowed??`—`}),(0,G.jsx)(`span`,{children:`scope allows`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y?.blocked??`—`}),(0,G.jsx)(`span`,{children:`scope blocks`})]})]}),(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Across `,e.tools.length,` catalog tools for the preview target. No-device tools ignore the router selection. Availability, approvals, tool arguments and device capabilities are separate checks.`]}),y&&te&&(0,G.jsxs)(`div`,{className:`access-impact-diff`,children:[(0,G.jsxs)(`span`,{children:[`+`,y.newlyAllowed,` newly allowed`]}),(0,G.jsxs)(`span`,{children:[`−`,y.newlyBlocked,` newly blocked`]})]}),x&&(0,G.jsx)(`p`,{role:`alert`,className:`access-validation`,children:x}),(0,G.jsxs)(`div`,{className:`access-probe`,children:[(0,G.jsxs)(`h4`,{children:[(0,G.jsx)(fd,{className:`size-3.5`}),` Check a specific call`]}),(0,G.jsx)(Ok,{"aria-label":`Search tool catalog`,value:g,placeholder:`Search tool names…`,onChange:e=>_(e.target.value)}),(0,G.jsx)($j,{"aria-label":`Tool to check`,value:m,options:B,onValueChange:h,disabled:!e.tools.length||k}),(0,G.jsx)(`small`,{className:`access-hint`,children:le.length>80?`Showing the first 80 matches. Refine your search.`:`${le.length} matching tools`}),(0,G.jsx)(`div`,{className:K(`access-verdict`,y?.check?.allowed?`is-allowed`:y?.check&&`is-blocked`),role:`status`,children:y?.check?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:y.check.allowed?(0,G.jsx)(cl,{}):(0,G.jsx)(wu,{})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y.check.allowed?`Within the access boundary`:`This call would be blocked`}),(0,G.jsx)(`p`,{children:y.check.reason??`The scope permits this name, risk and target. No call was executed.`})]})]}):(0,G.jsx)(`p`,{children:z?`Complete the router selection to preview.`:x?`Decision unavailable.`:ne?`Confirm or revert the pending change first.`:`Checking your draft…`})})]})]}),(0,G.jsxs)(`section`,{className:`access-card access-runtime`,children:[(0,G.jsxs)(`h3`,{children:[(0,G.jsx)(wu,{className:`size-4`}),` Applied runtime layers`]}),(0,G.jsxs)(`dl`,{children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Operator policy`}),(0,G.jsx)(`dd`,{children:e.configured.enabled?`On`:`Off`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Server read-only`}),(0,G.jsx)(`dd`,{children:e.readOnly?`On · writes unavailable`:`Off`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Session narrowing`}),(0,G.jsx)(`dd`,{children:e.narrowed?`Active`:`None`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Effective risk ceiling`}),(0,G.jsx)(`dd`,{children:e.effective.enabled?ue?.maxRisk??`None`:`Inactive`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Session expiry`}),(0,G.jsx)(`dd`,{children:ue?.expiresAt?new Date(ue.expiresAt).toLocaleString():`Not set`})]})]}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:`Inspect the effective scope`}),(0,G.jsxs)(`dl`,{children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Allowed routers`}),(0,G.jsx)(`dd`,{children:ue?.noDevices?`None · scopes do not overlap`:ue?.devices?.join(`, `)||`All configured`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Blocked routers`}),(0,G.jsx)(`dd`,{children:ue?.denyDevices?.join(`, `)||`None`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Allowed tools`}),(0,G.jsx)(`dd`,{children:ue?.tools?.join(`, `)||`All`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Blocked tools`}),(0,G.jsx)(`dd`,{children:ue?.denyTools?.join(`, `)||`None`})]})]}),!!ue?.toolAllowGroups?.length&&(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Also must match each group:`,` `,ue.toolAllowGroups.map(e=>`(${e.join(`, `)})`).join(` AND `)]})]}),(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Changes affect this server process, not a login account. Runtime narrowing is retained on save; it cannot be reset here. Expiry is set through`,` `,(0,G.jsx)(`code`,{children:`narrow_access_scope`}),`, not the base policy.`]})]})]})]}),(0,G.jsxs)(`footer`,{className:`access-savebar`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:K(`access-save-dot`,te&&`is-dirty`)}),(0,G.jsx)(`strong`,{children:te?`You have unapplied changes`:`No unapplied changes`}),(0,G.jsx)(`small`,{children:`Preview → apply → keep within 60 seconds`})]}),(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[(0,G.jsx)(Z,{ghost:!0,icon:(0,G.jsx)(Kd,{}),disabled:!te||re,onClick:()=>{L(e),w(``),E(``)},children:`Discard draft`}),(0,G.jsx)(Z,{icon:(0,G.jsx)(Hc,{}),disabled:!te||re||!!z||!y||!!x,onClick:()=>{w(``),M(!0)},children:`Review changes`})]})]}),(0,G.jsxs)(`section`,{className:`access-card access-audit`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(nd,{}),title:`Blocked call history`,detail:`Recent real denials in this process. Preview checks never enter this history.`}),(0,G.jsxs)(qj,{type:`secondary`,children:[e.denials.length,` recent`]}),e.denials.length?(0,G.jsx)(`div`,{className:`access-denials`,children:e.denials.map((e,t)=>(0,G.jsxs)(`article`,{children:[(0,G.jsx)(`span`,{className:`access-denial-icon`,children:(0,G.jsx)(af,{})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:e.tool}),(0,G.jsx)(`p`,{children:e.reason}),(0,G.jsxs)(`small`,{children:[e.device??`No device`,` · `,e.risk,` · `,e.rule]})]}),(0,G.jsx)(`time`,{dateTime:new Date(e.ts).toISOString(),children:new Date(e.ts).toLocaleTimeString()})]},`${e.ts}-${t}`))}):(0,G.jsxs)(`div`,{className:`access-audit-empty`,children:[(0,G.jsx)(bd,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h4`,{children:`No blocked calls recorded`}),(0,G.jsxs)(`p`,{children:[e.effective.enabled?`A call appears here only when it violates the active scope.`:`Access scope is off. Once enforced, rejected calls will appear here with the reason.`,` `,`History is in memory and resets on server restart.`]})]})]})]}),(0,G.jsx)(h9,{open:j,onOpenChange:e=>{k||M(e)},children:(0,G.jsxs)(g9,{className:`sm:max-w-2xl max-h-[85svh] overflow-y-auto`,showCloseButton:!k,children:[(0,G.jsxs)(_9,{children:[(0,G.jsx)(y9,{children:`Review access changes`}),(0,G.jsx)(b9,{children:`These are MCP server permissions, not RouterOS settings. Changes apply to subsequent calls in this process immediately.`})]}),(0,G.jsx)(`div`,{className:`access-review-diff`,children:fe.map(t=>(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:t}),(0,G.jsx)(`del`,{children:H(e.configured[t])}),(0,G.jsx)(Hc,{}),(0,G.jsx)(`span`,{children:H(R[t])})]},t))}),(!R.enabled||(y?.newlyAllowed??0)>0)&&(0,G.jsxs)(`div`,{className:`access-message is-warning`,children:[(0,G.jsx)(Sd,{className:`size-4`}),(0,G.jsxs)(`p`,{children:[R.enabled?`${y?.newlyAllowed} catalog tools become newly allowed for this preview target.`:`You are switching off the operator's access policy. Saved rules will not restrict calls while it is off.`,` `,`Other targets may be affected too. Review every change above.`]})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:`A backup is created and a 60-second auto-revert timer starts. You must select Keep changes after applying. Existing session restrictions remain.`}),!e.fromFile&&(0,G.jsx)(`p`,{className:`access-validation`,children:`This process was not loaded from a config file. Settings are written to the default config path, but future launches must use that file to retain them.`}),C&&(0,G.jsx)(`p`,{role:`alert`,className:`access-validation`,children:C}),(0,G.jsxs)(v9,{children:[(0,G.jsx)(Z,{ghost:!0,disabled:k,onClick:()=>M(!1),children:`Cancel`}),(0,G.jsx)(Z,{icon:(0,G.jsx)(bd,{}),loading:k,onClick:()=>void se(),children:`Apply for 60 seconds`})]})]})})]})]})}function s_e({value:e,onChange:t}){let[n,r]=(0,v.useState)([]);return(0,v.useEffect)(()=>{U(`/api/devices`).then(e=>r(e.devices.map(e=>e.name))).catch(()=>r([]))},[]),n.length<=1?null:(0,G.jsx)($j,{size:`sm`,"aria-label":`Device`,value:e??``,onValueChange:e=>t(e||void 0),options:[{value:``,label:`(default device)`},...n.map(e=>({value:e,label:e}))]})}function K9(){return(0,G.jsx)(`div`,{className:`px-5 py-8 text-center text-sm text-muted-foreground`,children:`Loading…`})}function q9({message:e}){return(0,G.jsxs)(`div`,{className:`px-5 py-8 text-center text-sm text-destructive`,children:[`Could not reach the device: `,e]})}var c_e={uplink:`bg-blue-500/15 text-blue-600 dark:text-blue-400`,access:`bg-emerald-500/15 text-emerald-600 dark:text-emerald-400`,hybrid:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,empty:`bg-muted text-muted-foreground`};function l_e(){let[e,t]=(0,v.useState)(void 0),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),u=(0,v.useCallback)(()=>{s(!0),a(null),U(`/api/fabric${e?`?device=${encodeURIComponent(e)}`:``}`).then(e=>e.error?a(e.error):r(e)).catch(e=>a(e instanceof Error?e.message:String(e))).finally(()=>s(!1))},[e]);(0,v.useEffect)(()=>u(),[u]);let d=c.trim().toLowerCase(),f=(n?.ports??[]).map(e=>d?{...e,hosts:e.hosts.filter(t=>t.label.toLowerCase().includes(d)||t.mac.toLowerCase().includes(d)||(t.ip??``).includes(d)||e.interface.toLowerCase().includes(d))}:e).filter(e=>!d||e.hosts.length>0||e.interface.toLowerCase().includes(d));return(0,G.jsx)(X,{title:`Layer-2 Fabric — hosts by physical port`,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`input`,{className:`rounded-md border border-border bg-background px-2 py-1 text-xs`,placeholder:`find MAC / IP / host…`,value:c,onChange:e=>l(e.target.value)}),(0,G.jsx)(s_e,{value:e,onChange:t}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,loading:o,icon:(0,G.jsx)(ed,{}),onClick:u,children:`Refresh`})]}),children:i==null?n==null?(0,G.jsx)(K9,{}):(0,G.jsxs)(`div`,{className:`px-5`,children:[(0,G.jsxs)(`div`,{className:`mb-4 flex flex-wrap gap-4 text-xs text-muted-foreground`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.ports}),` occupied ports`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.hosts}),` hosts`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.accessPorts}),` access`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.uplinks}),` uplink`]}),n.stats.unidentified>0&&(0,G.jsxs)(`span`,{className:`text-amber-600 dark:text-amber-400`,children:[(0,G.jsx)(`strong`,{children:n.stats.unidentified}),` unidentified`]})]}),f.length===0?(0,G.jsx)(`div`,{className:`py-8 text-center text-sm text-muted-foreground`,children:n.ports.length===0?`No bridge host entries — this device may have no bridge, or switch-chip offload is forwarding without populating the host table.`:`No host matches that search.`}):(0,G.jsx)(`div`,{className:`grid gap-2 pb-2`,children:f.map(e=>(0,G.jsxs)(`div`,{className:`rounded-lg border border-border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-2 flex items-center gap-2`,children:[(0,G.jsx)(il,{className:`size-3.5 text-muted-foreground`}),(0,G.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:e.interface}),(0,G.jsx)(`span`,{className:`rounded px-1.5 py-0.5 text-[10px] font-medium uppercase ${c_e[e.role]??``}`,children:e.role}),e.bridge!=null&&(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e.bridge}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[e.hostCount,` host`,e.hostCount===1?``:`s`]})]}),(0,G.jsx)(`div`,{className:`grid gap-1`,children:e.hosts.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-xs`,children:[e.isNetworkDevice?(0,G.jsx)(Iu,{className:`size-3 shrink-0 text-blue-500`}):(0,G.jsx)(`span`,{className:`size-3 shrink-0`}),(0,G.jsx)(`span`,{className:`font-medium`,children:e.label}),(0,G.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground`,children:e.mac}),e.ip!=null&&(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e.ip}),e.vendor!=null&&(0,G.jsx)(`span`,{className:`rounded bg-muted px-1 text-[10px] text-muted-foreground`,children:e.vendor})]},e.mac))})]},e.interface))})]}):(0,G.jsx)(q9,{message:i})})}var u_e={critical:`bg-red-500/15 text-red-600 dark:text-red-400`,high:`bg-orange-500/15 text-orange-600 dark:text-orange-400`,medium:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,low:`bg-slate-500/15 text-slate-600 dark:text-slate-400`},d_e={unrestricted:`reachable — no source restriction`,restricted:`restricted to specific addresses`,mitigated:`mitigated — service not enabled`,unknown:`needs manual confirmation`};function f_e(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!1),u=(0,v.useCallback)(()=>{a(!0),r(null),U(`/api/advisories${o?`?all=1`:``}`).then(e=>e.error?r(e.error):t(e)).catch(e=>r(e instanceof Error?e.message:String(e))).finally(()=>a(!1))},[o]);(0,v.useEffect)(()=>u(),[u]);let d=(e?.findings??[]).filter(e=>c||e.exposure!==`mitigated`);return(0,G.jsx)(X,{title:`Known vulnerabilities`,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-3 text-xs`,children:[(0,G.jsxs)(`label`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:o,onChange:e=>s(e.target.checked)}),`whole fleet`]}),(0,G.jsxs)(`label`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(e.target.checked)}),`show mitigated`]}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,loading:i,icon:(0,G.jsx)(ed,{}),onClick:u,children:`Refresh`})]}),children:n==null?e==null?(0,G.jsx)(K9,{}):(0,G.jsxs)(`div`,{className:`px-5`,children:[(0,G.jsx)(`div`,{className:`mb-3 grid gap-1 text-xs text-muted-foreground`,children:e.devices.map(e=>(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:e.device??`default`}),` — RouterOS`,` `,e.version||`(unreadable)`,e.board!=null&&` on ${e.board}`,` · `,e.enabledServices,` service(s) enabled,`,` `,(0,G.jsxs)(`span`,{className:e.unrestrictedServices>0?`text-amber-600 dark:text-amber-400`:void 0,children:[e.unrestrictedServices,` unrestricted`]})]},e.device??`default`))}),e.unreadable.length>0&&(0,G.jsxs)(`div`,{className:`mb-3 rounded-md bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-400`,children:[`Could not read a version from: `,e.unreadable.join(`, `),`. Not audited — treat as unknown, not clean.`]}),d.length===0?(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center`,children:[(0,G.jsx)(bd,{className:`size-6 text-emerald-500`}),(0,G.jsx)(`div`,{className:`text-sm`,children:`No matching advisories under the current filters.`})]}):(0,G.jsx)(`div`,{className:`grid gap-2 pb-2`,children:d.map((e,t)=>(0,G.jsxs)(`div`,{className:`rounded-lg border border-border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`rounded px-1.5 py-0.5 text-[10px] font-semibold uppercase ${u_e[e.advisory.severity]??``}`,children:e.advisory.severity}),(0,G.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:e.advisory.id}),e.advisory.cvss!=null&&(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`CVSS `,e.advisory.cvss]}),e.device!=null&&(0,G.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 text-[10px]`,children:e.device}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`risk `,e.score]})]}),(0,G.jsx)(`div`,{className:`text-sm font-medium`,children:e.advisory.title}),(0,G.jsxs)(`div`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.exposure===`mitigated`?(0,G.jsx)(Sd,{className:`mr-1 inline size-3`}):(0,G.jsx)(Wd,{className:`mr-1 inline size-3`}),d_e[e.exposure],` · running `,e.version,` → fixed in`,` `,(0,G.jsx)(`strong`,{className:`text-foreground`,children:e.fixedIn})]}),e.exposedServices.length>0&&(0,G.jsxs)(`div`,{className:`mt-1 text-[11px] text-muted-foreground`,children:[`exposed via`,` `,e.exposedServices.map(e=>`${e.name}${e.port==null?``:`:${e.port}`}${e.allowedFrom.length>0?` (from ${e.allowedFrom.join(`, `)})`:` (from ANY)`}`).join(`, `)]}),e.manualCheck!=null&&(0,G.jsxs)(`div`,{className:`mt-1 text-[11px] text-amber-600 dark:text-amber-400`,children:[`confirm: `,e.manualCheck]}),(0,G.jsx)(`div`,{className:`mt-2 text-xs`,children:e.advisory.summary}),(0,G.jsxs)(`div`,{className:`mt-2 rounded bg-muted/60 p-2 text-xs`,children:[(0,G.jsx)(`strong`,{children:`Fix:`}),` `,e.advisory.remediation]}),(0,G.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-2`,children:e.advisory.references.map(e=>(0,G.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer noopener`,className:`text-[11px] text-blue-600 underline dark:text-blue-400`,children:new URL(e).hostname},e))})]},`${e.device??``}${e.advisory.id}${t}`))}),(0,G.jsxs)(`div`,{className:`border-t border-border pt-3 pb-1 text-[11px] text-muted-foreground`,children:[`Dataset reviewed `,e.datasetDate,` · `,e.datasetSize,` advisories. A clean result means nothing in this dataset matched — not that no vulnerability exists. Cross-check the vendor's security notices for anything newer.`]})]}):(0,G.jsx)(q9,{message:n})})}zi.registerPlugin(ac);function J9(e,t,n){let r=URL.createObjectURL(new Blob([t],{type:`${n};charset=utf-8`})),i=document.createElement(`a`);i.href=r,i.download=e,document.body.append(i),i.click(),i.remove(),URL.revokeObjectURL(r)}var p_e=new Set(kk.map(e=>e.id)),Y9=`mt-view`;function X9(){try{return Mk(location.hash)}catch{return null}}function m_e(){let e=X9();if(e)return e;try{let e=localStorage.getItem(Y9);if(e&&p_e.has(e))return e}catch{}return`overview`}var h_e={overview:{what:`A live pulse of all MCP tool activity: total calls, error rate, p50/p95 latency, the busiest tools, and a risk breakdown — over a time window you choose.`,tips:[`Change the time window (top-right) to zoom from the last 5 minutes out to 24 hours.`,`The risk donut splits calls by annotation: read · write · destructive · dangerous.`,`A rising error line usually points at one device or one tool — jump to Live Feed to see which.`]},devices:{what:`Every configured router with its live reachability (SSH or MAC-Telnet), latency, identity, and system health — CPU, memory and disk — refreshed continuously.`,tips:[`Each device gets a stable colour so you can track it across the connectivity radar.`,`Health (CPU/Mem/Disk) is probed periodically; MAC-Telnet devices are probed on a slower cadence.`,`Latency tiers are colour-coded green → amber → red; a grey node is currently unreachable.`,`The SSH Connection Pool panel shows persistent connections: green = idle/ready, blue = busy with inflight channels, red = reconnecting.`]},clients:{what:`The LAN devices connected to a router — merged from its DHCP leases and ARP table — with live Download/Upload charts, and one-click controls to block/allow a device, pin (reserve) its IP, change that IP, or relabel it.`,tips:[`Pick the router (top-right) to inspect its connected devices; filter by IP, MAC or name.`,`Click a device to open its live ↓/↑ traffic chart — needs a simple queue targeting its IP.`,`Block/allow is enforced by MAC, so it survives the device changing IP; “Pin IP” makes its lease static.`]},investigations:{what:`Saved client/service investigations with explicitly scoped router evidence and unperformed next experiments.`,tips:[`Opening history never queries routers.`,`A successful router ping does not prove the client application works.`,`Unknown evidence is never treated as a healthy zero.`]},"service-contracts":{what:`Immutable service contracts with explicit MCP-host DNS/TCP/TLS/HTTPS checks and optional fresh-export packet simulation.`,tips:[`Only administrator-approved endpoints can be probed.`,`PASS proves checks from this host, not a branch client's experience.`,`Unknown evidence cannot pass a service gate.`]},"round-trip":{what:`Offline static IPv4 transit modelling across explicit forward and reverse router paths.`,tips:[`Use exact, recent snapshot IDs for all routers.`,`NAT and unsupported paths stop with UNKNOWN.`,`MODELLED does not prove live delivery or endpoint health.`]},aaa:{what:"Full management of the router's RADIUS client (`/radius`) and the built-in User Manager RADIUS server (`/user-manager`): RADIUS servers + incoming CoA, and User Manager users, service profiles, rate/quota limitations, NAS clients, profile assignments, accounting sessions, and global settings.",tips:[`Pick the router (top-right), then switch tabs across RADIUS, Users, Profiles, Limitations, NAS, Assignments, Sessions and Settings.`,`Every tab is full CRUD: add, edit, enable/disable and remove — secrets are write-only and shown redacted.`,`The Usage & Heatmap tab shows each user's 3-month download/upload and a GitHub-style connection heatmap, persisted locally.`,`If a device lacks the user-manager package, the User Manager tabs explain how to install it; RADIUS-client tabs still work.`]},topology:{what:`A Layer-2 map of neighbours each router discovers via MNDP / CDP / LLDP — the physical adjacency of your network, drawn live.`,tips:[`Solid nodes are configured devices; faint nodes are discovered-but-unmanaged neighbours.`,`Use “Add to config →” on an unmanaged neighbour to pre-fill it in the Config editor.`,`Drag to pan; the layout settles automatically as new neighbours arrive.`]},fabric:{what:`Port-level Layer-2 occupancy: which hosts sit behind each bridge port, named from DHCP leases, ARP, the neighbour cache and the hardware vendor prefix.`,tips:[`Unlike Topology (MNDP/LLDP only), this sees every host that has passed a frame — printers, IoT, laptops.`,`Ports are classified by occupancy: one host is access, many is an uplink or a downstream switch.`,`Search by MAC, IP or hostname to answer “which port is this plugged into?”.`]},vulns:{what:`Published RouterOS advisories matched against the version this device runs, then ranked by whether the affected service is actually enabled and reachable.`,tips:[`“Reachable” means the vulnerable service is on with no source-address restriction — patch those first.`,`Mitigated findings are hidden by default: the version matches, but the affected service is off.`,`A clean result only means nothing in the bundled dataset matched — check the vendor feed for newer advisories.`]},access:{what:`The caller boundary enforced on this session — the risk ceiling, device allow/deny lists and tool globs — plus every call that was blocked by it.`,tips:["Enable it with `access.enabled` in the server config; `readOnly` is the blunter, all-or-nothing alternative.",`A session can restrict itself further with the narrow_access_scope tool — that operation is one-way.`,`Denials record the exact rule that blocked the call, so a scope that is too tight is obvious rather than mysterious.`]},packets:{what:`Live packet capture streamed from a router over TZSP — decode headers in real time without leaving the dashboard.`,tips:[`Pick a device and start the capture; packets decode as they arrive.`,`Stop the capture when done — it frees the router-side sniffer.`,`Great for debugging a protocol issue alongside the Live Feed of tool calls.`]},snapshots:{what:`Point-in-time captures of a device’s full configuration (/export), stored locally so you can diff any two and see exactly what changed.`,tips:[`Capture a snapshot before a risky change, then diff after to audit the delta.`,`The diff is line-level: green added, red removed.`,`Snapshots are device config exports — for the dashboard’s OWN config history see the Config page.`]},drift:{what:`Detect when router configs drift from their golden baseline — with change attribution and one-click reconciliation.`,tips:[`Set a baseline via MCP tools (config_set_baseline) or the Baseline Manager below.`,`Click a device card to run a live drift check against its golden config.`,`Promote accepted changes as the new baseline, or reconcile to roll back.`]},flows:{what:`Continuous traffic analytics from NetFlow/IPFIX the router exports here — who is using the bandwidth, talking to what, on which application. Flow metadata only; no packet payload is carried or stored.`,tips:[`Empty page? Read the collector strip first — 'templates pending' means v9/IPFIX data arrived before the layout that decodes it, and resolves on the next refresh.`,`Set it up with the setup-traffic-flow prompt: start the collector, then point the router at this host.`,`Flows are cheap and aggregate; use Packets (TZSP) when you need to see inside a specific conversation.`]},attacks:{what:`Watches every device's log for brute force, credential spraying, a login that SUCCEEDED after failures, port scans and unexplained config changes, and correlates them into incidents with evidence.`,tips:[`Detect-only is the default — the banner says whether anything would actually be blocked.`,`Evidence is one click away on every incident: an incident that cannot show its work should not be acted on.`,`"Detectors that could not run" matters most — a quiet result from a detector with no input is not a safe network.`]},policies:{what:`Policy-as-code: your organisation's own compliance rules, written as YAML and evaluated against a config snapshot. Read-only — it never changes a device.`,tips:[`A rule matching nothing is NOT-APPLICABLE, never a pass — that is what keeps the score honest.`,`"Must not be yes" is none_of + equals; not_equals also requires the field to be present.`,`Export as SARIF to lint a router's config in a pull request like source code.`]},explain:{what:`Turns a router's configuration into the architecture document that should have been in the wiki: what the box is for, topology, addressing, firewall, and what is exposed to the internet.`,tips:[`Exposure is shown first because it is the part people actually read.`,`"What this document does not cover" lists the menus it did not analyse — that is where the surprises live.`,`Compare mode explains the CONSEQUENCE of a change; Snapshots shows which lines moved.`]},simulator:{what:`Trace a hypothetical packet through NAT, routing and firewall against the config — offline, read-only. Answers "would this get through, and which rule decides?" before anything is changed.`,tips:[`UNKNOWN is not a pass: the model met something it does not implement and declined to guess.`,"Connection state is declared, not inferred — say `established` if that is what you mean.",`Reachability needs no packet: it shows which rules can never match.`]},schedules:{what:`Runs the auditors on a cron with nobody in the loop, keeps every result, and reports only what CHANGED since the previous run — new, worsened, resolved.`,tips:[`Unchanged findings are silent by design; an audit that reports 40 findings nightly gets muted.`,`The first run is only a baseline — the useful output arrives on the second.`,`Empty heat-calendar cells mean no run that day, which is not the same as a clean one.`]},txn:{what:`Coordinate one change across several routers: each participant stages it in Safe Mode, the assertions run while nothing is committed, then every device commits — or none does.`,tips:[`Green/amber/red cells show where a distributed operation actually is.`,`PARTIAL is the case to act on: some devices committed, and the report names the snapshot to restore each from.`,`Start one with begin_transaction; abort a live one from its detail panel.`]},plan:{what:`Dry-run the exact RouterOS commands a change would run before it touches a device — a change plan you can review and trust.`,tips:[`Paste or build intended commands to see them validated and ordered.`,`Nothing is sent to the device from here — it’s a preview.`,`Pair with Safe Mode (auto-revert) when you do apply for real.`]},s3:{what:`Browse, download, and delete backup objects in your configured S3-compatible bucket — your off-box archive of device backups and exports.`,tips:[`Filter by key prefix to find a device’s backups quickly.`,`Download fetches the object through a presigned URL; delete is permanent.`,`For host-side .rsc backups instead, use the Backups page.`]},backups:{what:`A local config vault on the MCP server: capture a device’s /export as a timestamped .rsc file, then download, upload, rename, restore (via Safe Mode), or delete it.`,tips:[`Restore offers a dry-run (applies then rolls back) before you commit for real.`,`Edit the vault path inline in the header — it’s saved to your config.`,`Filenames are stamped in the device’s local 24-hour clock.`]},modules:{what:"Every tool module in the catalog with a live on/off switch. Toggling one writes your config file's `tools` block (disabledModules / enabledModules) and applies it immediately, so you can curate exactly which scopes the MCP server exposes.",tips:[`MCP clients search-rank tools and degrade past ~100; trim the surface below ~150–200 tools so every remaining tool is reliably findable.`,`Disable adds the module to tools.disabledModules; enable removes it (or adds it to an active allow-list) — your config file is updated live on each toggle.`,`Changes need an MCP client reconnect (or a server restart) to actually shrink/grow the visible tool list.`]},config:{what:`View the effective configuration, edit it safely with schema-aware validation and auto-rollback, browse a full field guide, and travel through config version history.`,tips:[`Every successful apply is auto-saved to the version timeline — restore any point in time.`,`Save a named checkpoint before a big change for an easy, labelled rollback.`,`The Field Guide documents every config option, its type, and default — straight from the schema.`]},memory:{what:`A persistent knowledge graph the AI builds across sessions — entities (routers, subnets, users), relations between them, and free-text observations.`,tips:[`Entities are created by the AI via MCP tools — you can browse and delete them here.`,`The graph visualization shows entities as circles and relations as directed edges; click a node to inspect it.`,`Change the database path to switch between different knowledge bases.`]},alerts:{what:`Rules that watch this server and reach out when something changes — an error spike, a device going dark, a destructive call on a named router — delivered to Slack, Discord, ntfy, a webhook, or the MCP client itself.`,tips:[`Firing alerts are pinned to the top with a Mute action — that is the only thing that matters when you open this page under pressure.`,"`for` stops a two-second blip paging anyone; `cooldown` bounds re-fires. A link bouncing ten times inside the cooldown produces exactly one alert and one resolve.",`Test a channel before relying on it — a silently broken webhook is worse than none.`,`Webhook URLs are never shown in full: the path is the credential, so only scheme and host are displayed.`]},releases:{what:`Every published version of the server on a timeline, with its release notes. Upgrade to the latest, or install any specific version to upgrade or downgrade.`,tips:[`The green dot marks the version you're running now; the brand dot marks the latest.`,"Install runs `bun i -g @usex/mikrotik-mcp@<version>` on the server, then it self-restarts onto that version (the connection drops briefly).",`Click a version to expand its release notes; the latest is expanded by default.`]},capsman:{what:`The CAPsMAN Wi-Fi fabric for this controller: managed APs grouped by floor with per-radio health (client load, CPU, co-channel conflicts), weak-signal clients with the recommended neighbor AP to steer toward, and a roaming (802.11r FT) + HA redundancy audit.`,tips:[`Radio cards are colored by health; a red 'co-ch' badge means an adjacent radio shares its channel — the proposed channel is shown as →N.`,`Floors come from the AP identity/comment tag (e.g. AP-F3-E); unfloored APs are grouped by inferred signal adjacency.`,`This page is read-only in this release — steering, channel-plan apply, FT enable and HA setup arrive in later phases.`]},feed:{what:`Every tool call as it happens — tool, device, risk, duration, and success/error — with full request/response detail on click.`,tips:[`Filter by status to isolate failures, or by tool/device to follow one thread.`,`Click any row to open the full (secret-redacted) request and response.`,`Pause the stream when you want to inspect without rows shifting under you.`]}};function Z9({icon:e,title:t,sub:n,body:r,className:i}){return(0,G.jsxs)(`div`,{className:K(`text-muted-foreground flex flex-col items-center gap-2 rounded-lg border border-dashed px-6 py-14 text-center`,i),children:[e,(0,G.jsx)(`p`,{className:`text-foreground text-sm font-medium`,children:t}),n!=null&&(0,G.jsx)(`p`,{className:`max-w-md text-xs`,children:n}),r]})}function g_e({view:e}){let t=h_e[e];return(0,G.jsxs)(`div`,{className:`bg-card reveal flex gap-3 rounded-lg border p-4`,role:`region`,"aria-label":`Page help`,children:[(0,G.jsx)(Sl,{className:`text-brand mt-0.5 size-4 shrink-0`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,G.jsx)(`p`,{className:`text-sm`,children:t.what}),(0,G.jsx)(`ul`,{className:`text-muted-foreground list-disc space-y-1 pl-4 text-xs`,children:t.tips.map((e,t)=>(0,G.jsx)(`li`,{children:e},t))})]})]})}function __e(){return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,className:`size-3.5`,children:(0,G.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,G.jsx)(`path`,{d:`M21 12a9 9 0 1 1-2.64-6.36`}),(0,G.jsx)(`path`,{d:`M21 3v6h-6`})]})})}function v_e(){let[e,t]=(0,v.useState)(!1);async function n(e){t(!0);let n=Y.loading(e?`Restarting server…`:`Reloading config…`);try{let t=await _c(`/api/reload`,{hard:e});t?.ok?e?Y.success(`Restarting — reconnect shortly`,{id:n,description:t.note}):Y.success(`Config reloaded · ${t.count??`?`} device${t.count===1?``:`s`}`,{id:n}):Y.error(t?.error??(e?`Restart failed`:`Reload failed`),{id:n})}catch{Y.error(`${e?`Restart`:`Reload`} failed (server unreachable)`,{id:n})}finally{t(!1)}}return(0,G.jsxs)(`div`,{className:`inline-flex w-fit -space-x-px`,role:`group`,"aria-label":`Reload server`,children:[(0,G.jsxs)(YD,{variant:`outline`,size:`sm`,disabled:e,onClick:()=>void n(!1),title:`Re-read the config from disk and apply it live (no downtime)`,className:`rounded-r-none focus-visible:z-10`,children:[(0,G.jsx)(__e,{}),`Reload Server`]}),(0,G.jsxs)(XD,{children:[(0,G.jsx)(ZD,{asChild:!0,children:(0,G.jsx)(YD,{variant:`outline`,size:`sm`,disabled:e,title:`Fully restart the server process (relaunches itself, drops the connection briefly)`,className:`rounded-l-none px-2 focus-visible:z-10`,children:`Restart`})}),(0,G.jsxs)(QD,{children:[(0,G.jsxs)($D,{children:[(0,G.jsx)(tO,{children:`Restart the MCP server?`}),(0,G.jsxs)(nO,{children:[`The server relaunches itself and rebinds the same port(s) in ~1.5s — no external supervisor needed. The current connection drops briefly; reconnect after. To pick up a newly added device without downtime, use `,(0,G.jsx)(`b`,{children:`Reload Server`}),` instead.`]})]}),(0,G.jsxs)(eO,{children:[(0,G.jsx)(iO,{children:`Cancel`}),(0,G.jsx)(rO,{className:JD({variant:`destructive`}),onClick:()=>void n(!0),children:`Restart`})]})]})]})]})}function Q9({name:e}){return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:{overview:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`3`,width:`8`,height:`8`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`13`,y:`3`,width:`8`,height:`5`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`13`,y:`10`,width:`8`,height:`11`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`8`,height:`8`,rx:`1.6`})]}),devices:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`7`,rx:`2`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`18`,height:`7`,rx:`2`}),(0,G.jsx)(`path`,{d:`M7 7.5h.01M7 16.5h.01`})]}),clients:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`9`,cy:`8`,r:`3`}),(0,G.jsx)(`path`,{d:`M3.5 19a5.5 5.5 0 0 1 11 0`}),(0,G.jsx)(`path`,{d:`M16 7.5a2.5 2.5 0 0 1 0 5M17.5 19a4.5 4.5 0 0 0-2-3.6`})]}),investigations:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`10`,cy:`10`,r:`6`}),(0,G.jsx)(`path`,{d:`m15 15 6 6M7 10h6M10 7v6`})]}),"service-contracts":(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`m12 3 8 3v5c0 5-5 8-8 10-3-2-8-5-8-10V6Z`}),(0,G.jsx)(`path`,{d:`m8 12 3 3 5-6`})]}),"round-trip":(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(`path`,{d:`M4 7h16m-4-4 4 4-4 4M20 17H4m4-4-4 4 4 4`})}),aaa:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v5c0 4.4 3.2 7.6 8 9 4.8-1.4 8-4.6 8-9V6l-8-3Z`}),(0,G.jsx)(`path`,{d:`M9.5 11.5 11 13l3.5-3.5`})]}),topology:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`5`,r:`2.4`}),(0,G.jsx)(`circle`,{cx:`5`,cy:`19`,r:`2.4`}),(0,G.jsx)(`circle`,{cx:`19`,cy:`19`,r:`2.4`}),(0,G.jsx)(`path`,{d:`M12 7.4 6.4 16.6M12 7.4 17.6 16.6`})]}),fabric:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`5`,rx:`1.4`}),(0,G.jsx)(`path`,{d:`M7 9v4M12 9v4M17 9v4`}),(0,G.jsx)(`rect`,{x:`4`,y:`13`,width:`6`,height:`4`,rx:`1`}),(0,G.jsx)(`rect`,{x:`14`,y:`13`,width:`6`,height:`4`,rx:`1`})]}),vulns:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v6c0 4.4 3.4 7.6 8 9 4.6-1.4 8-4.6 8-9V6z`}),(0,G.jsx)(`path`,{d:`M12 9v4`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`16`,r:`0.6`})]}),access:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`4`,y:`10`,width:`16`,height:`10`,rx:`2`}),(0,G.jsx)(`path`,{d:`M8 10V7a4 4 0 0 1 8 0v3`})]}),packets:(0,G.jsx)(`path`,{d:`M3 12h4l2-7 4 14 2-7h6`}),flows:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M3 6h7a4 4 0 0 1 4 4v4a4 4 0 0 0 4 4h3`}),(0,G.jsx)(`path`,{d:`M3 18h5`}),(0,G.jsx)(`path`,{d:`m18 5 3 3-3 3`})]}),snapshots:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 3 7.5 12 12 21 7.5 12 3Z`}),(0,G.jsx)(`path`,{d:`M3 12 12 16.5 21 12`}),(0,G.jsx)(`path`,{d:`M3 16.5 12 21 21 16.5`})]}),drift:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`}),(0,G.jsx)(`path`,{d:`M9 12l2 2 4-4`}),(0,G.jsx)(`path`,{d:`M12 6v2M12 16v2M6 12h2M16 12h2`})]}),simulator:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 6h6`}),(0,G.jsx)(`path`,{d:`M4 12h10`}),(0,G.jsx)(`path`,{d:`M4 18h4`}),(0,G.jsx)(`path`,{d:`m14 15 3 3 5-6`})]}),attacks:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v6c0 4.4 3.4 7.9 8 9 4.6-1.1 8-4.6 8-9V6Z`}),(0,G.jsx)(`path`,{d:`m9.5 12 2 2 3.5-4`})]}),explain:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 5h11a2 2 0 0 1 2 2v13`}),(0,G.jsx)(`path`,{d:`M4 5v13a2 2 0 0 0 2 2h11`}),(0,G.jsx)(`path`,{d:`M8 9h6`}),(0,G.jsx)(`path`,{d:`M8 13h4`})]}),schedules:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`13`,r:`8`}),(0,G.jsx)(`path`,{d:`M12 9v4l2.5 2`}),(0,G.jsx)(`path`,{d:`M5 3 2.5 5.5`}),(0,G.jsx)(`path`,{d:`m19 3 2.5 2.5`})]}),policies:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z`}),(0,G.jsx)(`path`,{d:`M14 3v5h5`}),(0,G.jsx)(`path`,{d:`m9 14 2 2 4-4`})]}),txn:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`7`,height:`6`,rx:`1.5`}),(0,G.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`6`,rx:`1.5`}),(0,G.jsx)(`path`,{d:`M10 7h4a3 3 0 0 1 3 3v4`}),(0,G.jsx)(`path`,{d:`M14 17h-4a3 3 0 0 1-3-3v-4`})]}),plan:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`6`,cy:`6`,r:`2.3`}),(0,G.jsx)(`circle`,{cx:`6`,cy:`18`,r:`2.3`}),(0,G.jsx)(`circle`,{cx:`18`,cy:`8`,r:`2.3`}),(0,G.jsx)(`path`,{d:`M6 8.3v7.4M8.3 6H13a3 3 0 0 1 3 3v0`})]}),s3:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`ellipse`,{cx:`12`,cy:`6`,rx:`7`,ry:`2.6`}),(0,G.jsx)(`path`,{d:`M5 6v12c0 1.5 3.1 2.6 7 2.6s7-1.1 7-2.6V6`}),(0,G.jsx)(`path`,{d:`M5 12c0 1.5 3.1 2.6 7 2.6s7-1.1 7-2.6`})]}),backups:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M3 6.5 5 3.5h14l2 3`}),(0,G.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`14`,rx:`2`}),(0,G.jsx)(`path`,{d:`M9.5 12h5`})]}),modules:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`6`,rx:`3`}),(0,G.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.5`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`18`,height:`6`,rx:`3`}),(0,G.jsx)(`circle`,{cx:`16`,cy:`16`,r:`1.5`})]}),config:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 7h8M16 7h4M4 17h4M12 17h8`}),(0,G.jsx)(`circle`,{cx:`14`,cy:`7`,r:`2.2`}),(0,G.jsx)(`circle`,{cx:`10`,cy:`17`,r:`2.2`})]}),memory:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`6`,r:`2`}),(0,G.jsx)(`circle`,{cx:`6`,cy:`14`,r:`2`}),(0,G.jsx)(`circle`,{cx:`18`,cy:`14`,r:`2`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`20`,r:`2`}),(0,G.jsx)(`path`,{d:`M12 8v-0.5M12 8 7.2 12.5M12 8 16.8 12.5M6 16 10.5 18.5M18 16 13.5 18.5`})]}),alerts:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 4a5 5 0 0 0-5 5v3.5L5.5 15h13L17 12.5V9a5 5 0 0 0-5-5z`}),(0,G.jsx)(`path`,{d:`M10 18a2 2 0 0 0 4 0`})]}),releases:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3v12`}),(0,G.jsx)(`path`,{d:`M8 11l4 4 4-4`}),(0,G.jsx)(`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`})]}),capsman:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M5 12a7 7 0 0 1 14 0`}),(0,G.jsx)(`path`,{d:`M8.5 12a3.5 3.5 0 0 1 7 0`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.4`,fill:`currentColor`,stroke:`none`}),(0,G.jsx)(`path`,{d:`M12 13.4V20`})]}),feed:(0,G.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h10`})}[e]})}function y_e(){let[e,t]=(0,v.useState)(!1),[n,r]=(0,v.useState)(!0),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),f=Ege(o?.version),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),[b,x]=(0,v.useState)(!1),[S,C]=(0,v.useState)(null),[w,T]=(0,v.useState)([]),[E,D]=(0,v.useState)(36e5),O=Number(h?.dashboard?.feedLimit)||200,k=(0,v.useCallback)(async e=>{if(!h)return;let t={...h.dashboard,feedLimit:e};await _c(`/api/config`,{config:{...h,dashboard:t},rollbackMs:0}).catch(()=>Y.error(`Could not save the feed limit`)),await U(`/api/config`).then(g).catch(()=>{})},[h]),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(`off`),[P,F]=(0,v.useState)(null),[I,L]=(0,v.useState)(null),[ee,R]=(0,v.useState)(null),[te,z]=(0,v.useState)(null),[ne,re]=(0,v.useState)(null),[ie,ae]=(0,v.useState)(null),[oe,se]=(0,v.useState)(()=>new Set),[ce,le]=(0,v.useState)({}),[B,V]=(0,v.useState)({tool:``,risk:``,device:``,status:``,q:``}),ue=(0,v.useRef)(A);ue.current=A;let de=(0,v.useRef)(null);EM(de);let[H,fe]=(0,v.useState)(m_e),pe=(0,v.useCallback)(e=>{fe(e),x(!1);try{X9()!==e&&(location.hash=e),localStorage.setItem(Y9,e)}catch{}},[]);(0,v.useEffect)(()=>{if(X9()!==H)try{location.hash=H}catch{}let e=()=>{let e=X9();e&&pe(e)};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let[me,he]=(0,v.useState)(()=>{try{let e=localStorage.getItem(`mt-help-open`);return new Set(e?JSON.parse(e):[])}catch{return new Set}}),ge=e=>he(t=>{let n=new Set(t);n.has(e)?n.delete(e):n.add(e);try{localStorage.setItem(`mt-help-open`,JSON.stringify([...n]))}catch{}return n});TM((0,v.useCallback)(e=>{if(ue.current)return;F(e),L(Date.now()),T(t=>[e,...t].slice(0,Yk));let t=e.device;t&&le(e=>({...e,[t]:(e[t]??0)+1}))},[]),(0,v.useCallback)(e=>N(e),[]));let _e=(0,v.useCallback)(()=>{ue.current||U(`/api/events?limit=${Yk}`).then(e=>T(e.events)).catch(()=>{})},[]),ve=(0,v.useRef)(``);ve.current=`${H}:${E}`;let ye=async()=>{let e=ve.current,t=AbortSignal.timeout(1e4);if(H===`feed`){if(ue.current)return;let n=new Set(w.map(e=>e.id)),[r,i]=await Promise.all([U(`/api/events?limit=${Yk}`,t),U(`/api/meta`,t)]);if(ve.current!==e||ue.current)return;s(i),T(e=>[...new Map([...e.filter(e=>!n.has(e.id)),...r.events].map(e=>[e.id,e])).values()].sort((e,t)=>t.ts-e.ts).slice(0,Yk))}else if(H===`devices`){let n=await U(`/api/devices`,t);ve.current===e&&l(n)}else if(H===`overview`){let[n,r,i]=await Promise.all([U(`/api/stats?window=${E}&buckets=60`,t),U(`/api/meta`,t),U(`/api/devices`,t)]);if(ve.current!==e)return;a(n),R(Date.now()),s(r),l(i)}};(0,v.useEffect)(()=>{_e()},[_e]),(0,v.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&_e()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[_e]);let be=(0,v.useCallback)(()=>{U(`/api/stats?window=${E}&buckets=60`).then(e=>{a(e),R(Date.now())}).catch(()=>{})},[E]);(0,v.useEffect)(()=>{be();let e=()=>{be(),U(`/api/meta`).then(s).catch(()=>{}),U(`/api/devices`).then(l).catch(()=>{}),U(`/api/ssh-pool`).then(e=>{d(e),z(Date.now())}).catch(()=>{}),U(`/api/topology`).then(m).catch(()=>{})};e();let t=setInterval(()=>{ue.current||e()},4e3);return()=>clearInterval(t)},[be]),(0,v.useEffect)(()=>{let e=()=>void U(`/api/config`).then(g).catch(()=>{});e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]);let xe=(0,v.useCallback)((e,t)=>{_c(`/api/devices/toggle`,{device:e,disabled:t}).then(n=>{l(n),Y.success(`Device ${e} ${t?`disabled`:`enabled`}`)}).catch(()=>Y.error(`Could not ${t?`disable`:`enable`} ${e}`))},[]),Se=(0,v.useCallback)(async(e,t)=>{try{let n=await _c(`/api/devices/${e}`,{device:t});l(n);let r=n.status?.reachable,i=e===`reconnect`?`Reconnected to`:`Tested`;r===!1?Y.error(`${t} is unreachable`):Y.success(`${i} ${t}`)}catch{Y.error(`Could not ${e===`reconnect`?`reconnect to`:`test`} ${t}`)}},[]),Ce=(0,v.useCallback)(e=>Se(`test`,e),[Se]),we=(0,v.useCallback)(e=>Se(`reconnect`,e),[Se]),[Te,Ee]=(0,v.useState)({}),De=(0,v.useCallback)(async()=>{try{let e=await U(`/api/capabilities`);Ee(Object.fromEntries(e.devices.map(e=>[e.device,e.capabilities])))}catch{}},[]);(0,v.useEffect)(()=>{De()},[De]);let[Oe,ke]=(0,v.useState)(null);(0,v.useEffect)(()=>{let e=!0,t=async()=>{try{let t=await U(`/api/alerts`);e&&(ke(Array.isArray(t.active)?t.active.length:null),re(Date.now()))}catch{}};t();let n=setInterval(()=>void t(),15e3);return()=>{e=!1,clearInterval(n)}},[]);let Ae=(0,v.useCallback)(async e=>{let t=await _c(`/api/capabilities/refresh`,{device:e});if(t.error){Y.error(`Capability probe failed: ${t.error}`);return}t.capabilities&&(Ee(n=>({...n,[e]:t.capabilities})),Y.success(`Probed ${e}`))},[]);(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&ae(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let je=(0,v.useMemo)(()=>{let e=B.q.trim().toLowerCase();return w.filter(t=>!(B.tool&&t.tool!==B.tool||B.risk&&t.risk!==B.risk||B.device&&t.device!==B.device||B.status===`ok`&&t.isError||B.status===`error`&&!t.isError||e&&!t.tool.toLowerCase().includes(e)&&!t.input.toLowerCase().includes(e)&&!t.output.toLowerCase().includes(e)&&!(t.error??``).toLowerCase().includes(e))).sort((e,t)=>t.ts-e.ts)},[w,B]),Me=!!(B.tool||B.risk||B.device||B.status||B.q),Ne=(0,v.useMemo)(()=>w.filter(e=>e.isError),[w]),Pe=(0,v.useMemo)(()=>({ok:w.length-Ne.length,error:Ne.length}),[w,Ne]),Fe=(0,v.useCallback)(async e=>{try{ae(await U(`/api/event/${encodeURIComponent(e.id)}`))}catch{ae(e)}},[]),Ie=(0,v.useMemo)(()=>je.slice(0,O),[je,O]),Le=(0,v.useMemo)(()=>Ie.map(e=>e.id),[Ie]),Re=Le.length>0&&Le.every(e=>oe.has(e)),ze=!Re&&Le.some(e=>oe.has(e)),Be=(0,v.useRef)(null),Ve=(0,v.useRef)(!1),He=(0,v.useCallback)(e=>{let t=Ve.current;Ve.current=!1,se(n=>{let r=new Set(n),i=Be.current;if(t&&i&&i!==e){let t=Le.indexOf(i),n=Le.indexOf(e);if(t!==-1&&n!==-1){for(let e=Math.min(t,n);e<=Math.max(t,n);e++)r.add(Le[e]);return r}}return r.has(e)?r.delete(e):r.add(e),Be.current=e,r})},[Le]),Ue=(0,v.useCallback)(()=>{se(e=>{let t=new Set(e);if(Le.length>0&&Le.every(e=>t.has(e)))for(let e of Le)t.delete(e);else for(let e of Le)t.add(e);return t})},[Le]),[We,Ge]=(0,v.useState)(!1),Ke=(0,v.useCallback)(async()=>{let e=[...oe];if(e.length!==0)try{await yc({ids:e});let t=new Set(e);T(e=>e.filter(e=>!t.has(e.id))),se(new Set),Y.success(`Deleted ${e.length} event${e.length===1?``:`s`}`)}catch{Y.error(`Could not delete the selected events`)}finally{Ge(!1)}},[oe]),qe=e=>{let t=oe.size?je.filter(e=>oe.has(e.id)):je;if(e===`json`){J9(`mcp-events.json`,JSON.stringify(t,null,2),`application/json`);return}let n=[`ts`,`tool`,`risk`,`device`,`durationMs`,`isError`,`error`,`reason`],r=e=>/[",\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e,i=t.map(e=>[new Date(e.ts).toISOString(),e.tool,e.risk,e.device??``,String(e.durationMs),String(e.isError),e.error??``,e.reason??``].map(r).join(`,`)).join(`
|
|
267
|
+
`)),disabled:re})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:`Patterns match tool names, not commands or arguments. All matching is case-insensitive. A risk ceiling also applies to tools on the allow-list.`})]})]}),(0,G.jsxs)(`aside`,{className:`access-inspector`,children:[(0,G.jsxs)(`section`,{className:`access-card access-preview`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(nu,{}),title:`Permission lens`,detail:`A decision preview, not a tool execution.`}),(0,G.jsxs)(`div`,{className:`access-lens-label`,children:[(0,G.jsx)(qj,{type:te?`warning`:`secondary`,children:te?`Unsaved draft`:`Saved configuration`}),(0,G.jsx)(`span`,{children:`+ session restrictions`})]}),(0,G.jsxs)(`label`,{className:`access-field`,children:[(0,G.jsx)(`span`,{children:`Preview target`}),(0,G.jsx)($j,{"aria-label":`Preview router`,value:f,onValueChange:p,options:[{value:``,label:`Default router`},...e.devices.map(e=>({value:e.name,label:`${e.name}${e.disabled?` · disabled`:``}`}))],disabled:k})]}),(0,G.jsxs)(`div`,{className:`access-gates`,"aria-label":`Draft permission boundaries`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(cd,{}),(0,G.jsxs)(`span`,{children:[`Router boundary`,(0,G.jsx)(`strong`,{children:R.devices.length?`${R.devices.length} selected`:`All configured`})]}),(0,G.jsxs)(`small`,{children:[R.denyDevices.length,` blocked`]})]}),(0,G.jsx)(Rc,{className:`access-gate-link`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(Bd,{}),(0,G.jsxs)(`span`,{children:[`Tool boundary`,(0,G.jsx)(`strong`,{children:R.tools.length?`${R.tools.length} allow patterns`:`All tool names`})]}),(0,G.jsxs)(`small`,{children:[R.denyTools.length,` exclusions`]})]}),(0,G.jsx)(Rc,{className:`access-gate-link`}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(bd,{}),(0,G.jsxs)(`span`,{children:[`Risk ceiling`,(0,G.jsx)(`strong`,{children:R.maxRisk??`No ceiling`})]}),(0,G.jsx)(`small`,{children:R.enabled?`Enabled`:`Inactive`})]})]}),(0,G.jsxs)(`div`,{className:`access-impact`,"aria-live":`polite`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y?.allowed??`—`}),(0,G.jsx)(`span`,{children:`scope allows`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y?.blocked??`—`}),(0,G.jsx)(`span`,{children:`scope blocks`})]})]}),(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Across `,e.tools.length,` catalog tools for the preview target. No-device tools ignore the router selection. Availability, approvals, tool arguments and device capabilities are separate checks.`]}),y&&te&&(0,G.jsxs)(`div`,{className:`access-impact-diff`,children:[(0,G.jsxs)(`span`,{children:[`+`,y.newlyAllowed,` newly allowed`]}),(0,G.jsxs)(`span`,{children:[`−`,y.newlyBlocked,` newly blocked`]})]}),x&&(0,G.jsx)(`p`,{role:`alert`,className:`access-validation`,children:x}),(0,G.jsxs)(`div`,{className:`access-probe`,children:[(0,G.jsxs)(`h4`,{children:[(0,G.jsx)(fd,{className:`size-3.5`}),` Check a specific call`]}),(0,G.jsx)(Ok,{"aria-label":`Search tool catalog`,value:g,placeholder:`Search tool names…`,onChange:e=>_(e.target.value)}),(0,G.jsx)($j,{"aria-label":`Tool to check`,value:m,options:B,onValueChange:h,disabled:!e.tools.length||k}),(0,G.jsx)(`small`,{className:`access-hint`,children:le.length>80?`Showing the first 80 matches. Refine your search.`:`${le.length} matching tools`}),(0,G.jsx)(`div`,{className:K(`access-verdict`,y?.check?.allowed?`is-allowed`:y?.check&&`is-blocked`),role:`status`,children:y?.check?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`span`,{children:y.check.allowed?(0,G.jsx)(cl,{}):(0,G.jsx)(wu,{})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:y.check.allowed?`Within the access boundary`:`This call would be blocked`}),(0,G.jsx)(`p`,{children:y.check.reason??`The scope permits this name, risk and target. No call was executed.`})]})]}):(0,G.jsx)(`p`,{children:z?`Complete the router selection to preview.`:x?`Decision unavailable.`:ne?`Confirm or revert the pending change first.`:`Checking your draft…`})})]})]}),(0,G.jsxs)(`section`,{className:`access-card access-runtime`,children:[(0,G.jsxs)(`h3`,{children:[(0,G.jsx)(wu,{className:`size-4`}),` Applied runtime layers`]}),(0,G.jsxs)(`dl`,{children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Operator policy`}),(0,G.jsx)(`dd`,{children:e.configured.enabled?`On`:`Off`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Server read-only`}),(0,G.jsx)(`dd`,{children:e.readOnly?`On · writes unavailable`:`Off`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Session narrowing`}),(0,G.jsx)(`dd`,{children:e.narrowed?`Active`:`None`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Effective risk ceiling`}),(0,G.jsx)(`dd`,{children:e.effective.enabled?ue?.maxRisk??`None`:`Inactive`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Session expiry`}),(0,G.jsx)(`dd`,{children:ue?.expiresAt?new Date(ue.expiresAt).toLocaleString():`Not set`})]})]}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{children:`Inspect the effective scope`}),(0,G.jsxs)(`dl`,{children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Allowed routers`}),(0,G.jsx)(`dd`,{children:ue?.noDevices?`None · scopes do not overlap`:ue?.devices?.join(`, `)||`All configured`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Blocked routers`}),(0,G.jsx)(`dd`,{children:ue?.denyDevices?.join(`, `)||`None`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Allowed tools`}),(0,G.jsx)(`dd`,{children:ue?.tools?.join(`, `)||`All`})]}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`dt`,{children:`Blocked tools`}),(0,G.jsx)(`dd`,{children:ue?.denyTools?.join(`, `)||`None`})]})]}),!!ue?.toolAllowGroups?.length&&(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Also must match each group:`,` `,ue.toolAllowGroups.map(e=>`(${e.join(`, `)})`).join(` AND `)]})]}),(0,G.jsxs)(`p`,{className:`access-hint`,children:[`Changes affect this server process, not a login account. Runtime narrowing is retained on save; it cannot be reset here. Expiry is set through`,` `,(0,G.jsx)(`code`,{children:`narrow_access_scope`}),`, not the base policy.`]})]})]})]}),(0,G.jsxs)(`footer`,{className:`access-savebar`,children:[(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`span`,{className:K(`access-save-dot`,te&&`is-dirty`)}),(0,G.jsx)(`strong`,{children:te?`You have unapplied changes`:`No unapplied changes`}),(0,G.jsx)(`small`,{children:`Preview → apply → keep within 60 seconds`})]}),(0,G.jsxs)(`div`,{className:`flex gap-2`,children:[(0,G.jsx)(Z,{ghost:!0,icon:(0,G.jsx)(Kd,{}),disabled:!te||re,onClick:()=>{L(e),w(``),E(``)},children:`Discard draft`}),(0,G.jsx)(Z,{icon:(0,G.jsx)(Hc,{}),disabled:!te||re||!!z||!y||!!x,onClick:()=>{w(``),M(!0)},children:`Review changes`})]})]}),(0,G.jsxs)(`section`,{className:`access-card access-audit`,children:[(0,G.jsx)(G9,{icon:(0,G.jsx)(nd,{}),title:`Blocked call history`,detail:`Recent real denials in this process. Preview checks never enter this history.`}),(0,G.jsxs)(qj,{type:`secondary`,children:[e.denials.length,` recent`]}),e.denials.length?(0,G.jsx)(`div`,{className:`access-denials`,children:e.denials.map((e,t)=>(0,G.jsxs)(`article`,{children:[(0,G.jsx)(`span`,{className:`access-denial-icon`,children:(0,G.jsx)(af,{})}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:e.tool}),(0,G.jsx)(`p`,{children:e.reason}),(0,G.jsxs)(`small`,{children:[e.device??`No device`,` · `,e.risk,` · `,e.rule]})]}),(0,G.jsx)(`time`,{dateTime:new Date(e.ts).toISOString(),children:new Date(e.ts).toLocaleTimeString()})]},`${e.ts}-${t}`))}):(0,G.jsxs)(`div`,{className:`access-audit-empty`,children:[(0,G.jsx)(bd,{}),(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`h4`,{children:`No blocked calls recorded`}),(0,G.jsxs)(`p`,{children:[e.effective.enabled?`A call appears here only when it violates the active scope.`:`Access scope is off. Once enforced, rejected calls will appear here with the reason.`,` `,`History is in memory and resets on server restart.`]})]})]})]}),(0,G.jsx)(h9,{open:j,onOpenChange:e=>{k||M(e)},children:(0,G.jsxs)(g9,{className:`sm:max-w-2xl max-h-[85svh] overflow-y-auto`,showCloseButton:!k,children:[(0,G.jsxs)(_9,{children:[(0,G.jsx)(y9,{children:`Review access changes`}),(0,G.jsx)(b9,{children:`These are MCP server permissions, not RouterOS settings. Changes apply to subsequent calls in this process immediately.`})]}),(0,G.jsx)(`div`,{className:`access-review-diff`,children:fe.map(t=>(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{children:t}),(0,G.jsx)(`del`,{children:H(e.configured[t])}),(0,G.jsx)(Hc,{}),(0,G.jsx)(`span`,{children:H(R[t])})]},t))}),(!R.enabled||(y?.newlyAllowed??0)>0)&&(0,G.jsxs)(`div`,{className:`access-message is-warning`,children:[(0,G.jsx)(Sd,{className:`size-4`}),(0,G.jsxs)(`p`,{children:[R.enabled?`${y?.newlyAllowed} catalog tools become newly allowed for this preview target.`:`You are switching off the operator's access policy. Saved rules will not restrict calls while it is off.`,` `,`Other targets may be affected too. Review every change above.`]})]}),(0,G.jsx)(`p`,{className:`access-hint`,children:`A backup is created and a 60-second auto-revert timer starts. You must select Keep changes after applying. Existing session restrictions remain.`}),!e.fromFile&&(0,G.jsx)(`p`,{className:`access-validation`,children:`This process was not loaded from a config file. Settings are written to the default config path, but future launches must use that file to retain them.`}),C&&(0,G.jsx)(`p`,{role:`alert`,className:`access-validation`,children:C}),(0,G.jsxs)(v9,{children:[(0,G.jsx)(Z,{ghost:!0,disabled:k,onClick:()=>M(!1),children:`Cancel`}),(0,G.jsx)(Z,{icon:(0,G.jsx)(bd,{}),loading:k,onClick:()=>void se(),children:`Apply for 60 seconds`})]})]})})]})]})}function s_e({value:e,onChange:t}){let[n,r]=(0,v.useState)([]);return(0,v.useEffect)(()=>{U(`/api/devices`).then(e=>r(e.devices.map(e=>e.name))).catch(()=>r([]))},[]),n.length<=1?null:(0,G.jsx)($j,{size:`sm`,"aria-label":`Device`,value:e??``,onValueChange:e=>t(e||void 0),options:[{value:``,label:`(default device)`},...n.map(e=>({value:e,label:e}))]})}function K9(){return(0,G.jsx)(`div`,{className:`px-5 py-8 text-center text-sm text-muted-foreground`,children:`Loading…`})}function q9({message:e}){return(0,G.jsxs)(`div`,{className:`px-5 py-8 text-center text-sm text-destructive`,children:[`Could not reach the device: `,e]})}var c_e={uplink:`bg-blue-500/15 text-blue-600 dark:text-blue-400`,access:`bg-emerald-500/15 text-emerald-600 dark:text-emerald-400`,hybrid:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,empty:`bg-muted text-muted-foreground`};function l_e(){let[e,t]=(0,v.useState)(void 0),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(``),u=(0,v.useCallback)(()=>{s(!0),a(null),U(`/api/fabric${e?`?device=${encodeURIComponent(e)}`:``}`).then(e=>e.error?a(e.error):r(e)).catch(e=>a(e instanceof Error?e.message:String(e))).finally(()=>s(!1))},[e]);(0,v.useEffect)(()=>u(),[u]);let d=c.trim().toLowerCase(),f=(n?.ports??[]).map(e=>d?{...e,hosts:e.hosts.filter(t=>t.label.toLowerCase().includes(d)||t.mac.toLowerCase().includes(d)||(t.ip??``).includes(d)||e.interface.toLowerCase().includes(d))}:e).filter(e=>!d||e.hosts.length>0||e.interface.toLowerCase().includes(d));return(0,G.jsx)(X,{title:`Layer-2 Fabric — hosts by physical port`,extra:(0,G.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,G.jsx)(`input`,{className:`rounded-md border border-border bg-background px-2 py-1 text-xs`,placeholder:`find MAC / IP / host…`,value:c,onChange:e=>l(e.target.value)}),(0,G.jsx)(s_e,{value:e,onChange:t}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,loading:o,icon:(0,G.jsx)(ed,{}),onClick:u,children:`Refresh`})]}),children:i==null?n==null?(0,G.jsx)(K9,{}):(0,G.jsxs)(`div`,{className:`px-5`,children:[(0,G.jsxs)(`div`,{className:`mb-4 flex flex-wrap gap-4 text-xs text-muted-foreground`,children:[(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.ports}),` occupied ports`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.hosts}),` hosts`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.accessPorts}),` access`]}),(0,G.jsxs)(`span`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:n.stats.uplinks}),` uplink`]}),n.stats.unidentified>0&&(0,G.jsxs)(`span`,{className:`text-amber-600 dark:text-amber-400`,children:[(0,G.jsx)(`strong`,{children:n.stats.unidentified}),` unidentified`]})]}),f.length===0?(0,G.jsx)(`div`,{className:`py-8 text-center text-sm text-muted-foreground`,children:n.ports.length===0?`No bridge host entries — this device may have no bridge, or switch-chip offload is forwarding without populating the host table.`:`No host matches that search.`}):(0,G.jsx)(`div`,{className:`grid gap-2 pb-2`,children:f.map(e=>(0,G.jsxs)(`div`,{className:`rounded-lg border border-border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-2 flex items-center gap-2`,children:[(0,G.jsx)(il,{className:`size-3.5 text-muted-foreground`}),(0,G.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:e.interface}),(0,G.jsx)(`span`,{className:`rounded px-1.5 py-0.5 text-[10px] font-medium uppercase ${c_e[e.role]??``}`,children:e.role}),e.bridge!=null&&(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e.bridge}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[e.hostCount,` host`,e.hostCount===1?``:`s`]})]}),(0,G.jsx)(`div`,{className:`grid gap-1`,children:e.hosts.map(e=>(0,G.jsxs)(`div`,{className:`flex items-center gap-2 text-xs`,children:[e.isNetworkDevice?(0,G.jsx)(Iu,{className:`size-3 shrink-0 text-blue-500`}):(0,G.jsx)(`span`,{className:`size-3 shrink-0`}),(0,G.jsx)(`span`,{className:`font-medium`,children:e.label}),(0,G.jsx)(`span`,{className:`font-mono text-[11px] text-muted-foreground`,children:e.mac}),e.ip!=null&&(0,G.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:e.ip}),e.vendor!=null&&(0,G.jsx)(`span`,{className:`rounded bg-muted px-1 text-[10px] text-muted-foreground`,children:e.vendor})]},e.mac))})]},e.interface))})]}):(0,G.jsx)(q9,{message:i})})}var u_e={critical:`bg-red-500/15 text-red-600 dark:text-red-400`,high:`bg-orange-500/15 text-orange-600 dark:text-orange-400`,medium:`bg-amber-500/15 text-amber-600 dark:text-amber-400`,low:`bg-slate-500/15 text-slate-600 dark:text-slate-400`},d_e={unrestricted:`reachable — no source restriction`,restricted:`restricted to specific addresses`,mitigated:`mitigated — service not enabled`,unknown:`needs manual confirmation`};function f_e(){let[e,t]=(0,v.useState)(null),[n,r]=(0,v.useState)(null),[i,a]=(0,v.useState)(!1),[o,s]=(0,v.useState)(!1),[c,l]=(0,v.useState)(!1),u=(0,v.useCallback)(()=>{a(!0),r(null),U(`/api/advisories${o?`?all=1`:``}`).then(e=>e.error?r(e.error):t(e)).catch(e=>r(e instanceof Error?e.message:String(e))).finally(()=>a(!1))},[o]);(0,v.useEffect)(()=>u(),[u]);let d=(e?.findings??[]).filter(e=>c||e.exposure!==`mitigated`);return(0,G.jsx)(X,{title:`Known vulnerabilities`,extra:(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-xs`,children:[(0,G.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2`,children:[(0,G.jsx)(aO,{"aria-label":`whole fleet`,checked:o,onCheckedChange:e=>s(e===!0)}),`whole fleet`]}),(0,G.jsxs)(`label`,{className:`flex cursor-pointer items-center gap-2`,children:[(0,G.jsx)(aO,{"aria-label":`show mitigated`,checked:c,onCheckedChange:e=>l(e===!0)}),`show mitigated`]}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,loading:i,icon:(0,G.jsx)(ed,{}),onClick:u,children:`Refresh`})]}),children:n==null?e==null?(0,G.jsx)(K9,{}):(0,G.jsxs)(`div`,{className:`px-5`,children:[(0,G.jsx)(`div`,{className:`mb-3 grid gap-1 text-xs text-muted-foreground`,children:e.devices.map(e=>(0,G.jsxs)(`div`,{children:[(0,G.jsx)(`strong`,{className:`text-foreground`,children:e.device??`default`}),` — RouterOS`,` `,e.version||`(unreadable)`,e.board!=null&&` on ${e.board}`,` · `,e.enabledServices,` service(s) enabled,`,` `,(0,G.jsxs)(`span`,{className:e.unrestrictedServices>0?`text-amber-600 dark:text-amber-400`:void 0,children:[e.unrestrictedServices,` unrestricted`]})]},e.device??`default`))}),e.unreadable.length>0&&(0,G.jsxs)(`div`,{className:`mb-3 rounded-md bg-amber-500/10 px-3 py-2 text-xs text-amber-700 dark:text-amber-400`,children:[`Could not read a version from: `,e.unreadable.join(`, `),`. Not audited — treat as unknown, not clean.`]}),d.length===0?(0,G.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-8 text-center`,children:[(0,G.jsx)(bd,{className:`size-6 text-emerald-500`}),(0,G.jsx)(`div`,{className:`text-sm`,children:`No matching advisories under the current filters.`})]}):(0,G.jsx)(`div`,{className:`grid gap-2 pb-2`,children:d.map((e,t)=>(0,G.jsxs)(`div`,{className:`rounded-lg border border-border p-3`,children:[(0,G.jsxs)(`div`,{className:`mb-1 flex flex-wrap items-center gap-2`,children:[(0,G.jsx)(`span`,{className:`rounded px-1.5 py-0.5 text-[10px] font-semibold uppercase ${u_e[e.advisory.severity]??``}`,children:e.advisory.severity}),(0,G.jsx)(`span`,{className:`font-mono text-sm font-semibold`,children:e.advisory.id}),e.advisory.cvss!=null&&(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`CVSS `,e.advisory.cvss]}),e.device!=null&&(0,G.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 text-[10px]`,children:e.device}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[`risk `,e.score]})]}),(0,G.jsx)(`div`,{className:`text-sm font-medium`,children:e.advisory.title}),(0,G.jsxs)(`div`,{className:`mt-1 text-xs text-muted-foreground`,children:[e.exposure===`mitigated`?(0,G.jsx)(Sd,{className:`mr-1 inline size-3`}):(0,G.jsx)(Wd,{className:`mr-1 inline size-3`}),d_e[e.exposure],` · running `,e.version,` → fixed in`,` `,(0,G.jsx)(`strong`,{className:`text-foreground`,children:e.fixedIn})]}),e.exposedServices.length>0&&(0,G.jsxs)(`div`,{className:`mt-1 text-[11px] text-muted-foreground`,children:[`exposed via`,` `,e.exposedServices.map(e=>`${e.name}${e.port==null?``:`:${e.port}`}${e.allowedFrom.length>0?` (from ${e.allowedFrom.join(`, `)})`:` (from ANY)`}`).join(`, `)]}),e.manualCheck!=null&&(0,G.jsxs)(`div`,{className:`mt-1 text-[11px] text-amber-600 dark:text-amber-400`,children:[`confirm: `,e.manualCheck]}),(0,G.jsx)(`div`,{className:`mt-2 text-xs`,children:e.advisory.summary}),(0,G.jsxs)(`div`,{className:`mt-2 rounded bg-muted/60 p-2 text-xs`,children:[(0,G.jsx)(`strong`,{children:`Fix:`}),` `,e.advisory.remediation]}),(0,G.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-2`,children:e.advisory.references.map(e=>(0,G.jsx)(`a`,{href:e,target:`_blank`,rel:`noreferrer noopener`,className:`text-[11px] text-blue-600 underline dark:text-blue-400`,children:new URL(e).hostname},e))})]},`${e.device??``}${e.advisory.id}${t}`))}),(0,G.jsxs)(`div`,{className:`border-t border-border pt-3 pb-1 text-[11px] text-muted-foreground`,children:[`Dataset reviewed `,e.datasetDate,` · `,e.datasetSize,` advisories. A clean result means nothing in this dataset matched — not that no vulnerability exists. Cross-check the vendor's security notices for anything newer.`]})]}):(0,G.jsx)(q9,{message:n})})}zi.registerPlugin(ac);function J9(e,t,n){let r=URL.createObjectURL(new Blob([t],{type:`${n};charset=utf-8`})),i=document.createElement(`a`);i.href=r,i.download=e,document.body.append(i),i.click(),i.remove(),URL.revokeObjectURL(r)}var p_e=new Set(kk.map(e=>e.id)),Y9=`mt-view`;function X9(){try{return Mk(location.hash)}catch{return null}}function m_e(){let e=X9();if(e)return e;try{let e=localStorage.getItem(Y9);if(e&&p_e.has(e))return e}catch{}return`overview`}var h_e={overview:{what:`A live pulse of all MCP tool activity: total calls, error rate, p50/p95 latency, the busiest tools, and a risk breakdown — over a time window you choose.`,tips:[`Change the time window (top-right) to zoom from the last 5 minutes out to 24 hours.`,`The risk donut splits calls by annotation: read · write · destructive · dangerous.`,`A rising error line usually points at one device or one tool — jump to Live Feed to see which.`]},devices:{what:`Every configured router with its live reachability (SSH or MAC-Telnet), latency, identity, and system health — CPU, memory and disk — refreshed continuously.`,tips:[`Each device gets a stable colour so you can track it across the connectivity radar.`,`Health (CPU/Mem/Disk) is probed periodically; MAC-Telnet devices are probed on a slower cadence.`,`Latency tiers are colour-coded green → amber → red; a grey node is currently unreachable.`,`The SSH Connection Pool panel shows persistent connections: green = idle/ready, blue = busy with inflight channels, red = reconnecting.`]},clients:{what:`The LAN devices connected to a router — merged from its DHCP leases and ARP table — with live Download/Upload charts, and one-click controls to block/allow a device, pin (reserve) its IP, change that IP, or relabel it.`,tips:[`Pick the router (top-right) to inspect its connected devices; filter by IP, MAC or name.`,`Click a device to open its live ↓/↑ traffic chart — needs a simple queue targeting its IP.`,`Block/allow is enforced by MAC, so it survives the device changing IP; “Pin IP” makes its lease static.`]},investigations:{what:`Saved client/service investigations with explicitly scoped router evidence and unperformed next experiments.`,tips:[`Opening history never queries routers.`,`A successful router ping does not prove the client application works.`,`Unknown evidence is never treated as a healthy zero.`]},"service-contracts":{what:`Immutable service contracts with explicit MCP-host DNS/TCP/TLS/HTTPS checks and optional fresh-export packet simulation.`,tips:[`Only administrator-approved endpoints can be probed.`,`PASS proves checks from this host, not a branch client's experience.`,`Unknown evidence cannot pass a service gate.`]},"round-trip":{what:`Offline static IPv4 transit modelling across explicit forward and reverse router paths.`,tips:[`Use exact, recent snapshot IDs for all routers.`,`NAT and unsupported paths stop with UNKNOWN.`,`MODELLED does not prove live delivery or endpoint health.`]},aaa:{what:"Full management of the router's RADIUS client (`/radius`) and the built-in User Manager RADIUS server (`/user-manager`): RADIUS servers + incoming CoA, and User Manager users, service profiles, rate/quota limitations, NAS clients, profile assignments, accounting sessions, and global settings.",tips:[`Pick the router (top-right), then switch tabs across RADIUS, Users, Profiles, Limitations, NAS, Assignments, Sessions and Settings.`,`Every tab is full CRUD: add, edit, enable/disable and remove — secrets are write-only and shown redacted.`,`The Usage & Heatmap tab shows each user's 3-month download/upload and a GitHub-style connection heatmap, persisted locally.`,`If a device lacks the user-manager package, the User Manager tabs explain how to install it; RADIUS-client tabs still work.`]},topology:{what:`A Layer-2 map of neighbours each router discovers via MNDP / CDP / LLDP — the physical adjacency of your network, drawn live.`,tips:[`Solid nodes are configured devices; faint nodes are discovered-but-unmanaged neighbours.`,`Use “Add to config →” on an unmanaged neighbour to pre-fill it in the Config editor.`,`Drag to pan; the layout settles automatically as new neighbours arrive.`]},fabric:{what:`Port-level Layer-2 occupancy: which hosts sit behind each bridge port, named from DHCP leases, ARP, the neighbour cache and the hardware vendor prefix.`,tips:[`Unlike Topology (MNDP/LLDP only), this sees every host that has passed a frame — printers, IoT, laptops.`,`Ports are classified by occupancy: one host is access, many is an uplink or a downstream switch.`,`Search by MAC, IP or hostname to answer “which port is this plugged into?”.`]},vulns:{what:`Published RouterOS advisories matched against the version this device runs, then ranked by whether the affected service is actually enabled and reachable.`,tips:[`“Reachable” means the vulnerable service is on with no source-address restriction — patch those first.`,`Mitigated findings are hidden by default: the version matches, but the affected service is off.`,`A clean result only means nothing in the bundled dataset matched — check the vendor feed for newer advisories.`]},access:{what:`The caller boundary enforced on this session — the risk ceiling, device allow/deny lists and tool globs — plus every call that was blocked by it.`,tips:["Enable it with `access.enabled` in the server config; `readOnly` is the blunter, all-or-nothing alternative.",`A session can restrict itself further with the narrow_access_scope tool — that operation is one-way.`,`Denials record the exact rule that blocked the call, so a scope that is too tight is obvious rather than mysterious.`]},packets:{what:`Live packet capture streamed from a router over TZSP — decode headers in real time without leaving the dashboard.`,tips:[`Pick a device and start the capture; packets decode as they arrive.`,`Stop the capture when done — it frees the router-side sniffer.`,`Great for debugging a protocol issue alongside the Live Feed of tool calls.`]},snapshots:{what:`Point-in-time captures of a device’s full configuration (/export), stored locally so you can diff any two and see exactly what changed.`,tips:[`Capture a snapshot before a risky change, then diff after to audit the delta.`,`The diff is line-level: green added, red removed.`,`Snapshots are device config exports — for the dashboard’s OWN config history see the Config page.`]},drift:{what:`Detect when router configs drift from their golden baseline — with change attribution and one-click reconciliation.`,tips:[`Set a baseline via MCP tools (config_set_baseline) or the Baseline Manager below.`,`Click a device card to run a live drift check against its golden config.`,`Promote accepted changes as the new baseline, or reconcile to roll back.`]},flows:{what:`Continuous traffic analytics from NetFlow/IPFIX the router exports here — who is using the bandwidth, talking to what, on which application. Flow metadata only; no packet payload is carried or stored.`,tips:[`Empty page? Read the collector strip first — 'templates pending' means v9/IPFIX data arrived before the layout that decodes it, and resolves on the next refresh.`,`Set it up with the setup-traffic-flow prompt: start the collector, then point the router at this host.`,`Flows are cheap and aggregate; use Packets (TZSP) when you need to see inside a specific conversation.`]},attacks:{what:`Watches every device's log for brute force, credential spraying, a login that SUCCEEDED after failures, port scans and unexplained config changes, and correlates them into incidents with evidence.`,tips:[`Detect-only is the default — the banner says whether anything would actually be blocked.`,`Evidence is one click away on every incident: an incident that cannot show its work should not be acted on.`,`"Detectors that could not run" matters most — a quiet result from a detector with no input is not a safe network.`]},policies:{what:`Policy-as-code: your organisation's own compliance rules, written as YAML and evaluated against a config snapshot. Read-only — it never changes a device.`,tips:[`A rule matching nothing is NOT-APPLICABLE, never a pass — that is what keeps the score honest.`,`"Must not be yes" is none_of + equals; not_equals also requires the field to be present.`,`Export as SARIF to lint a router's config in a pull request like source code.`]},explain:{what:`Turns a router's configuration into the architecture document that should have been in the wiki: what the box is for, topology, addressing, firewall, and what is exposed to the internet.`,tips:[`Exposure is shown first because it is the part people actually read.`,`"What this document does not cover" lists the menus it did not analyse — that is where the surprises live.`,`Compare mode explains the CONSEQUENCE of a change; Snapshots shows which lines moved.`]},simulator:{what:`Trace a hypothetical packet through NAT, routing and firewall against the config — offline, read-only. Answers "would this get through, and which rule decides?" before anything is changed.`,tips:[`UNKNOWN is not a pass: the model met something it does not implement and declined to guess.`,"Connection state is declared, not inferred — say `established` if that is what you mean.",`Reachability needs no packet: it shows which rules can never match.`]},schedules:{what:`Runs the auditors on a cron with nobody in the loop, keeps every result, and reports only what CHANGED since the previous run — new, worsened, resolved.`,tips:[`Unchanged findings are silent by design; an audit that reports 40 findings nightly gets muted.`,`The first run is only a baseline — the useful output arrives on the second.`,`Empty heat-calendar cells mean no run that day, which is not the same as a clean one.`]},txn:{what:`Coordinate one change across several routers: each participant stages it in Safe Mode, the assertions run while nothing is committed, then every device commits — or none does.`,tips:[`Green/amber/red cells show where a distributed operation actually is.`,`PARTIAL is the case to act on: some devices committed, and the report names the snapshot to restore each from.`,`Start one with begin_transaction; abort a live one from its detail panel.`]},plan:{what:`Dry-run the exact RouterOS commands a change would run before it touches a device — a change plan you can review and trust.`,tips:[`Paste or build intended commands to see them validated and ordered.`,`Nothing is sent to the device from here — it’s a preview.`,`Pair with Safe Mode (auto-revert) when you do apply for real.`]},s3:{what:`Browse, download, and delete backup objects in your configured S3-compatible bucket — your off-box archive of device backups and exports.`,tips:[`Filter by key prefix to find a device’s backups quickly.`,`Download fetches the object through a presigned URL; delete is permanent.`,`For host-side .rsc backups instead, use the Backups page.`]},backups:{what:`A local config vault on the MCP server: capture a device’s /export as a timestamped .rsc file, then download, upload, rename, restore (via Safe Mode), or delete it.`,tips:[`Restore offers a dry-run (applies then rolls back) before you commit for real.`,`Edit the vault path inline in the header — it’s saved to your config.`,`Filenames are stamped in the device’s local 24-hour clock.`]},modules:{what:"Every tool module in the catalog with a live on/off switch. Toggling one writes your config file's `tools` block (disabledModules / enabledModules) and applies it immediately, so you can curate exactly which scopes the MCP server exposes.",tips:[`MCP clients search-rank tools and degrade past ~100; trim the surface below ~150–200 tools so every remaining tool is reliably findable.`,`Disable adds the module to tools.disabledModules; enable removes it (or adds it to an active allow-list) — your config file is updated live on each toggle.`,`Changes need an MCP client reconnect (or a server restart) to actually shrink/grow the visible tool list.`]},config:{what:`View the effective configuration, edit it safely with schema-aware validation and auto-rollback, browse a full field guide, and travel through config version history.`,tips:[`Every successful apply is auto-saved to the version timeline — restore any point in time.`,`Save a named checkpoint before a big change for an easy, labelled rollback.`,`The Field Guide documents every config option, its type, and default — straight from the schema.`]},memory:{what:`A persistent knowledge graph the AI builds across sessions — entities (routers, subnets, users), relations between them, and free-text observations.`,tips:[`Entities are created by the AI via MCP tools — you can browse and delete them here.`,`The graph visualization shows entities as circles and relations as directed edges; click a node to inspect it.`,`Change the database path to switch between different knowledge bases.`]},alerts:{what:`Rules that watch this server and reach out when something changes — an error spike, a device going dark, a destructive call on a named router — delivered to Slack, Discord, ntfy, a webhook, or the MCP client itself.`,tips:[`Firing alerts are pinned to the top with a Mute action — that is the only thing that matters when you open this page under pressure.`,"`for` stops a two-second blip paging anyone; `cooldown` bounds re-fires. A link bouncing ten times inside the cooldown produces exactly one alert and one resolve.",`Test a channel before relying on it — a silently broken webhook is worse than none.`,`Webhook URLs are never shown in full: the path is the credential, so only scheme and host are displayed.`]},releases:{what:`Every published version of the server on a timeline, with its release notes. Upgrade to the latest, or install any specific version to upgrade or downgrade.`,tips:[`The green dot marks the version you're running now; the brand dot marks the latest.`,"Install runs `bun i -g @usex/mikrotik-mcp@<version>` on the server, then it self-restarts onto that version (the connection drops briefly).",`Click a version to expand its release notes; the latest is expanded by default.`]},capsman:{what:`The CAPsMAN Wi-Fi fabric for this controller: managed APs grouped by floor with per-radio health (client load, CPU, co-channel conflicts), weak-signal clients with the recommended neighbor AP to steer toward, and a roaming (802.11r FT) + HA redundancy audit.`,tips:[`Radio cards are colored by health; a red 'co-ch' badge means an adjacent radio shares its channel — the proposed channel is shown as →N.`,`Floors come from the AP identity/comment tag (e.g. AP-F3-E); unfloored APs are grouped by inferred signal adjacency.`,`This page is read-only in this release — steering, channel-plan apply, FT enable and HA setup arrive in later phases.`]},feed:{what:`Every tool call as it happens — tool, device, risk, duration, and success/error — with full request/response detail on click.`,tips:[`Filter by status to isolate failures, or by tool/device to follow one thread.`,`Click any row to open the full (secret-redacted) request and response.`,`Pause the stream when you want to inspect without rows shifting under you.`]}};function Z9({icon:e,title:t,sub:n,body:r,className:i}){return(0,G.jsxs)(`div`,{className:K(`text-muted-foreground flex flex-col items-center gap-2 rounded-lg border border-dashed px-6 py-14 text-center`,i),children:[e,(0,G.jsx)(`p`,{className:`text-foreground text-sm font-medium`,children:t}),n!=null&&(0,G.jsx)(`p`,{className:`max-w-md text-xs`,children:n}),r]})}function g_e({view:e}){let t=h_e[e];return(0,G.jsxs)(`div`,{className:`bg-card reveal flex gap-3 rounded-lg border p-4`,role:`region`,"aria-label":`Page help`,children:[(0,G.jsx)(Sl,{className:`text-brand mt-0.5 size-4 shrink-0`,"aria-hidden":`true`}),(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-2`,children:[(0,G.jsx)(`p`,{className:`text-sm`,children:t.what}),(0,G.jsx)(`ul`,{className:`text-muted-foreground list-disc space-y-1 pl-4 text-xs`,children:t.tips.map((e,t)=>(0,G.jsx)(`li`,{children:e},t))})]})]})}function __e(){return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`,className:`size-3.5`,children:(0,G.jsxs)(`g`,{stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,G.jsx)(`path`,{d:`M21 12a9 9 0 1 1-2.64-6.36`}),(0,G.jsx)(`path`,{d:`M21 3v6h-6`})]})})}function v_e(){let[e,t]=(0,v.useState)(!1);async function n(e){t(!0);let n=Y.loading(e?`Restarting server…`:`Reloading config…`);try{let t=await _c(`/api/reload`,{hard:e});t?.ok?e?Y.success(`Restarting — reconnect shortly`,{id:n,description:t.note}):Y.success(`Config reloaded · ${t.count??`?`} device${t.count===1?``:`s`}`,{id:n}):Y.error(t?.error??(e?`Restart failed`:`Reload failed`),{id:n})}catch{Y.error(`${e?`Restart`:`Reload`} failed (server unreachable)`,{id:n})}finally{t(!1)}}return(0,G.jsxs)(`div`,{className:`inline-flex w-fit -space-x-px`,role:`group`,"aria-label":`Reload server`,children:[(0,G.jsxs)(YD,{variant:`outline`,size:`sm`,disabled:e,onClick:()=>void n(!1),title:`Re-read the config from disk and apply it live (no downtime)`,className:`rounded-r-none focus-visible:z-10`,children:[(0,G.jsx)(__e,{}),`Reload Server`]}),(0,G.jsxs)(XD,{children:[(0,G.jsx)(ZD,{asChild:!0,children:(0,G.jsx)(YD,{variant:`outline`,size:`sm`,disabled:e,title:`Fully restart the server process (relaunches itself, drops the connection briefly)`,className:`rounded-l-none px-2 focus-visible:z-10`,children:`Restart`})}),(0,G.jsxs)(QD,{children:[(0,G.jsxs)($D,{children:[(0,G.jsx)(tO,{children:`Restart the MCP server?`}),(0,G.jsxs)(nO,{children:[`The server relaunches itself and rebinds the same port(s) in ~1.5s — no external supervisor needed. The current connection drops briefly; reconnect after. To pick up a newly added device without downtime, use `,(0,G.jsx)(`b`,{children:`Reload Server`}),` instead.`]})]}),(0,G.jsxs)(eO,{children:[(0,G.jsx)(iO,{children:`Cancel`}),(0,G.jsx)(rO,{className:JD({variant:`destructive`}),onClick:()=>void n(!0),children:`Restart`})]})]})]})]})}function Q9({name:e}){return(0,G.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:{overview:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`3`,width:`8`,height:`8`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`13`,y:`3`,width:`8`,height:`5`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`13`,y:`10`,width:`8`,height:`11`,rx:`1.6`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`8`,height:`8`,rx:`1.6`})]}),devices:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`7`,rx:`2`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`18`,height:`7`,rx:`2`}),(0,G.jsx)(`path`,{d:`M7 7.5h.01M7 16.5h.01`})]}),clients:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`9`,cy:`8`,r:`3`}),(0,G.jsx)(`path`,{d:`M3.5 19a5.5 5.5 0 0 1 11 0`}),(0,G.jsx)(`path`,{d:`M16 7.5a2.5 2.5 0 0 1 0 5M17.5 19a4.5 4.5 0 0 0-2-3.6`})]}),investigations:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`10`,cy:`10`,r:`6`}),(0,G.jsx)(`path`,{d:`m15 15 6 6M7 10h6M10 7v6`})]}),"service-contracts":(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`m12 3 8 3v5c0 5-5 8-8 10-3-2-8-5-8-10V6Z`}),(0,G.jsx)(`path`,{d:`m8 12 3 3 5-6`})]}),"round-trip":(0,G.jsx)(G.Fragment,{children:(0,G.jsx)(`path`,{d:`M4 7h16m-4-4 4 4-4 4M20 17H4m4-4-4 4 4 4`})}),aaa:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v5c0 4.4 3.2 7.6 8 9 4.8-1.4 8-4.6 8-9V6l-8-3Z`}),(0,G.jsx)(`path`,{d:`M9.5 11.5 11 13l3.5-3.5`})]}),topology:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`5`,r:`2.4`}),(0,G.jsx)(`circle`,{cx:`5`,cy:`19`,r:`2.4`}),(0,G.jsx)(`circle`,{cx:`19`,cy:`19`,r:`2.4`}),(0,G.jsx)(`path`,{d:`M12 7.4 6.4 16.6M12 7.4 17.6 16.6`})]}),fabric:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`18`,height:`5`,rx:`1.4`}),(0,G.jsx)(`path`,{d:`M7 9v4M12 9v4M17 9v4`}),(0,G.jsx)(`rect`,{x:`4`,y:`13`,width:`6`,height:`4`,rx:`1`}),(0,G.jsx)(`rect`,{x:`14`,y:`13`,width:`6`,height:`4`,rx:`1`})]}),vulns:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v6c0 4.4 3.4 7.6 8 9 4.6-1.4 8-4.6 8-9V6z`}),(0,G.jsx)(`path`,{d:`M12 9v4`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`16`,r:`0.6`})]}),access:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`4`,y:`10`,width:`16`,height:`10`,rx:`2`}),(0,G.jsx)(`path`,{d:`M8 10V7a4 4 0 0 1 8 0v3`})]}),packets:(0,G.jsx)(`path`,{d:`M3 12h4l2-7 4 14 2-7h6`}),flows:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M3 6h7a4 4 0 0 1 4 4v4a4 4 0 0 0 4 4h3`}),(0,G.jsx)(`path`,{d:`M3 18h5`}),(0,G.jsx)(`path`,{d:`m18 5 3 3-3 3`})]}),snapshots:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 3 7.5 12 12 21 7.5 12 3Z`}),(0,G.jsx)(`path`,{d:`M3 12 12 16.5 21 12`}),(0,G.jsx)(`path`,{d:`M3 16.5 12 21 21 16.5`})]}),drift:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`}),(0,G.jsx)(`path`,{d:`M9 12l2 2 4-4`}),(0,G.jsx)(`path`,{d:`M12 6v2M12 16v2M6 12h2M16 12h2`})]}),simulator:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 6h6`}),(0,G.jsx)(`path`,{d:`M4 12h10`}),(0,G.jsx)(`path`,{d:`M4 18h4`}),(0,G.jsx)(`path`,{d:`m14 15 3 3 5-6`})]}),attacks:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3 4 6v6c0 4.4 3.4 7.9 8 9 4.6-1.1 8-4.6 8-9V6Z`}),(0,G.jsx)(`path`,{d:`m9.5 12 2 2 3.5-4`})]}),explain:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 5h11a2 2 0 0 1 2 2v13`}),(0,G.jsx)(`path`,{d:`M4 5v13a2 2 0 0 0 2 2h11`}),(0,G.jsx)(`path`,{d:`M8 9h6`}),(0,G.jsx)(`path`,{d:`M8 13h4`})]}),schedules:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`13`,r:`8`}),(0,G.jsx)(`path`,{d:`M12 9v4l2.5 2`}),(0,G.jsx)(`path`,{d:`M5 3 2.5 5.5`}),(0,G.jsx)(`path`,{d:`m19 3 2.5 2.5`})]}),policies:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8Z`}),(0,G.jsx)(`path`,{d:`M14 3v5h5`}),(0,G.jsx)(`path`,{d:`m9 14 2 2 4-4`})]}),txn:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`4`,width:`7`,height:`6`,rx:`1.5`}),(0,G.jsx)(`rect`,{x:`14`,y:`14`,width:`7`,height:`6`,rx:`1.5`}),(0,G.jsx)(`path`,{d:`M10 7h4a3 3 0 0 1 3 3v4`}),(0,G.jsx)(`path`,{d:`M14 17h-4a3 3 0 0 1-3-3v-4`})]}),plan:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`6`,cy:`6`,r:`2.3`}),(0,G.jsx)(`circle`,{cx:`6`,cy:`18`,r:`2.3`}),(0,G.jsx)(`circle`,{cx:`18`,cy:`8`,r:`2.3`}),(0,G.jsx)(`path`,{d:`M6 8.3v7.4M8.3 6H13a3 3 0 0 1 3 3v0`})]}),s3:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`ellipse`,{cx:`12`,cy:`6`,rx:`7`,ry:`2.6`}),(0,G.jsx)(`path`,{d:`M5 6v12c0 1.5 3.1 2.6 7 2.6s7-1.1 7-2.6V6`}),(0,G.jsx)(`path`,{d:`M5 12c0 1.5 3.1 2.6 7 2.6s7-1.1 7-2.6`})]}),backups:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M3 6.5 5 3.5h14l2 3`}),(0,G.jsx)(`rect`,{x:`3`,y:`6.5`,width:`18`,height:`14`,rx:`2`}),(0,G.jsx)(`path`,{d:`M9.5 12h5`})]}),modules:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`rect`,{x:`3`,y:`5`,width:`18`,height:`6`,rx:`3`}),(0,G.jsx)(`circle`,{cx:`8`,cy:`8`,r:`1.5`}),(0,G.jsx)(`rect`,{x:`3`,y:`13`,width:`18`,height:`6`,rx:`3`}),(0,G.jsx)(`circle`,{cx:`16`,cy:`16`,r:`1.5`})]}),config:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M4 7h8M16 7h4M4 17h4M12 17h8`}),(0,G.jsx)(`circle`,{cx:`14`,cy:`7`,r:`2.2`}),(0,G.jsx)(`circle`,{cx:`10`,cy:`17`,r:`2.2`})]}),memory:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`circle`,{cx:`12`,cy:`6`,r:`2`}),(0,G.jsx)(`circle`,{cx:`6`,cy:`14`,r:`2`}),(0,G.jsx)(`circle`,{cx:`18`,cy:`14`,r:`2`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`20`,r:`2`}),(0,G.jsx)(`path`,{d:`M12 8v-0.5M12 8 7.2 12.5M12 8 16.8 12.5M6 16 10.5 18.5M18 16 13.5 18.5`})]}),alerts:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 4a5 5 0 0 0-5 5v3.5L5.5 15h13L17 12.5V9a5 5 0 0 0-5-5z`}),(0,G.jsx)(`path`,{d:`M10 18a2 2 0 0 0 4 0`})]}),releases:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M12 3v12`}),(0,G.jsx)(`path`,{d:`M8 11l4 4 4-4`}),(0,G.jsx)(`path`,{d:`M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2`})]}),capsman:(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(`path`,{d:`M5 12a7 7 0 0 1 14 0`}),(0,G.jsx)(`path`,{d:`M8.5 12a3.5 3.5 0 0 1 7 0`}),(0,G.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.4`,fill:`currentColor`,stroke:`none`}),(0,G.jsx)(`path`,{d:`M12 13.4V20`})]}),feed:(0,G.jsx)(`path`,{d:`M4 6h16M4 12h16M4 18h10`})}[e]})}function y_e(){let[e,t]=(0,v.useState)(!1),[n,r]=(0,v.useState)(!0),[i,a]=(0,v.useState)(null),[o,s]=(0,v.useState)(null),[c,l]=(0,v.useState)(null),[u,d]=(0,v.useState)(null),f=Ege(o?.version),[p,m]=(0,v.useState)(null),[h,g]=(0,v.useState)(null),[_,y]=(0,v.useState)(!1),[b,x]=(0,v.useState)(!1),[S,C]=(0,v.useState)(null),[w,T]=(0,v.useState)([]),[E,D]=(0,v.useState)(36e5),O=Number(h?.dashboard?.feedLimit)||200,k=(0,v.useCallback)(async e=>{if(!h)return;let t={...h.dashboard,feedLimit:e};await _c(`/api/config`,{config:{...h,dashboard:t},rollbackMs:0}).catch(()=>Y.error(`Could not save the feed limit`)),await U(`/api/config`).then(g).catch(()=>{})},[h]),[A,j]=(0,v.useState)(!1),[M,N]=(0,v.useState)(`off`),[P,F]=(0,v.useState)(null),[I,L]=(0,v.useState)(null),[ee,R]=(0,v.useState)(null),[te,z]=(0,v.useState)(null),[ne,re]=(0,v.useState)(null),[ie,ae]=(0,v.useState)(null),[oe,se]=(0,v.useState)(()=>new Set),[ce,le]=(0,v.useState)({}),[B,V]=(0,v.useState)({tool:``,risk:``,device:``,status:``,q:``}),ue=(0,v.useRef)(A);ue.current=A;let de=(0,v.useRef)(null);EM(de);let[H,fe]=(0,v.useState)(m_e),pe=(0,v.useCallback)(e=>{fe(e),x(!1);try{X9()!==e&&(location.hash=e),localStorage.setItem(Y9,e)}catch{}},[]);(0,v.useEffect)(()=>{if(X9()!==H)try{location.hash=H}catch{}let e=()=>{let e=X9();e&&pe(e)};return window.addEventListener(`hashchange`,e),()=>window.removeEventListener(`hashchange`,e)},[]);let[me,he]=(0,v.useState)(()=>{try{let e=localStorage.getItem(`mt-help-open`);return new Set(e?JSON.parse(e):[])}catch{return new Set}}),ge=e=>he(t=>{let n=new Set(t);n.has(e)?n.delete(e):n.add(e);try{localStorage.setItem(`mt-help-open`,JSON.stringify([...n]))}catch{}return n});TM((0,v.useCallback)(e=>{if(ue.current)return;F(e),L(Date.now()),T(t=>[e,...t].slice(0,Yk));let t=e.device;t&&le(e=>({...e,[t]:(e[t]??0)+1}))},[]),(0,v.useCallback)(e=>N(e),[]));let _e=(0,v.useCallback)(()=>{ue.current||U(`/api/events?limit=${Yk}`).then(e=>T(e.events)).catch(()=>{})},[]),ve=(0,v.useRef)(``);ve.current=`${H}:${E}`;let ye=async()=>{let e=ve.current,t=AbortSignal.timeout(1e4);if(H===`feed`){if(ue.current)return;let n=new Set(w.map(e=>e.id)),[r,i]=await Promise.all([U(`/api/events?limit=${Yk}`,t),U(`/api/meta`,t)]);if(ve.current!==e||ue.current)return;s(i),T(e=>[...new Map([...e.filter(e=>!n.has(e.id)),...r.events].map(e=>[e.id,e])).values()].sort((e,t)=>t.ts-e.ts).slice(0,Yk))}else if(H===`devices`){let n=await U(`/api/devices`,t);ve.current===e&&l(n)}else if(H===`overview`){let[n,r,i]=await Promise.all([U(`/api/stats?window=${E}&buckets=60`,t),U(`/api/meta`,t),U(`/api/devices`,t)]);if(ve.current!==e)return;a(n),R(Date.now()),s(r),l(i)}};(0,v.useEffect)(()=>{_e()},[_e]),(0,v.useEffect)(()=>{let e=()=>{document.visibilityState===`visible`&&_e()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[_e]);let be=(0,v.useCallback)(()=>{U(`/api/stats?window=${E}&buckets=60`).then(e=>{a(e),R(Date.now())}).catch(()=>{})},[E]);(0,v.useEffect)(()=>{be();let e=()=>{be(),U(`/api/meta`).then(s).catch(()=>{}),U(`/api/devices`).then(l).catch(()=>{}),U(`/api/ssh-pool`).then(e=>{d(e),z(Date.now())}).catch(()=>{}),U(`/api/topology`).then(m).catch(()=>{})};e();let t=setInterval(()=>{ue.current||e()},4e3);return()=>clearInterval(t)},[be]),(0,v.useEffect)(()=>{let e=()=>void U(`/api/config`).then(g).catch(()=>{});e();let t=setInterval(e,3e4);return()=>clearInterval(t)},[]);let xe=(0,v.useCallback)((e,t)=>{_c(`/api/devices/toggle`,{device:e,disabled:t}).then(n=>{l(n),Y.success(`Device ${e} ${t?`disabled`:`enabled`}`)}).catch(()=>Y.error(`Could not ${t?`disable`:`enable`} ${e}`))},[]),Se=(0,v.useCallback)(async(e,t)=>{try{let n=await _c(`/api/devices/${e}`,{device:t});l(n);let r=n.status?.reachable,i=e===`reconnect`?`Reconnected to`:`Tested`;r===!1?Y.error(`${t} is unreachable`):Y.success(`${i} ${t}`)}catch{Y.error(`Could not ${e===`reconnect`?`reconnect to`:`test`} ${t}`)}},[]),Ce=(0,v.useCallback)(e=>Se(`test`,e),[Se]),we=(0,v.useCallback)(e=>Se(`reconnect`,e),[Se]),[Te,Ee]=(0,v.useState)({}),De=(0,v.useCallback)(async()=>{try{let e=await U(`/api/capabilities`);Ee(Object.fromEntries(e.devices.map(e=>[e.device,e.capabilities])))}catch{}},[]);(0,v.useEffect)(()=>{De()},[De]);let[Oe,ke]=(0,v.useState)(null);(0,v.useEffect)(()=>{let e=!0,t=async()=>{try{let t=await U(`/api/alerts`);e&&(ke(Array.isArray(t.active)?t.active.length:null),re(Date.now()))}catch{}};t();let n=setInterval(()=>void t(),15e3);return()=>{e=!1,clearInterval(n)}},[]);let Ae=(0,v.useCallback)(async e=>{let t=await _c(`/api/capabilities/refresh`,{device:e});if(t.error){Y.error(`Capability probe failed: ${t.error}`);return}t.capabilities&&(Ee(n=>({...n,[e]:t.capabilities})),Y.success(`Probed ${e}`))},[]);(0,v.useEffect)(()=>{let e=e=>{e.key===`Escape`&&ae(null)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[]);let je=(0,v.useMemo)(()=>{let e=B.q.trim().toLowerCase();return w.filter(t=>!(B.tool&&t.tool!==B.tool||B.risk&&t.risk!==B.risk||B.device&&t.device!==B.device||B.status===`ok`&&t.isError||B.status===`error`&&!t.isError||e&&!t.tool.toLowerCase().includes(e)&&!t.input.toLowerCase().includes(e)&&!t.output.toLowerCase().includes(e)&&!(t.error??``).toLowerCase().includes(e))).sort((e,t)=>t.ts-e.ts)},[w,B]),Me=!!(B.tool||B.risk||B.device||B.status||B.q),Ne=(0,v.useMemo)(()=>w.filter(e=>e.isError),[w]),Pe=(0,v.useMemo)(()=>({ok:w.length-Ne.length,error:Ne.length}),[w,Ne]),Fe=(0,v.useCallback)(async e=>{try{ae(await U(`/api/event/${encodeURIComponent(e.id)}`))}catch{ae(e)}},[]),Ie=(0,v.useMemo)(()=>je.slice(0,O),[je,O]),Le=(0,v.useMemo)(()=>Ie.map(e=>e.id),[Ie]),Re=Le.length>0&&Le.every(e=>oe.has(e)),ze=!Re&&Le.some(e=>oe.has(e)),Be=(0,v.useRef)(null),Ve=(0,v.useRef)(!1),He=(0,v.useCallback)(e=>{let t=Ve.current;Ve.current=!1,se(n=>{let r=new Set(n),i=Be.current;if(t&&i&&i!==e){let t=Le.indexOf(i),n=Le.indexOf(e);if(t!==-1&&n!==-1){for(let e=Math.min(t,n);e<=Math.max(t,n);e++)r.add(Le[e]);return r}}return r.has(e)?r.delete(e):r.add(e),Be.current=e,r})},[Le]),Ue=(0,v.useCallback)(()=>{se(e=>{let t=new Set(e);if(Le.length>0&&Le.every(e=>t.has(e)))for(let e of Le)t.delete(e);else for(let e of Le)t.add(e);return t})},[Le]),[We,Ge]=(0,v.useState)(!1),Ke=(0,v.useCallback)(async()=>{let e=[...oe];if(e.length!==0)try{await yc({ids:e});let t=new Set(e);T(e=>e.filter(e=>!t.has(e.id))),se(new Set),Y.success(`Deleted ${e.length} event${e.length===1?``:`s`}`)}catch{Y.error(`Could not delete the selected events`)}finally{Ge(!1)}},[oe]),qe=e=>{let t=oe.size?je.filter(e=>oe.has(e.id)):je;if(e===`json`){J9(`mcp-events.json`,JSON.stringify(t,null,2),`application/json`);return}let n=[`ts`,`tool`,`risk`,`device`,`durationMs`,`isError`,`error`,`reason`],r=e=>/[",\n]/.test(e)?`"${e.replace(/"/g,`""`)}"`:e,i=t.map(e=>[new Date(e.ts).toISOString(),e.tool,e.risk,e.device??``,String(e.durationMs),String(e.isError),e.error??``,e.reason??``].map(r).join(`,`)).join(`
|
|
268
268
|
`);J9(`mcp-events.csv`,`${n.join(`,`)}\n${i}\n`,`text/csv`)},Je=i?i.errorRate>=.2?`text-destructive`:i.errorRate>=.05?`text-warning`:``:``,Ye=h?.mcp??{},Xe=h?.dashboard??{},Ze=h?.ssh??{},Qe=h?.attacks??{},$e=h?.schedules??{},et=h?.flows??{},tt=(e,t,n)=>(0,G.jsx)($j,{size:`sm`,"aria-label":t,value:B[e],onValueChange:t=>V(n=>({...n,[e]:t})),options:[{value:``,label:t},...n.map(e=>({value:e,label:e}))]}),nt=kk.find(e=>e.id===H)??kk[0];return(0,G.jsx)(Sk,{className:`contents`,open:n,onOpenChange:r,openMobile:e,onOpenMobileChange:t,style:{"--sidebar-width":`252px`,"--sidebar-width-icon":`76px`,"--sidebar-width-mobile":`300px`},children:(0,G.jsxs)(`div`,{className:`dashboard-shell bg-background text-foreground`,ref:de,"data-view":H,"data-nav-collapsed":!n,children:[(0,G.jsx)(`a`,{className:`shell-skip-link`,href:`#dashboard-content`,onClick:e=>{e.preventDefault(),document.getElementById(`dashboard-content`)?.focus()},children:`Skip to content`}),(0,G.jsx)(Zk,{view:H,onNavigate:pe,renderIcon:e=>(0,G.jsx)(Q9,{name:e}),onMobileOpenChange:t,liveMode:M,version:o?.version,transport:o?.transport,eventCount:o?.total,feedCount:w.length,firingCount:Oe??0,releaseAvailable:f.showIndicator,onReleaseNotes:f.release?()=>f.openModal():void 0,controls:(0,G.jsx)(v_e,{})}),(0,G.jsxs)(`main`,{id:`dashboard-content`,tabIndex:-1,className:`shell-main flex min-w-0 flex-col gap-5`,"data-view":H,children:[(0,G.jsxs)(`div`,{className:`shell-topbar`,children:[(0,G.jsx)(Tk,{className:`shell-menu-button`,id:`shell-menu-toggle`,"aria-label":`Toggle navigation`,title:`Toggle navigation (⌘/Ctrl B)`,children:(0,G.jsx)(Ou,{})}),(0,G.jsxs)(`div`,{className:`shell-breadcrumb`,children:[(0,G.jsx)(`span`,{children:`Workspace`}),(0,G.jsx)(fl,{size:13,"aria-hidden":`true`}),(0,G.jsx)(`b`,{children:jk(H).label})]}),(0,G.jsxs)(`div`,{className:`shell-topbar-actions`,children:[(0,G.jsx)(Xk,{mode:M}),(0,G.jsx)(`span`,{className:`shell-toolbar-divider`}),(0,G.jsx)(fre,{})]})]}),(0,G.jsxs)(`header`,{className:`shell-page-header flex flex-wrap items-center gap-3`,children:[(0,G.jsxs)(`div`,{className:`shell-page-title`,children:[(0,G.jsx)(`span`,{className:`shell-page-icon`,"aria-hidden":`true`,children:(0,G.jsx)(Q9,{name:H})}),(0,G.jsxs)(`div`,{className:`min-w-0`,children:[(0,G.jsxs)(`span`,{className:`shell-eyebrow`,children:[jk(H).label,` / `,nt.label]}),(0,G.jsx)(`h1`,{children:nt.label}),(0,G.jsx)(`p`,{className:`text-muted-foreground`,children:nt.sub})]})]}),(0,G.jsx)(`span`,{className:`flex-1`}),H===`overview`&&(0,G.jsx)($j,{size:`sm`,"aria-label":`Stats time window`,value:String(E),onValueChange:e=>D(Number(e)),options:Jk.map(([e,t])=>({value:String(t),label:`window: ${e}`}))}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,type:me.has(H)?`accent`:`default`,onClick:()=>ge(H),"aria-expanded":me.has(H),title:`About this page`,icon:(0,G.jsx)(Sl,{}),children:`Help`})]}),me.has(H)&&(0,G.jsx)(g_e,{view:H}),(0,G.jsx)(vme,{children:(0,G.jsxs)(VA,{enabled:[`overview`,`devices`,`feed`].includes(H),disabled:H===`feed`&&A,onRefresh:ye,children:[H===`overview`&&(0,G.jsxs)(`section`,{className:`grid content-start gap-[18px]`,children:[(0,G.jsx)(`div`,{className:`overview-metrics reveal grid grid-cols-[repeat(auto-fit,minmax(9rem,1fr))] gap-3`,children:i?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(ZO,{k:`Calls (window)`,v:Uk(i.total)}),(0,G.jsx)(ZO,{k:`Calls / min`,v:i.callsPerMin.toFixed(1)}),(0,G.jsx)(ZO,{k:`Error rate`,v:`${(i.errorRate*100).toFixed(1)}%`,sub:`${i.errors} err`,cls:Je}),(0,G.jsx)(ZO,{k:`Avg latency`,v:Bk(i.latency.avg)}),(0,G.jsx)(ZO,{k:`p95 latency`,v:Bk(i.latency.p95)}),(0,G.jsx)(ZO,{k:`p99 latency`,v:Bk(i.latency.p99)}),(0,G.jsx)(ZO,{k:`Distinct tools`,v:Uk(i.distinctTools)}),(0,G.jsx)(ZO,{k:`Output volume`,v:Vk(i.outputBytes)})]}):(0,G.jsx)(ZO,{k:`Loading…`,v:`—`})}),(0,G.jsxs)(`div`,{className:`reveal grid grid-cols-1 gap-4 xl:grid-cols-3`,children:[(0,G.jsx)(X,{title:`Calls over time`,className:`xl:col-span-2`,children:i?(0,G.jsx)(Ppe,{series:i.series}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`no data`})}),i&&(0,G.jsxs)(G.Fragment,{children:[(0,G.jsx)(X,{title:`By risk`,children:(0,G.jsx)(C5,{segments:Object.keys(i.byRisk).map(e=>({label:e,value:i.byRisk[e],color:Kk[e]}))})}),(0,G.jsx)(X,{title:`Top tools`,className:`xl:col-span-2`,children:(0,G.jsx)(QO,{rows:i.byTool.map(e=>({label:e.tool,value:e.count,sub:`${e.count}× · ${Bk(e.p95Ms)} p95${e.errors?` · ${e.errors} err`:``}`,color:e.errors?`var(--destructive)`:void 0}))})}),(0,G.jsx)(X,{title:`Status`,children:(0,G.jsx)(C5,{centerLabel:`calls`,segments:[{label:`ok`,value:Pe.ok,color:`var(--muted-foreground)`},{label:`error`,value:Pe.error,color:`var(--destructive)`}]})}),(0,G.jsx)(X,{title:`By device`,children:i.byDevice.length?(0,G.jsx)(QO,{rows:i.byDevice.map(e=>({label:e.device,value:e.count}))}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`single device`})}),(0,G.jsx)(X,{title:`Recent errors`,children:Ne.length?(0,G.jsx)(`div`,{className:`flex flex-col gap-2`,children:Ne.slice(0,8).map(e=>(0,G.jsxs)(`div`,{className:`hover:bg-accent/50 grid cursor-pointer grid-cols-[auto_1fr] items-center gap-3 rounded-md px-1 py-0.5`,onClick:()=>void Fe(e),children:[(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:Hk(e.ts)}),(0,G.jsxs)(`span`,{className:`text-destructive min-w-0 truncate text-xs`,title:e.error??e.output,children:[e.tool,`: `,e.error??e.output??`error`]})]},e.id))}):(0,G.jsx)(`div`,{className:`text-muted-foreground text-[11px]`,children:`no errors 🎉`})})]})]})]}),H===`devices`&&(0,G.jsx)(nhe,{payload:c,pulses:ce,pool:u,capabilities:Te,onToggle:xe,onTest:Ce,onReconnect:we,onProbeCapabilities:Ae}),H===`clients`&&(0,G.jsx)(Hpe,{}),H===`investigations`&&(0,G.jsx)(mme,{}),H===`service-contracts`&&(0,G.jsx)(gme,{}),H===`round-trip`&&(0,G.jsx)(_me,{}),H===`aaa`&&(0,G.jsx)(Qre,{}),H===`topology`&&(p&&p.nodes.length>0?(0,G.jsx)(`section`,{className:`reveal grid content-start gap-[18px]`,children:(0,G.jsx)(Hge,{topo:p,onOnboard:(e,t)=>{C({name:e,body:t}),y(!0),pe(`config`)}})}):(0,G.jsx)(Z9,{icon:(0,G.jsx)(Xu,{className:`size-6`}),title:`No neighbours discovered yet`,sub:`Layer-2 neighbours (MNDP / CDP / LLDP) appear here as the device reports them.`})),H===`packets`&&(0,G.jsx)(`section`,{className:`grid content-start gap-[18px]`,children:(0,G.jsx)(X,{title:`Packet capture`,className:`reveal`,extra:(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`live TZSP decode · /tool sniffer streaming`}),children:(0,G.jsx)(Rge,{})})}),H===`snapshots`&&(0,G.jsx)(Bge,{}),H===`drift`&&(0,G.jsx)(fhe,{}),H===`fabric`&&(0,G.jsx)(l_e,{}),H===`vulns`&&(0,G.jsx)(f_e,{}),H===`access`&&(0,G.jsx)(o_e,{}),H===`policies`&&(0,G.jsx)(Phe,{}),H===`simulator`&&(0,G.jsx)(Lhe,{}),H===`schedules`&&(0,G.jsx)(Hhe,{}),H===`explain`&&(0,G.jsx)(Jhe,{}),H===`attacks`&&(0,G.jsx)(age,{}),H===`flows`&&(0,G.jsx)(Ohe,{}),H===`txn`&&(0,G.jsx)(xhe,{}),H===`plan`&&(0,G.jsx)(LM,{}),H===`s3`&&(0,G.jsx)(zge,{}),H===`backups`&&(0,G.jsx)(Ire,{}),H===`modules`&&(0,G.jsx)(yge,{}),H===`config`&&(h?(0,G.jsxs)(`section`,{className:`grid content-start gap-[18px]`,children:[(0,G.jsx)(X,{title:`Configuration`,className:`reveal`,extra:(0,G.jsxs)(`span`,{className:`flex items-center gap-1.5`,children:[(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>x(!0),title:`Every config option, documented from the schema`,icon:(0,G.jsx)(el,{}),children:`Field guide`}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>y(e=>!e),title:`Edit the config JSON with autocomplete, validation and safe-apply`,icon:_?void 0:(0,G.jsx)(Bu,{}),children:_?`View`:`Edit config`})]}),children:_?(0,G.jsx)(Jme,{initial:S?{...h,devices:{...h.devices,[S.name]:S.body}}:h,onClose:()=>{y(!1),C(null)},onReload:()=>{C(null),U(`/api/config`).then(g).catch(()=>{})}},S?`seed-${S.name}`:`config`):(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(`div`,{className:`text-muted-foreground mb-2.5 flex flex-wrap gap-x-4 gap-y-1 text-[11px]`,children:[(0,G.jsxs)(`span`,{children:[`transport: `,Wk(Ye.transport)]}),(0,G.jsxs)(`span`,{children:[`read-only: `,h.readOnly?`yes`:`no`]}),(0,G.jsxs)(`span`,{children:[`dashboard: `,Wk(Xe.host),`:`,Wk(Xe.port)]}),(0,G.jsxs)(`span`,{children:[`capture: `,Xe.captureBody?`on`:`off`]}),(0,G.jsxs)(`span`,{children:[`s3: `,h.s3?`configured`:`off`]}),(0,G.jsxs)(`span`,{children:[`ssh pool: `,Ze.keepAlive===!1?`off`:`on`]}),(0,G.jsxs)(`span`,{children:[`alerts: `,h.alerts?`on`:`off`]}),(0,G.jsxs)(`span`,{children:[`attacks: `,Qe.enabled?Wk(Qe.mode):`off`]}),(0,G.jsxs)(`span`,{children:[`schedules: `,$e.enabled?`on`:`off`]}),(0,G.jsxs)(`span`,{children:[`flows: `,et.enabled?`udp/${Wk(et.port)}`:`off`]})]}),(0,G.jsxs)(`details`,{children:[(0,G.jsx)(`summary`,{className:`cursor-pointer text-sm`,children:`Full effective configuration (secrets redacted)`}),(0,G.jsx)(M5,{value:h,maxHeight:340})]})]})}),(0,G.jsx)(X,{title:`Dashboard preferences`,className:`reveal`,extra:(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[`saved to `,(0,G.jsx)(`code`,{children:`dashboard.feedLimit`}),` in the config`]}),children:(0,G.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,G.jsxs)(`div`,{className:`flex min-w-0 flex-col`,children:[(0,G.jsx)(oO,{className:`text-[12.5px]`,children:`Live Feed rows`}),(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[`How many matching calls the feed table renders. Up to `,Uk(1e4),` `,`are kept in memory regardless; this only bounds what is drawn.`]})]}),(0,G.jsx)(`span`,{className:`flex-1`}),(0,G.jsx)($j,{size:`sm`,"aria-label":`Live Feed rows`,value:String(O),onValueChange:e=>void k(Number(e)),options:_re.map(e=>({value:String(e),label:`${Uk(e)} rows${e===200?` (default)`:``}`}))})]})}),(0,G.jsx)(X,{title:`Version history`,className:`reveal`,extra:(0,G.jsx)(`span`,{className:`text-muted-foreground text-[11px]`,children:`point-in-time snapshots · diff & restore`}),children:(0,G.jsx)(xme,{onRestored:()=>void U(`/api/config`).then(g).catch(()=>{})})}),b&&(0,G.jsx)(r7,{title:`📖 Field guide`,subtitle:`Every config option, documented from the schema`,onClose:()=>x(!1),children:(0,G.jsx)(Cme,{})})]}):(0,G.jsx)(Z9,{icon:(0,G.jsx)(Yj,{}),title:`Loading configuration…`})),H===`memory`&&(0,G.jsx)(pge,{}),H===`alerts`&&(0,G.jsx)(_ge,{}),H===`releases`&&(0,G.jsx)(jge,{}),H===`capsman`&&(0,G.jsx)(Ige,{}),H===`feed`&&(0,G.jsxs)(X,{className:`reveal`,title:`Live tool calls`,extra:(0,G.jsxs)(`span`,{className:`text-muted-foreground text-[11px]`,children:[Uk(Ie.length),` shown`,je.length>Ie.length&&` of ${Uk(je.length)} matching`,` ·`,` `,Uk(w.length),` buffered`]}),children:[(0,G.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2`,children:[(0,G.jsx)(Xj,{className:`min-w-[180px] flex-1`,type:`search`,placeholder:`Search tool / input / output / error…`,value:B.q,onChange:e=>V(t=>({...t,q:e.target.value}))}),tt(`tool`,`all tools`,o?.tools??[]),tt(`risk`,`all risk`,[`READ`,`WRITE`,`WRITE_IDEMPOTENT`,`DESTRUCTIVE`,`DANGEROUS`]),tt(`device`,`all devices`,o?.devices??[]),tt(`status`,`all status`,[`ok`,`error`]),(0,G.jsx)(tj,{paused:A,count:oe.size,onPause:()=>j(e=>!e),onExport:qe,onClear:()=>V({tool:``,risk:``,device:``,status:``,q:``}),onDelete:()=>Ge(!0)}),We&&oe.size>0?(0,G.jsxs)(G.Fragment,{children:[(0,G.jsxs)(Z,{size:`sm`,type:`error`,onClick:()=>void Ke(),icon:(0,G.jsx)(cl,{}),children:[`Confirm delete (`,oe.size,`)`]}),(0,G.jsx)(Z,{size:`sm`,ghost:!0,onClick:()=>Ge(!1),children:`Cancel`})]}):null]}),je.length===0?Me?(0,G.jsx)(Z9,{icon:(0,G.jsx)(fd,{className:`size-6`}),title:`No calls match your filters`,sub:`${w.length} call${w.length===1?``:`s`} buffered — try widening the search or the risk / device / status filters.`,body:(0,G.jsx)(Z,{size:`sm`,ghost:!0,className:`mt-2`,onClick:()=>V({tool:``,risk:``,device:``,status:``,q:``}),children:`Clear filters`})}):(0,G.jsx)(Z9,{icon:(0,G.jsx)(Jj,{type:M===`off`?`secondary`:`success`,pulse:M!==`off`,className:`size-3`}),title:M===`off`?`Not connected`:`Listening for tool calls…`,sub:M===`off`?`The live stream is offline — it will reconnect automatically.`:`Tool calls the LLM makes against this server stream in here in real time.`}):(0,G.jsx)(`div`,{className:`max-h-[60vh] overflow-auto`,children:(0,G.jsxs)(WO,{children:[(0,G.jsx)(GO,{children:(0,G.jsxs)(qO,{children:[(0,G.jsx)(JO,{className:`w-7`,children:(0,G.jsx)(aO,{"aria-label":`Select all shown rows`,checked:Re?!0:ze?`indeterminate`:!1,onCheckedChange:Ue})}),(0,G.jsx)(JO,{children:`time`}),(0,G.jsx)(JO,{children:`tool`}),(0,G.jsx)(JO,{children:`risk`}),(0,G.jsx)(JO,{children:`device`}),(0,G.jsx)(JO,{className:`text-right`,children:`dur`}),(0,G.jsx)(JO,{children:`status`}),(0,G.jsx)(JO,{children:`output`})]})}),(0,G.jsx)(KO,{children:Ie.map(e=>(0,G.jsxs)(qO,{"data-state":oe.has(e.id)?`selected`:void 0,className:K(`cursor-pointer`,e.isError&&`bg-destructive/8`),onClick:()=>void Fe(e),children:[(0,G.jsx)(YO,{onClick:e=>e.stopPropagation(),children:(0,G.jsx)(aO,{"aria-label":`Select row (Shift-click to select a range)`,checked:oe.has(e.id),onPointerDown:e=>{Ve.current=e.shiftKey},onCheckedChange:()=>He(e.id)})}),(0,G.jsx)(YO,{className:`tabular-nums`,children:Hk(e.ts)}),(0,G.jsx)(YO,{children:e.tool}),(0,G.jsx)(YO,{children:(0,G.jsx)(cj,{size:`sm`,showIcon:!1,pulse:!1,status:e.risk===`READ`?`success`:e.risk===`DANGEROUS`?`danger`:e.risk===`DESTRUCTIVE`?`warning`:`info`,className:K(`h-5 px-1.5 text-[10px]`,qk[e.risk]),children:e.risk.replace(`WRITE_IDEMPOTENT`,`WRITE·I`)})}),(0,G.jsx)(YO,{children:e.device??`—`}),(0,G.jsx)(YO,{className:`text-right tabular-nums`,children:Bk(e.durationMs)}),(0,G.jsx)(YO,{children:(0,G.jsx)(cj,{size:`sm`,pulse:!1,status:e.isError?`danger`:`success`,className:`h-5 px-1.5 text-[10px]`,children:e.isError?`error`:`ok`})}),(0,G.jsx)(YO,{className:`text-muted-foreground max-w-[24rem] truncate`,children:e.isError?e.error??`error`:e.reason?(0,G.jsx)(`span`,{className:`italic`,children:e.reason}):e.output||`—`})]},e.id))})]})})]})]})},H)]}),(0,G.jsx)(jA,{mode:M,paused:A,liveEvent:P,liveEventAt:I,events:w,stats:i,statsAt:ee,devices:c,pool:u,poolAt:te,alerts:Oe,alertsAt:ne,onNavigate:pe,onEvent:e=>void Fe(e)}),f.showModal&&f.release&&(0,G.jsx)(Dge,{release:f.release,onDismiss:f.dismissRelease}),ie&&(0,G.jsx)(ihe,{event:ie,onClose:()=>ae(null)}),(0,G.jsx)(pre,{})]})})}var $9=document.getElementById(`root`);$9&&(0,y.createRoot)($9).render((0,G.jsx)(y_e,{}));
|
|
269
269
|
</script>
|
|
270
270
|
<style>
|